From a762f8ee8ac62b1f41f9428d3b42bcb74a87c53c Mon Sep 17 00:00:00 2001 From: jwierzbo Date: Wed, 10 Apr 2024 12:49:47 +0200 Subject: [PATCH 1/2] OAS-9483 Add new InitialDiskSize field for NoteBook --- docs/index.html | 9 +- notebook/v1/notebook.pb.go | 193 +++++++++++++++++------------ notebook/v1/notebook.proto | 4 +- typescript/notebook/v1/notebook.ts | 18 ++- 4 files changed, 138 insertions(+), 86 deletions(-) diff --git a/docs/index.html b/docs/index.html index 89c3745c..97c38181 100644 --- a/docs/index.html +++ b/docs/index.html @@ -17846,7 +17846,14 @@

NotebookModel

GPU units allocated to the notebook. 1 GPU unit equals 1 physical / virtual GPU.

- + + + initial_disk_size + int32 + +

Initial amount of disk space (in GiB) available to the notebook.

+ + diff --git a/notebook/v1/notebook.pb.go b/notebook/v1/notebook.pb.go index 2006d64a..58e73fba 100644 --- a/notebook/v1/notebook.pb.go +++ b/notebook/v1/notebook.pb.go @@ -419,7 +419,9 @@ type NotebookModel struct { MinDiskSize int32 `protobuf:"varint,6,opt,name=min_disk_size,json=minDiskSize,proto3" json:"min_disk_size,omitempty"` // GPU units allocated to the notebook. // 1 GPU unit equals 1 physical / virtual GPU. - Gpu float32 `protobuf:"fixed32,7,opt,name=gpu,proto3" json:"gpu,omitempty"` + Gpu float32 `protobuf:"fixed32,7,opt,name=gpu,proto3" json:"gpu,omitempty"` + // Initial amount of disk space (in GiB) available to the notebook. + InitialDiskSize int32 `protobuf:"varint,8,opt,name=initial_disk_size,json=initialDiskSize,proto3" json:"initial_disk_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -507,6 +509,13 @@ func (m *NotebookModel) GetGpu() float32 { return 0 } +func (m *NotebookModel) GetInitialDiskSize() int32 { + if m != nil { + return m.InitialDiskSize + } + return 0 +} + // List of notebook models. type NotebookModelList struct { Items []*NotebookModel `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` @@ -845,86 +854,87 @@ func init() { func init() { proto.RegisterFile("notebook.proto", fileDescriptor_e4288154b4c2ba34) } var fileDescriptor_e4288154b4c2ba34 = []byte{ - // 1260 bytes of a gzipped FileDescriptorProto + // 1273 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5f, 0x6f, 0x13, 0x47, - 0x10, 0xef, 0xd9, 0xd8, 0x89, 0xc7, 0xb1, 0x13, 0x56, 0x88, 0x1e, 0x26, 0x04, 0xf7, 0x02, 0x28, + 0x10, 0xef, 0xd9, 0xd8, 0xb1, 0xc7, 0xb1, 0x13, 0x56, 0x88, 0x1e, 0x26, 0x04, 0xf7, 0x02, 0x28, 0xa0, 0x62, 0x93, 0x54, 0x95, 0x5a, 0x90, 0x00, 0x87, 0x20, 0x14, 0x09, 0x28, 0xba, 0x00, 0x0f, 0x7d, 0x39, 0xad, 0x7d, 0x1b, 0xb3, 0xe2, 0xfe, 0xd5, 0xbb, 0x67, 0x61, 0x4a, 0xab, 0x0a, 0xf5, - 0x13, 0xb4, 0x2f, 0x7d, 0xea, 0xd7, 0xe8, 0x07, 0xe8, 0x4b, 0x79, 0xab, 0xd4, 0x2f, 0x50, 0xd1, - 0x7e, 0x8b, 0xbe, 0x54, 0x3b, 0xbb, 0x77, 0xb1, 0x49, 0x8c, 0x1d, 0x89, 0x27, 0xef, 0xcd, 0xfc, - 0x66, 0xe6, 0xb7, 0x3b, 0xb3, 0x33, 0x6b, 0xa8, 0x47, 0xb1, 0x64, 0xdd, 0x38, 0x7e, 0xde, 0x4a, - 0x06, 0xb1, 0x8c, 0x49, 0x83, 0x0e, 0x68, 0xd4, 0x8f, 0xfd, 0x6e, 0xab, 0x17, 0xc4, 0xa9, 0xdf, - 0xca, 0xd5, 0xc3, 0xcd, 0xc6, 0xe9, 0x5e, 0x1c, 0x86, 0x71, 0xd4, 0x1e, 0x6e, 0xb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0xef, 0x04, 0x2c, 0x66, 0xa1, 0x49, 0x1d, 0x0a, 0x79, 0x9c, 0x02, 0xf7, 0x0f, - 0x53, 0x28, 0x1c, 0x41, 0x61, 0x05, 0x8a, 0xe9, 0x20, 0xb0, 0x8b, 0xa8, 0x52, 0x4b, 0x42, 0xe0, - 0x44, 0x44, 0x43, 0x66, 0x9f, 0x40, 0x11, 0xae, 0x49, 0x13, 0xaa, 0x3e, 0x13, 0xbd, 0x01, 0xc7, - 0xb8, 0x76, 0x09, 0x55, 0xe3, 0x22, 0x72, 0x16, 0x2a, 0x5c, 0x78, 0x09, 0x4d, 0x05, 0xf3, 0xed, - 0x72, 0xd3, 0xda, 0x58, 0x74, 0x17, 0xb9, 0x78, 0x84, 0xdf, 0xe4, 0x36, 0xd4, 0x03, 0x2a, 0xa4, - 0x51, 0x7b, 0x54, 0xda, 0x0b, 0xb8, 0xdd, 0x46, 0x4b, 0xa7, 0xb8, 0x95, 0x15, 0x45, 0xeb, 0x71, - 0x56, 0x03, 0xee, 0x92, 0xb2, 0xd0, 0xf6, 0x1d, 0x49, 0xb6, 0x61, 0x19, 0x3d, 0x0c, 0x98, 0x48, - 0x43, 0xed, 0x62, 0x71, 0xa6, 0x8b, 0x9a, 0x32, 0x71, 0xb5, 0x45, 0x47, 0x12, 0x07, 0x6a, 0xbd, - 0x01, 0xa3, 0x92, 0xf9, 0x5e, 0x77, 0xa4, 0xce, 0xa3, 0xa2, 0xb7, 0x61, 0x84, 0xdb, 0xa3, 0x5d, - 0x9f, 0x7c, 0x09, 0x90, 0x61, 0xa8, 0x34, 0x49, 0x79, 0x5f, 0x88, 0x8a, 0x41, 0x77, 0x24, 0xb9, - 0x01, 0xa5, 0x30, 0xf6, 0x59, 0x60, 0x57, 0x8f, 0x4e, 0xe5, 0x78, 0xfd, 0x3d, 0x50, 0xc0, 0xbd, - 0x84, 0xf5, 0x5c, 0x6d, 0x43, 0xce, 0x01, 0x70, 0xe1, 0xf9, 0x2c, 0x60, 0x92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65, + 0xe9, 0x5c, 0x44, 0x62, 0xe7, 0x9d, 0xe6, 0x4c, 0x62, 0x42, 0x91, 0xfa, 0xdd, 0x02, 0x72, 0x70, + 0x72, 0x90, 0x2f, 0xe7, 0x65, 0x36, 0x35, 0x69, 0x9a, 0x57, 0xe7, 0x1e, 0x5c, 0xc8, 0xd1, 0x41, + 0x8e, 0x2b, 0xce, 0xa7, 0x07, 0x38, 0xe2, 0x43, 0x02, 0x09, 0xbe, 0x84, 0x3a, 0x3e, 0x06, 0x3f, + 0x72, 0xe5, 0xac, 0x61, 0xe8, 0x73, 0xce, 0xd9, 0x03, 0xa1, 0xd5, 0x71, 0x75, 0xf0, 0xc1, 0x4a, + 0x5e, 0x41, 0x43, 0xbf, 0x22, 0x3f, 0x72, 0x70, 0x73, 0x69, 0x9c, 0x95, 0xc3, 0x83, 0xeb, 0xb7, + 0xee, 0xd6, 0xcd, 0x3f, 0xdf, 0xae, 0x5a, 0x7f, 0xbd, 0x5d, 0xb5, 0xfe, 0x79, 0xbb, 0x6a, 0xfd, + 0xf6, 0x6e, 0xf5, 0x93, 0x6f, 0x3f, 0x9f, 0xf8, 0x57, 0x95, 0x85, 0xb8, 0x1a, 0xd2, 0x88, 0x0e, + 0x98, 0xaf, 0x5c, 0x89, 0x49, 0x5f, 0xbd, 0x32, 0x4e, 0xae, 0x2f, 0xfe, 0x0f, 0x00, 0x00, 0xff, + 0xff, 0x86, 0x31, 0x23, 0x71, 0xe4, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1688,6 +1698,11 @@ func (m *NotebookModel) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.InitialDiskSize != 0 { + i = encodeVarintNotebook(dAtA, i, uint64(m.InitialDiskSize)) + i-- + dAtA[i] = 0x40 + } if m.Gpu != 0 { i -= 4 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Gpu)))) @@ -2148,6 +2163,9 @@ func (m *NotebookModel) Size() (n int) { if m.Gpu != 0 { n += 5 } + if m.InitialDiskSize != 0 { + n += 1 + sovNotebook(uint64(m.InitialDiskSize)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -3305,6 +3323,25 @@ func (m *NotebookModel) Unmarshal(dAtA []byte) error { v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) iNdEx += 4 m.Gpu = float32(math.Float32frombits(v)) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialDiskSize", wireType) + } + m.InitialDiskSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNotebook + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.InitialDiskSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipNotebook(dAtA[iNdEx:]) diff --git a/notebook/v1/notebook.proto b/notebook/v1/notebook.proto index 67e6eba8..740881bd 100644 --- a/notebook/v1/notebook.proto +++ b/notebook/v1/notebook.proto @@ -216,7 +216,9 @@ message NotebookModel { int32 min_disk_size = 6; // GPU units allocated to the notebook. // 1 GPU unit equals 1 physical / virtual GPU. - float gpu = 7; + float gpu = 7; + // Initial amount of disk space (in GiB) available to the notebook. + int32 initial_disk_size = 8; } // List of notebook models. diff --git a/typescript/notebook/v1/notebook.ts b/typescript/notebook/v1/notebook.ts index dd98ec90..0b8fac1a 100644 --- a/typescript/notebook/v1/notebook.ts +++ b/typescript/notebook/v1/notebook.ts @@ -4,12 +4,14 @@ /// import api from '../../api' import * as googleTypes from '../../googleTypes' -import { Budget as arangodb_cloud_common_v1_Budget } from '../../common/v1/common' -import { Empty as arangodb_cloud_common_v1_Empty } from '../../common/v1/common' -import { IDOptions as arangodb_cloud_common_v1_IDOptions } from '../../common/v1/common' -import { ListOptions as arangodb_cloud_common_v1_ListOptions } from '../../common/v1/common' -import { Version as arangodb_cloud_common_v1_Version } from '../../common/v1/common' -import { DataVolumeInfo as arangodb_cloud_data_v1_DataVolumeInfo } from '../../data/v1/data' +import { + Budget as arangodb_cloud_common_v1_Budget, + Empty as arangodb_cloud_common_v1_Empty, + IDOptions as arangodb_cloud_common_v1_IDOptions, + ListOptions as arangodb_cloud_common_v1_ListOptions, + Version as arangodb_cloud_common_v1_Version +} from '../../common/v1/common' +import {DataVolumeInfo as arangodb_cloud_data_v1_DataVolumeInfo} from '../../data/v1/data' // File: notebook/v1/notebook.proto // Package: arangodb.cloud.notebook.v1 @@ -170,6 +172,10 @@ export interface NotebookModel { // 1 GPU unit equals 1 physical / virtual GPU. // number gpu?: number; + + // Initial amount of disk space (in GiB) available to the notebook. + // number + initial_disk_size?: number; } // List of notebook models. From e69efc431c65238d1399005ddc195a14004212fe Mon Sep 17 00:00:00 2001 From: jwierzbo Date: Wed, 10 Apr 2024 13:43:58 +0200 Subject: [PATCH 2/2] OAS-9483 Add new InitialDiskSize field for NoteBook - bump version --- notebook/v1/version.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebook/v1/version.go b/notebook/v1/version.go index 500c9f0d..c3dcaf6f 100644 --- a/notebook/v1/version.go +++ b/notebook/v1/version.go @@ -26,7 +26,7 @@ const ( // APIMajorVersion contains major version of this API APIMajorVersion = 1 // APIMinorVersion contains minor version of this API - APIMinorVersion = 0 + APIMinorVersion = 1 // APIPatchVersion contains patch version of this API - APIPatchVersion = 4 + APIPatchVersion = 0 )