@scaleway/sdk-datalab 1.1.0 → 1.1.1
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.
|
@@ -61,7 +61,7 @@ export declare class API extends ParentAPI {
|
|
|
61
61
|
deleteDatalab: (request: Readonly<DeleteDatalabRequest>) => Promise<Datalab>;
|
|
62
62
|
protected pageOfListNodeTypes: (request?: Readonly<ListNodeTypesRequest>) => Promise<ListNodeTypesResponse>;
|
|
63
63
|
/**
|
|
64
|
-
* List the available compute node types
|
|
64
|
+
* List the available compute node types for creating a Data Lab.
|
|
65
65
|
*
|
|
66
66
|
* @param request - The request {@link ListNodeTypesRequest}
|
|
67
67
|
* @returns A Promise of ListNodeTypesResponse
|
|
@@ -72,7 +72,7 @@ export declare class API extends ParentAPI {
|
|
|
72
72
|
};
|
|
73
73
|
protected pageOfListNotebookVersions: (request?: Readonly<ListNotebookVersionsRequest>) => Promise<ListNotebookVersionsResponse>;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Lists available notebook versions.
|
|
76
76
|
*
|
|
77
77
|
* @param request - The request {@link ListNotebookVersionsRequest}
|
|
78
78
|
* @returns A Promise of ListNotebookVersionsResponse
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -10,7 +10,9 @@ class API extends API$1 {
|
|
|
10
10
|
* type ∈ {'zone','region','global','unspecified'}
|
|
11
11
|
*/
|
|
12
12
|
static LOCALITY = toApiLocality({
|
|
13
|
-
regions: [
|
|
13
|
+
regions: [
|
|
14
|
+
"fr-par"
|
|
15
|
+
]
|
|
14
16
|
});
|
|
15
17
|
/**
|
|
16
18
|
* Create a new Data Lab. In this call, one can personalize the node counts, add a notebook, choose the private network, define the persistent volume storage capacity.
|
|
@@ -50,9 +52,7 @@ class API extends API$1 {
|
|
|
50
52
|
* @returns A Promise of Datalab
|
|
51
53
|
*/
|
|
52
54
|
waitForDatalab = (request, options) => waitForResource(
|
|
53
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
54
|
-
!DATALAB_TRANSIENT_STATUSES.includes(res.status)
|
|
55
|
-
)),
|
|
55
|
+
options?.stop ?? ((res) => Promise.resolve(!DATALAB_TRANSIENT_STATUSES.includes(res.status))),
|
|
56
56
|
this.getDatalab,
|
|
57
57
|
request,
|
|
58
58
|
options
|
|
@@ -66,10 +66,7 @@ class API extends API$1 {
|
|
|
66
66
|
["order_by", request.orderBy],
|
|
67
67
|
["organization_id", request.organizationId],
|
|
68
68
|
["page", request.page],
|
|
69
|
-
[
|
|
70
|
-
"page_size",
|
|
71
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
72
|
-
],
|
|
69
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
73
70
|
["project_id", request.projectId],
|
|
74
71
|
["tags", request.tags]
|
|
75
72
|
)
|
|
@@ -120,10 +117,7 @@ class API extends API$1 {
|
|
|
120
117
|
urlParams: urlParams(
|
|
121
118
|
["order_by", request.orderBy],
|
|
122
119
|
["page", request.page],
|
|
123
|
-
[
|
|
124
|
-
"page_size",
|
|
125
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
126
|
-
],
|
|
120
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
127
121
|
["resource_type", request.resourceType],
|
|
128
122
|
["targets", request.targets]
|
|
129
123
|
)
|
|
@@ -131,7 +125,7 @@ class API extends API$1 {
|
|
|
131
125
|
unmarshalListNodeTypesResponse
|
|
132
126
|
);
|
|
133
127
|
/**
|
|
134
|
-
* List the available compute node types
|
|
128
|
+
* List the available compute node types for creating a Data Lab.
|
|
135
129
|
*
|
|
136
130
|
* @param request - The request {@link ListNodeTypesRequest}
|
|
137
131
|
* @returns A Promise of ListNodeTypesResponse
|
|
@@ -144,16 +138,13 @@ class API extends API$1 {
|
|
|
144
138
|
urlParams: urlParams(
|
|
145
139
|
["order_by", request.orderBy],
|
|
146
140
|
["page", request.page],
|
|
147
|
-
[
|
|
148
|
-
"page_size",
|
|
149
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
150
|
-
]
|
|
141
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
151
142
|
)
|
|
152
143
|
},
|
|
153
144
|
unmarshalListNotebookVersionsResponse
|
|
154
145
|
);
|
|
155
146
|
/**
|
|
156
|
-
*
|
|
147
|
+
* Lists available notebook versions.
|
|
157
148
|
*
|
|
158
149
|
* @param request - The request {@link ListNotebookVersionsRequest}
|
|
159
150
|
* @returns A Promise of ListNotebookVersionsResponse
|
|
@@ -166,10 +157,7 @@ class API extends API$1 {
|
|
|
166
157
|
urlParams: urlParams(
|
|
167
158
|
["order_by", request.orderBy],
|
|
168
159
|
["page", request.page],
|
|
169
|
-
[
|
|
170
|
-
"page_size",
|
|
171
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
172
|
-
]
|
|
160
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
173
161
|
)
|
|
174
162
|
},
|
|
175
163
|
unmarshalListClusterVersionsResponse
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { API } from './api.gen.js';
|
|
1
|
+
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
4
|
export type { Cluster, ClusterVersion, CreateDatalabRequest, CreateDatalabRequestSparkMain, CreateDatalabRequestSparkWorker, Datalab, DatalabSparkMain, DatalabSparkWorker, DatalabStatus, DeleteDatalabRequest, GetDatalabRequest, ListClusterVersionsRequest, ListClusterVersionsRequestOrderBy, ListClusterVersionsResponse, ListDatalabsRequest, ListDatalabsRequestOrderBy, ListDatalabsResponse, ListNodeTypesRequest, ListNodeTypesRequestOrderBy, ListNodeTypesRequestResourceType, ListNodeTypesResponse, ListNotebookVersionsRequest, ListNotebookVersionsRequestOrderBy, ListNotebookVersionsResponse, NodeType, NodeTypeStock, NodeTypeTarget, Notebook, NotebookVersion, UpdateDatalabRequest, Volume, VolumeType, } from './types.gen.js';
|
|
@@ -114,7 +114,7 @@ export interface Datalab {
|
|
|
114
114
|
*/
|
|
115
115
|
id: string;
|
|
116
116
|
/**
|
|
117
|
-
* The identifier of the project where the Data Lab has been created.
|
|
117
|
+
* The unique identifier of the project where the Data Lab has been created.
|
|
118
118
|
*/
|
|
119
119
|
projectId: string;
|
|
120
120
|
/**
|
|
@@ -130,15 +130,15 @@ export interface Datalab {
|
|
|
130
130
|
*/
|
|
131
131
|
tags: string[];
|
|
132
132
|
/**
|
|
133
|
-
* The Spark Main node specification of Data lab. It holds the parameters `node_type
|
|
133
|
+
* The Spark Main node specification of Data lab. It holds the parameters `node_type`, `spark_ui_url` (available to reach Spark UI), `spark_master_url` (used to reach the cluster within a VPC), `root_volume` (size of the volume assigned to the cluster).
|
|
134
134
|
*/
|
|
135
135
|
main?: DatalabSparkMain;
|
|
136
136
|
/**
|
|
137
|
-
* The worker
|
|
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
138
|
*/
|
|
139
139
|
worker?: DatalabSparkWorker;
|
|
140
140
|
/**
|
|
141
|
-
* The status of the Data Lab. For a working Data Lab
|
|
141
|
+
* The status of the Data Lab. For a working Data Lab the status is marked as `ready`.
|
|
142
142
|
*/
|
|
143
143
|
status: DatalabStatus;
|
|
144
144
|
/**
|
|
@@ -158,7 +158,7 @@ export interface Datalab {
|
|
|
158
158
|
*/
|
|
159
159
|
hasNotebook: boolean;
|
|
160
160
|
/**
|
|
161
|
-
* The URL of
|
|
161
|
+
* The URL of the notebook if available.
|
|
162
162
|
*/
|
|
163
163
|
notebookUrl?: string;
|
|
164
164
|
/**
|
|
@@ -166,15 +166,15 @@ export interface Datalab {
|
|
|
166
166
|
*/
|
|
167
167
|
sparkVersion: string;
|
|
168
168
|
/**
|
|
169
|
-
* The total storage selected
|
|
169
|
+
* The total persistent volume storage selected to run Spark.
|
|
170
170
|
*/
|
|
171
171
|
totalStorage?: Volume;
|
|
172
172
|
/**
|
|
173
|
-
* The private
|
|
173
|
+
* The unique identifier of the private network to which the Data Lab is attached to.
|
|
174
174
|
*/
|
|
175
175
|
privateNetworkId: string;
|
|
176
176
|
/**
|
|
177
|
-
* The URL
|
|
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
178
|
*/
|
|
179
179
|
notebookMasterUrl?: string;
|
|
180
180
|
}
|
|
@@ -273,15 +273,15 @@ export type CreateDatalabRequest = {
|
|
|
273
273
|
*/
|
|
274
274
|
tags?: string[];
|
|
275
275
|
/**
|
|
276
|
-
* The
|
|
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
277
|
*/
|
|
278
278
|
main?: CreateDatalabRequestSparkMain;
|
|
279
279
|
/**
|
|
280
|
-
* The
|
|
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
281
|
*/
|
|
282
282
|
worker?: CreateDatalabRequestSparkWorker;
|
|
283
283
|
/**
|
|
284
|
-
*
|
|
284
|
+
* Select this option to include a notebook as part of the Data Lab.
|
|
285
285
|
*/
|
|
286
286
|
hasNotebook: boolean;
|
|
287
287
|
/**
|
|
@@ -289,11 +289,11 @@ export type CreateDatalabRequest = {
|
|
|
289
289
|
*/
|
|
290
290
|
sparkVersion: string;
|
|
291
291
|
/**
|
|
292
|
-
* The
|
|
292
|
+
* The maximum persistent volume storage that will be available during workload.
|
|
293
293
|
*/
|
|
294
294
|
totalStorage?: Volume;
|
|
295
295
|
/**
|
|
296
|
-
* The
|
|
296
|
+
* The unique identifier of the private network the Data Lab will be attached to.
|
|
297
297
|
*/
|
|
298
298
|
privateNetworkId: string;
|
|
299
299
|
};
|
|
@@ -358,7 +358,7 @@ export interface ListClusterVersionsResponse {
|
|
|
358
358
|
totalCount: number;
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
|
-
* A request to list
|
|
361
|
+
* A request to list Data Labs.
|
|
362
362
|
*/
|
|
363
363
|
export type ListDatalabsRequest = {
|
|
364
364
|
/**
|
|
@@ -403,7 +403,7 @@ export interface ListDatalabsResponse {
|
|
|
403
403
|
*/
|
|
404
404
|
datalabs: Datalab[];
|
|
405
405
|
/**
|
|
406
|
-
* The total count of
|
|
406
|
+
* The total count of Data Labs.
|
|
407
407
|
*/
|
|
408
408
|
totalCount: number;
|
|
409
409
|
}
|
|
@@ -428,7 +428,7 @@ export type ListNodeTypesRequest = {
|
|
|
428
428
|
*/
|
|
429
429
|
orderBy?: ListNodeTypesRequestOrderBy;
|
|
430
430
|
/**
|
|
431
|
-
* Filter on the
|
|
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
432
|
*/
|
|
433
433
|
targets?: NodeTypeTarget[];
|
|
434
434
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-datalab",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Scaleway SDK datalab",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@scaleway/random-name": "5.1.1",
|
|
30
|
-
"@scaleway/sdk-std": "2.1.
|
|
30
|
+
"@scaleway/sdk-std": "2.1.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@scaleway/sdk-client": "^2.1.0"
|