@alicloud/pai-dlc20201203 1.10.3 → 1.11.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.
Files changed (218) hide show
  1. package/dist/client.d.ts +56 -14
  2. package/dist/client.js +136 -32
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ContainerSpec.d.ts +2 -2
  5. package/dist/models/CreateJobRequest.d.ts +39 -24
  6. package/dist/models/CreateJobRequest.js.map +1 -1
  7. package/dist/models/CreateJobResponseBody.d.ts +2 -2
  8. package/dist/models/DataSourceItem.d.ts +1 -1
  9. package/dist/models/DebuggerConfig.d.ts +20 -2
  10. package/dist/models/DebuggerConfig.js.map +1 -1
  11. package/dist/models/GetJobResponseBody.d.ts +62 -18
  12. package/dist/models/GetJobResponseBody.js.map +1 -1
  13. package/dist/models/GetPodLogsRequest.d.ts +5 -6
  14. package/dist/models/GetPodLogsRequest.js.map +1 -1
  15. package/dist/models/GetPodLogsResponseBody.d.ts +2 -2
  16. package/dist/models/GetTokenRequest.d.ts +5 -3
  17. package/dist/models/GetTokenRequest.js +6 -0
  18. package/dist/models/GetTokenRequest.js.map +1 -1
  19. package/dist/models/GetTokenResponseBody.d.ts +2 -2
  20. package/dist/models/JobSpec.d.ts +16 -8
  21. package/dist/models/JobSpec.js +2 -0
  22. package/dist/models/JobSpec.js.map +1 -1
  23. package/dist/models/ListJobsRequest.d.ts +25 -25
  24. package/dist/models/ListJobsShrinkRequest.d.ts +25 -25
  25. package/dist/models/Member.d.ts +6 -0
  26. package/dist/models/Member.js.map +1 -1
  27. package/dist/models/Resources.d.ts +10 -1
  28. package/dist/models/Resources.js.map +1 -1
  29. package/dist/models/RlflowFunnelStage.d.ts +45 -0
  30. package/dist/models/RlflowFunnelStage.js +64 -0
  31. package/dist/models/RlflowFunnelStage.js.map +1 -0
  32. package/dist/models/RlflowMilestoneCount.d.ts +29 -0
  33. package/dist/models/RlflowMilestoneCount.js +60 -0
  34. package/dist/models/RlflowMilestoneCount.js.map +1 -0
  35. package/dist/models/RlflowSankey.d.ts +31 -0
  36. package/dist/models/RlflowSankey.js +68 -0
  37. package/dist/models/RlflowSankey.js.map +1 -0
  38. package/dist/models/RlflowSankeyColumn.d.ts +37 -0
  39. package/dist/models/RlflowSankeyColumn.js +62 -0
  40. package/dist/models/RlflowSankeyColumn.js.map +1 -0
  41. package/dist/models/RlflowSankeyExit.d.ts +45 -0
  42. package/dist/models/RlflowSankeyExit.js +64 -0
  43. package/dist/models/RlflowSankeyExit.js.map +1 -0
  44. package/dist/models/RlflowSlowestItem.d.ts +37 -0
  45. package/dist/models/RlflowSlowestItem.js +62 -0
  46. package/dist/models/RlflowSlowestItem.js.map +1 -0
  47. package/dist/models/RlflowStep.d.ts +157 -0
  48. package/dist/models/RlflowStep.js +92 -0
  49. package/dist/models/RlflowStep.js.map +1 -0
  50. package/dist/models/RlflowStuckItem.d.ts +68 -0
  51. package/dist/models/RlflowStuckItem.js +68 -0
  52. package/dist/models/RlflowStuckItem.js.map +1 -0
  53. package/dist/models/RlflowTotals.d.ts +61 -0
  54. package/dist/models/RlflowTotals.js +68 -0
  55. package/dist/models/RlflowTotals.js.map +1 -0
  56. package/dist/models/RlflowTransition.d.ts +86 -0
  57. package/dist/models/RlflowTransition.js +78 -0
  58. package/dist/models/RlflowTransition.js.map +1 -0
  59. package/dist/models/RlflowTurns.d.ts +53 -0
  60. package/dist/models/RlflowTurns.js +66 -0
  61. package/dist/models/RlflowTurns.js.map +1 -0
  62. package/dist/models/RlflowWaste.d.ts +21 -0
  63. package/dist/models/RlflowWaste.js +58 -0
  64. package/dist/models/RlflowWaste.js.map +1 -0
  65. package/dist/models/RllogContextLine.d.ts +29 -0
  66. package/dist/models/RllogContextLine.js +60 -0
  67. package/dist/models/RllogContextLine.js.map +1 -0
  68. package/dist/models/RlprogressBuffer.d.ts +94 -0
  69. package/dist/models/RlprogressBuffer.js +80 -0
  70. package/dist/models/RlprogressBuffer.js.map +1 -0
  71. package/dist/models/RlprogressBufferDetail.d.ts +53 -0
  72. package/dist/models/RlprogressBufferDetail.js +66 -0
  73. package/dist/models/RlprogressBufferDetail.js.map +1 -0
  74. package/dist/models/RlprogressConfig.d.ts +53 -0
  75. package/dist/models/RlprogressConfig.js +66 -0
  76. package/dist/models/RlprogressConfig.js.map +1 -0
  77. package/dist/models/RlprogressEval.d.ts +61 -0
  78. package/dist/models/RlprogressEval.js +68 -0
  79. package/dist/models/RlprogressEval.js.map +1 -0
  80. package/dist/models/RlprogressFatal.d.ts +53 -0
  81. package/dist/models/RlprogressFatal.js +66 -0
  82. package/dist/models/RlprogressFatal.js.map +1 -0
  83. package/dist/models/RlprogressMicro.d.ts +29 -0
  84. package/dist/models/RlprogressMicro.js +60 -0
  85. package/dist/models/RlprogressMicro.js.map +1 -0
  86. package/dist/models/RlprogressProcessed.d.ts +29 -0
  87. package/dist/models/RlprogressProcessed.js +60 -0
  88. package/dist/models/RlprogressProcessed.js.map +1 -0
  89. package/dist/models/RlprogressRollout.d.ts +38 -0
  90. package/dist/models/RlprogressRollout.js +66 -0
  91. package/dist/models/RlprogressRollout.js.map +1 -0
  92. package/dist/models/RlprogressSlow.d.ts +38 -0
  93. package/dist/models/RlprogressSlow.js +66 -0
  94. package/dist/models/RlprogressSlow.js.map +1 -0
  95. package/dist/models/RlprogressSlowDetail.d.ts +117 -0
  96. package/dist/models/RlprogressSlowDetail.js +82 -0
  97. package/dist/models/RlprogressSlowDetail.js.map +1 -0
  98. package/dist/models/RlprogressStage.d.ts +77 -0
  99. package/dist/models/RlprogressStage.js +72 -0
  100. package/dist/models/RlprogressStage.js.map +1 -0
  101. package/dist/models/RlprogressStages.d.ts +46 -0
  102. package/dist/models/RlprogressStages.js +68 -0
  103. package/dist/models/RlprogressStages.js.map +1 -0
  104. package/dist/models/RlprogressStep.d.ts +61 -0
  105. package/dist/models/RlprogressStep.js +68 -0
  106. package/dist/models/RlprogressStep.js.map +1 -0
  107. package/dist/models/RlprogressSync.d.ts +29 -0
  108. package/dist/models/RlprogressSync.js +60 -0
  109. package/dist/models/RlprogressSync.js.map +1 -0
  110. package/dist/models/RlprogressTrainer.d.ts +47 -0
  111. package/dist/models/RlprogressTrainer.js +72 -0
  112. package/dist/models/RlprogressTrainer.js.map +1 -0
  113. package/dist/models/Rlsample.d.ts +77 -0
  114. package/dist/models/Rlsample.js +72 -0
  115. package/dist/models/Rlsample.js.map +1 -0
  116. package/dist/models/RlsampleEvent.d.ts +61 -0
  117. package/dist/models/RlsampleEvent.js +68 -0
  118. package/dist/models/RlsampleEvent.js.map +1 -0
  119. package/dist/models/Rltrajectory.d.ts +49 -0
  120. package/dist/models/Rltrajectory.js +64 -0
  121. package/dist/models/Rltrajectory.js.map +1 -0
  122. package/dist/models/SmartCache.d.ts +48 -0
  123. package/dist/models/SmartCache.js.map +1 -1
  124. package/dist/models/TagResourcesRequest.d.ts +74 -0
  125. package/dist/models/TagResourcesRequest.js +91 -0
  126. package/dist/models/TagResourcesRequest.js.map +1 -0
  127. package/dist/models/TagResourcesResponse.d.ts +19 -0
  128. package/dist/models/TagResourcesResponse.js +69 -0
  129. package/dist/models/TagResourcesResponse.js.map +1 -0
  130. package/dist/models/TagResourcesResponseBody.d.ts +21 -0
  131. package/dist/models/TagResourcesResponseBody.js +58 -0
  132. package/dist/models/TagResourcesResponseBody.js.map +1 -0
  133. package/dist/models/Tensorboard.d.ts +22 -22
  134. package/dist/models/TensorboardDataSourceSpec.d.ts +1 -1
  135. package/dist/models/TokenSettings.d.ts +15 -0
  136. package/dist/models/TokenSettings.js +60 -0
  137. package/dist/models/TokenSettings.js.map +1 -0
  138. package/dist/models/UntagResourcesRequest.d.ts +49 -0
  139. package/dist/models/UntagResourcesRequest.js +70 -0
  140. package/dist/models/UntagResourcesRequest.js.map +1 -0
  141. package/dist/models/UntagResourcesResponse.d.ts +19 -0
  142. package/dist/models/UntagResourcesResponse.js +69 -0
  143. package/dist/models/UntagResourcesResponse.js.map +1 -0
  144. package/dist/models/UntagResourcesResponseBody.d.ts +21 -0
  145. package/dist/models/UntagResourcesResponseBody.js +58 -0
  146. package/dist/models/UntagResourcesResponseBody.js.map +1 -0
  147. package/dist/models/UntagResourcesShrinkRequest.d.ts +49 -0
  148. package/dist/models/UntagResourcesShrinkRequest.js +64 -0
  149. package/dist/models/UntagResourcesShrinkRequest.js.map +1 -0
  150. package/dist/models/UpdateJobRequest.d.ts +11 -9
  151. package/dist/models/UpdateJobRequest.js +2 -0
  152. package/dist/models/UpdateJobRequest.js.map +1 -1
  153. package/dist/models/UpdateJobResponseBody.d.ts +2 -2
  154. package/dist/models/model.d.ts +40 -0
  155. package/dist/models/model.js +86 -5
  156. package/dist/models/model.js.map +1 -1
  157. package/package.json +1 -1
  158. package/src/client.ts +152 -32
  159. package/src/models/ContainerSpec.ts +2 -2
  160. package/src/models/CreateJobRequest.ts +39 -24
  161. package/src/models/CreateJobResponseBody.ts +2 -2
  162. package/src/models/DataSourceItem.ts +1 -1
  163. package/src/models/DebuggerConfig.ts +20 -2
  164. package/src/models/GetJobResponseBody.ts +62 -18
  165. package/src/models/GetPodLogsRequest.ts +5 -6
  166. package/src/models/GetPodLogsResponseBody.ts +2 -2
  167. package/src/models/GetTokenRequest.ts +10 -3
  168. package/src/models/GetTokenResponseBody.ts +2 -2
  169. package/src/models/JobSpec.ts +18 -8
  170. package/src/models/ListJobsRequest.ts +25 -25
  171. package/src/models/ListJobsShrinkRequest.ts +25 -25
  172. package/src/models/Member.ts +6 -0
  173. package/src/models/Resources.ts +10 -1
  174. package/src/models/RlflowFunnelStage.ts +64 -0
  175. package/src/models/RlflowMilestoneCount.ts +44 -0
  176. package/src/models/RlflowSankey.ts +52 -0
  177. package/src/models/RlflowSankeyColumn.ts +54 -0
  178. package/src/models/RlflowSankeyExit.ts +64 -0
  179. package/src/models/RlflowSlowestItem.ts +54 -0
  180. package/src/models/RlflowStep.ts +204 -0
  181. package/src/models/RlflowStuckItem.ts +91 -0
  182. package/src/models/RlflowTotals.ts +84 -0
  183. package/src/models/RlflowTransition.ts +118 -0
  184. package/src/models/RlflowTurns.ts +74 -0
  185. package/src/models/RlflowWaste.ts +34 -0
  186. package/src/models/RllogContextLine.ts +44 -0
  187. package/src/models/RlprogressBuffer.ts +128 -0
  188. package/src/models/RlprogressBufferDetail.ts +74 -0
  189. package/src/models/RlprogressConfig.ts +74 -0
  190. package/src/models/RlprogressEval.ts +84 -0
  191. package/src/models/RlprogressFatal.ts +74 -0
  192. package/src/models/RlprogressMicro.ts +44 -0
  193. package/src/models/RlprogressProcessed.ts +44 -0
  194. package/src/models/RlprogressRollout.ts +58 -0
  195. package/src/models/RlprogressSlow.ts +58 -0
  196. package/src/models/RlprogressSlowDetail.ts +154 -0
  197. package/src/models/RlprogressStage.ts +104 -0
  198. package/src/models/RlprogressStages.ts +68 -0
  199. package/src/models/RlprogressStep.ts +84 -0
  200. package/src/models/RlprogressSync.ts +44 -0
  201. package/src/models/RlprogressTrainer.ts +72 -0
  202. package/src/models/Rlsample.ts +104 -0
  203. package/src/models/RlsampleEvent.ts +84 -0
  204. package/src/models/Rltrajectory.ts +68 -0
  205. package/src/models/SmartCache.ts +48 -0
  206. package/src/models/TagResourcesRequest.ts +111 -0
  207. package/src/models/TagResourcesResponse.ts +40 -0
  208. package/src/models/TagResourcesResponseBody.ts +34 -0
  209. package/src/models/Tensorboard.ts +22 -22
  210. package/src/models/TensorboardDataSourceSpec.ts +1 -1
  211. package/src/models/TokenSettings.ts +30 -0
  212. package/src/models/UntagResourcesRequest.ts +74 -0
  213. package/src/models/UntagResourcesResponse.ts +40 -0
  214. package/src/models/UntagResourcesResponseBody.ts +34 -0
  215. package/src/models/UntagResourcesShrinkRequest.ts +68 -0
  216. package/src/models/UpdateJobRequest.ts +13 -9
  217. package/src/models/UpdateJobResponseBody.ts +2 -2
  218. package/src/models/model.ts +40 -0
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 the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
12
+ * Creates a job and runs it in a cluster. You can specify information such as the data source configuration, 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 using this operation, make sure that you fully understand the billing methods and [pricing](https://help.aliyun.com/document_detail/171758.html) of PAI-DLC.
16
+ * >Notice: The total length of CreateJob operation 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 the datasource config, code source configuration, startup command, and compute resource configuration for each node of the job.
27
+ * Creates a job and runs it in a cluster. You can specify information such as the data source configuration, code source configuration, startup command, and compute resource configuration for each node of the job.
28
28
  *
29
29
  * @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.
30
+ * Before using this operation, make sure that you fully understand the billing methods and [pricing](https://help.aliyun.com/document_detail/171758.html) of PAI-DLC.
31
+ * >Notice: The total length of CreateJob operation parameters (including system-generated parameters) cannot exceed 65,536 bytes.
32
32
  *
33
33
  * @param request - CreateJobRequest
34
34
  * @returns CreateJobResponse
@@ -226,7 +226,7 @@ export default class Client extends OpenApi {
226
226
  */
227
227
  getDashboard(jobId: string, request: $_model.GetDashboardRequest): Promise<$_model.GetDashboardResponse>;
228
228
  /**
229
- * Retrieves the detailed configuration and runtime information of a node.
229
+ * Retrieves the detailed configuration and runtime information of a task.
230
230
  *
231
231
  * @param request - GetJobRequest
232
232
  * @param headers - map
@@ -237,7 +237,7 @@ export default class Client extends OpenApi {
237
237
  [key: string]: string;
238
238
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetJobResponse>;
239
239
  /**
240
- * Retrieves the detailed configuration and runtime information of a node.
240
+ * Retrieves the detailed configuration and runtime information of a task.
241
241
  *
242
242
  * @param request - GetJobRequest
243
243
  * @returns GetJobResponse
@@ -370,7 +370,7 @@ export default class Client extends OpenApi {
370
370
  */
371
371
  getPodEvents(JobId: string, PodId: string, request: $_model.GetPodEventsRequest): Promise<$_model.GetPodEventsResponse>;
372
372
  /**
373
- * Obtains or downloads the logs of a node for a task. The logs are from the stdout and stderr of the system and user scripts.
373
+ * Retrieves or downloads the log of a specific node in a job. The log is collected from stdout and stderr of the system and user scripts.
374
374
  *
375
375
  * @param request - GetPodLogsRequest
376
376
  * @param headers - map
@@ -381,7 +381,7 @@ export default class Client extends OpenApi {
381
381
  [key: string]: string;
382
382
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetPodLogsResponse>;
383
383
  /**
384
- * Obtains or downloads the logs of a node for a task. The logs are from the stdout and stderr of the system and user scripts.
384
+ * Retrieves or downloads the log of a specific node in a job. The log is collected from stdout and stderr of the system and user scripts.
385
385
  *
386
386
  * @param request - GetPodLogsRequest
387
387
  * @returns GetPodLogsResponse
@@ -498,7 +498,7 @@ export default class Client extends OpenApi {
498
498
  */
499
499
  getTensorboardSharedUrl(TensorboardId: string, request: $_model.GetTensorboardSharedUrlRequest): Promise<$_model.GetTensorboardSharedUrlResponse>;
500
500
  /**
501
- * Obtains the sharing token of a DLC job. This token is used to view the information about the shared job.
501
+ * Retrieves a sharing token for a DLC job, which is used to view information about the shared task.
502
502
  *
503
503
  * @param request - GetTokenRequest
504
504
  * @param headers - map
@@ -509,7 +509,7 @@ export default class Client extends OpenApi {
509
509
  [key: string]: string;
510
510
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetTokenResponse>;
511
511
  /**
512
- * Obtains the sharing token of a DLC job. This token is used to view the information about the shared job.
512
+ * Retrieves a sharing token for a DLC job, which is used to view information about the shared task.
513
513
  *
514
514
  * @param request - GetTokenRequest
515
515
  * @returns GetTokenResponse
@@ -793,7 +793,49 @@ export default class Client extends OpenApi {
793
793
  */
794
794
  stopTensorboard(TensorboardId: string, request: $_model.StopTensorboardRequest): Promise<$_model.StopTensorboardResponse>;
795
795
  /**
796
- * Updates a job\\"s configuration, such as its priority.
796
+ * Creates and attaches tags to specified resources.
797
+ *
798
+ * @remarks
799
+ * Before attaching tags, Alibaba Cloud checks the number of existing tags on the resource. If the limit is exceeded, an error message is returned.
800
+ *
801
+ * @param request - TagResourcesRequest
802
+ * @param headers - map
803
+ * @param runtime - runtime options for this request RuntimeOptions
804
+ * @returns TagResourcesResponse
805
+ */
806
+ tagResourcesWithOptions(request: $_model.TagResourcesRequest, headers: {
807
+ [key: string]: string;
808
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.TagResourcesResponse>;
809
+ /**
810
+ * Creates and attaches tags to specified resources.
811
+ *
812
+ * @remarks
813
+ * Before attaching tags, Alibaba Cloud checks the number of existing tags on the resource. If the limit is exceeded, an error message is returned.
814
+ *
815
+ * @param request - TagResourcesRequest
816
+ * @returns TagResourcesResponse
817
+ */
818
+ tagResources(request: $_model.TagResourcesRequest): Promise<$_model.TagResourcesResponse>;
819
+ /**
820
+ * Unbinds tags from a specified list of resources.
821
+ *
822
+ * @param tmpReq - UntagResourcesRequest
823
+ * @param headers - map
824
+ * @param runtime - runtime options for this request RuntimeOptions
825
+ * @returns UntagResourcesResponse
826
+ */
827
+ untagResourcesWithOptions(tmpReq: $_model.UntagResourcesRequest, headers: {
828
+ [key: string]: string;
829
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.UntagResourcesResponse>;
830
+ /**
831
+ * Unbinds tags from a specified list of resources.
832
+ *
833
+ * @param request - UntagResourcesRequest
834
+ * @returns UntagResourcesResponse
835
+ */
836
+ untagResources(request: $_model.UntagResourcesRequest): Promise<$_model.UntagResourcesResponse>;
837
+ /**
838
+ * Updates the configuration of a job, such as modifying the priority of a queued job.
797
839
  *
798
840
  * @param request - UpdateJobRequest
799
841
  * @param headers - map
@@ -804,7 +846,7 @@ export default class Client extends OpenApi {
804
846
  [key: string]: string;
805
847
  }, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateJobResponse>;
806
848
  /**
807
- * Updates a job\\"s configuration, such as its priority.
849
+ * Updates the configuration of a job, such as modifying the priority of a queued job.
808
850
  *
809
851
  * @param request - UpdateJobRequest
810
852
  * @returns UpdateJobResponse
package/dist/client.js CHANGED
@@ -93,24 +93,6 @@ 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
- '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",
103
- 'cn-shanghai': "pai-dlc.cn-shanghai.aliyuncs.com",
104
- 'cn-hongkong': "pai-dlc.cn-hongkong.aliyuncs.com",
105
- 'cn-hangzhou': "pai-dlc.cn-hangzhou.aliyuncs.com",
106
- '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
- 'ap-southeast-1': "pai-dlc.ap-southeast-1.aliyuncs.com",
113
- 'ap-northeast-1': "pai-dlc.ap-northeast-1.aliyuncs.com",
114
96
  };
115
97
  this.checkConfig(config);
116
98
  this._endpoint = this.getEndpoint("pai-dlc", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -125,11 +107,11 @@ class Client extends openapi_core_1.default {
125
107
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
126
108
  }
127
109
  /**
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.
110
+ * Creates a job and runs it in a cluster. You can specify information such as the data source configuration, code source configuration, startup command, and compute resource configuration for each node of the job.
129
111
  *
130
112
  * @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.
113
+ * Before using this operation, make sure that you fully understand the billing methods and [pricing](https://help.aliyun.com/document_detail/171758.html) of PAI-DLC.
114
+ * >Notice: The total length of CreateJob operation parameters (including system-generated parameters) cannot exceed 65,536 bytes.
133
115
  *
134
116
  * @param request - CreateJobRequest
135
117
  * @param headers - map
@@ -235,11 +217,11 @@ class Client extends openapi_core_1.default {
235
217
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateJobResponse({}));
236
218
  }
237
219
  /**
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.
220
+ * Creates a job and runs it in a cluster. You can specify information such as the data source configuration, code source configuration, startup command, and compute resource configuration for each node of the job.
239
221
  *
240
222
  * @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.
223
+ * Before using this operation, make sure that you fully understand the billing methods and [pricing](https://help.aliyun.com/document_detail/171758.html) of PAI-DLC.
224
+ * >Notice: The total length of CreateJob operation parameters (including system-generated parameters) cannot exceed 65,536 bytes.
243
225
  *
244
226
  * @param request - CreateJobRequest
245
227
  * @returns CreateJobResponse
@@ -737,7 +719,7 @@ class Client extends openapi_core_1.default {
737
719
  return await this.getDashboardWithOptions(jobId, request, headers, runtime);
738
720
  }
739
721
  /**
740
- * Retrieves the detailed configuration and runtime information of a node.
722
+ * Retrieves the detailed configuration and runtime information of a task.
741
723
  *
742
724
  * @param request - GetJobRequest
743
725
  * @param headers - map
@@ -768,7 +750,7 @@ class Client extends openapi_core_1.default {
768
750
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetJobResponse({}));
769
751
  }
770
752
  /**
771
- * Retrieves the detailed configuration and runtime information of a node.
753
+ * Retrieves the detailed configuration and runtime information of a task.
772
754
  *
773
755
  * @param request - GetJobRequest
774
756
  * @returns GetJobResponse
@@ -1109,7 +1091,7 @@ class Client extends openapi_core_1.default {
1109
1091
  return await this.getPodEventsWithOptions(JobId, PodId, request, headers, runtime);
1110
1092
  }
1111
1093
  /**
1112
- * Obtains or downloads the logs of a node for a task. The logs are from the stdout and stderr of the system and user scripts.
1094
+ * Retrieves or downloads the log of a specific node in a job. The log is collected from stdout and stderr of the system and user scripts.
1113
1095
  *
1114
1096
  * @param request - GetPodLogsRequest
1115
1097
  * @param headers - map
@@ -1152,7 +1134,7 @@ class Client extends openapi_core_1.default {
1152
1134
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPodLogsResponse({}));
1153
1135
  }
1154
1136
  /**
1155
- * Obtains or downloads the logs of a node for a task. The logs are from the stdout and stderr of the system and user scripts.
1137
+ * Retrieves or downloads the log of a specific node in a job. The log is collected from stdout and stderr of the system and user scripts.
1156
1138
  *
1157
1139
  * @param request - GetPodLogsRequest
1158
1140
  * @returns GetPodLogsResponse
@@ -1397,7 +1379,7 @@ class Client extends openapi_core_1.default {
1397
1379
  return await this.getTensorboardSharedUrlWithOptions(TensorboardId, request, headers, runtime);
1398
1380
  }
1399
1381
  /**
1400
- * Obtains the sharing token of a DLC job. This token is used to view the information about the shared job.
1382
+ * Retrieves a sharing token for a DLC job, which is used to view information about the shared task.
1401
1383
  *
1402
1384
  * @param request - GetTokenRequest
1403
1385
  * @param headers - map
@@ -1416,6 +1398,9 @@ class Client extends openapi_core_1.default {
1416
1398
  if (!$dara.isNull(request.targetType)) {
1417
1399
  query["TargetType"] = request.targetType;
1418
1400
  }
1401
+ if (!$dara.isNull(request.tokenSettings)) {
1402
+ query["TokenSettings"] = request.tokenSettings;
1403
+ }
1419
1404
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1420
1405
  headers: headers,
1421
1406
  query: openapi_core_2.OpenApiUtil.query(query),
@@ -1434,7 +1419,7 @@ class Client extends openapi_core_1.default {
1434
1419
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetTokenResponse({}));
1435
1420
  }
1436
1421
  /**
1437
- * Obtains the sharing token of a DLC job. This token is used to view the information about the shared job.
1422
+ * Retrieves a sharing token for a DLC job, which is used to view information about the shared task.
1438
1423
  *
1439
1424
  * @param request - GetTokenRequest
1440
1425
  * @returns GetTokenResponse
@@ -2317,7 +2302,123 @@ class Client extends openapi_core_1.default {
2317
2302
  return await this.stopTensorboardWithOptions(TensorboardId, request, headers, runtime);
2318
2303
  }
2319
2304
  /**
2320
- * Updates a job\\"s configuration, such as its priority.
2305
+ * Creates and attaches tags to specified resources.
2306
+ *
2307
+ * @remarks
2308
+ * Before attaching tags, Alibaba Cloud checks the number of existing tags on the resource. If the limit is exceeded, an error message is returned.
2309
+ *
2310
+ * @param request - TagResourcesRequest
2311
+ * @param headers - map
2312
+ * @param runtime - runtime options for this request RuntimeOptions
2313
+ * @returns TagResourcesResponse
2314
+ */
2315
+ async tagResourcesWithOptions(request, headers, runtime) {
2316
+ request.validate();
2317
+ let body = {};
2318
+ if (!$dara.isNull(request.regionId)) {
2319
+ body["RegionId"] = request.regionId;
2320
+ }
2321
+ if (!$dara.isNull(request.resourceId)) {
2322
+ body["ResourceId"] = request.resourceId;
2323
+ }
2324
+ if (!$dara.isNull(request.resourceType)) {
2325
+ body["ResourceType"] = request.resourceType;
2326
+ }
2327
+ if (!$dara.isNull(request.tag)) {
2328
+ body["Tag"] = request.tag;
2329
+ }
2330
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2331
+ headers: headers,
2332
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2333
+ });
2334
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2335
+ action: "TagResources",
2336
+ version: "2020-12-03",
2337
+ protocol: "HTTPS",
2338
+ pathname: `/api/v1/tags`,
2339
+ method: "POST",
2340
+ authType: "AK",
2341
+ style: "ROA",
2342
+ reqBodyType: "json",
2343
+ bodyType: "json",
2344
+ });
2345
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
2346
+ }
2347
+ /**
2348
+ * Creates and attaches tags to specified resources.
2349
+ *
2350
+ * @remarks
2351
+ * Before attaching tags, Alibaba Cloud checks the number of existing tags on the resource. If the limit is exceeded, an error message is returned.
2352
+ *
2353
+ * @param request - TagResourcesRequest
2354
+ * @returns TagResourcesResponse
2355
+ */
2356
+ async tagResources(request) {
2357
+ let runtime = new $dara.RuntimeOptions({});
2358
+ let headers = {};
2359
+ return await this.tagResourcesWithOptions(request, headers, runtime);
2360
+ }
2361
+ /**
2362
+ * Unbinds tags from a specified list of resources.
2363
+ *
2364
+ * @param tmpReq - UntagResourcesRequest
2365
+ * @param headers - map
2366
+ * @param runtime - runtime options for this request RuntimeOptions
2367
+ * @returns UntagResourcesResponse
2368
+ */
2369
+ async untagResourcesWithOptions(tmpReq, headers, runtime) {
2370
+ tmpReq.validate();
2371
+ let request = new $_model.UntagResourcesShrinkRequest({});
2372
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2373
+ if (!$dara.isNull(tmpReq.resourceId)) {
2374
+ request.resourceIdShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceId, "ResourceId", "json");
2375
+ }
2376
+ if (!$dara.isNull(tmpReq.tagKey)) {
2377
+ request.tagKeyShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagKey, "TagKey", "json");
2378
+ }
2379
+ let query = {};
2380
+ if (!$dara.isNull(request.all)) {
2381
+ query["All"] = request.all;
2382
+ }
2383
+ if (!$dara.isNull(request.resourceIdShrink)) {
2384
+ query["ResourceId"] = request.resourceIdShrink;
2385
+ }
2386
+ if (!$dara.isNull(request.resourceType)) {
2387
+ query["ResourceType"] = request.resourceType;
2388
+ }
2389
+ if (!$dara.isNull(request.tagKeyShrink)) {
2390
+ query["TagKey"] = request.tagKeyShrink;
2391
+ }
2392
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2393
+ headers: headers,
2394
+ query: openapi_core_2.OpenApiUtil.query(query),
2395
+ });
2396
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2397
+ action: "UntagResources",
2398
+ version: "2020-12-03",
2399
+ protocol: "HTTPS",
2400
+ pathname: `/api/v1/tags`,
2401
+ method: "DELETE",
2402
+ authType: "AK",
2403
+ style: "ROA",
2404
+ reqBodyType: "json",
2405
+ bodyType: "json",
2406
+ });
2407
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
2408
+ }
2409
+ /**
2410
+ * Unbinds tags from a specified list of resources.
2411
+ *
2412
+ * @param request - UntagResourcesRequest
2413
+ * @returns UntagResourcesResponse
2414
+ */
2415
+ async untagResources(request) {
2416
+ let runtime = new $dara.RuntimeOptions({});
2417
+ let headers = {};
2418
+ return await this.untagResourcesWithOptions(request, headers, runtime);
2419
+ }
2420
+ /**
2421
+ * Updates the configuration of a job, such as modifying the priority of a queued job.
2321
2422
  *
2322
2423
  * @param request - UpdateJobRequest
2323
2424
  * @param headers - map
@@ -2339,6 +2440,9 @@ class Client extends openapi_core_1.default {
2339
2440
  if (!$dara.isNull(request.priority)) {
2340
2441
  body["Priority"] = request.priority;
2341
2442
  }
2443
+ if (!$dara.isNull(request.userCommand)) {
2444
+ body["UserCommand"] = request.userCommand;
2445
+ }
2342
2446
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2343
2447
  headers: headers,
2344
2448
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
@@ -2357,7 +2461,7 @@ class Client extends openapi_core_1.default {
2357
2461
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateJobResponse({}));
2358
2462
  }
2359
2463
  /**
2360
- * Updates a job\\"s configuration, such as its priority.
2464
+ * Updates the configuration of a job, such as modifying the priority of a queued job.
2361
2465
  *
2362
2466
  * @param request - UpdateJobRequest
2363
2467
  * @returns UpdateJobResponse