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