@scaleway/sdk-datalab 1.1.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/README.md +95 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +4 -0
- package/dist/v1beta1/api.gen.d.ts +95 -0
- package/dist/v1beta1/api.gen.js +187 -0
- package/dist/v1beta1/content.gen.d.ts +3 -0
- package/dist/v1beta1/content.gen.js +8 -0
- package/dist/v1beta1/index.gen.d.ts +5 -0
- package/dist/v1beta1/index.gen.js +16 -0
- package/dist/v1beta1/marshalling.gen.d.ts +9 -0
- package/dist/v1beta1/marshalling.gen.js +220 -0
- package/dist/v1beta1/types.gen.d.ts +514 -0
- package/dist/v1beta1/validation-rules.gen.d.ts +60 -0
- package/dist/v1beta1/validation-rules.gen.js +69 -0
- package/package.json +45 -0
|
@@ -0,0 +1,514 @@
|
|
|
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 Data Lab resource.
|
|
110
|
+
*/
|
|
111
|
+
export interface Datalab {
|
|
112
|
+
/**
|
|
113
|
+
* The unique identifier of the Data Lab.
|
|
114
|
+
*/
|
|
115
|
+
id: string;
|
|
116
|
+
/**
|
|
117
|
+
* The identifier of the project where the Data Lab has been created.
|
|
118
|
+
*/
|
|
119
|
+
projectId: string;
|
|
120
|
+
/**
|
|
121
|
+
* The name of the Data Lab.
|
|
122
|
+
*/
|
|
123
|
+
name: string;
|
|
124
|
+
/**
|
|
125
|
+
* The description of the Data Lab.
|
|
126
|
+
*/
|
|
127
|
+
description: string;
|
|
128
|
+
/**
|
|
129
|
+
* The tags of the Data Lab.
|
|
130
|
+
*/
|
|
131
|
+
tags: string[];
|
|
132
|
+
/**
|
|
133
|
+
* The Spark Main node specification of Data lab. It holds the parameters `node_type` the compute node type of the main node, `spark_ui_url` where the Spark UI is available, `spark_master_url` with which one can connect to the cluster from within one's VPC, `root_volume` the size of the volume assigned to the main node.
|
|
134
|
+
*/
|
|
135
|
+
main?: DatalabSparkMain;
|
|
136
|
+
/**
|
|
137
|
+
* The worker node specification of the Data Lab. It presents the parameters `node_type` the compute node type of each worker node, `node_count` the number of worker nodes currently in the cluster, `root_volume` the root volume size of each executor.
|
|
138
|
+
*/
|
|
139
|
+
worker?: DatalabSparkWorker;
|
|
140
|
+
/**
|
|
141
|
+
* The status of the Data Lab. For a working Data Lab this should be `ready`.
|
|
142
|
+
*/
|
|
143
|
+
status: DatalabStatus;
|
|
144
|
+
/**
|
|
145
|
+
* The creation timestamp of the Data Lab.
|
|
146
|
+
*/
|
|
147
|
+
createdAt?: Date;
|
|
148
|
+
/**
|
|
149
|
+
* The last update date of the Data Lab.
|
|
150
|
+
*/
|
|
151
|
+
updatedAt?: Date;
|
|
152
|
+
/**
|
|
153
|
+
* The region of the Data Lab.
|
|
154
|
+
*/
|
|
155
|
+
region: ScwRegion;
|
|
156
|
+
/**
|
|
157
|
+
* Whether a JupyterLab notebook is associated with the Data Lab or not.
|
|
158
|
+
*/
|
|
159
|
+
hasNotebook: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* The URL of said notebook if exists.
|
|
162
|
+
*/
|
|
163
|
+
notebookUrl?: string;
|
|
164
|
+
/**
|
|
165
|
+
* The version of Spark running inside the Data Lab.
|
|
166
|
+
*/
|
|
167
|
+
sparkVersion: string;
|
|
168
|
+
/**
|
|
169
|
+
* The total storage selected by the user for Spark.
|
|
170
|
+
*/
|
|
171
|
+
totalStorage?: Volume;
|
|
172
|
+
/**
|
|
173
|
+
* The private newtwork to which the data lab is connected. This is important for accessing the Spark Master URL.
|
|
174
|
+
*/
|
|
175
|
+
privateNetworkId: string;
|
|
176
|
+
/**
|
|
177
|
+
* The URL to the Spark Master endpoint from, and only from the perspective of the JupyterLab Notebook. This is NOT the URL to use for accessing the clutser from a private 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 Data Lab.
|
|
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 Data Lab will be created.
|
|
261
|
+
*/
|
|
262
|
+
projectId?: string;
|
|
263
|
+
/**
|
|
264
|
+
* The name of the Data Lab.
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
/**
|
|
268
|
+
* The description of the Data Lab.
|
|
269
|
+
*/
|
|
270
|
+
description: string;
|
|
271
|
+
/**
|
|
272
|
+
* The tags of the Data Lab.
|
|
273
|
+
*/
|
|
274
|
+
tags?: string[];
|
|
275
|
+
/**
|
|
276
|
+
* The Spark main node configuration of the Data Lab, has one parameter `node_type` which specifies the compute node type of the main node. See ListNodeTypes for available options.
|
|
277
|
+
*/
|
|
278
|
+
main?: CreateDatalabRequestSparkMain;
|
|
279
|
+
/**
|
|
280
|
+
* The Spark worker node configuration of the Data Lab, has two parameters `node_type` for selecting the type of the worker node, and `node_count` for specifying the ammount of nodes.
|
|
281
|
+
*/
|
|
282
|
+
worker?: CreateDatalabRequestSparkWorker;
|
|
283
|
+
/**
|
|
284
|
+
* Whether a JupyterLab notebook shall be created with the Data Lab or not.
|
|
285
|
+
*/
|
|
286
|
+
hasNotebook: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* The version of Spark running inside the Data Lab, available options can be viewed at ListClusterVersions.
|
|
289
|
+
*/
|
|
290
|
+
sparkVersion: string;
|
|
291
|
+
/**
|
|
292
|
+
* The total storage selected by the user for Spark workers. This means the workers will not use more then this amount for their workload.
|
|
293
|
+
*/
|
|
294
|
+
totalStorage?: Volume;
|
|
295
|
+
/**
|
|
296
|
+
* The private newtwork to which the Data Lab is connected. Important for accessing the Spark Master URL from a private cluster.
|
|
297
|
+
*/
|
|
298
|
+
privateNetworkId: string;
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* A request to delete a Data Lab.
|
|
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 Data Lab.
|
|
310
|
+
*/
|
|
311
|
+
datalabId: string;
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* A request to get information about a Data Lab.
|
|
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 Data Lab.
|
|
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 Datalabs.
|
|
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 Data Labs you want to list.
|
|
370
|
+
*/
|
|
371
|
+
organizationId?: string;
|
|
372
|
+
/**
|
|
373
|
+
* The unique identifier of the project whose Data Labs you want to list.
|
|
374
|
+
*/
|
|
375
|
+
projectId?: string;
|
|
376
|
+
/**
|
|
377
|
+
* The name of the Data Lab you want to list.
|
|
378
|
+
*/
|
|
379
|
+
name?: string;
|
|
380
|
+
/**
|
|
381
|
+
* The tags associated with the Data Lab 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 Data Labs.
|
|
399
|
+
*/
|
|
400
|
+
export interface ListDatalabsResponse {
|
|
401
|
+
/**
|
|
402
|
+
* The list of Data Labs. This is a list composed of messages of type `DataLab`.
|
|
403
|
+
*/
|
|
404
|
+
datalabs: Datalab[];
|
|
405
|
+
/**
|
|
406
|
+
* The total count of Datalabs.
|
|
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 on the wanted targets, whether it's for main node or worker.
|
|
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 Data Lab.
|
|
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 Data Lab.
|
|
496
|
+
*/
|
|
497
|
+
datalabId: string;
|
|
498
|
+
/**
|
|
499
|
+
* The updated name of the Data Lab.
|
|
500
|
+
*/
|
|
501
|
+
name?: string;
|
|
502
|
+
/**
|
|
503
|
+
* The updated description of the Data Lab.
|
|
504
|
+
*/
|
|
505
|
+
description?: string;
|
|
506
|
+
/**
|
|
507
|
+
* The updated tags of the Data Lab.
|
|
508
|
+
*/
|
|
509
|
+
tags?: string[];
|
|
510
|
+
/**
|
|
511
|
+
* The updated node count of the Data Lab. Scale up or down the number of worker nodes.
|
|
512
|
+
*/
|
|
513
|
+
nodeCount?: number;
|
|
514
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const CreateDatalabRequest = {
|
|
2
|
+
name: {
|
|
3
|
+
maxLength: 100,
|
|
4
|
+
minLength: 3,
|
|
5
|
+
pattern: /^[A-Za-z0-9-_. ]+$/
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
const CreateDatalabRequestSparkWorker = {
|
|
9
|
+
nodeCount: {
|
|
10
|
+
greaterThanOrEqual: 1,
|
|
11
|
+
lessThanOrEqual: 150
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const ListClusterVersionsRequest = {
|
|
15
|
+
page: {
|
|
16
|
+
greaterThanOrEqual: 1
|
|
17
|
+
},
|
|
18
|
+
pageSize: {
|
|
19
|
+
greaterThanOrEqual: 0,
|
|
20
|
+
lessThanOrEqual: 100
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const ListDatalabsRequest = {
|
|
24
|
+
name: {
|
|
25
|
+
maxLength: 100,
|
|
26
|
+
minLength: 3,
|
|
27
|
+
pattern: /^[A-Za-z0-9-_. ]+$/
|
|
28
|
+
},
|
|
29
|
+
page: {
|
|
30
|
+
greaterThanOrEqual: 1
|
|
31
|
+
},
|
|
32
|
+
pageSize: {
|
|
33
|
+
greaterThanOrEqual: 1,
|
|
34
|
+
lessThanOrEqual: 100
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const ListNodeTypesRequest = {
|
|
38
|
+
page: {
|
|
39
|
+
greaterThanOrEqual: 1
|
|
40
|
+
},
|
|
41
|
+
pageSize: {
|
|
42
|
+
greaterThanOrEqual: 0,
|
|
43
|
+
lessThanOrEqual: 100
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const ListNotebookVersionsRequest = {
|
|
47
|
+
page: {
|
|
48
|
+
greaterThanOrEqual: 1
|
|
49
|
+
},
|
|
50
|
+
pageSize: {
|
|
51
|
+
greaterThanOrEqual: 1,
|
|
52
|
+
lessThanOrEqual: 100
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const UpdateDatalabRequest = {
|
|
56
|
+
nodeCount: {
|
|
57
|
+
greaterThanOrEqual: 0,
|
|
58
|
+
lessThanOrEqual: 150
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
CreateDatalabRequest,
|
|
63
|
+
CreateDatalabRequestSparkWorker,
|
|
64
|
+
ListClusterVersionsRequest,
|
|
65
|
+
ListDatalabsRequest,
|
|
66
|
+
ListNodeTypesRequest,
|
|
67
|
+
ListNotebookVersionsRequest,
|
|
68
|
+
UpdateDatalabRequest
|
|
69
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scaleway/sdk-datalab",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Scaleway SDK datalab",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"README.md"
|
|
9
|
+
],
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.gen.d.ts",
|
|
14
|
+
"default": "./dist/index.gen.js"
|
|
15
|
+
},
|
|
16
|
+
"./*": {
|
|
17
|
+
"types": "./dist/*/index.gen.d.ts",
|
|
18
|
+
"default": "./dist/*/index.gen.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"directory": "packages_generated/datalab"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20.18.3"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@scaleway/random-name": "5.1.1",
|
|
30
|
+
"@scaleway/sdk-std": "2.1.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@scaleway/sdk-client": "^2.1.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@scaleway/sdk-client": "^2.1.0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"package:check": "pnpm publint",
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
41
|
+
"type:generate": "tsc --declaration -p tsconfig.build.json",
|
|
42
|
+
"build": "vite build --config vite.config.ts && pnpm run type:generate",
|
|
43
|
+
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
|
|
44
|
+
}
|
|
45
|
+
}
|