@alicloud/eas20210701 2.0.2 → 2.0.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/dist/client.js CHANGED
@@ -64,9 +64,13 @@ class Instance extends $tea.Model {
64
64
  namespace: 'Namespace',
65
65
  readyProcesses: 'ReadyProcesses',
66
66
  reason: 'Reason',
67
+ resourceType: 'ResourceType',
67
68
  restartCount: 'RestartCount',
69
+ role: 'Role',
68
70
  startAt: 'StartAt',
69
71
  status: 'Status',
72
+ tenantHostIP: 'TenantHostIP',
73
+ tenantInstanceIP: 'TenantInstanceIP',
70
74
  totalProcesses: 'TotalProcesses',
71
75
  };
72
76
  }
@@ -81,9 +85,13 @@ class Instance extends $tea.Model {
81
85
  namespace: 'string',
82
86
  readyProcesses: 'number',
83
87
  reason: 'string',
88
+ resourceType: 'string',
84
89
  restartCount: 'number',
90
+ role: 'string',
85
91
  startAt: 'string',
86
92
  status: 'string',
93
+ tenantHostIP: 'string',
94
+ tenantInstanceIP: 'string',
87
95
  totalProcesses: 'number',
88
96
  };
89
97
  }
@@ -148,9 +156,11 @@ class ResourceInstance extends $tea.Model {
148
156
  instanceMemory: 'InstanceMemory',
149
157
  instanceName: 'InstanceName',
150
158
  instanceStatus: 'InstanceStatus',
159
+ instanceTenantIp: 'InstanceTenantIp',
151
160
  instanceType: 'InstanceType',
152
161
  instanceUsedCpu: 'InstanceUsedCpu',
153
162
  instanceUsedGpu: 'InstanceUsedGpu',
163
+ instanceUsedGpuMemory: 'InstanceUsedGpuMemory',
154
164
  instanceUsedMemory: 'InstanceUsedMemory',
155
165
  region: 'Region',
156
166
  zone: 'Zone',
@@ -171,9 +181,11 @@ class ResourceInstance extends $tea.Model {
171
181
  instanceMemory: 'string',
172
182
  instanceName: 'string',
173
183
  instanceStatus: 'string',
184
+ instanceTenantIp: 'string',
174
185
  instanceType: 'string',
175
186
  instanceUsedCpu: 'number',
176
187
  instanceUsedGpu: 'number',
188
+ instanceUsedGpuMemory: 'string',
177
189
  instanceUsedMemory: 'string',
178
190
  region: 'string',
179
191
  zone: 'string',
@@ -235,6 +247,7 @@ class Service extends $tea.Model {
235
247
  image: 'Image',
236
248
  internetEndpoint: 'InternetEndpoint',
237
249
  intranetEndpoint: 'IntranetEndpoint',
250
+ labels: 'Labels',
238
251
  latestVersion: 'LatestVersion',
239
252
  memory: 'Memory',
240
253
  message: 'Message',
@@ -274,6 +287,7 @@ class Service extends $tea.Model {
274
287
  image: 'string',
275
288
  internetEndpoint: 'string',
276
289
  intranetEndpoint: 'string',
290
+ labels: { 'type': 'array', 'itemType': ServiceLabels },
277
291
  latestVersion: 'number',
278
292
  memory: 'number',
279
293
  message: 'string',
@@ -303,6 +317,44 @@ class Service extends $tea.Model {
303
317
  }
304
318
  }
305
319
  exports.Service = Service;
320
+ class CommitServiceResponseBody extends $tea.Model {
321
+ constructor(map) {
322
+ super(map);
323
+ }
324
+ static names() {
325
+ return {
326
+ message: 'Message',
327
+ requestId: 'RequestId',
328
+ };
329
+ }
330
+ static types() {
331
+ return {
332
+ message: 'string',
333
+ requestId: 'string',
334
+ };
335
+ }
336
+ }
337
+ exports.CommitServiceResponseBody = CommitServiceResponseBody;
338
+ class CommitServiceResponse extends $tea.Model {
339
+ constructor(map) {
340
+ super(map);
341
+ }
342
+ static names() {
343
+ return {
344
+ headers: 'headers',
345
+ statusCode: 'statusCode',
346
+ body: 'body',
347
+ };
348
+ }
349
+ static types() {
350
+ return {
351
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
352
+ statusCode: 'number',
353
+ body: CommitServiceResponseBody,
354
+ };
355
+ }
356
+ }
357
+ exports.CommitServiceResponse = CommitServiceResponse;
306
358
  class CreateBenchmarkTaskRequest extends $tea.Model {
307
359
  constructor(map) {
308
360
  super(map);
@@ -551,16 +603,40 @@ class CreateServiceRequest extends $tea.Model {
551
603
  }
552
604
  static names() {
553
605
  return {
606
+ develop: 'Develop',
607
+ labels: 'Labels',
554
608
  body: 'body',
555
609
  };
556
610
  }
557
611
  static types() {
558
612
  return {
613
+ develop: 'string',
614
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
559
615
  body: 'string',
560
616
  };
561
617
  }
562
618
  }
563
619
  exports.CreateServiceRequest = CreateServiceRequest;
620
+ class CreateServiceShrinkRequest extends $tea.Model {
621
+ constructor(map) {
622
+ super(map);
623
+ }
624
+ static names() {
625
+ return {
626
+ develop: 'Develop',
627
+ labelsShrink: 'Labels',
628
+ body: 'body',
629
+ };
630
+ }
631
+ static types() {
632
+ return {
633
+ develop: 'string',
634
+ labelsShrink: 'string',
635
+ body: 'string',
636
+ };
637
+ }
638
+ }
639
+ exports.CreateServiceShrinkRequest = CreateServiceShrinkRequest;
564
640
  class CreateServiceResponseBody extends $tea.Model {
565
641
  constructor(map) {
566
642
  super(map);
@@ -1155,6 +1231,76 @@ class DeleteServiceInstancesResponse extends $tea.Model {
1155
1231
  }
1156
1232
  }
1157
1233
  exports.DeleteServiceInstancesResponse = DeleteServiceInstancesResponse;
1234
+ class DeleteServiceLabelRequest extends $tea.Model {
1235
+ constructor(map) {
1236
+ super(map);
1237
+ }
1238
+ static names() {
1239
+ return {
1240
+ keys: 'Keys',
1241
+ };
1242
+ }
1243
+ static types() {
1244
+ return {
1245
+ keys: { 'type': 'array', 'itemType': 'string' },
1246
+ };
1247
+ }
1248
+ }
1249
+ exports.DeleteServiceLabelRequest = DeleteServiceLabelRequest;
1250
+ class DeleteServiceLabelShrinkRequest extends $tea.Model {
1251
+ constructor(map) {
1252
+ super(map);
1253
+ }
1254
+ static names() {
1255
+ return {
1256
+ keysShrink: 'Keys',
1257
+ };
1258
+ }
1259
+ static types() {
1260
+ return {
1261
+ keysShrink: 'string',
1262
+ };
1263
+ }
1264
+ }
1265
+ exports.DeleteServiceLabelShrinkRequest = DeleteServiceLabelShrinkRequest;
1266
+ class DeleteServiceLabelResponseBody extends $tea.Model {
1267
+ constructor(map) {
1268
+ super(map);
1269
+ }
1270
+ static names() {
1271
+ return {
1272
+ message: 'Message',
1273
+ requestId: 'RequestId',
1274
+ };
1275
+ }
1276
+ static types() {
1277
+ return {
1278
+ message: 'string',
1279
+ requestId: 'string',
1280
+ };
1281
+ }
1282
+ }
1283
+ exports.DeleteServiceLabelResponseBody = DeleteServiceLabelResponseBody;
1284
+ class DeleteServiceLabelResponse extends $tea.Model {
1285
+ constructor(map) {
1286
+ super(map);
1287
+ }
1288
+ static names() {
1289
+ return {
1290
+ headers: 'headers',
1291
+ statusCode: 'statusCode',
1292
+ body: 'body',
1293
+ };
1294
+ }
1295
+ static types() {
1296
+ return {
1297
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1298
+ statusCode: 'number',
1299
+ body: DeleteServiceLabelResponseBody,
1300
+ };
1301
+ }
1302
+ }
1303
+ exports.DeleteServiceLabelResponse = DeleteServiceLabelResponse;
1158
1304
  class DeleteServiceMirrorResponseBody extends $tea.Model {
1159
1305
  constructor(map) {
1160
1306
  super(map);
@@ -1771,6 +1917,60 @@ class DescribeServiceMirrorResponse extends $tea.Model {
1771
1917
  }
1772
1918
  }
1773
1919
  exports.DescribeServiceMirrorResponse = DescribeServiceMirrorResponse;
1920
+ class DevelopServiceRequest extends $tea.Model {
1921
+ constructor(map) {
1922
+ super(map);
1923
+ }
1924
+ static names() {
1925
+ return {
1926
+ exit: 'Exit',
1927
+ };
1928
+ }
1929
+ static types() {
1930
+ return {
1931
+ exit: 'string',
1932
+ };
1933
+ }
1934
+ }
1935
+ exports.DevelopServiceRequest = DevelopServiceRequest;
1936
+ class DevelopServiceResponseBody extends $tea.Model {
1937
+ constructor(map) {
1938
+ super(map);
1939
+ }
1940
+ static names() {
1941
+ return {
1942
+ message: 'Message',
1943
+ requestId: 'RequestId',
1944
+ };
1945
+ }
1946
+ static types() {
1947
+ return {
1948
+ message: 'string',
1949
+ requestId: 'string',
1950
+ };
1951
+ }
1952
+ }
1953
+ exports.DevelopServiceResponseBody = DevelopServiceResponseBody;
1954
+ class DevelopServiceResponse extends $tea.Model {
1955
+ constructor(map) {
1956
+ super(map);
1957
+ }
1958
+ static names() {
1959
+ return {
1960
+ headers: 'headers',
1961
+ statusCode: 'statusCode',
1962
+ body: 'body',
1963
+ };
1964
+ }
1965
+ static types() {
1966
+ return {
1967
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1968
+ statusCode: 'number',
1969
+ body: DevelopServiceResponseBody,
1970
+ };
1971
+ }
1972
+ }
1973
+ exports.DevelopServiceResponse = DevelopServiceResponse;
1774
1974
  class ListBenchmarkTaskRequest extends $tea.Model {
1775
1975
  constructor(map) {
1776
1976
  super(map);
@@ -2291,9 +2491,12 @@ class ListServicesRequest extends $tea.Model {
2291
2491
  return {
2292
2492
  filter: 'Filter',
2293
2493
  groupName: 'GroupName',
2494
+ label: 'Label',
2294
2495
  order: 'Order',
2295
2496
  pageNumber: 'PageNumber',
2296
2497
  pageSize: 'PageSize',
2498
+ parentServiceUid: 'ParentServiceUid',
2499
+ serviceType: 'ServiceType',
2297
2500
  sort: 'Sort',
2298
2501
  };
2299
2502
  }
@@ -2301,14 +2504,49 @@ class ListServicesRequest extends $tea.Model {
2301
2504
  return {
2302
2505
  filter: 'string',
2303
2506
  groupName: 'string',
2507
+ label: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2304
2508
  order: 'string',
2305
2509
  pageNumber: 'number',
2306
2510
  pageSize: 'number',
2511
+ parentServiceUid: 'string',
2512
+ serviceType: 'string',
2307
2513
  sort: 'string',
2308
2514
  };
2309
2515
  }
2310
2516
  }
2311
2517
  exports.ListServicesRequest = ListServicesRequest;
2518
+ class ListServicesShrinkRequest extends $tea.Model {
2519
+ constructor(map) {
2520
+ super(map);
2521
+ }
2522
+ static names() {
2523
+ return {
2524
+ filter: 'Filter',
2525
+ groupName: 'GroupName',
2526
+ labelShrink: 'Label',
2527
+ order: 'Order',
2528
+ pageNumber: 'PageNumber',
2529
+ pageSize: 'PageSize',
2530
+ parentServiceUid: 'ParentServiceUid',
2531
+ serviceType: 'ServiceType',
2532
+ sort: 'Sort',
2533
+ };
2534
+ }
2535
+ static types() {
2536
+ return {
2537
+ filter: 'string',
2538
+ groupName: 'string',
2539
+ labelShrink: 'string',
2540
+ order: 'string',
2541
+ pageNumber: 'number',
2542
+ pageSize: 'number',
2543
+ parentServiceUid: 'string',
2544
+ serviceType: 'string',
2545
+ sort: 'string',
2546
+ };
2547
+ }
2548
+ }
2549
+ exports.ListServicesShrinkRequest = ListServicesShrinkRequest;
2312
2550
  class ListServicesResponseBody extends $tea.Model {
2313
2551
  constructor(map) {
2314
2552
  super(map);
@@ -2955,6 +3193,60 @@ class UpdateServiceCronScalerResponse extends $tea.Model {
2955
3193
  }
2956
3194
  }
2957
3195
  exports.UpdateServiceCronScalerResponse = UpdateServiceCronScalerResponse;
3196
+ class UpdateServiceLabelRequest extends $tea.Model {
3197
+ constructor(map) {
3198
+ super(map);
3199
+ }
3200
+ static names() {
3201
+ return {
3202
+ labels: 'Labels',
3203
+ };
3204
+ }
3205
+ static types() {
3206
+ return {
3207
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3208
+ };
3209
+ }
3210
+ }
3211
+ exports.UpdateServiceLabelRequest = UpdateServiceLabelRequest;
3212
+ class UpdateServiceLabelResponseBody extends $tea.Model {
3213
+ constructor(map) {
3214
+ super(map);
3215
+ }
3216
+ static names() {
3217
+ return {
3218
+ message: 'Message',
3219
+ requestId: 'RequestId',
3220
+ };
3221
+ }
3222
+ static types() {
3223
+ return {
3224
+ message: 'string',
3225
+ requestId: 'string',
3226
+ };
3227
+ }
3228
+ }
3229
+ exports.UpdateServiceLabelResponseBody = UpdateServiceLabelResponseBody;
3230
+ class UpdateServiceLabelResponse extends $tea.Model {
3231
+ constructor(map) {
3232
+ super(map);
3233
+ }
3234
+ static names() {
3235
+ return {
3236
+ headers: 'headers',
3237
+ statusCode: 'statusCode',
3238
+ body: 'body',
3239
+ };
3240
+ }
3241
+ static types() {
3242
+ return {
3243
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3244
+ statusCode: 'number',
3245
+ body: UpdateServiceLabelResponseBody,
3246
+ };
3247
+ }
3248
+ }
3249
+ exports.UpdateServiceLabelResponse = UpdateServiceLabelResponse;
2958
3250
  class UpdateServiceMirrorRequest extends $tea.Model {
2959
3251
  constructor(map) {
2960
3252
  super(map);
@@ -3119,6 +3411,24 @@ class UpdateServiceVersionResponse extends $tea.Model {
3119
3411
  }
3120
3412
  }
3121
3413
  exports.UpdateServiceVersionResponse = UpdateServiceVersionResponse;
3414
+ class ServiceLabels extends $tea.Model {
3415
+ constructor(map) {
3416
+ super(map);
3417
+ }
3418
+ static names() {
3419
+ return {
3420
+ labelKey: 'LabelKey',
3421
+ labelValue: 'LabelValue',
3422
+ };
3423
+ }
3424
+ static types() {
3425
+ return {
3426
+ labelKey: 'string',
3427
+ labelValue: 'string',
3428
+ };
3429
+ }
3430
+ }
3431
+ exports.ServiceLabels = ServiceLabels;
3122
3432
  class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
3123
3433
  constructor(map) {
3124
3434
  super(map);
@@ -3378,10 +3688,27 @@ class Client extends openapi_client_1.default {
3378
3688
  }
3379
3689
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3380
3690
  }
3381
- async createBenchmarkTask(request) {
3691
+ async commitServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
3692
+ let req = new $OpenApi.OpenApiRequest({
3693
+ headers: headers,
3694
+ });
3695
+ let params = new $OpenApi.Params({
3696
+ action: "CommitService",
3697
+ version: "2021-07-01",
3698
+ protocol: "HTTPS",
3699
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/commit`,
3700
+ method: "PUT",
3701
+ authType: "AK",
3702
+ style: "ROA",
3703
+ reqBodyType: "json",
3704
+ bodyType: "json",
3705
+ });
3706
+ return $tea.cast(await this.callApi(params, req, runtime), new CommitServiceResponse({}));
3707
+ }
3708
+ async commitService(ClusterId, ServiceName) {
3382
3709
  let runtime = new $Util.RuntimeOptions({});
3383
3710
  let headers = {};
3384
- return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
3711
+ return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3385
3712
  }
3386
3713
  async createBenchmarkTaskWithOptions(request, headers, runtime) {
3387
3714
  tea_util_1.default.validateModel(request);
@@ -3402,10 +3729,10 @@ class Client extends openapi_client_1.default {
3402
3729
  });
3403
3730
  return $tea.cast(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
3404
3731
  }
3405
- async createResource(request) {
3732
+ async createBenchmarkTask(request) {
3406
3733
  let runtime = new $Util.RuntimeOptions({});
3407
3734
  let headers = {};
3408
- return await this.createResourceWithOptions(request, headers, runtime);
3735
+ return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
3409
3736
  }
3410
3737
  async createResourceWithOptions(request, headers, runtime) {
3411
3738
  tea_util_1.default.validateModel(request);
@@ -3439,10 +3766,10 @@ class Client extends openapi_client_1.default {
3439
3766
  });
3440
3767
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
3441
3768
  }
3442
- async createResourceInstances(ClusterId, ResourceId, request) {
3769
+ async createResource(request) {
3443
3770
  let runtime = new $Util.RuntimeOptions({});
3444
3771
  let headers = {};
3445
- return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3772
+ return await this.createResourceWithOptions(request, headers, runtime);
3446
3773
  }
3447
3774
  async createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3448
3775
  tea_util_1.default.validateModel(request);
@@ -3479,10 +3806,10 @@ class Client extends openapi_client_1.default {
3479
3806
  });
3480
3807
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceInstancesResponse({}));
3481
3808
  }
3482
- async createResourceLog(ClusterId, ResourceId, request) {
3809
+ async createResourceInstances(ClusterId, ResourceId, request) {
3483
3810
  let runtime = new $Util.RuntimeOptions({});
3484
3811
  let headers = {};
3485
- return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
3812
+ return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3486
3813
  }
3487
3814
  async createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3488
3815
  tea_util_1.default.validateModel(request);
@@ -3510,15 +3837,28 @@ class Client extends openapi_client_1.default {
3510
3837
  });
3511
3838
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceLogResponse({}));
3512
3839
  }
3513
- async createService(request) {
3840
+ async createResourceLog(ClusterId, ResourceId, request) {
3514
3841
  let runtime = new $Util.RuntimeOptions({});
3515
3842
  let headers = {};
3516
- return await this.createServiceWithOptions(request, headers, runtime);
3843
+ return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
3517
3844
  }
3518
- async createServiceWithOptions(request, headers, runtime) {
3519
- tea_util_1.default.validateModel(request);
3845
+ async createServiceWithOptions(tmpReq, headers, runtime) {
3846
+ tea_util_1.default.validateModel(tmpReq);
3847
+ let request = new CreateServiceShrinkRequest({});
3848
+ openapi_util_1.default.convert(tmpReq, request);
3849
+ if (!tea_util_1.default.isUnset(tmpReq.labels)) {
3850
+ request.labelsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.labels, "Labels", "json");
3851
+ }
3852
+ let query = {};
3853
+ if (!tea_util_1.default.isUnset(request.develop)) {
3854
+ query["Develop"] = request.develop;
3855
+ }
3856
+ if (!tea_util_1.default.isUnset(request.labelsShrink)) {
3857
+ query["Labels"] = request.labelsShrink;
3858
+ }
3520
3859
  let req = new $OpenApi.OpenApiRequest({
3521
3860
  headers: headers,
3861
+ query: openapi_util_1.default.query(query),
3522
3862
  body: request.body,
3523
3863
  });
3524
3864
  let params = new $OpenApi.Params({
@@ -3534,10 +3874,10 @@ class Client extends openapi_client_1.default {
3534
3874
  });
3535
3875
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceResponse({}));
3536
3876
  }
3537
- async createServiceAutoScaler(ClusterId, ServiceName, request) {
3877
+ async createService(request) {
3538
3878
  let runtime = new $Util.RuntimeOptions({});
3539
3879
  let headers = {};
3540
- return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3880
+ return await this.createServiceWithOptions(request, headers, runtime);
3541
3881
  }
3542
3882
  async createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3543
3883
  tea_util_1.default.validateModel(request);
@@ -3568,10 +3908,10 @@ class Client extends openapi_client_1.default {
3568
3908
  });
3569
3909
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceAutoScalerResponse({}));
3570
3910
  }
3571
- async createServiceCronScaler(ClusterId, ServiceName, request) {
3911
+ async createServiceAutoScaler(ClusterId, ServiceName, request) {
3572
3912
  let runtime = new $Util.RuntimeOptions({});
3573
3913
  let headers = {};
3574
- return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3914
+ return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3575
3915
  }
3576
3916
  async createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3577
3917
  tea_util_1.default.validateModel(request);
@@ -3599,10 +3939,10 @@ class Client extends openapi_client_1.default {
3599
3939
  });
3600
3940
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceCronScalerResponse({}));
3601
3941
  }
3602
- async createServiceMirror(ClusterId, ServiceName, request) {
3942
+ async createServiceCronScaler(ClusterId, ServiceName, request) {
3603
3943
  let runtime = new $Util.RuntimeOptions({});
3604
3944
  let headers = {};
3605
- return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
3945
+ return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3606
3946
  }
3607
3947
  async createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3608
3948
  tea_util_1.default.validateModel(request);
@@ -3630,10 +3970,10 @@ class Client extends openapi_client_1.default {
3630
3970
  });
3631
3971
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
3632
3972
  }
3633
- async deleteBenchmarkTask(ClusterId, TaskName) {
3973
+ async createServiceMirror(ClusterId, ServiceName, request) {
3634
3974
  let runtime = new $Util.RuntimeOptions({});
3635
3975
  let headers = {};
3636
- return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3976
+ return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
3637
3977
  }
3638
3978
  async deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3639
3979
  let req = new $OpenApi.OpenApiRequest({
@@ -3652,10 +3992,10 @@ class Client extends openapi_client_1.default {
3652
3992
  });
3653
3993
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
3654
3994
  }
3655
- async deleteResource(ClusterId, ResourceId) {
3995
+ async deleteBenchmarkTask(ClusterId, TaskName) {
3656
3996
  let runtime = new $Util.RuntimeOptions({});
3657
3997
  let headers = {};
3658
- return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
3998
+ return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3659
3999
  }
3660
4000
  async deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
3661
4001
  let req = new $OpenApi.OpenApiRequest({
@@ -3674,10 +4014,10 @@ class Client extends openapi_client_1.default {
3674
4014
  });
3675
4015
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceResponse({}));
3676
4016
  }
3677
- async deleteResourceDLink(ClusterId, ResourceId) {
4017
+ async deleteResource(ClusterId, ResourceId) {
3678
4018
  let runtime = new $Util.RuntimeOptions({});
3679
4019
  let headers = {};
3680
- return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
4020
+ return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
3681
4021
  }
3682
4022
  async deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
3683
4023
  let req = new $OpenApi.OpenApiRequest({
@@ -3696,10 +4036,10 @@ class Client extends openapi_client_1.default {
3696
4036
  });
3697
4037
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceDLinkResponse({}));
3698
4038
  }
3699
- async deleteResourceInstances(ClusterId, ResourceId, request) {
4039
+ async deleteResourceDLink(ClusterId, ResourceId) {
3700
4040
  let runtime = new $Util.RuntimeOptions({});
3701
4041
  let headers = {};
3702
- return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4042
+ return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
3703
4043
  }
3704
4044
  async deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3705
4045
  tea_util_1.default.validateModel(request);
@@ -3727,10 +4067,10 @@ class Client extends openapi_client_1.default {
3727
4067
  });
3728
4068
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceInstancesResponse({}));
3729
4069
  }
3730
- async deleteResourceLog(ClusterId, ResourceId) {
4070
+ async deleteResourceInstances(ClusterId, ResourceId, request) {
3731
4071
  let runtime = new $Util.RuntimeOptions({});
3732
4072
  let headers = {};
3733
- return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4073
+ return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3734
4074
  }
3735
4075
  async deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
3736
4076
  let req = new $OpenApi.OpenApiRequest({
@@ -3749,10 +4089,10 @@ class Client extends openapi_client_1.default {
3749
4089
  });
3750
4090
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceLogResponse({}));
3751
4091
  }
3752
- async deleteService(ClusterId, ServiceName) {
4092
+ async deleteResourceLog(ClusterId, ResourceId) {
3753
4093
  let runtime = new $Util.RuntimeOptions({});
3754
4094
  let headers = {};
3755
- return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4095
+ return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
3756
4096
  }
3757
4097
  async deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
3758
4098
  let req = new $OpenApi.OpenApiRequest({
@@ -3771,10 +4111,10 @@ class Client extends openapi_client_1.default {
3771
4111
  });
3772
4112
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceResponse({}));
3773
4113
  }
3774
- async deleteServiceAutoScaler(ClusterId, ServiceName) {
4114
+ async deleteService(ClusterId, ServiceName) {
3775
4115
  let runtime = new $Util.RuntimeOptions({});
3776
4116
  let headers = {};
3777
- return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4117
+ return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3778
4118
  }
3779
4119
  async deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3780
4120
  let req = new $OpenApi.OpenApiRequest({
@@ -3793,10 +4133,10 @@ class Client extends openapi_client_1.default {
3793
4133
  });
3794
4134
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceAutoScalerResponse({}));
3795
4135
  }
3796
- async deleteServiceCronScaler(ClusterId, ServiceName) {
4136
+ async deleteServiceAutoScaler(ClusterId, ServiceName) {
3797
4137
  let runtime = new $Util.RuntimeOptions({});
3798
4138
  let headers = {};
3799
- return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4139
+ return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
3800
4140
  }
3801
4141
  async deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3802
4142
  let req = new $OpenApi.OpenApiRequest({
@@ -3815,10 +4155,10 @@ class Client extends openapi_client_1.default {
3815
4155
  });
3816
4156
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceCronScalerResponse({}));
3817
4157
  }
3818
- async deleteServiceInstances(ClusterId, ServiceName, request) {
4158
+ async deleteServiceCronScaler(ClusterId, ServiceName) {
3819
4159
  let runtime = new $Util.RuntimeOptions({});
3820
4160
  let headers = {};
3821
- return await this.deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
4161
+ return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
3822
4162
  }
3823
4163
  async deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3824
4164
  tea_util_1.default.validateModel(request);
@@ -3843,10 +4183,43 @@ class Client extends openapi_client_1.default {
3843
4183
  });
3844
4184
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceInstancesResponse({}));
3845
4185
  }
3846
- async deleteServiceMirror(ClusterId, ServiceName) {
4186
+ async deleteServiceInstances(ClusterId, ServiceName, request) {
3847
4187
  let runtime = new $Util.RuntimeOptions({});
3848
4188
  let headers = {};
3849
- return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
4189
+ return await this.deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
4190
+ }
4191
+ async deleteServiceLabelWithOptions(ClusterId, ServiceName, tmpReq, headers, runtime) {
4192
+ tea_util_1.default.validateModel(tmpReq);
4193
+ let request = new DeleteServiceLabelShrinkRequest({});
4194
+ openapi_util_1.default.convert(tmpReq, request);
4195
+ if (!tea_util_1.default.isUnset(tmpReq.keys)) {
4196
+ request.keysShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.keys, "Keys", "simple");
4197
+ }
4198
+ let query = {};
4199
+ if (!tea_util_1.default.isUnset(request.keysShrink)) {
4200
+ query["Keys"] = request.keysShrink;
4201
+ }
4202
+ let req = new $OpenApi.OpenApiRequest({
4203
+ headers: headers,
4204
+ query: openapi_util_1.default.query(query),
4205
+ });
4206
+ let params = new $OpenApi.Params({
4207
+ action: "DeleteServiceLabel",
4208
+ version: "2021-07-01",
4209
+ protocol: "HTTPS",
4210
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/label`,
4211
+ method: "DELETE",
4212
+ authType: "AK",
4213
+ style: "ROA",
4214
+ reqBodyType: "json",
4215
+ bodyType: "json",
4216
+ });
4217
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceLabelResponse({}));
4218
+ }
4219
+ async deleteServiceLabel(ClusterId, ServiceName, request) {
4220
+ let runtime = new $Util.RuntimeOptions({});
4221
+ let headers = {};
4222
+ return await this.deleteServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
3850
4223
  }
3851
4224
  async deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
3852
4225
  let req = new $OpenApi.OpenApiRequest({
@@ -3865,10 +4238,10 @@ class Client extends openapi_client_1.default {
3865
4238
  });
3866
4239
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
3867
4240
  }
3868
- async describeBenchmarkTask(ClusterId, TaskName) {
4241
+ async deleteServiceMirror(ClusterId, ServiceName) {
3869
4242
  let runtime = new $Util.RuntimeOptions({});
3870
4243
  let headers = {};
3871
- return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4244
+ return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
3872
4245
  }
3873
4246
  async describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3874
4247
  let req = new $OpenApi.OpenApiRequest({
@@ -3887,10 +4260,10 @@ class Client extends openapi_client_1.default {
3887
4260
  });
3888
4261
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
3889
4262
  }
3890
- async describeBenchmarkTaskReport(ClusterId, TaskName, request) {
4263
+ async describeBenchmarkTask(ClusterId, TaskName) {
3891
4264
  let runtime = new $Util.RuntimeOptions({});
3892
4265
  let headers = {};
3893
- return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
4266
+ return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3894
4267
  }
3895
4268
  async describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime) {
3896
4269
  tea_util_1.default.validateModel(request);
@@ -3915,10 +4288,10 @@ class Client extends openapi_client_1.default {
3915
4288
  });
3916
4289
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
3917
4290
  }
3918
- async describeGroup(ClusterId, GroupName) {
4291
+ async describeBenchmarkTaskReport(ClusterId, TaskName, request) {
3919
4292
  let runtime = new $Util.RuntimeOptions({});
3920
4293
  let headers = {};
3921
- return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
4294
+ return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
3922
4295
  }
3923
4296
  async describeGroupWithOptions(ClusterId, GroupName, headers, runtime) {
3924
4297
  let req = new $OpenApi.OpenApiRequest({
@@ -3937,10 +4310,10 @@ class Client extends openapi_client_1.default {
3937
4310
  });
3938
4311
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeGroupResponse({}));
3939
4312
  }
3940
- async describeResource(ClusterId, ResourceId) {
4313
+ async describeGroup(ClusterId, GroupName) {
3941
4314
  let runtime = new $Util.RuntimeOptions({});
3942
4315
  let headers = {};
3943
- return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
4316
+ return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
3944
4317
  }
3945
4318
  async describeResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
3946
4319
  let req = new $OpenApi.OpenApiRequest({
@@ -3959,10 +4332,10 @@ class Client extends openapi_client_1.default {
3959
4332
  });
3960
4333
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceResponse({}));
3961
4334
  }
3962
- async describeResourceDLink(ClusterId, ResourceId) {
4335
+ async describeResource(ClusterId, ResourceId) {
3963
4336
  let runtime = new $Util.RuntimeOptions({});
3964
4337
  let headers = {};
3965
- return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
4338
+ return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
3966
4339
  }
3967
4340
  async describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
3968
4341
  let req = new $OpenApi.OpenApiRequest({
@@ -3981,10 +4354,10 @@ class Client extends openapi_client_1.default {
3981
4354
  });
3982
4355
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceDLinkResponse({}));
3983
4356
  }
3984
- async describeResourceLog(ClusterId, ResourceId) {
4357
+ async describeResourceDLink(ClusterId, ResourceId) {
3985
4358
  let runtime = new $Util.RuntimeOptions({});
3986
4359
  let headers = {};
3987
- return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4360
+ return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
3988
4361
  }
3989
4362
  async describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
3990
4363
  let req = new $OpenApi.OpenApiRequest({
@@ -4003,10 +4376,10 @@ class Client extends openapi_client_1.default {
4003
4376
  });
4004
4377
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceLogResponse({}));
4005
4378
  }
4006
- async describeService(ClusterId, ServiceName) {
4379
+ async describeResourceLog(ClusterId, ResourceId) {
4007
4380
  let runtime = new $Util.RuntimeOptions({});
4008
4381
  let headers = {};
4009
- return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4382
+ return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4010
4383
  }
4011
4384
  async describeServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
4012
4385
  let req = new $OpenApi.OpenApiRequest({
@@ -4025,10 +4398,10 @@ class Client extends openapi_client_1.default {
4025
4398
  });
4026
4399
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceResponse({}));
4027
4400
  }
4028
- async describeServiceAutoScaler(ClusterId, ServiceName) {
4401
+ async describeService(ClusterId, ServiceName) {
4029
4402
  let runtime = new $Util.RuntimeOptions({});
4030
4403
  let headers = {};
4031
- return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4404
+ return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4032
4405
  }
4033
4406
  async describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
4034
4407
  let req = new $OpenApi.OpenApiRequest({
@@ -4047,10 +4420,10 @@ class Client extends openapi_client_1.default {
4047
4420
  });
4048
4421
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceAutoScalerResponse({}));
4049
4422
  }
4050
- async describeServiceCronScaler(ClusterId, ServiceName) {
4423
+ async describeServiceAutoScaler(ClusterId, ServiceName) {
4051
4424
  let runtime = new $Util.RuntimeOptions({});
4052
4425
  let headers = {};
4053
- return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4426
+ return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4054
4427
  }
4055
4428
  async describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
4056
4429
  let req = new $OpenApi.OpenApiRequest({
@@ -4069,10 +4442,10 @@ class Client extends openapi_client_1.default {
4069
4442
  });
4070
4443
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceCronScalerResponse({}));
4071
4444
  }
4072
- async describeServiceEvent(ClusterId, ServiceName, request) {
4445
+ async describeServiceCronScaler(ClusterId, ServiceName) {
4073
4446
  let runtime = new $Util.RuntimeOptions({});
4074
4447
  let headers = {};
4075
- return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
4448
+ return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4076
4449
  }
4077
4450
  async describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4078
4451
  tea_util_1.default.validateModel(request);
@@ -4106,10 +4479,10 @@ class Client extends openapi_client_1.default {
4106
4479
  });
4107
4480
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceEventResponse({}));
4108
4481
  }
4109
- async describeServiceLog(ClusterId, ServiceName, request) {
4482
+ async describeServiceEvent(ClusterId, ServiceName, request) {
4110
4483
  let runtime = new $Util.RuntimeOptions({});
4111
4484
  let headers = {};
4112
- return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
4485
+ return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
4113
4486
  }
4114
4487
  async describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4115
4488
  tea_util_1.default.validateModel(request);
@@ -4149,10 +4522,10 @@ class Client extends openapi_client_1.default {
4149
4522
  });
4150
4523
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceLogResponse({}));
4151
4524
  }
4152
- async describeServiceMirror(ClusterId, ServiceName) {
4525
+ async describeServiceLog(ClusterId, ServiceName, request) {
4153
4526
  let runtime = new $Util.RuntimeOptions({});
4154
4527
  let headers = {};
4155
- return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
4528
+ return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
4156
4529
  }
4157
4530
  async describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
4158
4531
  let req = new $OpenApi.OpenApiRequest({
@@ -4171,10 +4544,38 @@ class Client extends openapi_client_1.default {
4171
4544
  });
4172
4545
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
4173
4546
  }
4174
- async listBenchmarkTask(request) {
4547
+ async describeServiceMirror(ClusterId, ServiceName) {
4175
4548
  let runtime = new $Util.RuntimeOptions({});
4176
4549
  let headers = {};
4177
- return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
4550
+ return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
4551
+ }
4552
+ async developServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4553
+ tea_util_1.default.validateModel(request);
4554
+ let query = {};
4555
+ if (!tea_util_1.default.isUnset(request.exit)) {
4556
+ query["Exit"] = request.exit;
4557
+ }
4558
+ let req = new $OpenApi.OpenApiRequest({
4559
+ headers: headers,
4560
+ query: openapi_util_1.default.query(query),
4561
+ });
4562
+ let params = new $OpenApi.Params({
4563
+ action: "DevelopService",
4564
+ version: "2021-07-01",
4565
+ protocol: "HTTPS",
4566
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/develop`,
4567
+ method: "PUT",
4568
+ authType: "AK",
4569
+ style: "ROA",
4570
+ reqBodyType: "json",
4571
+ bodyType: "json",
4572
+ });
4573
+ return $tea.cast(await this.callApi(params, req, runtime), new DevelopServiceResponse({}));
4574
+ }
4575
+ async developService(ClusterId, ServiceName, request) {
4576
+ let runtime = new $Util.RuntimeOptions({});
4577
+ let headers = {};
4578
+ return await this.developServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4178
4579
  }
4179
4580
  async listBenchmarkTaskWithOptions(request, headers, runtime) {
4180
4581
  tea_util_1.default.validateModel(request);
@@ -4208,10 +4609,10 @@ class Client extends openapi_client_1.default {
4208
4609
  });
4209
4610
  return $tea.cast(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
4210
4611
  }
4211
- async listGroups(request) {
4612
+ async listBenchmarkTask(request) {
4212
4613
  let runtime = new $Util.RuntimeOptions({});
4213
4614
  let headers = {};
4214
- return await this.listGroupsWithOptions(request, headers, runtime);
4615
+ return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
4215
4616
  }
4216
4617
  async listGroupsWithOptions(request, headers, runtime) {
4217
4618
  tea_util_1.default.validateModel(request);
@@ -4242,10 +4643,10 @@ class Client extends openapi_client_1.default {
4242
4643
  });
4243
4644
  return $tea.cast(await this.callApi(params, req, runtime), new ListGroupsResponse({}));
4244
4645
  }
4245
- async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
4646
+ async listGroups(request) {
4246
4647
  let runtime = new $Util.RuntimeOptions({});
4247
4648
  let headers = {};
4248
- return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
4649
+ return await this.listGroupsWithOptions(request, headers, runtime);
4249
4650
  }
4250
4651
  async listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime) {
4251
4652
  tea_util_1.default.validateModel(request);
@@ -4273,10 +4674,10 @@ class Client extends openapi_client_1.default {
4273
4674
  });
4274
4675
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceInstanceWorkerResponse({}));
4275
4676
  }
4276
- async listResourceInstances(ClusterId, ResourceId, request) {
4677
+ async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
4277
4678
  let runtime = new $Util.RuntimeOptions({});
4278
4679
  let headers = {};
4279
- return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4680
+ return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
4280
4681
  }
4281
4682
  async listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4282
4683
  tea_util_1.default.validateModel(request);
@@ -4313,10 +4714,10 @@ class Client extends openapi_client_1.default {
4313
4714
  });
4314
4715
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceInstancesResponse({}));
4315
4716
  }
4316
- async listResourceServices(ClusterId, ResourceId, request) {
4717
+ async listResourceInstances(ClusterId, ResourceId, request) {
4317
4718
  let runtime = new $Util.RuntimeOptions({});
4318
4719
  let headers = {};
4319
- return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4720
+ return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4320
4721
  }
4321
4722
  async listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4322
4723
  tea_util_1.default.validateModel(request);
@@ -4344,10 +4745,10 @@ class Client extends openapi_client_1.default {
4344
4745
  });
4345
4746
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceServicesResponse({}));
4346
4747
  }
4347
- async listResources(request) {
4748
+ async listResourceServices(ClusterId, ResourceId, request) {
4348
4749
  let runtime = new $Util.RuntimeOptions({});
4349
4750
  let headers = {};
4350
- return await this.listResourcesWithOptions(request, headers, runtime);
4751
+ return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4351
4752
  }
4352
4753
  async listResourcesWithOptions(request, headers, runtime) {
4353
4754
  tea_util_1.default.validateModel(request);
@@ -4381,10 +4782,10 @@ class Client extends openapi_client_1.default {
4381
4782
  });
4382
4783
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourcesResponse({}));
4383
4784
  }
4384
- async listServiceInstances(ClusterId, ServiceName, request) {
4785
+ async listResources(request) {
4385
4786
  let runtime = new $Util.RuntimeOptions({});
4386
4787
  let headers = {};
4387
- return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
4788
+ return await this.listResourcesWithOptions(request, headers, runtime);
4388
4789
  }
4389
4790
  async listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4390
4791
  tea_util_1.default.validateModel(request);
@@ -4412,10 +4813,10 @@ class Client extends openapi_client_1.default {
4412
4813
  });
4413
4814
  return $tea.cast(await this.callApi(params, req, runtime), new ListServiceInstancesResponse({}));
4414
4815
  }
4415
- async listServiceVersions(ClusterId, ServiceName, request) {
4816
+ async listServiceInstances(ClusterId, ServiceName, request) {
4416
4817
  let runtime = new $Util.RuntimeOptions({});
4417
4818
  let headers = {};
4418
- return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
4819
+ return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
4419
4820
  }
4420
4821
  async listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4421
4822
  tea_util_1.default.validateModel(request);
@@ -4443,13 +4844,18 @@ class Client extends openapi_client_1.default {
4443
4844
  });
4444
4845
  return $tea.cast(await this.callApi(params, req, runtime), new ListServiceVersionsResponse({}));
4445
4846
  }
4446
- async listServices(request) {
4847
+ async listServiceVersions(ClusterId, ServiceName, request) {
4447
4848
  let runtime = new $Util.RuntimeOptions({});
4448
4849
  let headers = {};
4449
- return await this.listServicesWithOptions(request, headers, runtime);
4850
+ return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
4450
4851
  }
4451
- async listServicesWithOptions(request, headers, runtime) {
4452
- tea_util_1.default.validateModel(request);
4852
+ async listServicesWithOptions(tmpReq, headers, runtime) {
4853
+ tea_util_1.default.validateModel(tmpReq);
4854
+ let request = new ListServicesShrinkRequest({});
4855
+ openapi_util_1.default.convert(tmpReq, request);
4856
+ if (!tea_util_1.default.isUnset(tmpReq.label)) {
4857
+ request.labelShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.label, "Label", "json");
4858
+ }
4453
4859
  let query = {};
4454
4860
  if (!tea_util_1.default.isUnset(request.filter)) {
4455
4861
  query["Filter"] = request.filter;
@@ -4457,6 +4863,9 @@ class Client extends openapi_client_1.default {
4457
4863
  if (!tea_util_1.default.isUnset(request.groupName)) {
4458
4864
  query["GroupName"] = request.groupName;
4459
4865
  }
4866
+ if (!tea_util_1.default.isUnset(request.labelShrink)) {
4867
+ query["Label"] = request.labelShrink;
4868
+ }
4460
4869
  if (!tea_util_1.default.isUnset(request.order)) {
4461
4870
  query["Order"] = request.order;
4462
4871
  }
@@ -4466,6 +4875,12 @@ class Client extends openapi_client_1.default {
4466
4875
  if (!tea_util_1.default.isUnset(request.pageSize)) {
4467
4876
  query["PageSize"] = request.pageSize;
4468
4877
  }
4878
+ if (!tea_util_1.default.isUnset(request.parentServiceUid)) {
4879
+ query["ParentServiceUid"] = request.parentServiceUid;
4880
+ }
4881
+ if (!tea_util_1.default.isUnset(request.serviceType)) {
4882
+ query["ServiceType"] = request.serviceType;
4883
+ }
4469
4884
  if (!tea_util_1.default.isUnset(request.sort)) {
4470
4885
  query["Sort"] = request.sort;
4471
4886
  }
@@ -4486,10 +4901,10 @@ class Client extends openapi_client_1.default {
4486
4901
  });
4487
4902
  return $tea.cast(await this.callApi(params, req, runtime), new ListServicesResponse({}));
4488
4903
  }
4489
- async releaseService(ClusterId, ServiceName, request) {
4904
+ async listServices(request) {
4490
4905
  let runtime = new $Util.RuntimeOptions({});
4491
4906
  let headers = {};
4492
- return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4907
+ return await this.listServicesWithOptions(request, headers, runtime);
4493
4908
  }
4494
4909
  async releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4495
4910
  tea_util_1.default.validateModel(request);
@@ -4517,10 +4932,10 @@ class Client extends openapi_client_1.default {
4517
4932
  });
4518
4933
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
4519
4934
  }
4520
- async startBenchmarkTask(ClusterId, TaskName) {
4935
+ async releaseService(ClusterId, ServiceName, request) {
4521
4936
  let runtime = new $Util.RuntimeOptions({});
4522
4937
  let headers = {};
4523
- return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4938
+ return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4524
4939
  }
4525
4940
  async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
4526
4941
  let req = new $OpenApi.OpenApiRequest({
@@ -4539,10 +4954,10 @@ class Client extends openapi_client_1.default {
4539
4954
  });
4540
4955
  return $tea.cast(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
4541
4956
  }
4542
- async startService(ClusterId, ServiceName) {
4957
+ async startBenchmarkTask(ClusterId, TaskName) {
4543
4958
  let runtime = new $Util.RuntimeOptions({});
4544
4959
  let headers = {};
4545
- return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4960
+ return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4546
4961
  }
4547
4962
  async startServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
4548
4963
  let req = new $OpenApi.OpenApiRequest({
@@ -4561,10 +4976,10 @@ class Client extends openapi_client_1.default {
4561
4976
  });
4562
4977
  return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
4563
4978
  }
4564
- async stopBenchmarkTask(ClusterId, TaskName) {
4979
+ async startService(ClusterId, ServiceName) {
4565
4980
  let runtime = new $Util.RuntimeOptions({});
4566
4981
  let headers = {};
4567
- return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4982
+ return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4568
4983
  }
4569
4984
  async stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
4570
4985
  let req = new $OpenApi.OpenApiRequest({
@@ -4583,10 +4998,10 @@ class Client extends openapi_client_1.default {
4583
4998
  });
4584
4999
  return $tea.cast(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
4585
5000
  }
4586
- async stopService(ClusterId, ServiceName) {
5001
+ async stopBenchmarkTask(ClusterId, TaskName) {
4587
5002
  let runtime = new $Util.RuntimeOptions({});
4588
5003
  let headers = {};
4589
- return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5004
+ return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4590
5005
  }
4591
5006
  async stopServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
4592
5007
  let req = new $OpenApi.OpenApiRequest({
@@ -4605,10 +5020,10 @@ class Client extends openapi_client_1.default {
4605
5020
  });
4606
5021
  return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
4607
5022
  }
4608
- async updateBenchmarkTask(ClusterId, TaskName, request) {
5023
+ async stopService(ClusterId, ServiceName) {
4609
5024
  let runtime = new $Util.RuntimeOptions({});
4610
5025
  let headers = {};
4611
- return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
5026
+ return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4612
5027
  }
4613
5028
  async updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime) {
4614
5029
  tea_util_1.default.validateModel(request);
@@ -4629,10 +5044,10 @@ class Client extends openapi_client_1.default {
4629
5044
  });
4630
5045
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
4631
5046
  }
4632
- async updateResource(ClusterId, ResourceId, request) {
5047
+ async updateBenchmarkTask(ClusterId, TaskName, request) {
4633
5048
  let runtime = new $Util.RuntimeOptions({});
4634
5049
  let headers = {};
4635
- return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
5050
+ return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
4636
5051
  }
4637
5052
  async updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4638
5053
  tea_util_1.default.validateModel(request);
@@ -4657,10 +5072,10 @@ class Client extends openapi_client_1.default {
4657
5072
  });
4658
5073
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceResponse({}));
4659
5074
  }
4660
- async updateResourceDLink(ClusterId, ResourceId, request) {
5075
+ async updateResource(ClusterId, ResourceId, request) {
4661
5076
  let runtime = new $Util.RuntimeOptions({});
4662
5077
  let headers = {};
4663
- return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
5078
+ return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
4664
5079
  }
4665
5080
  async updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4666
5081
  tea_util_1.default.validateModel(request);
@@ -4694,10 +5109,10 @@ class Client extends openapi_client_1.default {
4694
5109
  });
4695
5110
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceDLinkResponse({}));
4696
5111
  }
4697
- async updateResourceInstance(ClusterId, ResourceId, InstanceId, request) {
5112
+ async updateResourceDLink(ClusterId, ResourceId, request) {
4698
5113
  let runtime = new $Util.RuntimeOptions({});
4699
5114
  let headers = {};
4700
- return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
5115
+ return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
4701
5116
  }
4702
5117
  async updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime) {
4703
5118
  tea_util_1.default.validateModel(request);
@@ -4722,10 +5137,10 @@ class Client extends openapi_client_1.default {
4722
5137
  });
4723
5138
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceInstanceResponse({}));
4724
5139
  }
4725
- async updateService(ClusterId, ServiceName, request) {
5140
+ async updateResourceInstance(ClusterId, ResourceId, InstanceId, request) {
4726
5141
  let runtime = new $Util.RuntimeOptions({});
4727
5142
  let headers = {};
4728
- return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5143
+ return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
4729
5144
  }
4730
5145
  async updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4731
5146
  tea_util_1.default.validateModel(request);
@@ -4746,10 +5161,10 @@ class Client extends openapi_client_1.default {
4746
5161
  });
4747
5162
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceResponse({}));
4748
5163
  }
4749
- async updateServiceAutoScaler(ClusterId, ServiceName, request) {
5164
+ async updateService(ClusterId, ServiceName, request) {
4750
5165
  let runtime = new $Util.RuntimeOptions({});
4751
5166
  let headers = {};
4752
- return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5167
+ return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4753
5168
  }
4754
5169
  async updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4755
5170
  tea_util_1.default.validateModel(request);
@@ -4780,10 +5195,10 @@ class Client extends openapi_client_1.default {
4780
5195
  });
4781
5196
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceAutoScalerResponse({}));
4782
5197
  }
4783
- async updateServiceCronScaler(ClusterId, ServiceName, request) {
5198
+ async updateServiceAutoScaler(ClusterId, ServiceName, request) {
4784
5199
  let runtime = new $Util.RuntimeOptions({});
4785
5200
  let headers = {};
4786
- return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5201
+ return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
4787
5202
  }
4788
5203
  async updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4789
5204
  tea_util_1.default.validateModel(request);
@@ -4811,10 +5226,38 @@ class Client extends openapi_client_1.default {
4811
5226
  });
4812
5227
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceCronScalerResponse({}));
4813
5228
  }
4814
- async updateServiceMirror(ClusterId, ServiceName, request) {
5229
+ async updateServiceCronScaler(ClusterId, ServiceName, request) {
4815
5230
  let runtime = new $Util.RuntimeOptions({});
4816
5231
  let headers = {};
4817
- return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
5232
+ return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5233
+ }
5234
+ async updateServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime) {
5235
+ tea_util_1.default.validateModel(request);
5236
+ let body = {};
5237
+ if (!tea_util_1.default.isUnset(request.labels)) {
5238
+ body["Labels"] = request.labels;
5239
+ }
5240
+ let req = new $OpenApi.OpenApiRequest({
5241
+ headers: headers,
5242
+ body: openapi_util_1.default.parseToMap(body),
5243
+ });
5244
+ let params = new $OpenApi.Params({
5245
+ action: "UpdateServiceLabel",
5246
+ version: "2021-07-01",
5247
+ protocol: "HTTPS",
5248
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/label`,
5249
+ method: "PUT",
5250
+ authType: "AK",
5251
+ style: "ROA",
5252
+ reqBodyType: "json",
5253
+ bodyType: "json",
5254
+ });
5255
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceLabelResponse({}));
5256
+ }
5257
+ async updateServiceLabel(ClusterId, ServiceName, request) {
5258
+ let runtime = new $Util.RuntimeOptions({});
5259
+ let headers = {};
5260
+ return await this.updateServiceLabelWithOptions(ClusterId, ServiceName, request, headers, runtime);
4818
5261
  }
4819
5262
  async updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4820
5263
  tea_util_1.default.validateModel(request);
@@ -4842,10 +5285,10 @@ class Client extends openapi_client_1.default {
4842
5285
  });
4843
5286
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceMirrorResponse({}));
4844
5287
  }
4845
- async updateServiceSafetyLock(ClusterId, ServiceName, request) {
5288
+ async updateServiceMirror(ClusterId, ServiceName, request) {
4846
5289
  let runtime = new $Util.RuntimeOptions({});
4847
5290
  let headers = {};
4848
- return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
5291
+ return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
4849
5292
  }
4850
5293
  async updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4851
5294
  tea_util_1.default.validateModel(request);
@@ -4870,10 +5313,10 @@ class Client extends openapi_client_1.default {
4870
5313
  });
4871
5314
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceSafetyLockResponse({}));
4872
5315
  }
4873
- async updateServiceVersion(ClusterId, ServiceName, request) {
5316
+ async updateServiceSafetyLock(ClusterId, ServiceName, request) {
4874
5317
  let runtime = new $Util.RuntimeOptions({});
4875
5318
  let headers = {};
4876
- return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
5319
+ return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
4877
5320
  }
4878
5321
  async updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4879
5322
  tea_util_1.default.validateModel(request);
@@ -4898,6 +5341,11 @@ class Client extends openapi_client_1.default {
4898
5341
  });
4899
5342
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
4900
5343
  }
5344
+ async updateServiceVersion(ClusterId, ServiceName, request) {
5345
+ let runtime = new $Util.RuntimeOptions({});
5346
+ let headers = {};
5347
+ return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
5348
+ }
4901
5349
  }
4902
5350
  exports.default = Client;
4903
5351
  //# sourceMappingURL=client.js.map