@scaleway/sdk-datalab 1.5.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -0
- package/package.json +8 -7
- package/dist/.vite/license.md +0 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/index.gen.d.ts +0 -5
- package/dist/index.gen.js +0 -2
- package/dist/metadata.gen.d.ts +0 -12
- package/dist/metadata.gen.js +0 -13
- package/dist/v1beta1/api.gen.d.ts +0 -95
- package/dist/v1beta1/api.gen.js +0 -65
- package/dist/v1beta1/content.gen.d.ts +0 -3
- package/dist/v1beta1/content.gen.js +0 -9
- package/dist/v1beta1/index.gen.d.ts +0 -5
- package/dist/v1beta1/index.gen.js +0 -20
- package/dist/v1beta1/marshalling.gen.d.ts +0 -9
- package/dist/v1beta1/marshalling.gen.js +0 -160
- package/dist/v1beta1/metadata.gen.d.ts +0 -64
- package/dist/v1beta1/metadata.gen.js +0 -72
- package/dist/v1beta1/types.gen.d.ts +0 -514
- package/dist/v1beta1/types.gen.js +0 -0
- package/dist/v1beta1/validation-rules.gen.d.ts +0 -60
- package/dist/v1beta1/validation-rules.gen.js +0 -59
|
@@ -1,514 +0,0 @@
|
|
|
1
|
-
import type { Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
|
-
export type DatalabStatus = 'unknown_status' | 'creating' | 'updating' | 'ready' | 'error' | 'deleting' | 'locked' | 'deleted';
|
|
3
|
-
export type ListClusterVersionsRequestOrderBy = 'name_asc' | 'name_desc';
|
|
4
|
-
export type ListDatalabsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
5
|
-
export type ListNodeTypesRequestOrderBy = 'name_asc' | 'name_desc' | 'vcpus_asc' | 'vcpus_desc' | 'memory_gigabytes_asc' | 'memory_gigabytes_desc' | 'vram_bytes_asc' | 'vram_bytes_desc' | 'gpus_asc' | 'gpus_desc';
|
|
6
|
-
export type ListNodeTypesRequestResourceType = 'all' | 'gpu' | 'cpu';
|
|
7
|
-
export type ListNotebookVersionsRequestOrderBy = 'name_asc' | 'name_desc';
|
|
8
|
-
export type NodeTypeStock = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
|
|
9
|
-
export type NodeTypeTarget = 'unknown_target' | 'notebook' | 'worker';
|
|
10
|
-
export type VolumeType = 'unknown_type' | 'sbs_5k';
|
|
11
|
-
export interface Volume {
|
|
12
|
-
type: VolumeType;
|
|
13
|
-
size: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A cluster version.
|
|
17
|
-
*/
|
|
18
|
-
export interface ClusterVersion {
|
|
19
|
-
/**
|
|
20
|
-
* The version of the cluster.
|
|
21
|
-
*/
|
|
22
|
-
version: string;
|
|
23
|
-
/**
|
|
24
|
-
* The end of life date of the cluster version.
|
|
25
|
-
*/
|
|
26
|
-
endOfLife?: Date;
|
|
27
|
-
/**
|
|
28
|
-
* The creation date of the cluster version.
|
|
29
|
-
*/
|
|
30
|
-
createdAt?: Date;
|
|
31
|
-
/**
|
|
32
|
-
* The last update date of the cluster version.
|
|
33
|
-
*/
|
|
34
|
-
updatedAt?: Date;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the cluster version is disabled.
|
|
37
|
-
*/
|
|
38
|
-
disabled: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the cluster version is in beta.
|
|
41
|
-
*/
|
|
42
|
-
beta: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface DatalabSparkMain {
|
|
45
|
-
nodeType: string;
|
|
46
|
-
sparkUiUrl: string;
|
|
47
|
-
sparkMasterUrl: string;
|
|
48
|
-
rootVolume?: Volume;
|
|
49
|
-
}
|
|
50
|
-
export interface DatalabSparkWorker {
|
|
51
|
-
nodeType: string;
|
|
52
|
-
nodeCount: number;
|
|
53
|
-
rootVolume?: Volume;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* A notebook version.
|
|
57
|
-
*/
|
|
58
|
-
export interface NotebookVersion {
|
|
59
|
-
/**
|
|
60
|
-
* The version of the notebook.
|
|
61
|
-
*/
|
|
62
|
-
version: string;
|
|
63
|
-
/**
|
|
64
|
-
* The end of life date of the notebook version.
|
|
65
|
-
*/
|
|
66
|
-
endOfLife?: Date;
|
|
67
|
-
/**
|
|
68
|
-
* The creation date of the notebook version.
|
|
69
|
-
*/
|
|
70
|
-
createdAt?: Date;
|
|
71
|
-
/**
|
|
72
|
-
* The last update date of the notebook version.
|
|
73
|
-
*/
|
|
74
|
-
updatedAt?: Date;
|
|
75
|
-
/**
|
|
76
|
-
* Whether the notebook version is disabled.
|
|
77
|
-
*/
|
|
78
|
-
disabled: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Whether the notebook version is in beta.
|
|
81
|
-
*/
|
|
82
|
-
beta: boolean;
|
|
83
|
-
}
|
|
84
|
-
export interface CreateDatalabRequestSparkMain {
|
|
85
|
-
nodeType: string;
|
|
86
|
-
}
|
|
87
|
-
export interface CreateDatalabRequestSparkWorker {
|
|
88
|
-
nodeType: string;
|
|
89
|
-
nodeCount: number;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* A cluster.
|
|
93
|
-
*/
|
|
94
|
-
export interface Cluster {
|
|
95
|
-
/**
|
|
96
|
-
* The name of the cluster.
|
|
97
|
-
*/
|
|
98
|
-
name: string;
|
|
99
|
-
/**
|
|
100
|
-
* The description of the cluster.
|
|
101
|
-
*/
|
|
102
|
-
description: string;
|
|
103
|
-
/**
|
|
104
|
-
* The versions of the cluster.
|
|
105
|
-
*/
|
|
106
|
-
versions: ClusterVersion[];
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* A Clusters for Apache Spark™ resource.
|
|
110
|
-
*/
|
|
111
|
-
export interface Datalab {
|
|
112
|
-
/**
|
|
113
|
-
* The unique identifier of the cluster.
|
|
114
|
-
*/
|
|
115
|
-
id: string;
|
|
116
|
-
/**
|
|
117
|
-
* The unique identifier of the project where the cluster has been created.
|
|
118
|
-
*/
|
|
119
|
-
projectId: string;
|
|
120
|
-
/**
|
|
121
|
-
* The name of the cluster.
|
|
122
|
-
*/
|
|
123
|
-
name: string;
|
|
124
|
-
/**
|
|
125
|
-
* The description of the cluster.
|
|
126
|
-
*/
|
|
127
|
-
description: string;
|
|
128
|
-
/**
|
|
129
|
-
* The tags of the cluster.
|
|
130
|
-
*/
|
|
131
|
-
tags: string[];
|
|
132
|
-
/**
|
|
133
|
-
* The Apache Spark™ Main node specification of cluster. It holds the parameters `node_type`, `spark_ui_url` (available to reach Apache Spark™ UI), `spark_master_url` (used to reach the cluster within a VPC), `root_volume` (size of the volume assigned to the cluster).
|
|
134
|
-
*/
|
|
135
|
-
main?: DatalabSparkMain;
|
|
136
|
-
/**
|
|
137
|
-
* The cluster worker nodes specification. It holds the parameters `node_type`, `node_count`, `root_volume` (size of the volume assigned to the cluster).
|
|
138
|
-
*/
|
|
139
|
-
worker?: DatalabSparkWorker;
|
|
140
|
-
/**
|
|
141
|
-
* The status of the cluster. For a working cluster the status is marked as `ready`.
|
|
142
|
-
*/
|
|
143
|
-
status: DatalabStatus;
|
|
144
|
-
/**
|
|
145
|
-
* The creation timestamp of the cluster.
|
|
146
|
-
*/
|
|
147
|
-
createdAt?: Date;
|
|
148
|
-
/**
|
|
149
|
-
* The last update date of the cluster.
|
|
150
|
-
*/
|
|
151
|
-
updatedAt?: Date;
|
|
152
|
-
/**
|
|
153
|
-
* The region of the cluster.
|
|
154
|
-
*/
|
|
155
|
-
region: ScwRegion;
|
|
156
|
-
/**
|
|
157
|
-
* Whether a JupyterLab notebook is associated with the cluster or not.
|
|
158
|
-
*/
|
|
159
|
-
hasNotebook: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* The URL of the notebook if available.
|
|
162
|
-
*/
|
|
163
|
-
notebookUrl?: string;
|
|
164
|
-
/**
|
|
165
|
-
* The version of Apache Spark™ running inside the cluster.
|
|
166
|
-
*/
|
|
167
|
-
sparkVersion: string;
|
|
168
|
-
/**
|
|
169
|
-
* The total persistent volume storage selected to run Apache Spark™.
|
|
170
|
-
*/
|
|
171
|
-
totalStorage?: Volume;
|
|
172
|
-
/**
|
|
173
|
-
* The unique identifier of the private network to which the cluster is attached to.
|
|
174
|
-
*/
|
|
175
|
-
privateNetworkId: string;
|
|
176
|
-
/**
|
|
177
|
-
* The URL that is used to reach the cluster from the notebook when available. This URL cannot be used to reach the cluster from a server.
|
|
178
|
-
*/
|
|
179
|
-
notebookMasterUrl?: string;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* A node type.
|
|
183
|
-
*/
|
|
184
|
-
export interface NodeType {
|
|
185
|
-
/**
|
|
186
|
-
* The stock status of the node type.
|
|
187
|
-
*/
|
|
188
|
-
stockStatus: NodeTypeStock;
|
|
189
|
-
/**
|
|
190
|
-
* The name of the node type.
|
|
191
|
-
*/
|
|
192
|
-
name: string;
|
|
193
|
-
/**
|
|
194
|
-
* The description of the node type.
|
|
195
|
-
*/
|
|
196
|
-
description: string;
|
|
197
|
-
/**
|
|
198
|
-
* The number of vCPUs.
|
|
199
|
-
*/
|
|
200
|
-
vcpus: number;
|
|
201
|
-
/**
|
|
202
|
-
* The amount of memory.
|
|
203
|
-
*/
|
|
204
|
-
memoryGigabytes: number;
|
|
205
|
-
/**
|
|
206
|
-
* The amount of VRAM.
|
|
207
|
-
*/
|
|
208
|
-
vramGigabytes: number;
|
|
209
|
-
/**
|
|
210
|
-
* The number of GPUs.
|
|
211
|
-
*/
|
|
212
|
-
gpus: number;
|
|
213
|
-
/**
|
|
214
|
-
* Whether the node type is disabled.
|
|
215
|
-
*/
|
|
216
|
-
disabled: boolean;
|
|
217
|
-
/**
|
|
218
|
-
* Whether the node type is in beta.
|
|
219
|
-
*/
|
|
220
|
-
beta: boolean;
|
|
221
|
-
/**
|
|
222
|
-
* The creation date of the node type.
|
|
223
|
-
*/
|
|
224
|
-
createdAt?: Date;
|
|
225
|
-
/**
|
|
226
|
-
* The last update date of the node type.
|
|
227
|
-
*/
|
|
228
|
-
updatedAt?: Date;
|
|
229
|
-
/**
|
|
230
|
-
* The targets of the node type.
|
|
231
|
-
*/
|
|
232
|
-
targets: NodeTypeTarget[];
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* A notebook.
|
|
236
|
-
*/
|
|
237
|
-
export interface Notebook {
|
|
238
|
-
/**
|
|
239
|
-
* The name of the notebook.
|
|
240
|
-
*/
|
|
241
|
-
name: string;
|
|
242
|
-
/**
|
|
243
|
-
* The description of the notebook.
|
|
244
|
-
*/
|
|
245
|
-
description: string;
|
|
246
|
-
/**
|
|
247
|
-
* The versions of the notebook.
|
|
248
|
-
*/
|
|
249
|
-
versions: NotebookVersion[];
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* A request to create a cluster.
|
|
253
|
-
*/
|
|
254
|
-
export type CreateDatalabRequest = {
|
|
255
|
-
/**
|
|
256
|
-
* Region to target. If none is passed will use default region from the config.
|
|
257
|
-
*/
|
|
258
|
-
region?: ScwRegion;
|
|
259
|
-
/**
|
|
260
|
-
* The unique identifier of the project where the cluster will be created.
|
|
261
|
-
*/
|
|
262
|
-
projectId?: string;
|
|
263
|
-
/**
|
|
264
|
-
* The name of the cluster.
|
|
265
|
-
*/
|
|
266
|
-
name: string;
|
|
267
|
-
/**
|
|
268
|
-
* The description of the cluster.
|
|
269
|
-
*/
|
|
270
|
-
description: string;
|
|
271
|
-
/**
|
|
272
|
-
* The tags of the cluster.
|
|
273
|
-
*/
|
|
274
|
-
tags?: string[];
|
|
275
|
-
/**
|
|
276
|
-
* The cluster main node specification. It holds the parameters `node_type` which specifies the node type of the main node. See ListNodeTypes for available options. See ListNodeTypes for available options.
|
|
277
|
-
*/
|
|
278
|
-
main?: CreateDatalabRequestSparkMain;
|
|
279
|
-
/**
|
|
280
|
-
* The cluster worker node specification. It holds the parameters `node_type` which specifies the node type of the worker node and `node_count` for specifying the amount of nodes.
|
|
281
|
-
*/
|
|
282
|
-
worker?: CreateDatalabRequestSparkWorker;
|
|
283
|
-
/**
|
|
284
|
-
* Select this option to include a notebook as part of the cluster.
|
|
285
|
-
*/
|
|
286
|
-
hasNotebook: boolean;
|
|
287
|
-
/**
|
|
288
|
-
* The version of Apache Spark™ running inside the cluster, available options can be viewed at ListClusterVersions.
|
|
289
|
-
*/
|
|
290
|
-
sparkVersion: string;
|
|
291
|
-
/**
|
|
292
|
-
* The maximum persistent volume storage that will be available during workload.
|
|
293
|
-
*/
|
|
294
|
-
totalStorage?: Volume;
|
|
295
|
-
/**
|
|
296
|
-
* The unique identifier of the private network the cluster will be attached to.
|
|
297
|
-
*/
|
|
298
|
-
privateNetworkId: string;
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* A request to delete a cluster.
|
|
302
|
-
*/
|
|
303
|
-
export type DeleteDatalabRequest = {
|
|
304
|
-
/**
|
|
305
|
-
* Region to target. If none is passed will use default region from the config.
|
|
306
|
-
*/
|
|
307
|
-
region?: ScwRegion;
|
|
308
|
-
/**
|
|
309
|
-
* The unique identifier of the cluster.
|
|
310
|
-
*/
|
|
311
|
-
datalabId: string;
|
|
312
|
-
};
|
|
313
|
-
/**
|
|
314
|
-
* A request to get information about a cluster.
|
|
315
|
-
*/
|
|
316
|
-
export type GetDatalabRequest = {
|
|
317
|
-
/**
|
|
318
|
-
* Region to target. If none is passed will use default region from the config.
|
|
319
|
-
*/
|
|
320
|
-
region?: ScwRegion;
|
|
321
|
-
/**
|
|
322
|
-
* The unique identifier of the cluster.
|
|
323
|
-
*/
|
|
324
|
-
datalabId: string;
|
|
325
|
-
};
|
|
326
|
-
/**
|
|
327
|
-
* A request to list cluster versions.
|
|
328
|
-
*/
|
|
329
|
-
export type ListClusterVersionsRequest = {
|
|
330
|
-
/**
|
|
331
|
-
* Region to target. If none is passed will use default region from the config.
|
|
332
|
-
*/
|
|
333
|
-
region?: ScwRegion;
|
|
334
|
-
/**
|
|
335
|
-
* The page number.
|
|
336
|
-
*/
|
|
337
|
-
page?: number;
|
|
338
|
-
/**
|
|
339
|
-
* The page size.
|
|
340
|
-
*/
|
|
341
|
-
pageSize?: number;
|
|
342
|
-
/**
|
|
343
|
-
* The order by field.
|
|
344
|
-
*/
|
|
345
|
-
orderBy?: ListClusterVersionsRequestOrderBy;
|
|
346
|
-
};
|
|
347
|
-
/**
|
|
348
|
-
* A response to list cluster versions.
|
|
349
|
-
*/
|
|
350
|
-
export interface ListClusterVersionsResponse {
|
|
351
|
-
/**
|
|
352
|
-
* The list of cluster versions.
|
|
353
|
-
*/
|
|
354
|
-
clusters: Cluster[];
|
|
355
|
-
/**
|
|
356
|
-
* The total count of cluster versions.
|
|
357
|
-
*/
|
|
358
|
-
totalCount: number;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* A request to list clusters.
|
|
362
|
-
*/
|
|
363
|
-
export type ListDatalabsRequest = {
|
|
364
|
-
/**
|
|
365
|
-
* Region to target. If none is passed will use default region from the config.
|
|
366
|
-
*/
|
|
367
|
-
region?: ScwRegion;
|
|
368
|
-
/**
|
|
369
|
-
* The unique identifier of the organization whose clusters you want to list.
|
|
370
|
-
*/
|
|
371
|
-
organizationId?: string;
|
|
372
|
-
/**
|
|
373
|
-
* The unique identifier of the project whose clusters you want to list.
|
|
374
|
-
*/
|
|
375
|
-
projectId?: string;
|
|
376
|
-
/**
|
|
377
|
-
* The name of the cluster you want to list.
|
|
378
|
-
*/
|
|
379
|
-
name?: string;
|
|
380
|
-
/**
|
|
381
|
-
* The tags associated with the cluster you want to list.
|
|
382
|
-
*/
|
|
383
|
-
tags?: string[];
|
|
384
|
-
/**
|
|
385
|
-
* The page number for pagination.
|
|
386
|
-
*/
|
|
387
|
-
page?: number;
|
|
388
|
-
/**
|
|
389
|
-
* The page size for pagination.
|
|
390
|
-
*/
|
|
391
|
-
pageSize?: number;
|
|
392
|
-
/**
|
|
393
|
-
* The order by field, available options are `name_asc`, `name_desc`, `created_at_asc`, `created_at_desc`, `updated_at_asc`, `updated_at_desc`.
|
|
394
|
-
*/
|
|
395
|
-
orderBy?: ListDatalabsRequestOrderBy;
|
|
396
|
-
};
|
|
397
|
-
/**
|
|
398
|
-
* A response to list clusters.
|
|
399
|
-
*/
|
|
400
|
-
export interface ListDatalabsResponse {
|
|
401
|
-
/**
|
|
402
|
-
* The list of clusters. This is a list composed of messages of type `DataLab`.
|
|
403
|
-
*/
|
|
404
|
-
datalabs: Datalab[];
|
|
405
|
-
/**
|
|
406
|
-
* The total count of clusters.
|
|
407
|
-
*/
|
|
408
|
-
totalCount: number;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* A request to list node types.
|
|
412
|
-
*/
|
|
413
|
-
export type ListNodeTypesRequest = {
|
|
414
|
-
/**
|
|
415
|
-
* Region to target. If none is passed will use default region from the config.
|
|
416
|
-
*/
|
|
417
|
-
region?: ScwRegion;
|
|
418
|
-
/**
|
|
419
|
-
* The page number.
|
|
420
|
-
*/
|
|
421
|
-
page?: number;
|
|
422
|
-
/**
|
|
423
|
-
* The page size.
|
|
424
|
-
*/
|
|
425
|
-
pageSize?: number;
|
|
426
|
-
/**
|
|
427
|
-
* The order by field. Available fields are `name_asc`, `name_desc`, `vcpus_asc`, `vcpus_desc`, `memory_gigabytes_asc`, `memory_gigabytes_desc`, `vram_bytes_asc`, `vram_bytes_desc`, `gpus_asc`, `gpus_desc`.
|
|
428
|
-
*/
|
|
429
|
-
orderBy?: ListNodeTypesRequestOrderBy;
|
|
430
|
-
/**
|
|
431
|
-
* Filter based on the target of the nodes. Allows to filter the nodes based on their purpose which can be main or worker node.
|
|
432
|
-
*/
|
|
433
|
-
targets?: NodeTypeTarget[];
|
|
434
|
-
/**
|
|
435
|
-
* Filter based on node type ( `cpu`/`gpu`/`all` ).
|
|
436
|
-
*/
|
|
437
|
-
resourceType?: ListNodeTypesRequestResourceType;
|
|
438
|
-
};
|
|
439
|
-
/**
|
|
440
|
-
* A response to list node types.
|
|
441
|
-
*/
|
|
442
|
-
export interface ListNodeTypesResponse {
|
|
443
|
-
/**
|
|
444
|
-
* The list of node types.
|
|
445
|
-
*/
|
|
446
|
-
nodeTypes: NodeType[];
|
|
447
|
-
/**
|
|
448
|
-
* The total count of node types.
|
|
449
|
-
*/
|
|
450
|
-
totalCount: number;
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* A request to list notebook versions.
|
|
454
|
-
*/
|
|
455
|
-
export type ListNotebookVersionsRequest = {
|
|
456
|
-
/**
|
|
457
|
-
* Region to target. If none is passed will use default region from the config.
|
|
458
|
-
*/
|
|
459
|
-
region?: ScwRegion;
|
|
460
|
-
/**
|
|
461
|
-
* The page number.
|
|
462
|
-
*/
|
|
463
|
-
page?: number;
|
|
464
|
-
/**
|
|
465
|
-
* The page size.
|
|
466
|
-
*/
|
|
467
|
-
pageSize?: number;
|
|
468
|
-
/**
|
|
469
|
-
* The order by field. Available options are `name_asc` and `name_desc`.
|
|
470
|
-
*/
|
|
471
|
-
orderBy?: ListNotebookVersionsRequestOrderBy;
|
|
472
|
-
};
|
|
473
|
-
/**
|
|
474
|
-
* A response to list notebook versions.
|
|
475
|
-
*/
|
|
476
|
-
export interface ListNotebookVersionsResponse {
|
|
477
|
-
/**
|
|
478
|
-
* The list of notebook versions.
|
|
479
|
-
*/
|
|
480
|
-
notebooks: Notebook[];
|
|
481
|
-
/**
|
|
482
|
-
* The total count of notebook versions.
|
|
483
|
-
*/
|
|
484
|
-
totalCount: number;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* A request to update a cluster.
|
|
488
|
-
*/
|
|
489
|
-
export type UpdateDatalabRequest = {
|
|
490
|
-
/**
|
|
491
|
-
* Region to target. If none is passed will use default region from the config.
|
|
492
|
-
*/
|
|
493
|
-
region?: ScwRegion;
|
|
494
|
-
/**
|
|
495
|
-
* The unique identifier of the cluster.
|
|
496
|
-
*/
|
|
497
|
-
datalabId: string;
|
|
498
|
-
/**
|
|
499
|
-
* The updated name of the cluster.
|
|
500
|
-
*/
|
|
501
|
-
name?: string;
|
|
502
|
-
/**
|
|
503
|
-
* The updated description of the cluster.
|
|
504
|
-
*/
|
|
505
|
-
description?: string;
|
|
506
|
-
/**
|
|
507
|
-
* The updated tags of the cluster.
|
|
508
|
-
*/
|
|
509
|
-
tags?: string[];
|
|
510
|
-
/**
|
|
511
|
-
* The updated node count of the cluster. Scale up or down the number of worker nodes.
|
|
512
|
-
*/
|
|
513
|
-
nodeCount?: number;
|
|
514
|
-
};
|
|
File without changes
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export declare const CreateDatalabRequest: {
|
|
2
|
-
name: {
|
|
3
|
-
maxLength: number;
|
|
4
|
-
minLength: number;
|
|
5
|
-
pattern: RegExp;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare const CreateDatalabRequestSparkWorker: {
|
|
9
|
-
nodeCount: {
|
|
10
|
-
greaterThanOrEqual: number;
|
|
11
|
-
lessThanOrEqual: number;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const ListClusterVersionsRequest: {
|
|
15
|
-
page: {
|
|
16
|
-
greaterThanOrEqual: number;
|
|
17
|
-
};
|
|
18
|
-
pageSize: {
|
|
19
|
-
greaterThanOrEqual: number;
|
|
20
|
-
lessThanOrEqual: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare const ListDatalabsRequest: {
|
|
24
|
-
name: {
|
|
25
|
-
maxLength: number;
|
|
26
|
-
minLength: number;
|
|
27
|
-
pattern: RegExp;
|
|
28
|
-
};
|
|
29
|
-
page: {
|
|
30
|
-
greaterThanOrEqual: number;
|
|
31
|
-
};
|
|
32
|
-
pageSize: {
|
|
33
|
-
greaterThanOrEqual: number;
|
|
34
|
-
lessThanOrEqual: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export declare const ListNodeTypesRequest: {
|
|
38
|
-
page: {
|
|
39
|
-
greaterThanOrEqual: number;
|
|
40
|
-
};
|
|
41
|
-
pageSize: {
|
|
42
|
-
greaterThanOrEqual: number;
|
|
43
|
-
lessThanOrEqual: number;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export declare const ListNotebookVersionsRequest: {
|
|
47
|
-
page: {
|
|
48
|
-
greaterThanOrEqual: number;
|
|
49
|
-
};
|
|
50
|
-
pageSize: {
|
|
51
|
-
greaterThanOrEqual: number;
|
|
52
|
-
lessThanOrEqual: number;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export declare const UpdateDatalabRequest: {
|
|
56
|
-
nodeCount: {
|
|
57
|
-
greaterThanOrEqual: number;
|
|
58
|
-
lessThanOrEqual: number;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region src/v1beta1/validation-rules.gen.ts
|
|
3
|
-
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
-
CreateDatalabRequest: () => CreateDatalabRequest,
|
|
5
|
-
CreateDatalabRequestSparkWorker: () => CreateDatalabRequestSparkWorker,
|
|
6
|
-
ListClusterVersionsRequest: () => ListClusterVersionsRequest,
|
|
7
|
-
ListDatalabsRequest: () => ListDatalabsRequest,
|
|
8
|
-
ListNodeTypesRequest: () => ListNodeTypesRequest,
|
|
9
|
-
ListNotebookVersionsRequest: () => ListNotebookVersionsRequest,
|
|
10
|
-
UpdateDatalabRequest: () => UpdateDatalabRequest
|
|
11
|
-
});
|
|
12
|
-
const CreateDatalabRequest = { name: {
|
|
13
|
-
maxLength: 100,
|
|
14
|
-
minLength: 3,
|
|
15
|
-
pattern: /^[A-Za-z0-9-_. ]+$/
|
|
16
|
-
} };
|
|
17
|
-
const CreateDatalabRequestSparkWorker = { nodeCount: {
|
|
18
|
-
greaterThanOrEqual: 1,
|
|
19
|
-
lessThanOrEqual: 150
|
|
20
|
-
} };
|
|
21
|
-
const ListClusterVersionsRequest = {
|
|
22
|
-
page: { greaterThanOrEqual: 1 },
|
|
23
|
-
pageSize: {
|
|
24
|
-
greaterThanOrEqual: 0,
|
|
25
|
-
lessThanOrEqual: 100
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const ListDatalabsRequest = {
|
|
29
|
-
name: {
|
|
30
|
-
maxLength: 100,
|
|
31
|
-
minLength: 3,
|
|
32
|
-
pattern: /^[A-Za-z0-9-_. ]+$/
|
|
33
|
-
},
|
|
34
|
-
page: { greaterThanOrEqual: 1 },
|
|
35
|
-
pageSize: {
|
|
36
|
-
greaterThanOrEqual: 1,
|
|
37
|
-
lessThanOrEqual: 100
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const ListNodeTypesRequest = {
|
|
41
|
-
page: { greaterThanOrEqual: 1 },
|
|
42
|
-
pageSize: {
|
|
43
|
-
greaterThanOrEqual: 0,
|
|
44
|
-
lessThanOrEqual: 100
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const ListNotebookVersionsRequest = {
|
|
48
|
-
page: { greaterThanOrEqual: 1 },
|
|
49
|
-
pageSize: {
|
|
50
|
-
greaterThanOrEqual: 1,
|
|
51
|
-
lessThanOrEqual: 100
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
const UpdateDatalabRequest = { nodeCount: {
|
|
55
|
-
greaterThanOrEqual: 0,
|
|
56
|
-
lessThanOrEqual: 150
|
|
57
|
-
} };
|
|
58
|
-
//#endregion
|
|
59
|
-
export { CreateDatalabRequest, CreateDatalabRequestSparkWorker, ListClusterVersionsRequest, ListDatalabsRequest, ListNodeTypesRequest, ListNotebookVersionsRequest, UpdateDatalabRequest, validation_rules_gen_exports };
|