@alicloud/eas20210701 2.0.1 → 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',
@@ -249,6 +262,7 @@ class Service extends $tea.Model {
249
262
  role: 'Role',
250
263
  roleAttrs: 'RoleAttrs',
251
264
  runningInstance: 'RunningInstance',
265
+ safetyLock: 'SafetyLock',
252
266
  serviceConfig: 'ServiceConfig',
253
267
  serviceGroup: 'ServiceGroup',
254
268
  serviceId: 'ServiceId',
@@ -273,6 +287,7 @@ class Service extends $tea.Model {
273
287
  image: 'string',
274
288
  internetEndpoint: 'string',
275
289
  intranetEndpoint: 'string',
290
+ labels: { 'type': 'array', 'itemType': ServiceLabels },
276
291
  latestVersion: 'number',
277
292
  memory: 'number',
278
293
  message: 'string',
@@ -287,6 +302,7 @@ class Service extends $tea.Model {
287
302
  role: 'string',
288
303
  roleAttrs: 'string',
289
304
  runningInstance: 'number',
305
+ safetyLock: 'string',
290
306
  serviceConfig: 'string',
291
307
  serviceGroup: 'string',
292
308
  serviceId: 'string',
@@ -301,6 +317,44 @@ class Service extends $tea.Model {
301
317
  }
302
318
  }
303
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;
304
358
  class CreateBenchmarkTaskRequest extends $tea.Model {
305
359
  constructor(map) {
306
360
  super(map);
@@ -549,16 +603,40 @@ class CreateServiceRequest extends $tea.Model {
549
603
  }
550
604
  static names() {
551
605
  return {
606
+ develop: 'Develop',
607
+ labels: 'Labels',
552
608
  body: 'body',
553
609
  };
554
610
  }
555
611
  static types() {
556
612
  return {
613
+ develop: 'string',
614
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
557
615
  body: 'string',
558
616
  };
559
617
  }
560
618
  }
561
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;
562
640
  class CreateServiceResponseBody extends $tea.Model {
563
641
  constructor(map) {
564
642
  super(map);
@@ -1153,6 +1231,76 @@ class DeleteServiceInstancesResponse extends $tea.Model {
1153
1231
  }
1154
1232
  }
1155
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;
1156
1304
  class DeleteServiceMirrorResponseBody extends $tea.Model {
1157
1305
  constructor(map) {
1158
1306
  super(map);
@@ -1769,13 +1917,67 @@ class DescribeServiceMirrorResponse extends $tea.Model {
1769
1917
  }
1770
1918
  }
1771
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;
1772
1974
  class ListBenchmarkTaskRequest extends $tea.Model {
1773
1975
  constructor(map) {
1774
1976
  super(map);
1775
1977
  }
1776
1978
  static names() {
1777
1979
  return {
1778
- fileter: 'Fileter',
1980
+ filter: 'Filter',
1779
1981
  pageNumber: 'PageNumber',
1780
1982
  pageSize: 'PageSize',
1781
1983
  serviceName: 'ServiceName',
@@ -1783,7 +1985,7 @@ class ListBenchmarkTaskRequest extends $tea.Model {
1783
1985
  }
1784
1986
  static types() {
1785
1987
  return {
1786
- fileter: 'string',
1988
+ filter: 'string',
1787
1989
  pageNumber: 'string',
1788
1990
  pageSize: 'string',
1789
1991
  serviceName: 'string',
@@ -1968,6 +2170,8 @@ class ListResourceInstancesRequest extends $tea.Model {
1968
2170
  static names() {
1969
2171
  return {
1970
2172
  chargeType: 'ChargeType',
2173
+ instanceId: 'InstanceId',
2174
+ instanceName: 'InstanceName',
1971
2175
  pageNumber: 'PageNumber',
1972
2176
  pageSize: 'PageSize',
1973
2177
  };
@@ -1975,6 +2179,8 @@ class ListResourceInstancesRequest extends $tea.Model {
1975
2179
  static types() {
1976
2180
  return {
1977
2181
  chargeType: 'string',
2182
+ instanceId: 'string',
2183
+ instanceName: 'string',
1978
2184
  pageNumber: 'number',
1979
2185
  pageSize: 'number',
1980
2186
  };
@@ -2095,12 +2301,16 @@ class ListResourcesRequest extends $tea.Model {
2095
2301
  return {
2096
2302
  pageNumber: 'PageNumber',
2097
2303
  pageSize: 'PageSize',
2304
+ resourceId: 'ResourceId',
2305
+ resourceName: 'ResourceName',
2098
2306
  };
2099
2307
  }
2100
2308
  static types() {
2101
2309
  return {
2102
2310
  pageNumber: 'number',
2103
2311
  pageSize: 'number',
2312
+ resourceId: 'string',
2313
+ resourceName: 'string',
2104
2314
  };
2105
2315
  }
2106
2316
  }
@@ -2281,9 +2491,12 @@ class ListServicesRequest extends $tea.Model {
2281
2491
  return {
2282
2492
  filter: 'Filter',
2283
2493
  groupName: 'GroupName',
2494
+ label: 'Label',
2284
2495
  order: 'Order',
2285
2496
  pageNumber: 'PageNumber',
2286
2497
  pageSize: 'PageSize',
2498
+ parentServiceUid: 'ParentServiceUid',
2499
+ serviceType: 'ServiceType',
2287
2500
  sort: 'Sort',
2288
2501
  };
2289
2502
  }
@@ -2291,14 +2504,49 @@ class ListServicesRequest extends $tea.Model {
2291
2504
  return {
2292
2505
  filter: 'string',
2293
2506
  groupName: 'string',
2507
+ label: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2294
2508
  order: 'string',
2295
2509
  pageNumber: 'number',
2296
2510
  pageSize: 'number',
2511
+ parentServiceUid: 'string',
2512
+ serviceType: 'string',
2297
2513
  sort: 'string',
2298
2514
  };
2299
2515
  }
2300
2516
  }
2301
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;
2302
2550
  class ListServicesResponseBody extends $tea.Model {
2303
2551
  constructor(map) {
2304
2552
  super(map);
@@ -2721,6 +2969,62 @@ class UpdateResourceDLinkResponse extends $tea.Model {
2721
2969
  }
2722
2970
  }
2723
2971
  exports.UpdateResourceDLinkResponse = UpdateResourceDLinkResponse;
2972
+ class UpdateResourceInstanceRequest extends $tea.Model {
2973
+ constructor(map) {
2974
+ super(map);
2975
+ }
2976
+ static names() {
2977
+ return {
2978
+ action: 'Action',
2979
+ };
2980
+ }
2981
+ static types() {
2982
+ return {
2983
+ action: 'string',
2984
+ };
2985
+ }
2986
+ }
2987
+ exports.UpdateResourceInstanceRequest = UpdateResourceInstanceRequest;
2988
+ class UpdateResourceInstanceResponseBody extends $tea.Model {
2989
+ constructor(map) {
2990
+ super(map);
2991
+ }
2992
+ static names() {
2993
+ return {
2994
+ instanceId: 'InstanceId',
2995
+ requestId: 'RequestId',
2996
+ resourceId: 'ResourceId',
2997
+ };
2998
+ }
2999
+ static types() {
3000
+ return {
3001
+ instanceId: 'string',
3002
+ requestId: 'string',
3003
+ resourceId: 'string',
3004
+ };
3005
+ }
3006
+ }
3007
+ exports.UpdateResourceInstanceResponseBody = UpdateResourceInstanceResponseBody;
3008
+ class UpdateResourceInstanceResponse extends $tea.Model {
3009
+ constructor(map) {
3010
+ super(map);
3011
+ }
3012
+ static names() {
3013
+ return {
3014
+ headers: 'headers',
3015
+ statusCode: 'statusCode',
3016
+ body: 'body',
3017
+ };
3018
+ }
3019
+ static types() {
3020
+ return {
3021
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3022
+ statusCode: 'number',
3023
+ body: UpdateResourceInstanceResponseBody,
3024
+ };
3025
+ }
3026
+ }
3027
+ exports.UpdateResourceInstanceResponse = UpdateResourceInstanceResponse;
2724
3028
  class UpdateServiceRequest extends $tea.Model {
2725
3029
  constructor(map) {
2726
3030
  super(map);
@@ -2889,25 +3193,23 @@ class UpdateServiceCronScalerResponse extends $tea.Model {
2889
3193
  }
2890
3194
  }
2891
3195
  exports.UpdateServiceCronScalerResponse = UpdateServiceCronScalerResponse;
2892
- class UpdateServiceMirrorRequest extends $tea.Model {
3196
+ class UpdateServiceLabelRequest extends $tea.Model {
2893
3197
  constructor(map) {
2894
3198
  super(map);
2895
3199
  }
2896
3200
  static names() {
2897
3201
  return {
2898
- ratio: 'Ratio',
2899
- target: 'Target',
3202
+ labels: 'Labels',
2900
3203
  };
2901
3204
  }
2902
3205
  static types() {
2903
3206
  return {
2904
- ratio: 'number',
2905
- target: { 'type': 'array', 'itemType': 'string' },
3207
+ labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2906
3208
  };
2907
3209
  }
2908
3210
  }
2909
- exports.UpdateServiceMirrorRequest = UpdateServiceMirrorRequest;
2910
- class UpdateServiceMirrorResponseBody extends $tea.Model {
3211
+ exports.UpdateServiceLabelRequest = UpdateServiceLabelRequest;
3212
+ class UpdateServiceLabelResponseBody extends $tea.Model {
2911
3213
  constructor(map) {
2912
3214
  super(map);
2913
3215
  }
@@ -2924,8 +3226,8 @@ class UpdateServiceMirrorResponseBody extends $tea.Model {
2924
3226
  };
2925
3227
  }
2926
3228
  }
2927
- exports.UpdateServiceMirrorResponseBody = UpdateServiceMirrorResponseBody;
2928
- class UpdateServiceMirrorResponse extends $tea.Model {
3229
+ exports.UpdateServiceLabelResponseBody = UpdateServiceLabelResponseBody;
3230
+ class UpdateServiceLabelResponse extends $tea.Model {
2929
3231
  constructor(map) {
2930
3232
  super(map);
2931
3233
  }
@@ -2940,28 +3242,30 @@ class UpdateServiceMirrorResponse extends $tea.Model {
2940
3242
  return {
2941
3243
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2942
3244
  statusCode: 'number',
2943
- body: UpdateServiceMirrorResponseBody,
3245
+ body: UpdateServiceLabelResponseBody,
2944
3246
  };
2945
3247
  }
2946
3248
  }
2947
- exports.UpdateServiceMirrorResponse = UpdateServiceMirrorResponse;
2948
- class UpdateServiceVersionRequest extends $tea.Model {
3249
+ exports.UpdateServiceLabelResponse = UpdateServiceLabelResponse;
3250
+ class UpdateServiceMirrorRequest extends $tea.Model {
2949
3251
  constructor(map) {
2950
3252
  super(map);
2951
3253
  }
2952
3254
  static names() {
2953
3255
  return {
2954
- version: 'Version',
3256
+ ratio: 'Ratio',
3257
+ target: 'Target',
2955
3258
  };
2956
3259
  }
2957
3260
  static types() {
2958
3261
  return {
2959
- version: 'number',
3262
+ ratio: 'number',
3263
+ target: { 'type': 'array', 'itemType': 'string' },
2960
3264
  };
2961
3265
  }
2962
3266
  }
2963
- exports.UpdateServiceVersionRequest = UpdateServiceVersionRequest;
2964
- class UpdateServiceVersionResponseBody extends $tea.Model {
3267
+ exports.UpdateServiceMirrorRequest = UpdateServiceMirrorRequest;
3268
+ class UpdateServiceMirrorResponseBody extends $tea.Model {
2965
3269
  constructor(map) {
2966
3270
  super(map);
2967
3271
  }
@@ -2978,7 +3282,115 @@ class UpdateServiceVersionResponseBody extends $tea.Model {
2978
3282
  };
2979
3283
  }
2980
3284
  }
2981
- exports.UpdateServiceVersionResponseBody = UpdateServiceVersionResponseBody;
3285
+ exports.UpdateServiceMirrorResponseBody = UpdateServiceMirrorResponseBody;
3286
+ class UpdateServiceMirrorResponse extends $tea.Model {
3287
+ constructor(map) {
3288
+ super(map);
3289
+ }
3290
+ static names() {
3291
+ return {
3292
+ headers: 'headers',
3293
+ statusCode: 'statusCode',
3294
+ body: 'body',
3295
+ };
3296
+ }
3297
+ static types() {
3298
+ return {
3299
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3300
+ statusCode: 'number',
3301
+ body: UpdateServiceMirrorResponseBody,
3302
+ };
3303
+ }
3304
+ }
3305
+ exports.UpdateServiceMirrorResponse = UpdateServiceMirrorResponse;
3306
+ class UpdateServiceSafetyLockRequest extends $tea.Model {
3307
+ constructor(map) {
3308
+ super(map);
3309
+ }
3310
+ static names() {
3311
+ return {
3312
+ lock: 'Lock',
3313
+ };
3314
+ }
3315
+ static types() {
3316
+ return {
3317
+ lock: 'string',
3318
+ };
3319
+ }
3320
+ }
3321
+ exports.UpdateServiceSafetyLockRequest = UpdateServiceSafetyLockRequest;
3322
+ class UpdateServiceSafetyLockResponseBody extends $tea.Model {
3323
+ constructor(map) {
3324
+ super(map);
3325
+ }
3326
+ static names() {
3327
+ return {
3328
+ message: 'Message',
3329
+ requestId: 'RequestId',
3330
+ };
3331
+ }
3332
+ static types() {
3333
+ return {
3334
+ message: 'string',
3335
+ requestId: 'string',
3336
+ };
3337
+ }
3338
+ }
3339
+ exports.UpdateServiceSafetyLockResponseBody = UpdateServiceSafetyLockResponseBody;
3340
+ class UpdateServiceSafetyLockResponse extends $tea.Model {
3341
+ constructor(map) {
3342
+ super(map);
3343
+ }
3344
+ static names() {
3345
+ return {
3346
+ headers: 'headers',
3347
+ statusCode: 'statusCode',
3348
+ body: 'body',
3349
+ };
3350
+ }
3351
+ static types() {
3352
+ return {
3353
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3354
+ statusCode: 'number',
3355
+ body: UpdateServiceSafetyLockResponseBody,
3356
+ };
3357
+ }
3358
+ }
3359
+ exports.UpdateServiceSafetyLockResponse = UpdateServiceSafetyLockResponse;
3360
+ class UpdateServiceVersionRequest extends $tea.Model {
3361
+ constructor(map) {
3362
+ super(map);
3363
+ }
3364
+ static names() {
3365
+ return {
3366
+ version: 'Version',
3367
+ };
3368
+ }
3369
+ static types() {
3370
+ return {
3371
+ version: 'number',
3372
+ };
3373
+ }
3374
+ }
3375
+ exports.UpdateServiceVersionRequest = UpdateServiceVersionRequest;
3376
+ class UpdateServiceVersionResponseBody extends $tea.Model {
3377
+ constructor(map) {
3378
+ super(map);
3379
+ }
3380
+ static names() {
3381
+ return {
3382
+ message: 'Message',
3383
+ requestId: 'RequestId',
3384
+ };
3385
+ }
3386
+ static types() {
3387
+ return {
3388
+ message: 'string',
3389
+ requestId: 'string',
3390
+ };
3391
+ }
3392
+ }
3393
+ exports.UpdateServiceVersionResponseBody = UpdateServiceVersionResponseBody;
2982
3394
  class UpdateServiceVersionResponse extends $tea.Model {
2983
3395
  constructor(map) {
2984
3396
  super(map);
@@ -2999,6 +3411,24 @@ class UpdateServiceVersionResponse extends $tea.Model {
2999
3411
  }
3000
3412
  }
3001
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;
3002
3432
  class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
3003
3433
  constructor(map) {
3004
3434
  super(map);
@@ -3258,10 +3688,27 @@ class Client extends openapi_client_1.default {
3258
3688
  }
3259
3689
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3260
3690
  }
3261
- 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) {
3262
3709
  let runtime = new $Util.RuntimeOptions({});
3263
3710
  let headers = {};
3264
- return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
3711
+ return await this.commitServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3265
3712
  }
3266
3713
  async createBenchmarkTaskWithOptions(request, headers, runtime) {
3267
3714
  tea_util_1.default.validateModel(request);
@@ -3282,10 +3729,10 @@ class Client extends openapi_client_1.default {
3282
3729
  });
3283
3730
  return $tea.cast(await this.callApi(params, req, runtime), new CreateBenchmarkTaskResponse({}));
3284
3731
  }
3285
- async createResource(request) {
3732
+ async createBenchmarkTask(request) {
3286
3733
  let runtime = new $Util.RuntimeOptions({});
3287
3734
  let headers = {};
3288
- return await this.createResourceWithOptions(request, headers, runtime);
3735
+ return await this.createBenchmarkTaskWithOptions(request, headers, runtime);
3289
3736
  }
3290
3737
  async createResourceWithOptions(request, headers, runtime) {
3291
3738
  tea_util_1.default.validateModel(request);
@@ -3319,10 +3766,10 @@ class Client extends openapi_client_1.default {
3319
3766
  });
3320
3767
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
3321
3768
  }
3322
- async createResourceInstances(ClusterId, ResourceId, request) {
3769
+ async createResource(request) {
3323
3770
  let runtime = new $Util.RuntimeOptions({});
3324
3771
  let headers = {};
3325
- return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3772
+ return await this.createResourceWithOptions(request, headers, runtime);
3326
3773
  }
3327
3774
  async createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3328
3775
  tea_util_1.default.validateModel(request);
@@ -3359,10 +3806,10 @@ class Client extends openapi_client_1.default {
3359
3806
  });
3360
3807
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceInstancesResponse({}));
3361
3808
  }
3362
- async createResourceLog(ClusterId, ResourceId, request) {
3809
+ async createResourceInstances(ClusterId, ResourceId, request) {
3363
3810
  let runtime = new $Util.RuntimeOptions({});
3364
3811
  let headers = {};
3365
- return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
3812
+ return await this.createResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3366
3813
  }
3367
3814
  async createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3368
3815
  tea_util_1.default.validateModel(request);
@@ -3390,15 +3837,28 @@ class Client extends openapi_client_1.default {
3390
3837
  });
3391
3838
  return $tea.cast(await this.callApi(params, req, runtime), new CreateResourceLogResponse({}));
3392
3839
  }
3393
- async createService(request) {
3840
+ async createResourceLog(ClusterId, ResourceId, request) {
3394
3841
  let runtime = new $Util.RuntimeOptions({});
3395
3842
  let headers = {};
3396
- return await this.createServiceWithOptions(request, headers, runtime);
3843
+ return await this.createResourceLogWithOptions(ClusterId, ResourceId, request, headers, runtime);
3397
3844
  }
3398
- async createServiceWithOptions(request, headers, runtime) {
3399
- 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
+ }
3400
3859
  let req = new $OpenApi.OpenApiRequest({
3401
3860
  headers: headers,
3861
+ query: openapi_util_1.default.query(query),
3402
3862
  body: request.body,
3403
3863
  });
3404
3864
  let params = new $OpenApi.Params({
@@ -3414,10 +3874,10 @@ class Client extends openapi_client_1.default {
3414
3874
  });
3415
3875
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceResponse({}));
3416
3876
  }
3417
- async createServiceAutoScaler(ClusterId, ServiceName, request) {
3877
+ async createService(request) {
3418
3878
  let runtime = new $Util.RuntimeOptions({});
3419
3879
  let headers = {};
3420
- return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3880
+ return await this.createServiceWithOptions(request, headers, runtime);
3421
3881
  }
3422
3882
  async createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3423
3883
  tea_util_1.default.validateModel(request);
@@ -3448,10 +3908,10 @@ class Client extends openapi_client_1.default {
3448
3908
  });
3449
3909
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceAutoScalerResponse({}));
3450
3910
  }
3451
- async createServiceCronScaler(ClusterId, ServiceName, request) {
3911
+ async createServiceAutoScaler(ClusterId, ServiceName, request) {
3452
3912
  let runtime = new $Util.RuntimeOptions({});
3453
3913
  let headers = {};
3454
- return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3914
+ return await this.createServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3455
3915
  }
3456
3916
  async createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3457
3917
  tea_util_1.default.validateModel(request);
@@ -3479,10 +3939,10 @@ class Client extends openapi_client_1.default {
3479
3939
  });
3480
3940
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceCronScalerResponse({}));
3481
3941
  }
3482
- async createServiceMirror(ClusterId, ServiceName, request) {
3942
+ async createServiceCronScaler(ClusterId, ServiceName, request) {
3483
3943
  let runtime = new $Util.RuntimeOptions({});
3484
3944
  let headers = {};
3485
- return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
3945
+ return await this.createServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
3486
3946
  }
3487
3947
  async createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3488
3948
  tea_util_1.default.validateModel(request);
@@ -3510,10 +3970,10 @@ class Client extends openapi_client_1.default {
3510
3970
  });
3511
3971
  return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
3512
3972
  }
3513
- async deleteBenchmarkTask(ClusterId, TaskName) {
3973
+ async createServiceMirror(ClusterId, ServiceName, request) {
3514
3974
  let runtime = new $Util.RuntimeOptions({});
3515
3975
  let headers = {};
3516
- return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3976
+ return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
3517
3977
  }
3518
3978
  async deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3519
3979
  let req = new $OpenApi.OpenApiRequest({
@@ -3532,10 +3992,10 @@ class Client extends openapi_client_1.default {
3532
3992
  });
3533
3993
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteBenchmarkTaskResponse({}));
3534
3994
  }
3535
- async deleteResource(ClusterId, ResourceId) {
3995
+ async deleteBenchmarkTask(ClusterId, TaskName) {
3536
3996
  let runtime = new $Util.RuntimeOptions({});
3537
3997
  let headers = {};
3538
- return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
3998
+ return await this.deleteBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3539
3999
  }
3540
4000
  async deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
3541
4001
  let req = new $OpenApi.OpenApiRequest({
@@ -3554,10 +4014,10 @@ class Client extends openapi_client_1.default {
3554
4014
  });
3555
4015
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceResponse({}));
3556
4016
  }
3557
- async deleteResourceDLink(ClusterId, ResourceId) {
4017
+ async deleteResource(ClusterId, ResourceId) {
3558
4018
  let runtime = new $Util.RuntimeOptions({});
3559
4019
  let headers = {};
3560
- return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
4020
+ return await this.deleteResourceWithOptions(ClusterId, ResourceId, headers, runtime);
3561
4021
  }
3562
4022
  async deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
3563
4023
  let req = new $OpenApi.OpenApiRequest({
@@ -3576,10 +4036,10 @@ class Client extends openapi_client_1.default {
3576
4036
  });
3577
4037
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceDLinkResponse({}));
3578
4038
  }
3579
- async deleteResourceInstances(ClusterId, ResourceId, request) {
4039
+ async deleteResourceDLink(ClusterId, ResourceId) {
3580
4040
  let runtime = new $Util.RuntimeOptions({});
3581
4041
  let headers = {};
3582
- return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4042
+ return await this.deleteResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
3583
4043
  }
3584
4044
  async deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
3585
4045
  tea_util_1.default.validateModel(request);
@@ -3607,10 +4067,10 @@ class Client extends openapi_client_1.default {
3607
4067
  });
3608
4068
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceInstancesResponse({}));
3609
4069
  }
3610
- async deleteResourceLog(ClusterId, ResourceId) {
4070
+ async deleteResourceInstances(ClusterId, ResourceId, request) {
3611
4071
  let runtime = new $Util.RuntimeOptions({});
3612
4072
  let headers = {};
3613
- return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4073
+ return await this.deleteResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
3614
4074
  }
3615
4075
  async deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
3616
4076
  let req = new $OpenApi.OpenApiRequest({
@@ -3629,10 +4089,10 @@ class Client extends openapi_client_1.default {
3629
4089
  });
3630
4090
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteResourceLogResponse({}));
3631
4091
  }
3632
- async deleteService(ClusterId, ServiceName) {
4092
+ async deleteResourceLog(ClusterId, ResourceId) {
3633
4093
  let runtime = new $Util.RuntimeOptions({});
3634
4094
  let headers = {};
3635
- return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4095
+ return await this.deleteResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
3636
4096
  }
3637
4097
  async deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
3638
4098
  let req = new $OpenApi.OpenApiRequest({
@@ -3651,10 +4111,10 @@ class Client extends openapi_client_1.default {
3651
4111
  });
3652
4112
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceResponse({}));
3653
4113
  }
3654
- async deleteServiceAutoScaler(ClusterId, ServiceName) {
4114
+ async deleteService(ClusterId, ServiceName) {
3655
4115
  let runtime = new $Util.RuntimeOptions({});
3656
4116
  let headers = {};
3657
- return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4117
+ return await this.deleteServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3658
4118
  }
3659
4119
  async deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3660
4120
  let req = new $OpenApi.OpenApiRequest({
@@ -3673,10 +4133,10 @@ class Client extends openapi_client_1.default {
3673
4133
  });
3674
4134
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceAutoScalerResponse({}));
3675
4135
  }
3676
- async deleteServiceCronScaler(ClusterId, ServiceName) {
4136
+ async deleteServiceAutoScaler(ClusterId, ServiceName) {
3677
4137
  let runtime = new $Util.RuntimeOptions({});
3678
4138
  let headers = {};
3679
- return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4139
+ return await this.deleteServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
3680
4140
  }
3681
4141
  async deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3682
4142
  let req = new $OpenApi.OpenApiRequest({
@@ -3695,10 +4155,10 @@ class Client extends openapi_client_1.default {
3695
4155
  });
3696
4156
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceCronScalerResponse({}));
3697
4157
  }
3698
- async deleteServiceInstances(ClusterId, ServiceName, request) {
4158
+ async deleteServiceCronScaler(ClusterId, ServiceName) {
3699
4159
  let runtime = new $Util.RuntimeOptions({});
3700
4160
  let headers = {};
3701
- return await this.deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
4161
+ return await this.deleteServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
3702
4162
  }
3703
4163
  async deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3704
4164
  tea_util_1.default.validateModel(request);
@@ -3723,10 +4183,43 @@ class Client extends openapi_client_1.default {
3723
4183
  });
3724
4184
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceInstancesResponse({}));
3725
4185
  }
3726
- async deleteServiceMirror(ClusterId, ServiceName) {
4186
+ async deleteServiceInstances(ClusterId, ServiceName, request) {
3727
4187
  let runtime = new $Util.RuntimeOptions({});
3728
4188
  let headers = {};
3729
- 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);
3730
4223
  }
3731
4224
  async deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
3732
4225
  let req = new $OpenApi.OpenApiRequest({
@@ -3745,10 +4238,10 @@ class Client extends openapi_client_1.default {
3745
4238
  });
3746
4239
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
3747
4240
  }
3748
- async describeBenchmarkTask(ClusterId, TaskName) {
4241
+ async deleteServiceMirror(ClusterId, ServiceName) {
3749
4242
  let runtime = new $Util.RuntimeOptions({});
3750
4243
  let headers = {};
3751
- return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4244
+ return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
3752
4245
  }
3753
4246
  async describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
3754
4247
  let req = new $OpenApi.OpenApiRequest({
@@ -3767,10 +4260,10 @@ class Client extends openapi_client_1.default {
3767
4260
  });
3768
4261
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskResponse({}));
3769
4262
  }
3770
- async describeBenchmarkTaskReport(ClusterId, TaskName, request) {
4263
+ async describeBenchmarkTask(ClusterId, TaskName) {
3771
4264
  let runtime = new $Util.RuntimeOptions({});
3772
4265
  let headers = {};
3773
- return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
4266
+ return await this.describeBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
3774
4267
  }
3775
4268
  async describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime) {
3776
4269
  tea_util_1.default.validateModel(request);
@@ -3795,10 +4288,10 @@ class Client extends openapi_client_1.default {
3795
4288
  });
3796
4289
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeBenchmarkTaskReportResponse({}));
3797
4290
  }
3798
- async describeGroup(ClusterId, GroupName) {
4291
+ async describeBenchmarkTaskReport(ClusterId, TaskName, request) {
3799
4292
  let runtime = new $Util.RuntimeOptions({});
3800
4293
  let headers = {};
3801
- return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
4294
+ return await this.describeBenchmarkTaskReportWithOptions(ClusterId, TaskName, request, headers, runtime);
3802
4295
  }
3803
4296
  async describeGroupWithOptions(ClusterId, GroupName, headers, runtime) {
3804
4297
  let req = new $OpenApi.OpenApiRequest({
@@ -3817,10 +4310,10 @@ class Client extends openapi_client_1.default {
3817
4310
  });
3818
4311
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeGroupResponse({}));
3819
4312
  }
3820
- async describeResource(ClusterId, ResourceId) {
4313
+ async describeGroup(ClusterId, GroupName) {
3821
4314
  let runtime = new $Util.RuntimeOptions({});
3822
4315
  let headers = {};
3823
- return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
4316
+ return await this.describeGroupWithOptions(ClusterId, GroupName, headers, runtime);
3824
4317
  }
3825
4318
  async describeResourceWithOptions(ClusterId, ResourceId, headers, runtime) {
3826
4319
  let req = new $OpenApi.OpenApiRequest({
@@ -3839,10 +4332,10 @@ class Client extends openapi_client_1.default {
3839
4332
  });
3840
4333
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceResponse({}));
3841
4334
  }
3842
- async describeResourceDLink(ClusterId, ResourceId) {
4335
+ async describeResource(ClusterId, ResourceId) {
3843
4336
  let runtime = new $Util.RuntimeOptions({});
3844
4337
  let headers = {};
3845
- return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
4338
+ return await this.describeResourceWithOptions(ClusterId, ResourceId, headers, runtime);
3846
4339
  }
3847
4340
  async describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime) {
3848
4341
  let req = new $OpenApi.OpenApiRequest({
@@ -3861,10 +4354,10 @@ class Client extends openapi_client_1.default {
3861
4354
  });
3862
4355
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceDLinkResponse({}));
3863
4356
  }
3864
- async describeResourceLog(ClusterId, ResourceId) {
4357
+ async describeResourceDLink(ClusterId, ResourceId) {
3865
4358
  let runtime = new $Util.RuntimeOptions({});
3866
4359
  let headers = {};
3867
- return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
4360
+ return await this.describeResourceDLinkWithOptions(ClusterId, ResourceId, headers, runtime);
3868
4361
  }
3869
4362
  async describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime) {
3870
4363
  let req = new $OpenApi.OpenApiRequest({
@@ -3883,10 +4376,10 @@ class Client extends openapi_client_1.default {
3883
4376
  });
3884
4377
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeResourceLogResponse({}));
3885
4378
  }
3886
- async describeService(ClusterId, ServiceName) {
4379
+ async describeResourceLog(ClusterId, ResourceId) {
3887
4380
  let runtime = new $Util.RuntimeOptions({});
3888
4381
  let headers = {};
3889
- return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4382
+ return await this.describeResourceLogWithOptions(ClusterId, ResourceId, headers, runtime);
3890
4383
  }
3891
4384
  async describeServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
3892
4385
  let req = new $OpenApi.OpenApiRequest({
@@ -3905,10 +4398,10 @@ class Client extends openapi_client_1.default {
3905
4398
  });
3906
4399
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceResponse({}));
3907
4400
  }
3908
- async describeServiceAutoScaler(ClusterId, ServiceName) {
4401
+ async describeService(ClusterId, ServiceName) {
3909
4402
  let runtime = new $Util.RuntimeOptions({});
3910
4403
  let headers = {};
3911
- return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4404
+ return await this.describeServiceWithOptions(ClusterId, ServiceName, headers, runtime);
3912
4405
  }
3913
4406
  async describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3914
4407
  let req = new $OpenApi.OpenApiRequest({
@@ -3927,10 +4420,10 @@ class Client extends openapi_client_1.default {
3927
4420
  });
3928
4421
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceAutoScalerResponse({}));
3929
4422
  }
3930
- async describeServiceCronScaler(ClusterId, ServiceName) {
4423
+ async describeServiceAutoScaler(ClusterId, ServiceName) {
3931
4424
  let runtime = new $Util.RuntimeOptions({});
3932
4425
  let headers = {};
3933
- return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4426
+ return await this.describeServiceAutoScalerWithOptions(ClusterId, ServiceName, headers, runtime);
3934
4427
  }
3935
4428
  async describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime) {
3936
4429
  let req = new $OpenApi.OpenApiRequest({
@@ -3949,10 +4442,10 @@ class Client extends openapi_client_1.default {
3949
4442
  });
3950
4443
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceCronScalerResponse({}));
3951
4444
  }
3952
- async describeServiceEvent(ClusterId, ServiceName, request) {
4445
+ async describeServiceCronScaler(ClusterId, ServiceName) {
3953
4446
  let runtime = new $Util.RuntimeOptions({});
3954
4447
  let headers = {};
3955
- return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
4448
+ return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
3956
4449
  }
3957
4450
  async describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3958
4451
  tea_util_1.default.validateModel(request);
@@ -3986,10 +4479,10 @@ class Client extends openapi_client_1.default {
3986
4479
  });
3987
4480
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceEventResponse({}));
3988
4481
  }
3989
- async describeServiceLog(ClusterId, ServiceName, request) {
4482
+ async describeServiceEvent(ClusterId, ServiceName, request) {
3990
4483
  let runtime = new $Util.RuntimeOptions({});
3991
4484
  let headers = {};
3992
- return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
4485
+ return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
3993
4486
  }
3994
4487
  async describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime) {
3995
4488
  tea_util_1.default.validateModel(request);
@@ -4029,10 +4522,10 @@ class Client extends openapi_client_1.default {
4029
4522
  });
4030
4523
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceLogResponse({}));
4031
4524
  }
4032
- async describeServiceMirror(ClusterId, ServiceName) {
4525
+ async describeServiceLog(ClusterId, ServiceName, request) {
4033
4526
  let runtime = new $Util.RuntimeOptions({});
4034
4527
  let headers = {};
4035
- return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
4528
+ return await this.describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime);
4036
4529
  }
4037
4530
  async describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime) {
4038
4531
  let req = new $OpenApi.OpenApiRequest({
@@ -4051,16 +4544,44 @@ class Client extends openapi_client_1.default {
4051
4544
  });
4052
4545
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
4053
4546
  }
4054
- async listBenchmarkTask(request) {
4547
+ async describeServiceMirror(ClusterId, ServiceName) {
4055
4548
  let runtime = new $Util.RuntimeOptions({});
4056
4549
  let headers = {};
4057
- 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);
4058
4579
  }
4059
4580
  async listBenchmarkTaskWithOptions(request, headers, runtime) {
4060
4581
  tea_util_1.default.validateModel(request);
4061
4582
  let query = {};
4062
- if (!tea_util_1.default.isUnset(request.fileter)) {
4063
- query["Fileter"] = request.fileter;
4583
+ if (!tea_util_1.default.isUnset(request.filter)) {
4584
+ query["Filter"] = request.filter;
4064
4585
  }
4065
4586
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
4066
4587
  query["PageNumber"] = request.pageNumber;
@@ -4088,10 +4609,10 @@ class Client extends openapi_client_1.default {
4088
4609
  });
4089
4610
  return $tea.cast(await this.callApi(params, req, runtime), new ListBenchmarkTaskResponse({}));
4090
4611
  }
4091
- async listGroups(request) {
4612
+ async listBenchmarkTask(request) {
4092
4613
  let runtime = new $Util.RuntimeOptions({});
4093
4614
  let headers = {};
4094
- return await this.listGroupsWithOptions(request, headers, runtime);
4615
+ return await this.listBenchmarkTaskWithOptions(request, headers, runtime);
4095
4616
  }
4096
4617
  async listGroupsWithOptions(request, headers, runtime) {
4097
4618
  tea_util_1.default.validateModel(request);
@@ -4122,10 +4643,10 @@ class Client extends openapi_client_1.default {
4122
4643
  });
4123
4644
  return $tea.cast(await this.callApi(params, req, runtime), new ListGroupsResponse({}));
4124
4645
  }
4125
- async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
4646
+ async listGroups(request) {
4126
4647
  let runtime = new $Util.RuntimeOptions({});
4127
4648
  let headers = {};
4128
- return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
4649
+ return await this.listGroupsWithOptions(request, headers, runtime);
4129
4650
  }
4130
4651
  async listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime) {
4131
4652
  tea_util_1.default.validateModel(request);
@@ -4153,10 +4674,10 @@ class Client extends openapi_client_1.default {
4153
4674
  });
4154
4675
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceInstanceWorkerResponse({}));
4155
4676
  }
4156
- async listResourceInstances(ClusterId, ResourceId, request) {
4677
+ async listResourceInstanceWorker(ClusterId, ResourceId, InstanceName, request) {
4157
4678
  let runtime = new $Util.RuntimeOptions({});
4158
4679
  let headers = {};
4159
- return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4680
+ return await this.listResourceInstanceWorkerWithOptions(ClusterId, ResourceId, InstanceName, request, headers, runtime);
4160
4681
  }
4161
4682
  async listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4162
4683
  tea_util_1.default.validateModel(request);
@@ -4164,6 +4685,12 @@ class Client extends openapi_client_1.default {
4164
4685
  if (!tea_util_1.default.isUnset(request.chargeType)) {
4165
4686
  query["ChargeType"] = request.chargeType;
4166
4687
  }
4688
+ if (!tea_util_1.default.isUnset(request.instanceId)) {
4689
+ query["InstanceId"] = request.instanceId;
4690
+ }
4691
+ if (!tea_util_1.default.isUnset(request.instanceName)) {
4692
+ query["InstanceName"] = request.instanceName;
4693
+ }
4167
4694
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
4168
4695
  query["PageNumber"] = request.pageNumber;
4169
4696
  }
@@ -4187,10 +4714,10 @@ class Client extends openapi_client_1.default {
4187
4714
  });
4188
4715
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceInstancesResponse({}));
4189
4716
  }
4190
- async listResourceServices(ClusterId, ResourceId, request) {
4717
+ async listResourceInstances(ClusterId, ResourceId, request) {
4191
4718
  let runtime = new $Util.RuntimeOptions({});
4192
4719
  let headers = {};
4193
- return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4720
+ return await this.listResourceInstancesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4194
4721
  }
4195
4722
  async listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4196
4723
  tea_util_1.default.validateModel(request);
@@ -4218,10 +4745,10 @@ class Client extends openapi_client_1.default {
4218
4745
  });
4219
4746
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourceServicesResponse({}));
4220
4747
  }
4221
- async listResources(request) {
4748
+ async listResourceServices(ClusterId, ResourceId, request) {
4222
4749
  let runtime = new $Util.RuntimeOptions({});
4223
4750
  let headers = {};
4224
- return await this.listResourcesWithOptions(request, headers, runtime);
4751
+ return await this.listResourceServicesWithOptions(ClusterId, ResourceId, request, headers, runtime);
4225
4752
  }
4226
4753
  async listResourcesWithOptions(request, headers, runtime) {
4227
4754
  tea_util_1.default.validateModel(request);
@@ -4232,6 +4759,12 @@ class Client extends openapi_client_1.default {
4232
4759
  if (!tea_util_1.default.isUnset(request.pageSize)) {
4233
4760
  query["PageSize"] = request.pageSize;
4234
4761
  }
4762
+ if (!tea_util_1.default.isUnset(request.resourceId)) {
4763
+ query["ResourceId"] = request.resourceId;
4764
+ }
4765
+ if (!tea_util_1.default.isUnset(request.resourceName)) {
4766
+ query["ResourceName"] = request.resourceName;
4767
+ }
4235
4768
  let req = new $OpenApi.OpenApiRequest({
4236
4769
  headers: headers,
4237
4770
  query: openapi_util_1.default.query(query),
@@ -4249,10 +4782,10 @@ class Client extends openapi_client_1.default {
4249
4782
  });
4250
4783
  return $tea.cast(await this.callApi(params, req, runtime), new ListResourcesResponse({}));
4251
4784
  }
4252
- async listServiceInstances(ClusterId, ServiceName, request) {
4785
+ async listResources(request) {
4253
4786
  let runtime = new $Util.RuntimeOptions({});
4254
4787
  let headers = {};
4255
- return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
4788
+ return await this.listResourcesWithOptions(request, headers, runtime);
4256
4789
  }
4257
4790
  async listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4258
4791
  tea_util_1.default.validateModel(request);
@@ -4280,10 +4813,10 @@ class Client extends openapi_client_1.default {
4280
4813
  });
4281
4814
  return $tea.cast(await this.callApi(params, req, runtime), new ListServiceInstancesResponse({}));
4282
4815
  }
4283
- async listServiceVersions(ClusterId, ServiceName, request) {
4816
+ async listServiceInstances(ClusterId, ServiceName, request) {
4284
4817
  let runtime = new $Util.RuntimeOptions({});
4285
4818
  let headers = {};
4286
- return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
4819
+ return await this.listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime);
4287
4820
  }
4288
4821
  async listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4289
4822
  tea_util_1.default.validateModel(request);
@@ -4311,13 +4844,18 @@ class Client extends openapi_client_1.default {
4311
4844
  });
4312
4845
  return $tea.cast(await this.callApi(params, req, runtime), new ListServiceVersionsResponse({}));
4313
4846
  }
4314
- async listServices(request) {
4847
+ async listServiceVersions(ClusterId, ServiceName, request) {
4315
4848
  let runtime = new $Util.RuntimeOptions({});
4316
4849
  let headers = {};
4317
- return await this.listServicesWithOptions(request, headers, runtime);
4850
+ return await this.listServiceVersionsWithOptions(ClusterId, ServiceName, request, headers, runtime);
4318
4851
  }
4319
- async listServicesWithOptions(request, headers, runtime) {
4320
- 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
+ }
4321
4859
  let query = {};
4322
4860
  if (!tea_util_1.default.isUnset(request.filter)) {
4323
4861
  query["Filter"] = request.filter;
@@ -4325,6 +4863,9 @@ class Client extends openapi_client_1.default {
4325
4863
  if (!tea_util_1.default.isUnset(request.groupName)) {
4326
4864
  query["GroupName"] = request.groupName;
4327
4865
  }
4866
+ if (!tea_util_1.default.isUnset(request.labelShrink)) {
4867
+ query["Label"] = request.labelShrink;
4868
+ }
4328
4869
  if (!tea_util_1.default.isUnset(request.order)) {
4329
4870
  query["Order"] = request.order;
4330
4871
  }
@@ -4334,6 +4875,12 @@ class Client extends openapi_client_1.default {
4334
4875
  if (!tea_util_1.default.isUnset(request.pageSize)) {
4335
4876
  query["PageSize"] = request.pageSize;
4336
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
+ }
4337
4884
  if (!tea_util_1.default.isUnset(request.sort)) {
4338
4885
  query["Sort"] = request.sort;
4339
4886
  }
@@ -4354,10 +4901,10 @@ class Client extends openapi_client_1.default {
4354
4901
  });
4355
4902
  return $tea.cast(await this.callApi(params, req, runtime), new ListServicesResponse({}));
4356
4903
  }
4357
- async releaseService(ClusterId, ServiceName, request) {
4904
+ async listServices(request) {
4358
4905
  let runtime = new $Util.RuntimeOptions({});
4359
4906
  let headers = {};
4360
- return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4907
+ return await this.listServicesWithOptions(request, headers, runtime);
4361
4908
  }
4362
4909
  async releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4363
4910
  tea_util_1.default.validateModel(request);
@@ -4385,10 +4932,10 @@ class Client extends openapi_client_1.default {
4385
4932
  });
4386
4933
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
4387
4934
  }
4388
- async startBenchmarkTask(ClusterId, TaskName) {
4935
+ async releaseService(ClusterId, ServiceName, request) {
4389
4936
  let runtime = new $Util.RuntimeOptions({});
4390
4937
  let headers = {};
4391
- return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4938
+ return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4392
4939
  }
4393
4940
  async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
4394
4941
  let req = new $OpenApi.OpenApiRequest({
@@ -4407,10 +4954,10 @@ class Client extends openapi_client_1.default {
4407
4954
  });
4408
4955
  return $tea.cast(await this.callApi(params, req, runtime), new StartBenchmarkTaskResponse({}));
4409
4956
  }
4410
- async startService(ClusterId, ServiceName) {
4957
+ async startBenchmarkTask(ClusterId, TaskName) {
4411
4958
  let runtime = new $Util.RuntimeOptions({});
4412
4959
  let headers = {};
4413
- return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4960
+ return await this.startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4414
4961
  }
4415
4962
  async startServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
4416
4963
  let req = new $OpenApi.OpenApiRequest({
@@ -4429,10 +4976,10 @@ class Client extends openapi_client_1.default {
4429
4976
  });
4430
4977
  return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
4431
4978
  }
4432
- async stopBenchmarkTask(ClusterId, TaskName) {
4979
+ async startService(ClusterId, ServiceName) {
4433
4980
  let runtime = new $Util.RuntimeOptions({});
4434
4981
  let headers = {};
4435
- return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4982
+ return await this.startServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4436
4983
  }
4437
4984
  async stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
4438
4985
  let req = new $OpenApi.OpenApiRequest({
@@ -4451,10 +4998,10 @@ class Client extends openapi_client_1.default {
4451
4998
  });
4452
4999
  return $tea.cast(await this.callApi(params, req, runtime), new StopBenchmarkTaskResponse({}));
4453
5000
  }
4454
- async stopService(ClusterId, ServiceName) {
5001
+ async stopBenchmarkTask(ClusterId, TaskName) {
4455
5002
  let runtime = new $Util.RuntimeOptions({});
4456
5003
  let headers = {};
4457
- return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5004
+ return await this.stopBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime);
4458
5005
  }
4459
5006
  async stopServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
4460
5007
  let req = new $OpenApi.OpenApiRequest({
@@ -4473,10 +5020,10 @@ class Client extends openapi_client_1.default {
4473
5020
  });
4474
5021
  return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
4475
5022
  }
4476
- async updateBenchmarkTask(ClusterId, TaskName, request) {
5023
+ async stopService(ClusterId, ServiceName) {
4477
5024
  let runtime = new $Util.RuntimeOptions({});
4478
5025
  let headers = {};
4479
- return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
5026
+ return await this.stopServiceWithOptions(ClusterId, ServiceName, headers, runtime);
4480
5027
  }
4481
5028
  async updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime) {
4482
5029
  tea_util_1.default.validateModel(request);
@@ -4497,10 +5044,10 @@ class Client extends openapi_client_1.default {
4497
5044
  });
4498
5045
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateBenchmarkTaskResponse({}));
4499
5046
  }
4500
- async updateResource(ClusterId, ResourceId, request) {
5047
+ async updateBenchmarkTask(ClusterId, TaskName, request) {
4501
5048
  let runtime = new $Util.RuntimeOptions({});
4502
5049
  let headers = {};
4503
- return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
5050
+ return await this.updateBenchmarkTaskWithOptions(ClusterId, TaskName, request, headers, runtime);
4504
5051
  }
4505
5052
  async updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4506
5053
  tea_util_1.default.validateModel(request);
@@ -4525,10 +5072,10 @@ class Client extends openapi_client_1.default {
4525
5072
  });
4526
5073
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceResponse({}));
4527
5074
  }
4528
- async updateResourceDLink(ClusterId, ResourceId, request) {
5075
+ async updateResource(ClusterId, ResourceId, request) {
4529
5076
  let runtime = new $Util.RuntimeOptions({});
4530
5077
  let headers = {};
4531
- return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
5078
+ return await this.updateResourceWithOptions(ClusterId, ResourceId, request, headers, runtime);
4532
5079
  }
4533
5080
  async updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime) {
4534
5081
  tea_util_1.default.validateModel(request);
@@ -4562,10 +5109,38 @@ class Client extends openapi_client_1.default {
4562
5109
  });
4563
5110
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceDLinkResponse({}));
4564
5111
  }
4565
- async updateService(ClusterId, ServiceName, request) {
5112
+ async updateResourceDLink(ClusterId, ResourceId, request) {
4566
5113
  let runtime = new $Util.RuntimeOptions({});
4567
5114
  let headers = {};
4568
- return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5115
+ return await this.updateResourceDLinkWithOptions(ClusterId, ResourceId, request, headers, runtime);
5116
+ }
5117
+ async updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime) {
5118
+ tea_util_1.default.validateModel(request);
5119
+ let body = {};
5120
+ if (!tea_util_1.default.isUnset(request.action)) {
5121
+ body["Action"] = request.action;
5122
+ }
5123
+ let req = new $OpenApi.OpenApiRequest({
5124
+ headers: headers,
5125
+ body: openapi_util_1.default.parseToMap(body),
5126
+ });
5127
+ let params = new $OpenApi.Params({
5128
+ action: "UpdateResourceInstance",
5129
+ version: "2021-07-01",
5130
+ protocol: "HTTPS",
5131
+ pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/instances/${openapi_util_1.default.getEncodeParam(InstanceId)}`,
5132
+ method: "PUT",
5133
+ authType: "AK",
5134
+ style: "ROA",
5135
+ reqBodyType: "json",
5136
+ bodyType: "json",
5137
+ });
5138
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceInstanceResponse({}));
5139
+ }
5140
+ async updateResourceInstance(ClusterId, ResourceId, InstanceId, request) {
5141
+ let runtime = new $Util.RuntimeOptions({});
5142
+ let headers = {};
5143
+ return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
4569
5144
  }
4570
5145
  async updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4571
5146
  tea_util_1.default.validateModel(request);
@@ -4586,10 +5161,10 @@ class Client extends openapi_client_1.default {
4586
5161
  });
4587
5162
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceResponse({}));
4588
5163
  }
4589
- async updateServiceAutoScaler(ClusterId, ServiceName, request) {
5164
+ async updateService(ClusterId, ServiceName, request) {
4590
5165
  let runtime = new $Util.RuntimeOptions({});
4591
5166
  let headers = {};
4592
- return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5167
+ return await this.updateServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
4593
5168
  }
4594
5169
  async updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4595
5170
  tea_util_1.default.validateModel(request);
@@ -4620,10 +5195,10 @@ class Client extends openapi_client_1.default {
4620
5195
  });
4621
5196
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceAutoScalerResponse({}));
4622
5197
  }
4623
- async updateServiceCronScaler(ClusterId, ServiceName, request) {
5198
+ async updateServiceAutoScaler(ClusterId, ServiceName, request) {
4624
5199
  let runtime = new $Util.RuntimeOptions({});
4625
5200
  let headers = {};
4626
- return await this.updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
5201
+ return await this.updateServiceAutoScalerWithOptions(ClusterId, ServiceName, request, headers, runtime);
4627
5202
  }
4628
5203
  async updateServiceCronScalerWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4629
5204
  tea_util_1.default.validateModel(request);
@@ -4651,10 +5226,38 @@ class Client extends openapi_client_1.default {
4651
5226
  });
4652
5227
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceCronScalerResponse({}));
4653
5228
  }
4654
- async updateServiceMirror(ClusterId, ServiceName, request) {
5229
+ async updateServiceCronScaler(ClusterId, ServiceName, request) {
4655
5230
  let runtime = new $Util.RuntimeOptions({});
4656
5231
  let headers = {};
4657
- 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);
4658
5261
  }
4659
5262
  async updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4660
5263
  tea_util_1.default.validateModel(request);
@@ -4682,10 +5285,38 @@ class Client extends openapi_client_1.default {
4682
5285
  });
4683
5286
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceMirrorResponse({}));
4684
5287
  }
4685
- async updateServiceVersion(ClusterId, ServiceName, request) {
5288
+ async updateServiceMirror(ClusterId, ServiceName, request) {
4686
5289
  let runtime = new $Util.RuntimeOptions({});
4687
5290
  let headers = {};
4688
- return await this.updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime);
5291
+ return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
5292
+ }
5293
+ async updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime) {
5294
+ tea_util_1.default.validateModel(request);
5295
+ let body = {};
5296
+ if (!tea_util_1.default.isUnset(request.lock)) {
5297
+ body["Lock"] = request.lock;
5298
+ }
5299
+ let req = new $OpenApi.OpenApiRequest({
5300
+ headers: headers,
5301
+ body: openapi_util_1.default.parseToMap(body),
5302
+ });
5303
+ let params = new $OpenApi.Params({
5304
+ action: "UpdateServiceSafetyLock",
5305
+ version: "2021-07-01",
5306
+ protocol: "HTTPS",
5307
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/lock`,
5308
+ method: "PUT",
5309
+ authType: "AK",
5310
+ style: "ROA",
5311
+ reqBodyType: "json",
5312
+ bodyType: "json",
5313
+ });
5314
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceSafetyLockResponse({}));
5315
+ }
5316
+ async updateServiceSafetyLock(ClusterId, ServiceName, request) {
5317
+ let runtime = new $Util.RuntimeOptions({});
5318
+ let headers = {};
5319
+ return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
4689
5320
  }
4690
5321
  async updateServiceVersionWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4691
5322
  tea_util_1.default.validateModel(request);
@@ -4710,6 +5341,11 @@ class Client extends openapi_client_1.default {
4710
5341
  });
4711
5342
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
4712
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
+ }
4713
5349
  }
4714
5350
  exports.default = Client;
4715
5351
  //# sourceMappingURL=client.js.map