@alicloud/pai-dlc20201203 1.11.4 → 1.11.5
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/dist/client.d.ts +8 -8
- package/dist/client.js +8 -8
- package/dist/models/CreateJobRequest.d.ts +46 -32
- package/dist/models/CreateJobRequest.js +2 -0
- package/dist/models/CreateJobRequest.js.map +1 -1
- package/dist/models/CreateJobResponseBody.d.ts +1 -1
- package/dist/models/UpdateJobRequest.d.ts +6 -6
- package/dist/models/UpdateJobResponseBody.d.ts +2 -2
- package/package.json +1 -1
- package/src/client.ts +8 -8
- package/src/models/CreateJobRequest.ts +48 -32
- package/src/models/CreateJobResponseBody.ts +1 -1
- package/src/models/UpdateJobRequest.ts +6 -6
- package/src/models/UpdateJobResponseBody.ts +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ export default class Client extends OpenApi {
|
|
|
9
9
|
[key: string]: string;
|
|
10
10
|
}, endpoint: string): string;
|
|
11
11
|
/**
|
|
12
|
-
* Creates a job and runs it in a cluster. You can specify
|
|
12
|
+
* Creates a job and runs it in a cluster. You can specify the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Before
|
|
16
|
-
* >Notice: The total length of CreateJob
|
|
15
|
+
* Before you call this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
|
|
16
|
+
* >Notice: The total length of CreateJob request parameters, including system-generated parameters, cannot exceed 65,536 bytes.
|
|
17
17
|
*
|
|
18
18
|
* @param request - CreateJobRequest
|
|
19
19
|
* @param headers - map
|
|
@@ -24,11 +24,11 @@ export default class Client extends OpenApi {
|
|
|
24
24
|
[key: string]: string;
|
|
25
25
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateJobResponse>;
|
|
26
26
|
/**
|
|
27
|
-
* Creates a job and runs it in a cluster. You can specify
|
|
27
|
+
* Creates a job and runs it in a cluster. You can specify the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Before
|
|
31
|
-
* >Notice: The total length of CreateJob
|
|
30
|
+
* Before you call this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
|
|
31
|
+
* >Notice: The total length of CreateJob request parameters, including system-generated parameters, cannot exceed 65,536 bytes.
|
|
32
32
|
*
|
|
33
33
|
* @param request - CreateJobRequest
|
|
34
34
|
* @returns CreateJobResponse
|
|
@@ -841,7 +841,7 @@ export default class Client extends OpenApi {
|
|
|
841
841
|
*/
|
|
842
842
|
untagResources(request: $_model.UntagResourcesRequest): Promise<$_model.UntagResourcesResponse>;
|
|
843
843
|
/**
|
|
844
|
-
* Updates the configuration of a
|
|
844
|
+
* Updates the configuration of a node, such as modifying the priority of a queued node.
|
|
845
845
|
*
|
|
846
846
|
* @param request - UpdateJobRequest
|
|
847
847
|
* @param headers - map
|
|
@@ -852,7 +852,7 @@ export default class Client extends OpenApi {
|
|
|
852
852
|
[key: string]: string;
|
|
853
853
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateJobResponse>;
|
|
854
854
|
/**
|
|
855
|
-
* Updates the configuration of a
|
|
855
|
+
* Updates the configuration of a node, such as modifying the priority of a queued node.
|
|
856
856
|
*
|
|
857
857
|
* @param request - UpdateJobRequest
|
|
858
858
|
* @returns UpdateJobResponse
|
package/dist/client.js
CHANGED
|
@@ -107,11 +107,11 @@ class Client extends openapi_core_1.default {
|
|
|
107
107
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Creates a job and runs it in a cluster. You can specify
|
|
110
|
+
* Creates a job and runs it in a cluster. You can specify the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
|
|
111
111
|
*
|
|
112
112
|
* @remarks
|
|
113
|
-
* Before
|
|
114
|
-
* >Notice: The total length of CreateJob
|
|
113
|
+
* Before you call this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
|
|
114
|
+
* >Notice: The total length of CreateJob request parameters, including system-generated parameters, cannot exceed 65,536 bytes.
|
|
115
115
|
*
|
|
116
116
|
* @param request - CreateJobRequest
|
|
117
117
|
* @param headers - map
|
|
@@ -217,11 +217,11 @@ class Client extends openapi_core_1.default {
|
|
|
217
217
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateJobResponse({}));
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
* Creates a job and runs it in a cluster. You can specify
|
|
220
|
+
* Creates a job and runs it in a cluster. You can specify the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
|
|
221
221
|
*
|
|
222
222
|
* @remarks
|
|
223
|
-
* Before
|
|
224
|
-
* >Notice: The total length of CreateJob
|
|
223
|
+
* Before you call this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
|
|
224
|
+
* >Notice: The total length of CreateJob request parameters, including system-generated parameters, cannot exceed 65,536 bytes.
|
|
225
225
|
*
|
|
226
226
|
* @param request - CreateJobRequest
|
|
227
227
|
* @returns CreateJobResponse
|
|
@@ -2430,7 +2430,7 @@ class Client extends openapi_core_1.default {
|
|
|
2430
2430
|
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
2431
2431
|
}
|
|
2432
2432
|
/**
|
|
2433
|
-
* Updates the configuration of a
|
|
2433
|
+
* Updates the configuration of a node, such as modifying the priority of a queued node.
|
|
2434
2434
|
*
|
|
2435
2435
|
* @param request - UpdateJobRequest
|
|
2436
2436
|
* @param headers - map
|
|
@@ -2473,7 +2473,7 @@ class Client extends openapi_core_1.default {
|
|
|
2473
2473
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateJobResponse({}));
|
|
2474
2474
|
}
|
|
2475
2475
|
/**
|
|
2476
|
-
* Updates the configuration of a
|
|
2476
|
+
* Updates the configuration of a node, such as modifying the priority of a queued node.
|
|
2477
2477
|
*
|
|
2478
2478
|
* @param request - UpdateJobRequest
|
|
2479
2479
|
* @returns UpdateJobResponse
|
|
@@ -6,7 +6,7 @@ import { JobSettings } from "./JobSettings";
|
|
|
6
6
|
export declare class CreateJobRequestCodeSource extends $dara.Model {
|
|
7
7
|
/**
|
|
8
8
|
* @remarks
|
|
9
|
-
* The branch of the code repository referenced when
|
|
9
|
+
* The branch of the code repository referenced when the job runs. This is an optional parameter. By default, the branch configured in the code source is used.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* master
|
|
@@ -22,7 +22,7 @@ export declare class CreateJobRequestCodeSource extends $dara.Model {
|
|
|
22
22
|
codeSourceId?: string;
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The commit ID of the code to
|
|
25
|
+
* The commit ID of the code to be downloaded for this job. This is an optional parameter. By default, the commit ID configured in the code source is used.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* 44da109b5******
|
|
@@ -30,7 +30,7 @@ export declare class CreateJobRequestCodeSource extends $dara.Model {
|
|
|
30
30
|
commit?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
*
|
|
33
|
+
* Marks whether the MountPath in CodeSource Settings is a shared cloud storage path. If set to true, the system enables code clone optimization. In multi-node deployment job scenarios, the clone operation is executed on only one node, and other nodes can directly access code through the shared cloud storage path.
|
|
34
34
|
*/
|
|
35
35
|
isSharedMountPath?: boolean;
|
|
36
36
|
/**
|
|
@@ -70,12 +70,12 @@ export declare class CreateJobRequestCustomEnvs extends $dara.Model {
|
|
|
70
70
|
export declare class CreateJobRequestDataSources extends $dara.Model {
|
|
71
71
|
/**
|
|
72
72
|
* @remarks
|
|
73
|
-
* The access point ID. Currently, only
|
|
73
|
+
* The access point ID. Currently, only Cloud Parallel File Storage (CPFS) access points for intelligent computing are supported.
|
|
74
74
|
*/
|
|
75
75
|
accessPointId?: string;
|
|
76
76
|
/**
|
|
77
77
|
* @remarks
|
|
78
|
-
* The
|
|
78
|
+
* The data source ID. <props="china">For information about how to view the data source ID, see [ListDatasets](https://help.aliyun.com/document_detail/457222.html).
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* d-cn9dl*******
|
|
@@ -83,6 +83,15 @@ export declare class CreateJobRequestDataSources extends $dara.Model {
|
|
|
83
83
|
dataSourceId?: string;
|
|
84
84
|
dataSourceVersion?: string;
|
|
85
85
|
enableCache?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The permission when the dataset is mounted. Valid values:
|
|
89
|
+
* - RO: read-only mount
|
|
90
|
+
* - RW: read and write mount
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* RO
|
|
94
|
+
*/
|
|
86
95
|
mountAccess?: string;
|
|
87
96
|
/**
|
|
88
97
|
* @remarks
|
|
@@ -104,6 +113,11 @@ export declare class CreateJobRequestDataSources extends $dara.Model {
|
|
|
104
113
|
* }
|
|
105
114
|
*/
|
|
106
115
|
options?: string;
|
|
116
|
+
/**
|
|
117
|
+
* @example
|
|
118
|
+
* acs:ram::1872xxxxxxxxx:role/account-pai-prod
|
|
119
|
+
*/
|
|
120
|
+
roleArn?: string;
|
|
107
121
|
/**
|
|
108
122
|
* @remarks
|
|
109
123
|
* The role chain, a JSON-formatted string. Example: [{"roleType":"service","roleArn":"acs:ram::cloud-product-resource-account-uid:role/xxxtodlcrole","assumeRoleFor":"cloud-product-resource-account-uid"},{"roleType":"user","roleArn":"acs:ram::cloud-product-service-account-uid:role/roletoassumecustomerrole"},{"roleType":"service","roleArn":"acs:ram::end-user-uid:role/use-bmcpfs-access-ap-role","assumeRoleFor":"end-user-uid"}]
|
|
@@ -131,9 +145,9 @@ export declare class CreateJobRequestDataSources extends $dara.Model {
|
|
|
131
145
|
export declare class CreateJobRequestUserVpc extends $dara.Model {
|
|
132
146
|
/**
|
|
133
147
|
* @remarks
|
|
134
|
-
* The default
|
|
135
|
-
* - eth0: Uses the default network interface
|
|
136
|
-
* - eth1: Uses the user elastic network
|
|
148
|
+
* The default routing. Valid values:
|
|
149
|
+
* - eth0: Uses the default network interface controller (NIC) to access external networks through the public gateway.
|
|
150
|
+
* - eth1: Uses the user elastic network interfaces (ENIs) to access external networks through a private gateway. For the configuration method, see [Configure a DSW instance to access the Internet through a dedicated public gateway](https://help.aliyun.com/document_detail/2525343.html).
|
|
137
151
|
*
|
|
138
152
|
* @example
|
|
139
153
|
* eth0
|
|
@@ -142,13 +156,13 @@ export declare class CreateJobRequestUserVpc extends $dara.Model {
|
|
|
142
156
|
/**
|
|
143
157
|
* @remarks
|
|
144
158
|
* The extended CIDR blocks.
|
|
145
|
-
* - If the vSwitch ID is empty, this parameter is
|
|
146
|
-
* - If the vSwitch ID is specified, this parameter is required.
|
|
159
|
+
* - If the vSwitch ID is empty, this parameter is optional. The system automatically retrieves all CIDR blocks in the VPC.
|
|
160
|
+
* - If the vSwitch ID is specified, this parameter is required. Specify all CIDR blocks in the VPC.
|
|
147
161
|
*/
|
|
148
162
|
extendedCIDRs?: string[];
|
|
149
163
|
/**
|
|
150
164
|
* @remarks
|
|
151
|
-
* The ID of the
|
|
165
|
+
* The ID of the security group.
|
|
152
166
|
*
|
|
153
167
|
* @example
|
|
154
168
|
* sg-abcdef****
|
|
@@ -156,8 +170,8 @@ export declare class CreateJobRequestUserVpc extends $dara.Model {
|
|
|
156
170
|
securityGroupId?: string;
|
|
157
171
|
/**
|
|
158
172
|
* @remarks
|
|
159
|
-
* The ID of the
|
|
160
|
-
* - If
|
|
173
|
+
* The ID of the vSwitch. This parameter is optional.
|
|
174
|
+
* - If this parameter is left empty, the system automatically selects an appropriate vSwitch based on inventory.
|
|
161
175
|
* - You can also specify a vSwitch ID.
|
|
162
176
|
*
|
|
163
177
|
* @example
|
|
@@ -166,7 +180,7 @@ export declare class CreateJobRequestUserVpc extends $dara.Model {
|
|
|
166
180
|
switchId?: string;
|
|
167
181
|
/**
|
|
168
182
|
* @remarks
|
|
169
|
-
* The ID of the
|
|
183
|
+
* The ID of the VPC.
|
|
170
184
|
*
|
|
171
185
|
* @example
|
|
172
186
|
* vpc-abcdef****
|
|
@@ -187,8 +201,8 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
187
201
|
/**
|
|
188
202
|
* @remarks
|
|
189
203
|
* The visibility of the job. Valid values:
|
|
190
|
-
* - PUBLIC:
|
|
191
|
-
* - PRIVATE:
|
|
204
|
+
* - PUBLIC: The job is visible to all members in the workspace.
|
|
205
|
+
* - PRIVATE: The job is visible only to you and administrators in the workspace.
|
|
192
206
|
*
|
|
193
207
|
* @example
|
|
194
208
|
* PRIVATE
|
|
@@ -196,7 +210,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
196
210
|
accessibility?: string;
|
|
197
211
|
/**
|
|
198
212
|
* @remarks
|
|
199
|
-
* The code source used by this job. Before the job nodes start, DLC automatically downloads the code configured in the code source and mounts it to a local directory
|
|
213
|
+
* The code source used by this job. Before the job nodes start, DLC automatically downloads the code configured in the code source and mounts it to a local directory of the container.
|
|
200
214
|
*/
|
|
201
215
|
codeSource?: CreateJobRequestCodeSource;
|
|
202
216
|
/**
|
|
@@ -212,7 +226,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
212
226
|
dataSources?: CreateJobRequestDataSources[];
|
|
213
227
|
/**
|
|
214
228
|
* @remarks
|
|
215
|
-
* This parameter is not
|
|
229
|
+
* This parameter is not supported and can be ignored.
|
|
216
230
|
*
|
|
217
231
|
* @example
|
|
218
232
|
* “”
|
|
@@ -221,7 +235,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
221
235
|
description?: string;
|
|
222
236
|
/**
|
|
223
237
|
* @remarks
|
|
224
|
-
* The name of the job. The naming
|
|
238
|
+
* The name of the job. The naming conventions are as follows:
|
|
225
239
|
* - The name cannot exceed 256 characters in length.
|
|
226
240
|
* - The name can contain digits, letters, underscores (_), periods (.), and hyphens (-).
|
|
227
241
|
*
|
|
@@ -233,19 +247,19 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
233
247
|
displayName?: string;
|
|
234
248
|
/**
|
|
235
249
|
* @remarks
|
|
236
|
-
* This parameter is not
|
|
250
|
+
* This parameter is not supported and can be ignored.
|
|
237
251
|
*/
|
|
238
252
|
elasticSpec?: JobElasticSpec;
|
|
239
253
|
/**
|
|
240
254
|
* @remarks
|
|
241
|
-
* The environment variable
|
|
255
|
+
* The environment variable configuration.
|
|
242
256
|
*/
|
|
243
257
|
envs?: {
|
|
244
258
|
[key: string]: string;
|
|
245
259
|
};
|
|
246
260
|
/**
|
|
247
261
|
* @remarks
|
|
248
|
-
* The maximum running time of the job
|
|
262
|
+
* The maximum running time of the job. Unit: minutes.
|
|
249
263
|
*
|
|
250
264
|
* @example
|
|
251
265
|
* 1024
|
|
@@ -253,7 +267,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
253
267
|
jobMaxRunningTimeMinutes?: number;
|
|
254
268
|
/**
|
|
255
269
|
* @remarks
|
|
256
|
-
* **JobSpecs** describes various configurations for job runtime, such as the image address, startup command, node resource declarations, and number of replicas.
|
|
270
|
+
* **JobSpecs** describes various configurations for the job runtime, such as the image address, startup command, node resource declarations, and number of replicas.
|
|
257
271
|
*
|
|
258
272
|
* A DLC job consists of different types of nodes. Nodes of the same type share identical configurations, which is called a JobSpec. **JobSpecs** describes the configurations of all node types and is an array of JobSpec objects.
|
|
259
273
|
*
|
|
@@ -281,7 +295,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
281
295
|
jobType?: string;
|
|
282
296
|
/**
|
|
283
297
|
* @remarks
|
|
284
|
-
* The additional
|
|
298
|
+
* The additional configuration for this node. You can use this parameter to adjust the behavior of mounted data sources. For example, if the node has an OSS data source mounted, you can set this parameter to `fs.oss.download.thread.concurrency=4,fs.oss.download.queue.size=16` to overwrite the default JindoFS parameter settings.
|
|
285
299
|
*
|
|
286
300
|
* @example
|
|
287
301
|
* key1=value1,key2=value2
|
|
@@ -291,8 +305,8 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
291
305
|
* @remarks
|
|
292
306
|
* The priority of the job. This is an optional parameter. Default value: 1. Valid values: 1 to 9.
|
|
293
307
|
*
|
|
294
|
-
* - 1:
|
|
295
|
-
* - 9:
|
|
308
|
+
* - 1: the lowest priority.
|
|
309
|
+
* - 9: the highest priority.
|
|
296
310
|
*
|
|
297
311
|
* @example
|
|
298
312
|
* 8
|
|
@@ -301,8 +315,8 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
301
315
|
/**
|
|
302
316
|
* @remarks
|
|
303
317
|
* The resource group ID. This is an optional parameter.
|
|
304
|
-
* - If
|
|
305
|
-
* - If the current workspace is
|
|
318
|
+
* - If this parameter is left empty, the job is submitted to the public resource group.
|
|
319
|
+
* - If the current workspace is attached to a resource quota, you can specify the corresponding resource quota ID. For details about how to query the resource quota ID, see [Manage resource quotas](https://help.aliyun.com/document_detail/2651299.html).
|
|
306
320
|
*
|
|
307
321
|
* @example
|
|
308
322
|
* rs-xxx
|
|
@@ -318,13 +332,13 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
318
332
|
schedulingStrategy?: string;
|
|
319
333
|
/**
|
|
320
334
|
* @remarks
|
|
321
|
-
* The additional parameter
|
|
335
|
+
* The additional parameter settings for the job.
|
|
322
336
|
*/
|
|
323
337
|
settings?: JobSettings;
|
|
324
338
|
/**
|
|
325
339
|
* @remarks
|
|
326
340
|
* The success policy for distributed multi-node jobs. Currently, only TensorFlow multi-node jobs support this parameter.
|
|
327
|
-
* - ChiefWorker: The entire job is considered successful
|
|
341
|
+
* - ChiefWorker: The entire job is considered successful when the Chief pod finishes successfully.
|
|
328
342
|
* - AllWorkers (default): The entire job is considered successful only when all Workers finish successfully.
|
|
329
343
|
*
|
|
330
344
|
* @example
|
|
@@ -349,7 +363,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
349
363
|
templateVersion?: number;
|
|
350
364
|
/**
|
|
351
365
|
* @remarks
|
|
352
|
-
* The folder
|
|
366
|
+
* The name of the folder where the Python third-party library (requirements.txt) file is located. Before running the specified UserCommand on each node, PAI-DLC retrieves the requirements.txt file from the specified folder and runs `pip install -r` to install the dependencies.
|
|
353
367
|
*
|
|
354
368
|
* @example
|
|
355
369
|
* /root/code/
|
|
@@ -357,7 +371,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
357
371
|
thirdpartyLibDir?: string;
|
|
358
372
|
/**
|
|
359
373
|
* @remarks
|
|
360
|
-
* The list of third-party
|
|
374
|
+
* The list of Python third-party libraries to install.
|
|
361
375
|
*/
|
|
362
376
|
thirdpartyLibs?: string[];
|
|
363
377
|
/**
|
|
@@ -100,6 +100,7 @@ class CreateJobRequestDataSources extends $dara.Model {
|
|
|
100
100
|
mountAccess: 'MountAccess',
|
|
101
101
|
mountPath: 'MountPath',
|
|
102
102
|
options: 'Options',
|
|
103
|
+
roleArn: 'RoleArn',
|
|
103
104
|
roleChain: 'RoleChain',
|
|
104
105
|
uri: 'Uri',
|
|
105
106
|
};
|
|
@@ -113,6 +114,7 @@ class CreateJobRequestDataSources extends $dara.Model {
|
|
|
113
114
|
mountAccess: 'string',
|
|
114
115
|
mountPath: 'string',
|
|
115
116
|
options: 'string',
|
|
117
|
+
roleArn: 'string',
|
|
116
118
|
roleChain: 'string',
|
|
117
119
|
uri: 'string',
|
|
118
120
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateJobRequest.js","sourceRoot":"","sources":["../../src/models/CreateJobRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yDAAsD;AACtD,qDAAkD;AAClD,uCAAoC;AACpC,+CAA4C;AAG5C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAsCzD,MAAM,CA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/**
|
|
5
5
|
* @remarks
|
|
6
|
-
* The visibility of the
|
|
7
|
-
* - PUBLIC:
|
|
6
|
+
* The visibility of the node can only be expanded, not reduced. Valid values:
|
|
7
|
+
* - PUBLIC: Visible to everyone in the workspace.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* PUBLIC
|
|
@@ -17,14 +17,14 @@ export declare class UpdateJobRequest extends $dara.Model {
|
|
|
17
17
|
description?: string;
|
|
18
18
|
/**
|
|
19
19
|
* @remarks
|
|
20
|
-
* The
|
|
20
|
+
* The node specifications.
|
|
21
21
|
*/
|
|
22
22
|
jobSpecs?: JobSpec[];
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The priority of the
|
|
26
|
-
* - 1:
|
|
27
|
-
* - 9:
|
|
25
|
+
* The priority of the node. Valid values: 1 to 9.
|
|
26
|
+
* - 1: lowest priority.
|
|
27
|
+
* - 9: highest priority.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* 5
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class UpdateJobResponseBody extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The node ID.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* dlc*************
|
|
@@ -10,7 +10,7 @@ export declare class UpdateJobResponseBody extends $dara.Model {
|
|
|
10
10
|
jobId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The request ID,
|
|
13
|
+
* The request ID, used for diagnostics and troubleshooting.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -75,11 +75,11 @@ export default class Client extends OpenApi {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* Creates a job and runs it in a cluster. You can specify
|
|
78
|
+
* Creates a job and runs it in a cluster. You can specify the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
|
|
79
79
|
*
|
|
80
80
|
* @remarks
|
|
81
|
-
* Before
|
|
82
|
-
* >Notice: The total length of CreateJob
|
|
81
|
+
* Before you call this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
|
|
82
|
+
* >Notice: The total length of CreateJob request parameters, including system-generated parameters, cannot exceed 65,536 bytes.
|
|
83
83
|
*
|
|
84
84
|
* @param request - CreateJobRequest
|
|
85
85
|
* @param headers - map
|
|
@@ -212,11 +212,11 @@ export default class Client extends OpenApi {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* Creates a job and runs it in a cluster. You can specify
|
|
215
|
+
* Creates a job and runs it in a cluster. You can specify the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
|
|
216
216
|
*
|
|
217
217
|
* @remarks
|
|
218
|
-
* Before
|
|
219
|
-
* >Notice: The total length of CreateJob
|
|
218
|
+
* Before you call this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
|
|
219
|
+
* >Notice: The total length of CreateJob request parameters, including system-generated parameters, cannot exceed 65,536 bytes.
|
|
220
220
|
*
|
|
221
221
|
* @param request - CreateJobRequest
|
|
222
222
|
* @returns CreateJobResponse
|
|
@@ -2699,7 +2699,7 @@ export default class Client extends OpenApi {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
|
|
2701
2701
|
/**
|
|
2702
|
-
* Updates the configuration of a
|
|
2702
|
+
* Updates the configuration of a node, such as modifying the priority of a queued node.
|
|
2703
2703
|
*
|
|
2704
2704
|
* @param request - UpdateJobRequest
|
|
2705
2705
|
* @param headers - map
|
|
@@ -2748,7 +2748,7 @@ export default class Client extends OpenApi {
|
|
|
2748
2748
|
}
|
|
2749
2749
|
|
|
2750
2750
|
/**
|
|
2751
|
-
* Updates the configuration of a
|
|
2751
|
+
* Updates the configuration of a node, such as modifying the priority of a queued node.
|
|
2752
2752
|
*
|
|
2753
2753
|
* @param request - UpdateJobRequest
|
|
2754
2754
|
* @returns UpdateJobResponse
|
|
@@ -9,7 +9,7 @@ import { JobSettings } from "./JobSettings";
|
|
|
9
9
|
export class CreateJobRequestCodeSource extends $dara.Model {
|
|
10
10
|
/**
|
|
11
11
|
* @remarks
|
|
12
|
-
* The branch of the code repository referenced when
|
|
12
|
+
* The branch of the code repository referenced when the job runs. This is an optional parameter. By default, the branch configured in the code source is used.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* master
|
|
@@ -25,7 +25,7 @@ export class CreateJobRequestCodeSource extends $dara.Model {
|
|
|
25
25
|
codeSourceId?: string;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* The commit ID of the code to
|
|
28
|
+
* The commit ID of the code to be downloaded for this job. This is an optional parameter. By default, the commit ID configured in the code source is used.
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* 44da109b5******
|
|
@@ -33,7 +33,7 @@ export class CreateJobRequestCodeSource extends $dara.Model {
|
|
|
33
33
|
commit?: string;
|
|
34
34
|
/**
|
|
35
35
|
* @remarks
|
|
36
|
-
*
|
|
36
|
+
* Marks whether the MountPath in CodeSource Settings is a shared cloud storage path. If set to true, the system enables code clone optimization. In multi-node deployment job scenarios, the clone operation is executed on only one node, and other nodes can directly access code through the shared cloud storage path.
|
|
37
37
|
*/
|
|
38
38
|
isSharedMountPath?: boolean;
|
|
39
39
|
/**
|
|
@@ -105,12 +105,12 @@ export class CreateJobRequestCustomEnvs extends $dara.Model {
|
|
|
105
105
|
export class CreateJobRequestDataSources extends $dara.Model {
|
|
106
106
|
/**
|
|
107
107
|
* @remarks
|
|
108
|
-
* The access point ID. Currently, only
|
|
108
|
+
* The access point ID. Currently, only Cloud Parallel File Storage (CPFS) access points for intelligent computing are supported.
|
|
109
109
|
*/
|
|
110
110
|
accessPointId?: string;
|
|
111
111
|
/**
|
|
112
112
|
* @remarks
|
|
113
|
-
* The
|
|
113
|
+
* The data source ID. <props="china">For information about how to view the data source ID, see [ListDatasets](https://help.aliyun.com/document_detail/457222.html).
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
116
|
* d-cn9dl*******
|
|
@@ -118,6 +118,15 @@ export class CreateJobRequestDataSources extends $dara.Model {
|
|
|
118
118
|
dataSourceId?: string;
|
|
119
119
|
dataSourceVersion?: string;
|
|
120
120
|
enableCache?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* @remarks
|
|
123
|
+
* The permission when the dataset is mounted. Valid values:
|
|
124
|
+
* - RO: read-only mount
|
|
125
|
+
* - RW: read and write mount
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* RO
|
|
129
|
+
*/
|
|
121
130
|
mountAccess?: string;
|
|
122
131
|
/**
|
|
123
132
|
* @remarks
|
|
@@ -139,6 +148,11 @@ export class CreateJobRequestDataSources extends $dara.Model {
|
|
|
139
148
|
* }
|
|
140
149
|
*/
|
|
141
150
|
options?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @example
|
|
153
|
+
* acs:ram::1872xxxxxxxxx:role/account-pai-prod
|
|
154
|
+
*/
|
|
155
|
+
roleArn?: string;
|
|
142
156
|
/**
|
|
143
157
|
* @remarks
|
|
144
158
|
* The role chain, a JSON-formatted string. Example: [{"roleType":"service","roleArn":"acs:ram::cloud-product-resource-account-uid:role/xxxtodlcrole","assumeRoleFor":"cloud-product-resource-account-uid"},{"roleType":"user","roleArn":"acs:ram::cloud-product-service-account-uid:role/roletoassumecustomerrole"},{"roleType":"service","roleArn":"acs:ram::end-user-uid:role/use-bmcpfs-access-ap-role","assumeRoleFor":"end-user-uid"}]
|
|
@@ -161,6 +175,7 @@ export class CreateJobRequestDataSources extends $dara.Model {
|
|
|
161
175
|
mountAccess: 'MountAccess',
|
|
162
176
|
mountPath: 'MountPath',
|
|
163
177
|
options: 'Options',
|
|
178
|
+
roleArn: 'RoleArn',
|
|
164
179
|
roleChain: 'RoleChain',
|
|
165
180
|
uri: 'Uri',
|
|
166
181
|
};
|
|
@@ -175,6 +190,7 @@ export class CreateJobRequestDataSources extends $dara.Model {
|
|
|
175
190
|
mountAccess: 'string',
|
|
176
191
|
mountPath: 'string',
|
|
177
192
|
options: 'string',
|
|
193
|
+
roleArn: 'string',
|
|
178
194
|
roleChain: 'string',
|
|
179
195
|
uri: 'string',
|
|
180
196
|
};
|
|
@@ -192,9 +208,9 @@ export class CreateJobRequestDataSources extends $dara.Model {
|
|
|
192
208
|
export class CreateJobRequestUserVpc extends $dara.Model {
|
|
193
209
|
/**
|
|
194
210
|
* @remarks
|
|
195
|
-
* The default
|
|
196
|
-
* - eth0: Uses the default network interface
|
|
197
|
-
* - eth1: Uses the user elastic network
|
|
211
|
+
* The default routing. Valid values:
|
|
212
|
+
* - eth0: Uses the default network interface controller (NIC) to access external networks through the public gateway.
|
|
213
|
+
* - eth1: Uses the user elastic network interfaces (ENIs) to access external networks through a private gateway. For the configuration method, see [Configure a DSW instance to access the Internet through a dedicated public gateway](https://help.aliyun.com/document_detail/2525343.html).
|
|
198
214
|
*
|
|
199
215
|
* @example
|
|
200
216
|
* eth0
|
|
@@ -203,13 +219,13 @@ export class CreateJobRequestUserVpc extends $dara.Model {
|
|
|
203
219
|
/**
|
|
204
220
|
* @remarks
|
|
205
221
|
* The extended CIDR blocks.
|
|
206
|
-
* - If the vSwitch ID is empty, this parameter is
|
|
207
|
-
* - If the vSwitch ID is specified, this parameter is required.
|
|
222
|
+
* - If the vSwitch ID is empty, this parameter is optional. The system automatically retrieves all CIDR blocks in the VPC.
|
|
223
|
+
* - If the vSwitch ID is specified, this parameter is required. Specify all CIDR blocks in the VPC.
|
|
208
224
|
*/
|
|
209
225
|
extendedCIDRs?: string[];
|
|
210
226
|
/**
|
|
211
227
|
* @remarks
|
|
212
|
-
* The ID of the
|
|
228
|
+
* The ID of the security group.
|
|
213
229
|
*
|
|
214
230
|
* @example
|
|
215
231
|
* sg-abcdef****
|
|
@@ -217,8 +233,8 @@ export class CreateJobRequestUserVpc extends $dara.Model {
|
|
|
217
233
|
securityGroupId?: string;
|
|
218
234
|
/**
|
|
219
235
|
* @remarks
|
|
220
|
-
* The ID of the
|
|
221
|
-
* - If
|
|
236
|
+
* The ID of the vSwitch. This parameter is optional.
|
|
237
|
+
* - If this parameter is left empty, the system automatically selects an appropriate vSwitch based on inventory.
|
|
222
238
|
* - You can also specify a vSwitch ID.
|
|
223
239
|
*
|
|
224
240
|
* @example
|
|
@@ -227,7 +243,7 @@ export class CreateJobRequestUserVpc extends $dara.Model {
|
|
|
227
243
|
switchId?: string;
|
|
228
244
|
/**
|
|
229
245
|
* @remarks
|
|
230
|
-
* The ID of the
|
|
246
|
+
* The ID of the VPC.
|
|
231
247
|
*
|
|
232
248
|
* @example
|
|
233
249
|
* vpc-abcdef****
|
|
@@ -269,8 +285,8 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
269
285
|
/**
|
|
270
286
|
* @remarks
|
|
271
287
|
* The visibility of the job. Valid values:
|
|
272
|
-
* - PUBLIC:
|
|
273
|
-
* - PRIVATE:
|
|
288
|
+
* - PUBLIC: The job is visible to all members in the workspace.
|
|
289
|
+
* - PRIVATE: The job is visible only to you and administrators in the workspace.
|
|
274
290
|
*
|
|
275
291
|
* @example
|
|
276
292
|
* PRIVATE
|
|
@@ -278,7 +294,7 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
278
294
|
accessibility?: string;
|
|
279
295
|
/**
|
|
280
296
|
* @remarks
|
|
281
|
-
* The code source used by this job. Before the job nodes start, DLC automatically downloads the code configured in the code source and mounts it to a local directory
|
|
297
|
+
* The code source used by this job. Before the job nodes start, DLC automatically downloads the code configured in the code source and mounts it to a local directory of the container.
|
|
282
298
|
*/
|
|
283
299
|
codeSource?: CreateJobRequestCodeSource;
|
|
284
300
|
/**
|
|
@@ -294,7 +310,7 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
294
310
|
dataSources?: CreateJobRequestDataSources[];
|
|
295
311
|
/**
|
|
296
312
|
* @remarks
|
|
297
|
-
* This parameter is not
|
|
313
|
+
* This parameter is not supported and can be ignored.
|
|
298
314
|
*
|
|
299
315
|
* @example
|
|
300
316
|
* “”
|
|
@@ -303,7 +319,7 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
303
319
|
description?: string;
|
|
304
320
|
/**
|
|
305
321
|
* @remarks
|
|
306
|
-
* The name of the job. The naming
|
|
322
|
+
* The name of the job. The naming conventions are as follows:
|
|
307
323
|
* - The name cannot exceed 256 characters in length.
|
|
308
324
|
* - The name can contain digits, letters, underscores (_), periods (.), and hyphens (-).
|
|
309
325
|
*
|
|
@@ -315,17 +331,17 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
315
331
|
displayName?: string;
|
|
316
332
|
/**
|
|
317
333
|
* @remarks
|
|
318
|
-
* This parameter is not
|
|
334
|
+
* This parameter is not supported and can be ignored.
|
|
319
335
|
*/
|
|
320
336
|
elasticSpec?: JobElasticSpec;
|
|
321
337
|
/**
|
|
322
338
|
* @remarks
|
|
323
|
-
* The environment variable
|
|
339
|
+
* The environment variable configuration.
|
|
324
340
|
*/
|
|
325
341
|
envs?: { [key: string]: string };
|
|
326
342
|
/**
|
|
327
343
|
* @remarks
|
|
328
|
-
* The maximum running time of the job
|
|
344
|
+
* The maximum running time of the job. Unit: minutes.
|
|
329
345
|
*
|
|
330
346
|
* @example
|
|
331
347
|
* 1024
|
|
@@ -333,7 +349,7 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
333
349
|
jobMaxRunningTimeMinutes?: number;
|
|
334
350
|
/**
|
|
335
351
|
* @remarks
|
|
336
|
-
* **JobSpecs** describes various configurations for job runtime, such as the image address, startup command, node resource declarations, and number of replicas.
|
|
352
|
+
* **JobSpecs** describes various configurations for the job runtime, such as the image address, startup command, node resource declarations, and number of replicas.
|
|
337
353
|
*
|
|
338
354
|
* A DLC job consists of different types of nodes. Nodes of the same type share identical configurations, which is called a JobSpec. **JobSpecs** describes the configurations of all node types and is an array of JobSpec objects.
|
|
339
355
|
*
|
|
@@ -361,7 +377,7 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
361
377
|
jobType?: string;
|
|
362
378
|
/**
|
|
363
379
|
* @remarks
|
|
364
|
-
* The additional
|
|
380
|
+
* The additional configuration for this node. You can use this parameter to adjust the behavior of mounted data sources. For example, if the node has an OSS data source mounted, you can set this parameter to `fs.oss.download.thread.concurrency=4,fs.oss.download.queue.size=16` to overwrite the default JindoFS parameter settings.
|
|
365
381
|
*
|
|
366
382
|
* @example
|
|
367
383
|
* key1=value1,key2=value2
|
|
@@ -371,8 +387,8 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
371
387
|
* @remarks
|
|
372
388
|
* The priority of the job. This is an optional parameter. Default value: 1. Valid values: 1 to 9.
|
|
373
389
|
*
|
|
374
|
-
* - 1:
|
|
375
|
-
* - 9:
|
|
390
|
+
* - 1: the lowest priority.
|
|
391
|
+
* - 9: the highest priority.
|
|
376
392
|
*
|
|
377
393
|
* @example
|
|
378
394
|
* 8
|
|
@@ -381,8 +397,8 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
381
397
|
/**
|
|
382
398
|
* @remarks
|
|
383
399
|
* The resource group ID. This is an optional parameter.
|
|
384
|
-
* - If
|
|
385
|
-
* - If the current workspace is
|
|
400
|
+
* - If this parameter is left empty, the job is submitted to the public resource group.
|
|
401
|
+
* - If the current workspace is attached to a resource quota, you can specify the corresponding resource quota ID. For details about how to query the resource quota ID, see [Manage resource quotas](https://help.aliyun.com/document_detail/2651299.html).
|
|
386
402
|
*
|
|
387
403
|
* @example
|
|
388
404
|
* rs-xxx
|
|
@@ -398,13 +414,13 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
398
414
|
schedulingStrategy?: string;
|
|
399
415
|
/**
|
|
400
416
|
* @remarks
|
|
401
|
-
* The additional parameter
|
|
417
|
+
* The additional parameter settings for the job.
|
|
402
418
|
*/
|
|
403
419
|
settings?: JobSettings;
|
|
404
420
|
/**
|
|
405
421
|
* @remarks
|
|
406
422
|
* The success policy for distributed multi-node jobs. Currently, only TensorFlow multi-node jobs support this parameter.
|
|
407
|
-
* - ChiefWorker: The entire job is considered successful
|
|
423
|
+
* - ChiefWorker: The entire job is considered successful when the Chief pod finishes successfully.
|
|
408
424
|
* - AllWorkers (default): The entire job is considered successful only when all Workers finish successfully.
|
|
409
425
|
*
|
|
410
426
|
* @example
|
|
@@ -429,7 +445,7 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
429
445
|
templateVersion?: number;
|
|
430
446
|
/**
|
|
431
447
|
* @remarks
|
|
432
|
-
* The folder
|
|
448
|
+
* The name of the folder where the Python third-party library (requirements.txt) file is located. Before running the specified UserCommand on each node, PAI-DLC retrieves the requirements.txt file from the specified folder and runs `pip install -r` to install the dependencies.
|
|
433
449
|
*
|
|
434
450
|
* @example
|
|
435
451
|
* /root/code/
|
|
@@ -437,7 +453,7 @@ export class CreateJobRequest extends $dara.Model {
|
|
|
437
453
|
thirdpartyLibDir?: string;
|
|
438
454
|
/**
|
|
439
455
|
* @remarks
|
|
440
|
-
* The list of third-party
|
|
456
|
+
* The list of Python third-party libraries to install.
|
|
441
457
|
*/
|
|
442
458
|
thirdpartyLibs?: string[];
|
|
443
459
|
/**
|
|
@@ -6,8 +6,8 @@ import { JobSpec } from "./JobSpec";
|
|
|
6
6
|
export class UpdateJobRequest extends $dara.Model {
|
|
7
7
|
/**
|
|
8
8
|
* @remarks
|
|
9
|
-
* The visibility of the
|
|
10
|
-
* - PUBLIC:
|
|
9
|
+
* The visibility of the node can only be expanded, not reduced. Valid values:
|
|
10
|
+
* - PUBLIC: Visible to everyone in the workspace.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* PUBLIC
|
|
@@ -20,14 +20,14 @@ export class UpdateJobRequest extends $dara.Model {
|
|
|
20
20
|
description?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The
|
|
23
|
+
* The node specifications.
|
|
24
24
|
*/
|
|
25
25
|
jobSpecs?: JobSpec[];
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* The priority of the
|
|
29
|
-
* - 1:
|
|
30
|
-
* - 9:
|
|
28
|
+
* The priority of the node. Valid values: 1 to 9.
|
|
29
|
+
* - 1: lowest priority.
|
|
30
|
+
* - 9: highest priority.
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* 5
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class UpdateJobResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The node ID.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* dlc*************
|
|
@@ -13,7 +13,7 @@ export class UpdateJobResponseBody extends $dara.Model {
|
|
|
13
13
|
jobId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The request ID,
|
|
16
|
+
* The request ID, used for diagnostics and troubleshooting.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
|