@alicloud/pai-dlc20201203 1.10.2 → 1.11.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.
Files changed (71) hide show
  1. package/dist/client.d.ts +48 -8
  2. package/dist/client.js +135 -21
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateJobRequest.d.ts +12 -40
  5. package/dist/models/CreateJobRequest.js.map +1 -1
  6. package/dist/models/CreateJobResponseBody.d.ts +1 -1
  7. package/dist/models/DataSourceItem.d.ts +1 -1
  8. package/dist/models/DebuggerConfig.d.ts +20 -2
  9. package/dist/models/DebuggerConfig.js.map +1 -1
  10. package/dist/models/GetJobResponseBody.d.ts +23 -51
  11. package/dist/models/GetJobResponseBody.js.map +1 -1
  12. package/dist/models/JobSettings.d.ts +2 -1
  13. package/dist/models/JobSettings.js +2 -0
  14. package/dist/models/JobSettings.js.map +1 -1
  15. package/dist/models/ListJobsRequest.d.ts +2 -2
  16. package/dist/models/ListJobsShrinkRequest.d.ts +2 -2
  17. package/dist/models/Member.d.ts +6 -0
  18. package/dist/models/Member.js.map +1 -1
  19. package/dist/models/Resources.d.ts +10 -1
  20. package/dist/models/Resources.js.map +1 -1
  21. package/dist/models/SmartCache.d.ts +48 -0
  22. package/dist/models/SmartCache.js.map +1 -1
  23. package/dist/models/TagResourcesRequest.d.ts +74 -0
  24. package/dist/models/TagResourcesRequest.js +91 -0
  25. package/dist/models/TagResourcesRequest.js.map +1 -0
  26. package/dist/models/TagResourcesResponse.d.ts +19 -0
  27. package/dist/models/TagResourcesResponse.js +69 -0
  28. package/dist/models/TagResourcesResponse.js.map +1 -0
  29. package/dist/models/TagResourcesResponseBody.d.ts +21 -0
  30. package/dist/models/TagResourcesResponseBody.js +58 -0
  31. package/dist/models/TagResourcesResponseBody.js.map +1 -0
  32. package/dist/models/Tensorboard.d.ts +3 -3
  33. package/dist/models/TensorboardDataSourceSpec.d.ts +1 -1
  34. package/dist/models/UntagResourcesRequest.d.ts +49 -0
  35. package/dist/models/UntagResourcesRequest.js +70 -0
  36. package/dist/models/UntagResourcesRequest.js.map +1 -0
  37. package/dist/models/UntagResourcesResponse.d.ts +19 -0
  38. package/dist/models/UntagResourcesResponse.js +69 -0
  39. package/dist/models/UntagResourcesResponse.js.map +1 -0
  40. package/dist/models/UntagResourcesResponseBody.d.ts +21 -0
  41. package/dist/models/UntagResourcesResponseBody.js +58 -0
  42. package/dist/models/UntagResourcesResponseBody.js.map +1 -0
  43. package/dist/models/UntagResourcesShrinkRequest.d.ts +49 -0
  44. package/dist/models/UntagResourcesShrinkRequest.js +64 -0
  45. package/dist/models/UntagResourcesShrinkRequest.js.map +1 -0
  46. package/dist/models/model.d.ts +8 -0
  47. package/dist/models/model.js +21 -5
  48. package/dist/models/model.js.map +1 -1
  49. package/package.json +1 -1
  50. package/src/client.ts +149 -21
  51. package/src/models/CreateJobRequest.ts +12 -40
  52. package/src/models/CreateJobResponseBody.ts +1 -1
  53. package/src/models/DataSourceItem.ts +1 -1
  54. package/src/models/DebuggerConfig.ts +20 -2
  55. package/src/models/GetJobResponseBody.ts +23 -51
  56. package/src/models/JobSettings.ts +4 -1
  57. package/src/models/ListJobsRequest.ts +2 -2
  58. package/src/models/ListJobsShrinkRequest.ts +2 -2
  59. package/src/models/Member.ts +6 -0
  60. package/src/models/Resources.ts +10 -1
  61. package/src/models/SmartCache.ts +48 -0
  62. package/src/models/TagResourcesRequest.ts +111 -0
  63. package/src/models/TagResourcesResponse.ts +40 -0
  64. package/src/models/TagResourcesResponseBody.ts +34 -0
  65. package/src/models/Tensorboard.ts +3 -3
  66. package/src/models/TensorboardDataSourceSpec.ts +1 -1
  67. package/src/models/UntagResourcesRequest.ts +74 -0
  68. package/src/models/UntagResourcesResponse.ts +40 -0
  69. package/src/models/UntagResourcesResponseBody.ts +34 -0
  70. package/src/models/UntagResourcesShrinkRequest.ts +68 -0
  71. package/src/models/model.ts +8 -0
package/dist/client.d.ts CHANGED
@@ -9,11 +9,10 @@ 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 the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
12
+ * Creates a job to run 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
- * Make sure that you are familiar with the billing and [pricing](https://help.aliyun.com/document_detail/171758.html) of PAI-DLC before you call this operation.
16
- * >Notice: The total length of CreateJob request parameters (including system-generated parameters) cannot exceed 65,536 bytes.
15
+ * Before you use this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
17
16
  *
18
17
  * @param request - CreateJobRequest
19
18
  * @param headers - map
@@ -24,11 +23,10 @@ export default class Client extends OpenApi {
24
23
  [key: string]: string;
25
24
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateJobResponse>;
26
25
  /**
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.
26
+ * Creates a job to run 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
27
  *
29
28
  * @remarks
30
- * Make sure that you are familiar with the billing and [pricing](https://help.aliyun.com/document_detail/171758.html) of PAI-DLC before you call this operation.
31
- * >Notice: The total length of CreateJob request parameters (including system-generated parameters) cannot exceed 65,536 bytes.
29
+ * Before you use this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
32
30
  *
33
31
  * @param request - CreateJobRequest
34
32
  * @returns CreateJobResponse
@@ -226,7 +224,7 @@ export default class Client extends OpenApi {
226
224
  */
227
225
  getDashboard(jobId: string, request: $_model.GetDashboardRequest): Promise<$_model.GetDashboardResponse>;
228
226
  /**
229
- * Retrieves the detailed configuration and runtime information of a job.
227
+ * Retrieves the detailed configuration and runtime information of a node.
230
228
  *
231
229
  * @param request - GetJobRequest
232
230
  * @param headers - map
@@ -237,7 +235,7 @@ export default class Client extends OpenApi {
237
235
  [key: string]: string;
238
236
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetJobResponse>;
239
237
  /**
240
- * Retrieves the detailed configuration and runtime information of a job.
238
+ * Retrieves the detailed configuration and runtime information of a node.
241
239
  *
242
240
  * @param request - GetJobRequest
243
241
  * @returns GetJobResponse
@@ -792,6 +790,48 @@ export default class Client extends OpenApi {
792
790
  * @returns StopTensorboardResponse
793
791
  */
794
792
  stopTensorboard(TensorboardId: string, request: $_model.StopTensorboardRequest): Promise<$_model.StopTensorboardResponse>;
793
+ /**
794
+ * Creates and attaches tags to specified resources.
795
+ *
796
+ * @remarks
797
+ * Before attaching tags, Alibaba Cloud checks the number of existing tags on the resource. If the limit is exceeded, an error message is returned.
798
+ *
799
+ * @param request - TagResourcesRequest
800
+ * @param headers - map
801
+ * @param runtime - runtime options for this request RuntimeOptions
802
+ * @returns TagResourcesResponse
803
+ */
804
+ tagResourcesWithOptions(request: $_model.TagResourcesRequest, headers: {
805
+ [key: string]: string;
806
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.TagResourcesResponse>;
807
+ /**
808
+ * Creates and attaches tags to specified resources.
809
+ *
810
+ * @remarks
811
+ * Before attaching tags, Alibaba Cloud checks the number of existing tags on the resource. If the limit is exceeded, an error message is returned.
812
+ *
813
+ * @param request - TagResourcesRequest
814
+ * @returns TagResourcesResponse
815
+ */
816
+ tagResources(request: $_model.TagResourcesRequest): Promise<$_model.TagResourcesResponse>;
817
+ /**
818
+ * Unbinds tags from a specified list of resources.
819
+ *
820
+ * @param tmpReq - UntagResourcesRequest
821
+ * @param headers - map
822
+ * @param runtime - runtime options for this request RuntimeOptions
823
+ * @returns UntagResourcesResponse
824
+ */
825
+ untagResourcesWithOptions(tmpReq: $_model.UntagResourcesRequest, headers: {
826
+ [key: string]: string;
827
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.UntagResourcesResponse>;
828
+ /**
829
+ * Unbinds tags from a specified list of resources.
830
+ *
831
+ * @param request - UntagResourcesRequest
832
+ * @returns UntagResourcesResponse
833
+ */
834
+ untagResources(request: $_model.UntagResourcesRequest): Promise<$_model.UntagResourcesResponse>;
795
835
  /**
796
836
  * Updates a job\\"s configuration, such as its priority.
797
837
  *
package/dist/client.js CHANGED
@@ -93,24 +93,24 @@ class Client extends openapi_core_1.default {
93
93
  'eu-west-1-oxs': "pai-dlc.aliyuncs.com",
94
94
  'me-east-1': "pai-dlc.aliyuncs.com",
95
95
  'rus-west-1-pop': "pai-dlc.aliyuncs.com",
96
- 'us-west-1': "pai-dlc.us-west-1.aliyuncs.com",
97
- 'us-southeast-1': "pai-dlc.us-southeast-1.aliyuncs.com",
98
- 'us-east-1': "pai-dlc.us-east-1.aliyuncs.com",
99
- 'eu-central-1': "pai-dlc.eu-central-1.aliyuncs.com",
100
96
  'cn-wulanchabu': "pai-dlc.cn-wulanchabu.aliyuncs.com",
101
- 'cn-shenzhen': "pai-dlc.cn-shenzhen.aliyuncs.com",
102
- 'cn-shanghai-finance-1': "pai-dlc.cn-shanghai-finance-1.aliyuncs.com",
97
+ 'cn-beijing': "pai-dlc.cn-beijing.aliyuncs.com",
103
98
  'cn-shanghai': "pai-dlc.cn-shanghai.aliyuncs.com",
104
99
  'cn-hongkong': "pai-dlc.cn-hongkong.aliyuncs.com",
105
- 'cn-hangzhou': "pai-dlc.cn-hangzhou.aliyuncs.com",
100
+ 'cn-shenzhen': "pai-dlc.cn-shenzhen.aliyuncs.com",
101
+ 'ap-northeast-1': "pai-dlc.ap-northeast-1.aliyuncs.com",
106
102
  'cn-guangzhou': "pai-dlc.cn-guangzhou.aliyuncs.com",
107
- 'cn-beijing': "pai-dlc.cn-beijing.aliyuncs.com",
108
- 'ap-southeast-8': "pai-dlc.ap-southeast-8.aliyuncs.com",
109
- 'ap-southeast-7': "pai-dlc.ap-southeast-7.aliyuncs.com",
110
- 'ap-southeast-5': "pai-dlc.ap-southeast-5.aliyuncs.com",
111
- 'ap-southeast-3': "pai-dlc.ap-southeast-3.aliyuncs.com",
112
103
  'ap-southeast-1': "pai-dlc.ap-southeast-1.aliyuncs.com",
113
- 'ap-northeast-1': "pai-dlc.ap-northeast-1.aliyuncs.com",
104
+ 'ap-southeast-3': "pai-dlc.ap-southeast-3.aliyuncs.com",
105
+ 'ap-southeast-5': "pai-dlc.ap-southeast-5.aliyuncs.com",
106
+ 'ap-southeast-7': "pai-dlc.ap-southeast-7.aliyuncs.com",
107
+ 'cn-hangzhou': "pai-dlc.cn-hangzhou.aliyuncs.com",
108
+ 'ap-southeast-8': "pai-dlc.ap-southeast-8.aliyuncs.com",
109
+ 'us-east-1': "pai-dlc.us-east-1.aliyuncs.com",
110
+ 'us-southeast-1': "pai-dlc.us-southeast-1.aliyuncs.com",
111
+ 'us-west-1': "pai-dlc.us-west-1.aliyuncs.com",
112
+ 'eu-central-1': "pai-dlc.eu-central-1.aliyuncs.com",
113
+ 'cn-shanghai-finance-1': "pai-dlc.cn-shanghai-finance-1.aliyuncs.com",
114
114
  };
115
115
  this.checkConfig(config);
116
116
  this._endpoint = this.getEndpoint("pai-dlc", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -125,11 +125,10 @@ class Client extends openapi_core_1.default {
125
125
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
126
126
  }
127
127
  /**
128
- * 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.
128
+ * Creates a job to run in a cluster. You can specify the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
129
129
  *
130
130
  * @remarks
131
- * Make sure that you are familiar with the billing and [pricing](https://help.aliyun.com/document_detail/171758.html) of PAI-DLC before you call this operation.
132
- * >Notice: The total length of CreateJob request parameters (including system-generated parameters) cannot exceed 65,536 bytes.
131
+ * Before you use this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
133
132
  *
134
133
  * @param request - CreateJobRequest
135
134
  * @param headers - map
@@ -235,11 +234,10 @@ class Client extends openapi_core_1.default {
235
234
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateJobResponse({}));
236
235
  }
237
236
  /**
238
- * 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.
237
+ * Creates a job to run in a cluster. You can specify the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
239
238
  *
240
239
  * @remarks
241
- * Make sure that you are familiar with the billing and [pricing](https://help.aliyun.com/document_detail/171758.html) of PAI-DLC before you call this operation.
242
- * >Notice: The total length of CreateJob request parameters (including system-generated parameters) cannot exceed 65,536 bytes.
240
+ * Before you use this operation, make sure that you fully understand the billing of PAI-DLC and its [pricing](https://help.aliyun.com/document_detail/171758.html).
243
241
  *
244
242
  * @param request - CreateJobRequest
245
243
  * @returns CreateJobResponse
@@ -737,7 +735,7 @@ class Client extends openapi_core_1.default {
737
735
  return await this.getDashboardWithOptions(jobId, request, headers, runtime);
738
736
  }
739
737
  /**
740
- * Retrieves the detailed configuration and runtime information of a job.
738
+ * Retrieves the detailed configuration and runtime information of a node.
741
739
  *
742
740
  * @param request - GetJobRequest
743
741
  * @param headers - map
@@ -768,7 +766,7 @@ class Client extends openapi_core_1.default {
768
766
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetJobResponse({}));
769
767
  }
770
768
  /**
771
- * Retrieves the detailed configuration and runtime information of a job.
769
+ * Retrieves the detailed configuration and runtime information of a node.
772
770
  *
773
771
  * @param request - GetJobRequest
774
772
  * @returns GetJobResponse
@@ -2316,6 +2314,122 @@ class Client extends openapi_core_1.default {
2316
2314
  let headers = {};
2317
2315
  return await this.stopTensorboardWithOptions(TensorboardId, request, headers, runtime);
2318
2316
  }
2317
+ /**
2318
+ * Creates and attaches tags to specified resources.
2319
+ *
2320
+ * @remarks
2321
+ * Before attaching tags, Alibaba Cloud checks the number of existing tags on the resource. If the limit is exceeded, an error message is returned.
2322
+ *
2323
+ * @param request - TagResourcesRequest
2324
+ * @param headers - map
2325
+ * @param runtime - runtime options for this request RuntimeOptions
2326
+ * @returns TagResourcesResponse
2327
+ */
2328
+ async tagResourcesWithOptions(request, headers, runtime) {
2329
+ request.validate();
2330
+ let body = {};
2331
+ if (!$dara.isNull(request.regionId)) {
2332
+ body["RegionId"] = request.regionId;
2333
+ }
2334
+ if (!$dara.isNull(request.resourceId)) {
2335
+ body["ResourceId"] = request.resourceId;
2336
+ }
2337
+ if (!$dara.isNull(request.resourceType)) {
2338
+ body["ResourceType"] = request.resourceType;
2339
+ }
2340
+ if (!$dara.isNull(request.tag)) {
2341
+ body["Tag"] = request.tag;
2342
+ }
2343
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2344
+ headers: headers,
2345
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2346
+ });
2347
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2348
+ action: "TagResources",
2349
+ version: "2020-12-03",
2350
+ protocol: "HTTPS",
2351
+ pathname: `/api/v1/tags`,
2352
+ method: "POST",
2353
+ authType: "AK",
2354
+ style: "ROA",
2355
+ reqBodyType: "json",
2356
+ bodyType: "json",
2357
+ });
2358
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
2359
+ }
2360
+ /**
2361
+ * Creates and attaches tags to specified resources.
2362
+ *
2363
+ * @remarks
2364
+ * Before attaching tags, Alibaba Cloud checks the number of existing tags on the resource. If the limit is exceeded, an error message is returned.
2365
+ *
2366
+ * @param request - TagResourcesRequest
2367
+ * @returns TagResourcesResponse
2368
+ */
2369
+ async tagResources(request) {
2370
+ let runtime = new $dara.RuntimeOptions({});
2371
+ let headers = {};
2372
+ return await this.tagResourcesWithOptions(request, headers, runtime);
2373
+ }
2374
+ /**
2375
+ * Unbinds tags from a specified list of resources.
2376
+ *
2377
+ * @param tmpReq - UntagResourcesRequest
2378
+ * @param headers - map
2379
+ * @param runtime - runtime options for this request RuntimeOptions
2380
+ * @returns UntagResourcesResponse
2381
+ */
2382
+ async untagResourcesWithOptions(tmpReq, headers, runtime) {
2383
+ tmpReq.validate();
2384
+ let request = new $_model.UntagResourcesShrinkRequest({});
2385
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2386
+ if (!$dara.isNull(tmpReq.resourceId)) {
2387
+ request.resourceIdShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceId, "ResourceId", "json");
2388
+ }
2389
+ if (!$dara.isNull(tmpReq.tagKey)) {
2390
+ request.tagKeyShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagKey, "TagKey", "json");
2391
+ }
2392
+ let query = {};
2393
+ if (!$dara.isNull(request.all)) {
2394
+ query["All"] = request.all;
2395
+ }
2396
+ if (!$dara.isNull(request.resourceIdShrink)) {
2397
+ query["ResourceId"] = request.resourceIdShrink;
2398
+ }
2399
+ if (!$dara.isNull(request.resourceType)) {
2400
+ query["ResourceType"] = request.resourceType;
2401
+ }
2402
+ if (!$dara.isNull(request.tagKeyShrink)) {
2403
+ query["TagKey"] = request.tagKeyShrink;
2404
+ }
2405
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2406
+ headers: headers,
2407
+ query: openapi_core_2.OpenApiUtil.query(query),
2408
+ });
2409
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2410
+ action: "UntagResources",
2411
+ version: "2020-12-03",
2412
+ protocol: "HTTPS",
2413
+ pathname: `/api/v1/tags`,
2414
+ method: "DELETE",
2415
+ authType: "AK",
2416
+ style: "ROA",
2417
+ reqBodyType: "json",
2418
+ bodyType: "json",
2419
+ });
2420
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
2421
+ }
2422
+ /**
2423
+ * Unbinds tags from a specified list of resources.
2424
+ *
2425
+ * @param request - UntagResourcesRequest
2426
+ * @returns UntagResourcesResponse
2427
+ */
2428
+ async untagResources(request) {
2429
+ let runtime = new $dara.RuntimeOptions({});
2430
+ let headers = {};
2431
+ return await this.untagResourcesWithOptions(request, headers, runtime);
2432
+ }
2319
2433
  /**
2320
2434
  * Updates a job\\"s configuration, such as its priority.
2321
2435
  *