@alicloud/pai-dlc20201203 1.2.0 → 1.2.3

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/src/client.ts CHANGED
@@ -658,6 +658,7 @@ export class JobSettings extends $tea.Model {
658
658
  businessUserId?: string;
659
659
  caller?: string;
660
660
  enableErrorMonitoringInAIMaster?: boolean;
661
+ enableOssAppend?: boolean;
661
662
  enableRDMA?: boolean;
662
663
  enableTideResource?: boolean;
663
664
  errorMonitoringArgs?: string;
@@ -668,6 +669,7 @@ export class JobSettings extends $tea.Model {
668
669
  businessUserId: 'BusinessUserId',
669
670
  caller: 'Caller',
670
671
  enableErrorMonitoringInAIMaster: 'EnableErrorMonitoringInAIMaster',
672
+ enableOssAppend: 'EnableOssAppend',
671
673
  enableRDMA: 'EnableRDMA',
672
674
  enableTideResource: 'EnableTideResource',
673
675
  errorMonitoringArgs: 'ErrorMonitoringArgs',
@@ -681,6 +683,7 @@ export class JobSettings extends $tea.Model {
681
683
  businessUserId: 'string',
682
684
  caller: 'string',
683
685
  enableErrorMonitoringInAIMaster: 'boolean',
686
+ enableOssAppend: 'boolean',
684
687
  enableRDMA: 'boolean',
685
688
  enableTideResource: 'boolean',
686
689
  errorMonitoringArgs: 'string',
@@ -822,12 +825,10 @@ export class PodMetric extends $tea.Model {
822
825
  export class Quota extends $tea.Model {
823
826
  clusterId?: string;
824
827
  clusterName?: string;
825
- enableTideResource?: boolean;
826
- isExclusiveQuota?: boolean;
828
+ quotaConfig?: QuotaConfig;
827
829
  quotaId?: string;
828
830
  quotaName?: string;
829
831
  quotaType?: string;
830
- resourceLevel?: string;
831
832
  totalQuota?: QuotaDetail;
832
833
  totalTideQuota?: QuotaDetail;
833
834
  usedQuota?: QuotaDetail;
@@ -836,12 +837,10 @@ export class Quota extends $tea.Model {
836
837
  return {
837
838
  clusterId: 'ClusterId',
838
839
  clusterName: 'ClusterName',
839
- enableTideResource: 'EnableTideResource',
840
- isExclusiveQuota: 'IsExclusiveQuota',
840
+ quotaConfig: 'QuotaConfig',
841
841
  quotaId: 'QuotaId',
842
842
  quotaName: 'QuotaName',
843
843
  quotaType: 'QuotaType',
844
- resourceLevel: 'ResourceLevel',
845
844
  totalQuota: 'TotalQuota',
846
845
  totalTideQuota: 'TotalTideQuota',
847
846
  usedQuota: 'UsedQuota',
@@ -853,12 +852,10 @@ export class Quota extends $tea.Model {
853
852
  return {
854
853
  clusterId: 'string',
855
854
  clusterName: 'string',
856
- enableTideResource: 'boolean',
857
- isExclusiveQuota: 'boolean',
855
+ quotaConfig: QuotaConfig,
858
856
  quotaId: 'string',
859
857
  quotaName: 'string',
860
858
  quotaType: 'string',
861
- resourceLevel: 'string',
862
859
  totalQuota: QuotaDetail,
863
860
  totalTideQuota: QuotaDetail,
864
861
  usedQuota: QuotaDetail,
@@ -871,6 +868,37 @@ export class Quota extends $tea.Model {
871
868
  }
872
869
  }
873
870
 
871
+ export class QuotaConfig extends $tea.Model {
872
+ allowedMaxPriority?: number;
873
+ enableDLC?: boolean;
874
+ enableDSW?: boolean;
875
+ enableTideResource?: boolean;
876
+ resourceLevel?: string;
877
+ static names(): { [key: string]: string } {
878
+ return {
879
+ allowedMaxPriority: 'AllowedMaxPriority',
880
+ enableDLC: 'EnableDLC',
881
+ enableDSW: 'EnableDSW',
882
+ enableTideResource: 'EnableTideResource',
883
+ resourceLevel: 'ResourceLevel',
884
+ };
885
+ }
886
+
887
+ static types(): { [key: string]: any } {
888
+ return {
889
+ allowedMaxPriority: 'number',
890
+ enableDLC: 'boolean',
891
+ enableDSW: 'boolean',
892
+ enableTideResource: 'boolean',
893
+ resourceLevel: 'string',
894
+ };
895
+ }
896
+
897
+ constructor(map?: { [key: string]: any }) {
898
+ super(map);
899
+ }
900
+ }
901
+
874
902
  export class QuotaDetail extends $tea.Model {
875
903
  CPU?: string;
876
904
  GPU?: string;
@@ -1162,6 +1190,7 @@ export class CreateJobRequest extends $tea.Model {
1162
1190
  priority?: number;
1163
1191
  resourceId?: string;
1164
1192
  settings?: JobSettings;
1193
+ successPolicy?: string;
1165
1194
  thirdpartyLibDir?: string;
1166
1195
  thirdpartyLibs?: string[];
1167
1196
  userCommand?: string;
@@ -1182,6 +1211,7 @@ export class CreateJobRequest extends $tea.Model {
1182
1211
  priority: 'Priority',
1183
1212
  resourceId: 'ResourceId',
1184
1213
  settings: 'Settings',
1214
+ successPolicy: 'SuccessPolicy',
1185
1215
  thirdpartyLibDir: 'ThirdpartyLibDir',
1186
1216
  thirdpartyLibs: 'ThirdpartyLibs',
1187
1217
  userCommand: 'UserCommand',
@@ -1205,6 +1235,7 @@ export class CreateJobRequest extends $tea.Model {
1205
1235
  priority: 'number',
1206
1236
  resourceId: 'string',
1207
1237
  settings: JobSettings,
1238
+ successPolicy: 'string',
1208
1239
  thirdpartyLibDir: 'string',
1209
1240
  thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
1210
1241
  userCommand: 'string',
@@ -2087,6 +2118,7 @@ export class ListJobsRequest extends $tea.Model {
2087
2118
  displayName?: string;
2088
2119
  endTime?: string;
2089
2120
  fromAllWorkspaces?: boolean;
2121
+ jobId?: string;
2090
2122
  jobType?: string;
2091
2123
  order?: string;
2092
2124
  pageNumber?: number;
@@ -2106,6 +2138,7 @@ export class ListJobsRequest extends $tea.Model {
2106
2138
  displayName: 'DisplayName',
2107
2139
  endTime: 'EndTime',
2108
2140
  fromAllWorkspaces: 'FromAllWorkspaces',
2141
+ jobId: 'JobId',
2109
2142
  jobType: 'JobType',
2110
2143
  order: 'Order',
2111
2144
  pageNumber: 'PageNumber',
@@ -2128,6 +2161,7 @@ export class ListJobsRequest extends $tea.Model {
2128
2161
  displayName: 'string',
2129
2162
  endTime: 'string',
2130
2163
  fromAllWorkspaces: 'boolean',
2164
+ jobId: 'string',
2131
2165
  jobType: 'string',
2132
2166
  order: 'string',
2133
2167
  pageNumber: 'number',
@@ -2154,6 +2188,7 @@ export class ListJobsShrinkRequest extends $tea.Model {
2154
2188
  displayName?: string;
2155
2189
  endTime?: string;
2156
2190
  fromAllWorkspaces?: boolean;
2191
+ jobId?: string;
2157
2192
  jobType?: string;
2158
2193
  order?: string;
2159
2194
  pageNumber?: number;
@@ -2173,6 +2208,7 @@ export class ListJobsShrinkRequest extends $tea.Model {
2173
2208
  displayName: 'DisplayName',
2174
2209
  endTime: 'EndTime',
2175
2210
  fromAllWorkspaces: 'FromAllWorkspaces',
2211
+ jobId: 'JobId',
2176
2212
  jobType: 'JobType',
2177
2213
  order: 'Order',
2178
2214
  pageNumber: 'PageNumber',
@@ -2195,6 +2231,7 @@ export class ListJobsShrinkRequest extends $tea.Model {
2195
2231
  displayName: 'string',
2196
2232
  endTime: 'string',
2197
2233
  fromAllWorkspaces: 'boolean',
2234
+ jobId: 'string',
2198
2235
  jobType: 'string',
2199
2236
  order: 'string',
2200
2237
  pageNumber: 'number',
@@ -2954,7 +2991,58 @@ export default class Client extends OpenApi {
2954
2991
  constructor(config: $OpenApi.Config) {
2955
2992
  super(config);
2956
2993
  this._signatureAlgorithm = "v2";
2957
- this._endpointRule = "";
2994
+ this._endpointRule = "regional";
2995
+ this._endpointMap = {
2996
+ 'ap-northeast-1': "pai-dlc.aliyuncs.com",
2997
+ 'ap-northeast-2-pop': "pai-dlc.aliyuncs.com",
2998
+ 'ap-south-1': "pai-dlc.aliyuncs.com",
2999
+ 'ap-southeast-2': "pai-dlc.aliyuncs.com",
3000
+ 'ap-southeast-3': "pai-dlc.aliyuncs.com",
3001
+ 'ap-southeast-5': "pai-dlc.aliyuncs.com",
3002
+ 'cn-beijing-finance-1': "pai-dlc.aliyuncs.com",
3003
+ 'cn-beijing-finance-pop': "pai-dlc.aliyuncs.com",
3004
+ 'cn-beijing-gov-1': "pai-dlc.aliyuncs.com",
3005
+ 'cn-beijing-nu16-b01': "pai-dlc.aliyuncs.com",
3006
+ 'cn-chengdu': "pai-dlc.aliyuncs.com",
3007
+ 'cn-edge-1': "pai-dlc.aliyuncs.com",
3008
+ 'cn-fujian': "pai-dlc.aliyuncs.com",
3009
+ 'cn-haidian-cm12-c01': "pai-dlc.aliyuncs.com",
3010
+ 'cn-hangzhou-bj-b01': "pai-dlc.aliyuncs.com",
3011
+ 'cn-hangzhou-finance': "pai-dlc.aliyuncs.com",
3012
+ 'cn-hangzhou-internal-prod-1': "pai-dlc.aliyuncs.com",
3013
+ 'cn-hangzhou-internal-test-1': "pai-dlc.aliyuncs.com",
3014
+ 'cn-hangzhou-internal-test-2': "pai-dlc.aliyuncs.com",
3015
+ 'cn-hangzhou-internal-test-3': "pai-dlc.aliyuncs.com",
3016
+ 'cn-hangzhou-test-306': "pai-dlc.aliyuncs.com",
3017
+ 'cn-hongkong-finance-pop': "pai-dlc.aliyuncs.com",
3018
+ 'cn-huhehaote': "pai-dlc.aliyuncs.com",
3019
+ 'cn-huhehaote-nebula-1': "pai-dlc.aliyuncs.com",
3020
+ 'cn-north-2-gov-1': "pai-dlc.aliyuncs.com",
3021
+ 'cn-qingdao': "pai-dlc.aliyuncs.com",
3022
+ 'cn-qingdao-nebula': "pai-dlc.aliyuncs.com",
3023
+ 'cn-shanghai-et15-b01': "pai-dlc.aliyuncs.com",
3024
+ 'cn-shanghai-et2-b01': "pai-dlc.aliyuncs.com",
3025
+ 'cn-shanghai-inner': "pai-dlc.aliyuncs.com",
3026
+ 'cn-shanghai-internal-test-1': "pai-dlc.aliyuncs.com",
3027
+ 'cn-shenzhen-finance-1': "pai-dlc.aliyuncs.com",
3028
+ 'cn-shenzhen-inner': "pai-dlc.aliyuncs.com",
3029
+ 'cn-shenzhen-st4-d01': "pai-dlc.aliyuncs.com",
3030
+ 'cn-shenzhen-su18-b01': "pai-dlc.aliyuncs.com",
3031
+ 'cn-wuhan': "pai-dlc.aliyuncs.com",
3032
+ 'cn-wulanchabu': "pai-dlc.aliyuncs.com",
3033
+ 'cn-yushanfang': "pai-dlc.aliyuncs.com",
3034
+ 'cn-zhangbei': "pai-dlc.aliyuncs.com",
3035
+ 'cn-zhangbei-na61-b01': "pai-dlc.aliyuncs.com",
3036
+ 'cn-zhangjiakou': "pai-dlc.aliyuncs.com",
3037
+ 'cn-zhangjiakou-na62-a01': "pai-dlc.aliyuncs.com",
3038
+ 'cn-zhengzhou-nebula-1': "pai-dlc.aliyuncs.com",
3039
+ 'eu-west-1': "pai-dlc.aliyuncs.com",
3040
+ 'eu-west-1-oxs': "pai-dlc.aliyuncs.com",
3041
+ 'me-east-1': "pai-dlc.aliyuncs.com",
3042
+ 'rus-west-1-pop': "pai-dlc.aliyuncs.com",
3043
+ 'us-east-1': "pai-dlc.aliyuncs.com",
3044
+ 'us-west-1': "pai-dlc.aliyuncs.com",
3045
+ };
2958
3046
  this.checkConfig(config);
2959
3047
  this._endpoint = this.getEndpoint("pai-dlc", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
2960
3048
  }
@@ -2972,16 +3060,10 @@ export default class Client extends OpenApi {
2972
3060
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2973
3061
  }
2974
3062
 
2975
- async createJob(request: CreateJobRequest): Promise<CreateJobResponse> {
2976
- let runtime = new $Util.RuntimeOptions({ });
2977
- let headers : {[key: string ]: string} = { };
2978
- return await this.createJobWithOptions(request, headers, runtime);
2979
- }
2980
-
2981
3063
  async createJobWithOptions(request: CreateJobRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateJobResponse> {
2982
3064
  Util.validateModel(request);
2983
3065
  let body : {[key: string ]: any} = { };
2984
- if (!Util.isUnset($tea.toMap(request.codeSource))) {
3066
+ if (!Util.isUnset(request.codeSource)) {
2985
3067
  body["CodeSource"] = request.codeSource;
2986
3068
  }
2987
3069
 
@@ -2997,7 +3079,7 @@ export default class Client extends OpenApi {
2997
3079
  body["DisplayName"] = request.displayName;
2998
3080
  }
2999
3081
 
3000
- if (!Util.isUnset($tea.toMap(request.elasticSpec))) {
3082
+ if (!Util.isUnset(request.elasticSpec)) {
3001
3083
  body["ElasticSpec"] = request.elasticSpec;
3002
3084
  }
3003
3085
 
@@ -3029,10 +3111,14 @@ export default class Client extends OpenApi {
3029
3111
  body["ResourceId"] = request.resourceId;
3030
3112
  }
3031
3113
 
3032
- if (!Util.isUnset($tea.toMap(request.settings))) {
3114
+ if (!Util.isUnset(request.settings)) {
3033
3115
  body["Settings"] = request.settings;
3034
3116
  }
3035
3117
 
3118
+ if (!Util.isUnset(request.successPolicy)) {
3119
+ body["SuccessPolicy"] = request.successPolicy;
3120
+ }
3121
+
3036
3122
  if (!Util.isUnset(request.thirdpartyLibDir)) {
3037
3123
  body["ThirdpartyLibDir"] = request.thirdpartyLibDir;
3038
3124
  }
@@ -3045,7 +3131,7 @@ export default class Client extends OpenApi {
3045
3131
  body["UserCommand"] = request.userCommand;
3046
3132
  }
3047
3133
 
3048
- if (!Util.isUnset($tea.toMap(request.userVpc))) {
3134
+ if (!Util.isUnset(request.userVpc)) {
3049
3135
  body["UserVpc"] = request.userVpc;
3050
3136
  }
3051
3137
 
@@ -3071,10 +3157,10 @@ export default class Client extends OpenApi {
3071
3157
  return $tea.cast<CreateJobResponse>(await this.callApi(params, req, runtime), new CreateJobResponse({}));
3072
3158
  }
3073
3159
 
3074
- async createTensorboard(request: CreateTensorboardRequest): Promise<CreateTensorboardResponse> {
3160
+ async createJob(request: CreateJobRequest): Promise<CreateJobResponse> {
3075
3161
  let runtime = new $Util.RuntimeOptions({ });
3076
3162
  let headers : {[key: string ]: string} = { };
3077
- return await this.createTensorboardWithOptions(request, headers, runtime);
3163
+ return await this.createJobWithOptions(request, headers, runtime);
3078
3164
  }
3079
3165
 
3080
3166
  async createTensorboardWithOptions(request: CreateTensorboardRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateTensorboardResponse> {
@@ -3150,14 +3236,13 @@ export default class Client extends OpenApi {
3150
3236
  return $tea.cast<CreateTensorboardResponse>(await this.callApi(params, req, runtime), new CreateTensorboardResponse({}));
3151
3237
  }
3152
3238
 
3153
- async deleteJob(JobId: string): Promise<DeleteJobResponse> {
3239
+ async createTensorboard(request: CreateTensorboardRequest): Promise<CreateTensorboardResponse> {
3154
3240
  let runtime = new $Util.RuntimeOptions({ });
3155
3241
  let headers : {[key: string ]: string} = { };
3156
- return await this.deleteJobWithOptions(JobId, headers, runtime);
3242
+ return await this.createTensorboardWithOptions(request, headers, runtime);
3157
3243
  }
3158
3244
 
3159
3245
  async deleteJobWithOptions(JobId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteJobResponse> {
3160
- JobId = OpenApiUtil.getEncodeParam(JobId);
3161
3246
  let req = new $OpenApi.OpenApiRequest({
3162
3247
  headers: headers,
3163
3248
  });
@@ -3165,7 +3250,7 @@ export default class Client extends OpenApi {
3165
3250
  action: "DeleteJob",
3166
3251
  version: "2020-12-03",
3167
3252
  protocol: "HTTPS",
3168
- pathname: `/api/v1/jobs/${JobId}`,
3253
+ pathname: `/api/v1/jobs/${OpenApiUtil.getEncodeParam(JobId)}`,
3169
3254
  method: "DELETE",
3170
3255
  authType: "AK",
3171
3256
  style: "ROA",
@@ -3175,15 +3260,14 @@ export default class Client extends OpenApi {
3175
3260
  return $tea.cast<DeleteJobResponse>(await this.callApi(params, req, runtime), new DeleteJobResponse({}));
3176
3261
  }
3177
3262
 
3178
- async deleteTensorboard(TensorboardId: string, request: DeleteTensorboardRequest): Promise<DeleteTensorboardResponse> {
3263
+ async deleteJob(JobId: string): Promise<DeleteJobResponse> {
3179
3264
  let runtime = new $Util.RuntimeOptions({ });
3180
3265
  let headers : {[key: string ]: string} = { };
3181
- return await this.deleteTensorboardWithOptions(TensorboardId, request, headers, runtime);
3266
+ return await this.deleteJobWithOptions(JobId, headers, runtime);
3182
3267
  }
3183
3268
 
3184
3269
  async deleteTensorboardWithOptions(TensorboardId: string, request: DeleteTensorboardRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteTensorboardResponse> {
3185
3270
  Util.validateModel(request);
3186
- TensorboardId = OpenApiUtil.getEncodeParam(TensorboardId);
3187
3271
  let query : {[key: string ]: any} = { };
3188
3272
  if (!Util.isUnset(request.workspaceId)) {
3189
3273
  query["WorkspaceId"] = request.workspaceId;
@@ -3197,7 +3281,7 @@ export default class Client extends OpenApi {
3197
3281
  action: "DeleteTensorboard",
3198
3282
  version: "2020-12-03",
3199
3283
  protocol: "HTTPS",
3200
- pathname: `/api/v1/tensorboards/${TensorboardId}`,
3284
+ pathname: `/api/v1/tensorboards/${OpenApiUtil.getEncodeParam(TensorboardId)}`,
3201
3285
  method: "DELETE",
3202
3286
  authType: "AK",
3203
3287
  style: "ROA",
@@ -3207,14 +3291,13 @@ export default class Client extends OpenApi {
3207
3291
  return $tea.cast<DeleteTensorboardResponse>(await this.callApi(params, req, runtime), new DeleteTensorboardResponse({}));
3208
3292
  }
3209
3293
 
3210
- async getJob(JobId: string): Promise<GetJobResponse> {
3294
+ async deleteTensorboard(TensorboardId: string, request: DeleteTensorboardRequest): Promise<DeleteTensorboardResponse> {
3211
3295
  let runtime = new $Util.RuntimeOptions({ });
3212
3296
  let headers : {[key: string ]: string} = { };
3213
- return await this.getJobWithOptions(JobId, headers, runtime);
3297
+ return await this.deleteTensorboardWithOptions(TensorboardId, request, headers, runtime);
3214
3298
  }
3215
3299
 
3216
3300
  async getJobWithOptions(JobId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetJobResponse> {
3217
- JobId = OpenApiUtil.getEncodeParam(JobId);
3218
3301
  let req = new $OpenApi.OpenApiRequest({
3219
3302
  headers: headers,
3220
3303
  });
@@ -3222,7 +3305,7 @@ export default class Client extends OpenApi {
3222
3305
  action: "GetJob",
3223
3306
  version: "2020-12-03",
3224
3307
  protocol: "HTTPS",
3225
- pathname: `/api/v1/jobs/${JobId}`,
3308
+ pathname: `/api/v1/jobs/${OpenApiUtil.getEncodeParam(JobId)}`,
3226
3309
  method: "GET",
3227
3310
  authType: "AK",
3228
3311
  style: "ROA",
@@ -3232,15 +3315,14 @@ export default class Client extends OpenApi {
3232
3315
  return $tea.cast<GetJobResponse>(await this.callApi(params, req, runtime), new GetJobResponse({}));
3233
3316
  }
3234
3317
 
3235
- async getJobEvents(JobId: string, request: GetJobEventsRequest): Promise<GetJobEventsResponse> {
3318
+ async getJob(JobId: string): Promise<GetJobResponse> {
3236
3319
  let runtime = new $Util.RuntimeOptions({ });
3237
3320
  let headers : {[key: string ]: string} = { };
3238
- return await this.getJobEventsWithOptions(JobId, request, headers, runtime);
3321
+ return await this.getJobWithOptions(JobId, headers, runtime);
3239
3322
  }
3240
3323
 
3241
3324
  async getJobEventsWithOptions(JobId: string, request: GetJobEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetJobEventsResponse> {
3242
3325
  Util.validateModel(request);
3243
- JobId = OpenApiUtil.getEncodeParam(JobId);
3244
3326
  let query : {[key: string ]: any} = { };
3245
3327
  if (!Util.isUnset(request.endTime)) {
3246
3328
  query["EndTime"] = request.endTime;
@@ -3262,7 +3344,7 @@ export default class Client extends OpenApi {
3262
3344
  action: "GetJobEvents",
3263
3345
  version: "2020-12-03",
3264
3346
  protocol: "HTTPS",
3265
- pathname: `/api/v1/jobs/${JobId}/events`,
3347
+ pathname: `/api/v1/jobs/${OpenApiUtil.getEncodeParam(JobId)}/events`,
3266
3348
  method: "GET",
3267
3349
  authType: "AK",
3268
3350
  style: "ROA",
@@ -3272,15 +3354,14 @@ export default class Client extends OpenApi {
3272
3354
  return $tea.cast<GetJobEventsResponse>(await this.callApi(params, req, runtime), new GetJobEventsResponse({}));
3273
3355
  }
3274
3356
 
3275
- async getJobMetrics(JobId: string, request: GetJobMetricsRequest): Promise<GetJobMetricsResponse> {
3357
+ async getJobEvents(JobId: string, request: GetJobEventsRequest): Promise<GetJobEventsResponse> {
3276
3358
  let runtime = new $Util.RuntimeOptions({ });
3277
3359
  let headers : {[key: string ]: string} = { };
3278
- return await this.getJobMetricsWithOptions(JobId, request, headers, runtime);
3360
+ return await this.getJobEventsWithOptions(JobId, request, headers, runtime);
3279
3361
  }
3280
3362
 
3281
3363
  async getJobMetricsWithOptions(JobId: string, request: GetJobMetricsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetJobMetricsResponse> {
3282
3364
  Util.validateModel(request);
3283
- JobId = OpenApiUtil.getEncodeParam(JobId);
3284
3365
  let query : {[key: string ]: any} = { };
3285
3366
  if (!Util.isUnset(request.endTime)) {
3286
3367
  query["EndTime"] = request.endTime;
@@ -3310,7 +3391,7 @@ export default class Client extends OpenApi {
3310
3391
  action: "GetJobMetrics",
3311
3392
  version: "2020-12-03",
3312
3393
  protocol: "HTTPS",
3313
- pathname: `/api/v1/jobs/${JobId}/metrics`,
3394
+ pathname: `/api/v1/jobs/${OpenApiUtil.getEncodeParam(JobId)}/metrics`,
3314
3395
  method: "GET",
3315
3396
  authType: "AK",
3316
3397
  style: "ROA",
@@ -3320,16 +3401,14 @@ export default class Client extends OpenApi {
3320
3401
  return $tea.cast<GetJobMetricsResponse>(await this.callApi(params, req, runtime), new GetJobMetricsResponse({}));
3321
3402
  }
3322
3403
 
3323
- async getPodEvents(JobId: string, PodId: string, request: GetPodEventsRequest): Promise<GetPodEventsResponse> {
3404
+ async getJobMetrics(JobId: string, request: GetJobMetricsRequest): Promise<GetJobMetricsResponse> {
3324
3405
  let runtime = new $Util.RuntimeOptions({ });
3325
3406
  let headers : {[key: string ]: string} = { };
3326
- return await this.getPodEventsWithOptions(JobId, PodId, request, headers, runtime);
3407
+ return await this.getJobMetricsWithOptions(JobId, request, headers, runtime);
3327
3408
  }
3328
3409
 
3329
3410
  async getPodEventsWithOptions(JobId: string, PodId: string, request: GetPodEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetPodEventsResponse> {
3330
3411
  Util.validateModel(request);
3331
- JobId = OpenApiUtil.getEncodeParam(JobId);
3332
- PodId = OpenApiUtil.getEncodeParam(PodId);
3333
3412
  let query : {[key: string ]: any} = { };
3334
3413
  if (!Util.isUnset(request.endTime)) {
3335
3414
  query["EndTime"] = request.endTime;
@@ -3355,7 +3434,7 @@ export default class Client extends OpenApi {
3355
3434
  action: "GetPodEvents",
3356
3435
  version: "2020-12-03",
3357
3436
  protocol: "HTTPS",
3358
- pathname: `/api/v1/jobs/${JobId}/pods/${PodId}/events`,
3437
+ pathname: `/api/v1/jobs/${OpenApiUtil.getEncodeParam(JobId)}/pods/${OpenApiUtil.getEncodeParam(PodId)}/events`,
3359
3438
  method: "GET",
3360
3439
  authType: "AK",
3361
3440
  style: "ROA",
@@ -3365,16 +3444,14 @@ export default class Client extends OpenApi {
3365
3444
  return $tea.cast<GetPodEventsResponse>(await this.callApi(params, req, runtime), new GetPodEventsResponse({}));
3366
3445
  }
3367
3446
 
3368
- async getPodLogs(JobId: string, PodId: string, request: GetPodLogsRequest): Promise<GetPodLogsResponse> {
3447
+ async getPodEvents(JobId: string, PodId: string, request: GetPodEventsRequest): Promise<GetPodEventsResponse> {
3369
3448
  let runtime = new $Util.RuntimeOptions({ });
3370
3449
  let headers : {[key: string ]: string} = { };
3371
- return await this.getPodLogsWithOptions(JobId, PodId, request, headers, runtime);
3450
+ return await this.getPodEventsWithOptions(JobId, PodId, request, headers, runtime);
3372
3451
  }
3373
3452
 
3374
3453
  async getPodLogsWithOptions(JobId: string, PodId: string, request: GetPodLogsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetPodLogsResponse> {
3375
3454
  Util.validateModel(request);
3376
- JobId = OpenApiUtil.getEncodeParam(JobId);
3377
- PodId = OpenApiUtil.getEncodeParam(PodId);
3378
3455
  let query : {[key: string ]: any} = { };
3379
3456
  if (!Util.isUnset(request.downloadToFile)) {
3380
3457
  query["DownloadToFile"] = request.downloadToFile;
@@ -3404,7 +3481,7 @@ export default class Client extends OpenApi {
3404
3481
  action: "GetPodLogs",
3405
3482
  version: "2020-12-03",
3406
3483
  protocol: "HTTPS",
3407
- pathname: `/api/v1/jobs/${JobId}/pods/${PodId}/logs`,
3484
+ pathname: `/api/v1/jobs/${OpenApiUtil.getEncodeParam(JobId)}/pods/${OpenApiUtil.getEncodeParam(PodId)}/logs`,
3408
3485
  method: "GET",
3409
3486
  authType: "AK",
3410
3487
  style: "ROA",
@@ -3414,15 +3491,14 @@ export default class Client extends OpenApi {
3414
3491
  return $tea.cast<GetPodLogsResponse>(await this.callApi(params, req, runtime), new GetPodLogsResponse({}));
3415
3492
  }
3416
3493
 
3417
- async getTensorboard(TensorboardId: string, request: GetTensorboardRequest): Promise<GetTensorboardResponse> {
3494
+ async getPodLogs(JobId: string, PodId: string, request: GetPodLogsRequest): Promise<GetPodLogsResponse> {
3418
3495
  let runtime = new $Util.RuntimeOptions({ });
3419
3496
  let headers : {[key: string ]: string} = { };
3420
- return await this.getTensorboardWithOptions(TensorboardId, request, headers, runtime);
3497
+ return await this.getPodLogsWithOptions(JobId, PodId, request, headers, runtime);
3421
3498
  }
3422
3499
 
3423
3500
  async getTensorboardWithOptions(TensorboardId: string, request: GetTensorboardRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetTensorboardResponse> {
3424
3501
  Util.validateModel(request);
3425
- TensorboardId = OpenApiUtil.getEncodeParam(TensorboardId);
3426
3502
  let query : {[key: string ]: any} = { };
3427
3503
  if (!Util.isUnset(request.jodId)) {
3428
3504
  query["JodId"] = request.jodId;
@@ -3440,7 +3516,7 @@ export default class Client extends OpenApi {
3440
3516
  action: "GetTensorboard",
3441
3517
  version: "2020-12-03",
3442
3518
  protocol: "HTTPS",
3443
- pathname: `/api/v1/tensorboards/${TensorboardId}`,
3519
+ pathname: `/api/v1/tensorboards/${OpenApiUtil.getEncodeParam(TensorboardId)}`,
3444
3520
  method: "GET",
3445
3521
  authType: "AK",
3446
3522
  style: "ROA",
@@ -3450,10 +3526,10 @@ export default class Client extends OpenApi {
3450
3526
  return $tea.cast<GetTensorboardResponse>(await this.callApi(params, req, runtime), new GetTensorboardResponse({}));
3451
3527
  }
3452
3528
 
3453
- async listEcsSpecs(request: ListEcsSpecsRequest): Promise<ListEcsSpecsResponse> {
3529
+ async getTensorboard(TensorboardId: string, request: GetTensorboardRequest): Promise<GetTensorboardResponse> {
3454
3530
  let runtime = new $Util.RuntimeOptions({ });
3455
3531
  let headers : {[key: string ]: string} = { };
3456
- return await this.listEcsSpecsWithOptions(request, headers, runtime);
3532
+ return await this.getTensorboardWithOptions(TensorboardId, request, headers, runtime);
3457
3533
  }
3458
3534
 
3459
3535
  async listEcsSpecsWithOptions(request: ListEcsSpecsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListEcsSpecsResponse> {
@@ -3497,10 +3573,10 @@ export default class Client extends OpenApi {
3497
3573
  return $tea.cast<ListEcsSpecsResponse>(await this.callApi(params, req, runtime), new ListEcsSpecsResponse({}));
3498
3574
  }
3499
3575
 
3500
- async listJobs(request: ListJobsRequest): Promise<ListJobsResponse> {
3576
+ async listEcsSpecs(request: ListEcsSpecsRequest): Promise<ListEcsSpecsResponse> {
3501
3577
  let runtime = new $Util.RuntimeOptions({ });
3502
3578
  let headers : {[key: string ]: string} = { };
3503
- return await this.listJobsWithOptions(request, headers, runtime);
3579
+ return await this.listEcsSpecsWithOptions(request, headers, runtime);
3504
3580
  }
3505
3581
 
3506
3582
  async listJobsWithOptions(tmpReq: ListJobsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListJobsResponse> {
@@ -3532,6 +3608,10 @@ export default class Client extends OpenApi {
3532
3608
  query["FromAllWorkspaces"] = request.fromAllWorkspaces;
3533
3609
  }
3534
3610
 
3611
+ if (!Util.isUnset(request.jobId)) {
3612
+ query["JobId"] = request.jobId;
3613
+ }
3614
+
3535
3615
  if (!Util.isUnset(request.jobType)) {
3536
3616
  query["JobType"] = request.jobType;
3537
3617
  }
@@ -3598,10 +3678,10 @@ export default class Client extends OpenApi {
3598
3678
  return $tea.cast<ListJobsResponse>(await this.callApi(params, req, runtime), new ListJobsResponse({}));
3599
3679
  }
3600
3680
 
3601
- async listTensorboards(request: ListTensorboardsRequest): Promise<ListTensorboardsResponse> {
3681
+ async listJobs(request: ListJobsRequest): Promise<ListJobsResponse> {
3602
3682
  let runtime = new $Util.RuntimeOptions({ });
3603
3683
  let headers : {[key: string ]: string} = { };
3604
- return await this.listTensorboardsWithOptions(request, headers, runtime);
3684
+ return await this.listJobsWithOptions(request, headers, runtime);
3605
3685
  }
3606
3686
 
3607
3687
  async listTensorboardsWithOptions(request: ListTensorboardsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListTensorboardsResponse> {
@@ -3681,15 +3761,14 @@ export default class Client extends OpenApi {
3681
3761
  return $tea.cast<ListTensorboardsResponse>(await this.callApi(params, req, runtime), new ListTensorboardsResponse({}));
3682
3762
  }
3683
3763
 
3684
- async startTensorboard(TensorboardId: string, request: StartTensorboardRequest): Promise<StartTensorboardResponse> {
3764
+ async listTensorboards(request: ListTensorboardsRequest): Promise<ListTensorboardsResponse> {
3685
3765
  let runtime = new $Util.RuntimeOptions({ });
3686
3766
  let headers : {[key: string ]: string} = { };
3687
- return await this.startTensorboardWithOptions(TensorboardId, request, headers, runtime);
3767
+ return await this.listTensorboardsWithOptions(request, headers, runtime);
3688
3768
  }
3689
3769
 
3690
3770
  async startTensorboardWithOptions(TensorboardId: string, request: StartTensorboardRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartTensorboardResponse> {
3691
3771
  Util.validateModel(request);
3692
- TensorboardId = OpenApiUtil.getEncodeParam(TensorboardId);
3693
3772
  let query : {[key: string ]: any} = { };
3694
3773
  if (!Util.isUnset(request.workspaceId)) {
3695
3774
  query["WorkspaceId"] = request.workspaceId;
@@ -3703,7 +3782,7 @@ export default class Client extends OpenApi {
3703
3782
  action: "StartTensorboard",
3704
3783
  version: "2020-12-03",
3705
3784
  protocol: "HTTPS",
3706
- pathname: `/api/v1/tensorboards/${TensorboardId}/start`,
3785
+ pathname: `/api/v1/tensorboards/${OpenApiUtil.getEncodeParam(TensorboardId)}/start`,
3707
3786
  method: "PUT",
3708
3787
  authType: "AK",
3709
3788
  style: "ROA",
@@ -3713,14 +3792,13 @@ export default class Client extends OpenApi {
3713
3792
  return $tea.cast<StartTensorboardResponse>(await this.callApi(params, req, runtime), new StartTensorboardResponse({}));
3714
3793
  }
3715
3794
 
3716
- async stopJob(JobId: string): Promise<StopJobResponse> {
3795
+ async startTensorboard(TensorboardId: string, request: StartTensorboardRequest): Promise<StartTensorboardResponse> {
3717
3796
  let runtime = new $Util.RuntimeOptions({ });
3718
3797
  let headers : {[key: string ]: string} = { };
3719
- return await this.stopJobWithOptions(JobId, headers, runtime);
3798
+ return await this.startTensorboardWithOptions(TensorboardId, request, headers, runtime);
3720
3799
  }
3721
3800
 
3722
3801
  async stopJobWithOptions(JobId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopJobResponse> {
3723
- JobId = OpenApiUtil.getEncodeParam(JobId);
3724
3802
  let req = new $OpenApi.OpenApiRequest({
3725
3803
  headers: headers,
3726
3804
  });
@@ -3728,7 +3806,7 @@ export default class Client extends OpenApi {
3728
3806
  action: "StopJob",
3729
3807
  version: "2020-12-03",
3730
3808
  protocol: "HTTPS",
3731
- pathname: `/api/v1/jobs/${JobId}/stop`,
3809
+ pathname: `/api/v1/jobs/${OpenApiUtil.getEncodeParam(JobId)}/stop`,
3732
3810
  method: "POST",
3733
3811
  authType: "AK",
3734
3812
  style: "ROA",
@@ -3738,15 +3816,14 @@ export default class Client extends OpenApi {
3738
3816
  return $tea.cast<StopJobResponse>(await this.callApi(params, req, runtime), new StopJobResponse({}));
3739
3817
  }
3740
3818
 
3741
- async stopTensorboard(TensorboardId: string, request: StopTensorboardRequest): Promise<StopTensorboardResponse> {
3819
+ async stopJob(JobId: string): Promise<StopJobResponse> {
3742
3820
  let runtime = new $Util.RuntimeOptions({ });
3743
3821
  let headers : {[key: string ]: string} = { };
3744
- return await this.stopTensorboardWithOptions(TensorboardId, request, headers, runtime);
3822
+ return await this.stopJobWithOptions(JobId, headers, runtime);
3745
3823
  }
3746
3824
 
3747
3825
  async stopTensorboardWithOptions(TensorboardId: string, request: StopTensorboardRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopTensorboardResponse> {
3748
3826
  Util.validateModel(request);
3749
- TensorboardId = OpenApiUtil.getEncodeParam(TensorboardId);
3750
3827
  let query : {[key: string ]: any} = { };
3751
3828
  if (!Util.isUnset(request.workspaceId)) {
3752
3829
  query["WorkspaceId"] = request.workspaceId;
@@ -3760,7 +3837,7 @@ export default class Client extends OpenApi {
3760
3837
  action: "StopTensorboard",
3761
3838
  version: "2020-12-03",
3762
3839
  protocol: "HTTPS",
3763
- pathname: `/api/v1/tensorboards/${TensorboardId}/stop`,
3840
+ pathname: `/api/v1/tensorboards/${OpenApiUtil.getEncodeParam(TensorboardId)}/stop`,
3764
3841
  method: "PUT",
3765
3842
  authType: "AK",
3766
3843
  style: "ROA",
@@ -3770,15 +3847,14 @@ export default class Client extends OpenApi {
3770
3847
  return $tea.cast<StopTensorboardResponse>(await this.callApi(params, req, runtime), new StopTensorboardResponse({}));
3771
3848
  }
3772
3849
 
3773
- async updateJob(JobId: string, request: UpdateJobRequest): Promise<UpdateJobResponse> {
3850
+ async stopTensorboard(TensorboardId: string, request: StopTensorboardRequest): Promise<StopTensorboardResponse> {
3774
3851
  let runtime = new $Util.RuntimeOptions({ });
3775
3852
  let headers : {[key: string ]: string} = { };
3776
- return await this.updateJobWithOptions(JobId, request, headers, runtime);
3853
+ return await this.stopTensorboardWithOptions(TensorboardId, request, headers, runtime);
3777
3854
  }
3778
3855
 
3779
3856
  async updateJobWithOptions(JobId: string, request: UpdateJobRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateJobResponse> {
3780
3857
  Util.validateModel(request);
3781
- JobId = OpenApiUtil.getEncodeParam(JobId);
3782
3858
  let body : {[key: string ]: any} = { };
3783
3859
  if (!Util.isUnset(request.priority)) {
3784
3860
  body["Priority"] = request.priority;
@@ -3792,7 +3868,7 @@ export default class Client extends OpenApi {
3792
3868
  action: "UpdateJob",
3793
3869
  version: "2020-12-03",
3794
3870
  protocol: "HTTPS",
3795
- pathname: `/api/v1/jobs/${JobId}`,
3871
+ pathname: `/api/v1/jobs/${OpenApiUtil.getEncodeParam(JobId)}`,
3796
3872
  method: "PUT",
3797
3873
  authType: "AK",
3798
3874
  style: "ROA",
@@ -3802,15 +3878,14 @@ export default class Client extends OpenApi {
3802
3878
  return $tea.cast<UpdateJobResponse>(await this.callApi(params, req, runtime), new UpdateJobResponse({}));
3803
3879
  }
3804
3880
 
3805
- async updateTensorboard(TensorboardId: string, request: UpdateTensorboardRequest): Promise<UpdateTensorboardResponse> {
3881
+ async updateJob(JobId: string, request: UpdateJobRequest): Promise<UpdateJobResponse> {
3806
3882
  let runtime = new $Util.RuntimeOptions({ });
3807
3883
  let headers : {[key: string ]: string} = { };
3808
- return await this.updateTensorboardWithOptions(TensorboardId, request, headers, runtime);
3884
+ return await this.updateJobWithOptions(JobId, request, headers, runtime);
3809
3885
  }
3810
3886
 
3811
3887
  async updateTensorboardWithOptions(TensorboardId: string, request: UpdateTensorboardRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateTensorboardResponse> {
3812
3888
  Util.validateModel(request);
3813
- TensorboardId = OpenApiUtil.getEncodeParam(TensorboardId);
3814
3889
  let query : {[key: string ]: any} = { };
3815
3890
  if (!Util.isUnset(request.maxRunningTimeMinutes)) {
3816
3891
  query["MaxRunningTimeMinutes"] = request.maxRunningTimeMinutes;
@@ -3828,7 +3903,7 @@ export default class Client extends OpenApi {
3828
3903
  action: "UpdateTensorboard",
3829
3904
  version: "2020-12-03",
3830
3905
  protocol: "HTTPS",
3831
- pathname: `/api/v1/tensorboards/${TensorboardId}`,
3906
+ pathname: `/api/v1/tensorboards/${OpenApiUtil.getEncodeParam(TensorboardId)}`,
3832
3907
  method: "PUT",
3833
3908
  authType: "AK",
3834
3909
  style: "ROA",
@@ -3838,4 +3913,10 @@ export default class Client extends OpenApi {
3838
3913
  return $tea.cast<UpdateTensorboardResponse>(await this.callApi(params, req, runtime), new UpdateTensorboardResponse({}));
3839
3914
  }
3840
3915
 
3916
+ async updateTensorboard(TensorboardId: string, request: UpdateTensorboardRequest): Promise<UpdateTensorboardResponse> {
3917
+ let runtime = new $Util.RuntimeOptions({ });
3918
+ let headers : {[key: string ]: string} = { };
3919
+ return await this.updateTensorboardWithOptions(TensorboardId, request, headers, runtime);
3920
+ }
3921
+
3841
3922
  }