@alicloud/eas20210701 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -188,6 +188,8 @@ export declare class Service extends $tea.Model {
188
188
  roleAttrs?: string;
189
189
  runningInstance?: number;
190
190
  safetyLock?: string;
191
+ secondaryInternetEndpoint?: string;
192
+ secondaryIntranetEndpoint?: string;
191
193
  serviceConfig?: string;
192
194
  serviceGroup?: string;
193
195
  serviceId?: string;
@@ -858,7 +860,9 @@ export declare class DeleteServiceCronScalerResponse extends $tea.Model {
858
860
  });
859
861
  }
860
862
  export declare class DeleteServiceInstancesRequest extends $tea.Model {
863
+ container?: string;
861
864
  instanceList?: string;
865
+ softRestart?: boolean;
862
866
  static names(): {
863
867
  [key: string]: string;
864
868
  };
@@ -1268,6 +1272,35 @@ export declare class DescribeServiceCronScalerResponse extends $tea.Model {
1268
1272
  [key: string]: any;
1269
1273
  });
1270
1274
  }
1275
+ export declare class DescribeServiceDiagnosisResponseBody extends $tea.Model {
1276
+ diagnosisList?: DescribeServiceDiagnosisResponseBodyDiagnosisList[];
1277
+ requestId?: string;
1278
+ static names(): {
1279
+ [key: string]: string;
1280
+ };
1281
+ static types(): {
1282
+ [key: string]: any;
1283
+ };
1284
+ constructor(map?: {
1285
+ [key: string]: any;
1286
+ });
1287
+ }
1288
+ export declare class DescribeServiceDiagnosisResponse extends $tea.Model {
1289
+ headers: {
1290
+ [key: string]: string;
1291
+ };
1292
+ statusCode: number;
1293
+ body: DescribeServiceDiagnosisResponseBody;
1294
+ static names(): {
1295
+ [key: string]: string;
1296
+ };
1297
+ static types(): {
1298
+ [key: string]: any;
1299
+ };
1300
+ constructor(map?: {
1301
+ [key: string]: any;
1302
+ });
1303
+ }
1271
1304
  export declare class DescribeServiceEventRequest extends $tea.Model {
1272
1305
  endTime?: string;
1273
1306
  eventType?: string;
@@ -1317,6 +1350,35 @@ export declare class DescribeServiceEventResponse extends $tea.Model {
1317
1350
  [key: string]: any;
1318
1351
  });
1319
1352
  }
1353
+ export declare class DescribeServiceInstanceDiagnosisResponseBody extends $tea.Model {
1354
+ diagnosis?: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis;
1355
+ requestId?: string;
1356
+ static names(): {
1357
+ [key: string]: string;
1358
+ };
1359
+ static types(): {
1360
+ [key: string]: any;
1361
+ };
1362
+ constructor(map?: {
1363
+ [key: string]: any;
1364
+ });
1365
+ }
1366
+ export declare class DescribeServiceInstanceDiagnosisResponse extends $tea.Model {
1367
+ headers: {
1368
+ [key: string]: string;
1369
+ };
1370
+ statusCode: number;
1371
+ body: DescribeServiceInstanceDiagnosisResponseBody;
1372
+ static names(): {
1373
+ [key: string]: string;
1374
+ };
1375
+ static types(): {
1376
+ [key: string]: any;
1377
+ };
1378
+ constructor(map?: {
1379
+ [key: string]: any;
1380
+ });
1381
+ }
1320
1382
  export declare class DescribeServiceLogRequest extends $tea.Model {
1321
1383
  containerName?: string;
1322
1384
  endTime?: string;
@@ -1724,6 +1786,36 @@ export declare class ListResourcesResponse extends $tea.Model {
1724
1786
  [key: string]: any;
1725
1787
  });
1726
1788
  }
1789
+ export declare class ListServiceContainersResponseBody extends $tea.Model {
1790
+ containers?: ContainerInfo[];
1791
+ requestId?: string;
1792
+ serviceName?: string;
1793
+ static names(): {
1794
+ [key: string]: string;
1795
+ };
1796
+ static types(): {
1797
+ [key: string]: any;
1798
+ };
1799
+ constructor(map?: {
1800
+ [key: string]: any;
1801
+ });
1802
+ }
1803
+ export declare class ListServiceContainersResponse extends $tea.Model {
1804
+ headers: {
1805
+ [key: string]: string;
1806
+ };
1807
+ statusCode: number;
1808
+ body: ListServiceContainersResponseBody;
1809
+ static names(): {
1810
+ [key: string]: string;
1811
+ };
1812
+ static types(): {
1813
+ [key: string]: any;
1814
+ };
1815
+ constructor(map?: {
1816
+ [key: string]: any;
1817
+ });
1818
+ }
1727
1819
  export declare class ListServiceInstancesRequest extends $tea.Model {
1728
1820
  filter?: string;
1729
1821
  hostIP?: string;
@@ -1949,6 +2041,35 @@ export declare class ReleaseServiceResponse extends $tea.Model {
1949
2041
  [key: string]: any;
1950
2042
  });
1951
2043
  }
2044
+ export declare class RestartServiceResponseBody extends $tea.Model {
2045
+ message?: string;
2046
+ requestId?: string;
2047
+ static names(): {
2048
+ [key: string]: string;
2049
+ };
2050
+ static types(): {
2051
+ [key: string]: any;
2052
+ };
2053
+ constructor(map?: {
2054
+ [key: string]: any;
2055
+ });
2056
+ }
2057
+ export declare class RestartServiceResponse extends $tea.Model {
2058
+ headers: {
2059
+ [key: string]: string;
2060
+ };
2061
+ statusCode: number;
2062
+ body: RestartServiceResponseBody;
2063
+ static names(): {
2064
+ [key: string]: string;
2065
+ };
2066
+ static types(): {
2067
+ [key: string]: any;
2068
+ };
2069
+ constructor(map?: {
2070
+ [key: string]: any;
2071
+ });
2072
+ }
1952
2073
  export declare class StartBenchmarkTaskResponseBody extends $tea.Model {
1953
2074
  message?: string;
1954
2075
  requestId?: string;
@@ -2666,6 +2787,20 @@ export declare class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea
2666
2787
  [key: string]: any;
2667
2788
  });
2668
2789
  }
2790
+ export declare class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $tea.Model {
2791
+ advices?: string[];
2792
+ causes?: string[];
2793
+ error?: string;
2794
+ static names(): {
2795
+ [key: string]: string;
2796
+ };
2797
+ static types(): {
2798
+ [key: string]: any;
2799
+ };
2800
+ constructor(map?: {
2801
+ [key: string]: any;
2802
+ });
2803
+ }
2669
2804
  export declare class DescribeServiceEventResponseBodyEvents extends $tea.Model {
2670
2805
  message?: string;
2671
2806
  reason?: string;
@@ -2681,6 +2816,20 @@ export declare class DescribeServiceEventResponseBodyEvents extends $tea.Model {
2681
2816
  [key: string]: any;
2682
2817
  });
2683
2818
  }
2819
+ export declare class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.Model {
2820
+ advices?: string[];
2821
+ causes?: string[];
2822
+ error?: string;
2823
+ static names(): {
2824
+ [key: string]: string;
2825
+ };
2826
+ static types(): {
2827
+ [key: string]: any;
2828
+ };
2829
+ constructor(map?: {
2830
+ [key: string]: any;
2831
+ });
2832
+ }
2684
2833
  export declare class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
2685
2834
  availableAgent?: number;
2686
2835
  createTime?: string;
@@ -2917,10 +3066,18 @@ export default class Client extends OpenApi {
2917
3066
  [key: string]: string;
2918
3067
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceCronScalerResponse>;
2919
3068
  describeServiceCronScaler(ClusterId: string, ServiceName: string): Promise<DescribeServiceCronScalerResponse>;
3069
+ describeServiceDiagnosisWithOptions(ClusterId: string, ServiceName: string, headers: {
3070
+ [key: string]: string;
3071
+ }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceDiagnosisResponse>;
3072
+ describeServiceDiagnosis(ClusterId: string, ServiceName: string): Promise<DescribeServiceDiagnosisResponse>;
2920
3073
  describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {
2921
3074
  [key: string]: string;
2922
3075
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse>;
2923
3076
  describeServiceEvent(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest): Promise<DescribeServiceEventResponse>;
3077
+ describeServiceInstanceDiagnosisWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {
3078
+ [key: string]: string;
3079
+ }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceInstanceDiagnosisResponse>;
3080
+ describeServiceInstanceDiagnosis(ClusterId: string, ServiceName: string, InstanceName: string): Promise<DescribeServiceInstanceDiagnosisResponse>;
2924
3081
  describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {
2925
3082
  [key: string]: string;
2926
3083
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse>;
@@ -2957,6 +3114,10 @@ export default class Client extends OpenApi {
2957
3114
  [key: string]: string;
2958
3115
  }, runtime: $Util.RuntimeOptions): Promise<ListResourcesResponse>;
2959
3116
  listResources(request: ListResourcesRequest): Promise<ListResourcesResponse>;
3117
+ listServiceContainersWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {
3118
+ [key: string]: string;
3119
+ }, runtime: $Util.RuntimeOptions): Promise<ListServiceContainersResponse>;
3120
+ listServiceContainers(ClusterId: string, ServiceName: string, InstanceName: string): Promise<ListServiceContainersResponse>;
2960
3121
  listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {
2961
3122
  [key: string]: string;
2962
3123
  }, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse>;
@@ -2973,6 +3134,10 @@ export default class Client extends OpenApi {
2973
3134
  [key: string]: string;
2974
3135
  }, runtime: $Util.RuntimeOptions): Promise<ReleaseServiceResponse>;
2975
3136
  releaseService(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest): Promise<ReleaseServiceResponse>;
3137
+ restartServiceWithOptions(ClusterId: string, ServiceName: string, headers: {
3138
+ [key: string]: string;
3139
+ }, runtime: $Util.RuntimeOptions): Promise<RestartServiceResponse>;
3140
+ restartService(ClusterId: string, ServiceName: string): Promise<RestartServiceResponse>;
2976
3141
  startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {
2977
3142
  [key: string]: string;
2978
3143
  }, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse>;
package/dist/client.js CHANGED
@@ -309,6 +309,8 @@ class Service extends $tea.Model {
309
309
  roleAttrs: 'RoleAttrs',
310
310
  runningInstance: 'RunningInstance',
311
311
  safetyLock: 'SafetyLock',
312
+ secondaryInternetEndpoint: 'SecondaryInternetEndpoint',
313
+ secondaryIntranetEndpoint: 'SecondaryIntranetEndpoint',
312
314
  serviceConfig: 'ServiceConfig',
313
315
  serviceGroup: 'ServiceGroup',
314
316
  serviceId: 'ServiceId',
@@ -349,6 +351,8 @@ class Service extends $tea.Model {
349
351
  roleAttrs: 'string',
350
352
  runningInstance: 'number',
351
353
  safetyLock: 'string',
354
+ secondaryInternetEndpoint: 'string',
355
+ secondaryIntranetEndpoint: 'string',
352
356
  serviceConfig: 'string',
353
357
  serviceGroup: 'string',
354
358
  serviceId: 'string',
@@ -1243,12 +1247,16 @@ class DeleteServiceInstancesRequest extends $tea.Model {
1243
1247
  }
1244
1248
  static names() {
1245
1249
  return {
1250
+ container: 'Container',
1246
1251
  instanceList: 'InstanceList',
1252
+ softRestart: 'SoftRestart',
1247
1253
  };
1248
1254
  }
1249
1255
  static types() {
1250
1256
  return {
1257
+ container: 'string',
1251
1258
  instanceList: 'string',
1259
+ softRestart: 'boolean',
1252
1260
  };
1253
1261
  }
1254
1262
  }
@@ -1799,6 +1807,44 @@ class DescribeServiceCronScalerResponse extends $tea.Model {
1799
1807
  }
1800
1808
  }
1801
1809
  exports.DescribeServiceCronScalerResponse = DescribeServiceCronScalerResponse;
1810
+ class DescribeServiceDiagnosisResponseBody extends $tea.Model {
1811
+ constructor(map) {
1812
+ super(map);
1813
+ }
1814
+ static names() {
1815
+ return {
1816
+ diagnosisList: 'DiagnosisList',
1817
+ requestId: 'RequestId',
1818
+ };
1819
+ }
1820
+ static types() {
1821
+ return {
1822
+ diagnosisList: { 'type': 'array', 'itemType': DescribeServiceDiagnosisResponseBodyDiagnosisList },
1823
+ requestId: 'string',
1824
+ };
1825
+ }
1826
+ }
1827
+ exports.DescribeServiceDiagnosisResponseBody = DescribeServiceDiagnosisResponseBody;
1828
+ class DescribeServiceDiagnosisResponse extends $tea.Model {
1829
+ constructor(map) {
1830
+ super(map);
1831
+ }
1832
+ static names() {
1833
+ return {
1834
+ headers: 'headers',
1835
+ statusCode: 'statusCode',
1836
+ body: 'body',
1837
+ };
1838
+ }
1839
+ static types() {
1840
+ return {
1841
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1842
+ statusCode: 'number',
1843
+ body: DescribeServiceDiagnosisResponseBody,
1844
+ };
1845
+ }
1846
+ }
1847
+ exports.DescribeServiceDiagnosisResponse = DescribeServiceDiagnosisResponse;
1802
1848
  class DescribeServiceEventRequest extends $tea.Model {
1803
1849
  constructor(map) {
1804
1850
  super(map);
@@ -1869,6 +1915,44 @@ class DescribeServiceEventResponse extends $tea.Model {
1869
1915
  }
1870
1916
  }
1871
1917
  exports.DescribeServiceEventResponse = DescribeServiceEventResponse;
1918
+ class DescribeServiceInstanceDiagnosisResponseBody extends $tea.Model {
1919
+ constructor(map) {
1920
+ super(map);
1921
+ }
1922
+ static names() {
1923
+ return {
1924
+ diagnosis: 'Diagnosis',
1925
+ requestId: 'RequestId',
1926
+ };
1927
+ }
1928
+ static types() {
1929
+ return {
1930
+ diagnosis: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis,
1931
+ requestId: 'string',
1932
+ };
1933
+ }
1934
+ }
1935
+ exports.DescribeServiceInstanceDiagnosisResponseBody = DescribeServiceInstanceDiagnosisResponseBody;
1936
+ class DescribeServiceInstanceDiagnosisResponse extends $tea.Model {
1937
+ constructor(map) {
1938
+ super(map);
1939
+ }
1940
+ static names() {
1941
+ return {
1942
+ headers: 'headers',
1943
+ statusCode: 'statusCode',
1944
+ body: 'body',
1945
+ };
1946
+ }
1947
+ static types() {
1948
+ return {
1949
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1950
+ statusCode: 'number',
1951
+ body: DescribeServiceInstanceDiagnosisResponseBody,
1952
+ };
1953
+ }
1954
+ }
1955
+ exports.DescribeServiceInstanceDiagnosisResponse = DescribeServiceInstanceDiagnosisResponse;
1872
1956
  class DescribeServiceLogRequest extends $tea.Model {
1873
1957
  constructor(map) {
1874
1958
  super(map);
@@ -2439,6 +2523,46 @@ class ListResourcesResponse extends $tea.Model {
2439
2523
  }
2440
2524
  }
2441
2525
  exports.ListResourcesResponse = ListResourcesResponse;
2526
+ class ListServiceContainersResponseBody extends $tea.Model {
2527
+ constructor(map) {
2528
+ super(map);
2529
+ }
2530
+ static names() {
2531
+ return {
2532
+ containers: 'Containers',
2533
+ requestId: 'RequestId',
2534
+ serviceName: 'ServiceName',
2535
+ };
2536
+ }
2537
+ static types() {
2538
+ return {
2539
+ containers: { 'type': 'array', 'itemType': ContainerInfo },
2540
+ requestId: 'string',
2541
+ serviceName: 'string',
2542
+ };
2543
+ }
2544
+ }
2545
+ exports.ListServiceContainersResponseBody = ListServiceContainersResponseBody;
2546
+ class ListServiceContainersResponse extends $tea.Model {
2547
+ constructor(map) {
2548
+ super(map);
2549
+ }
2550
+ static names() {
2551
+ return {
2552
+ headers: 'headers',
2553
+ statusCode: 'statusCode',
2554
+ body: 'body',
2555
+ };
2556
+ }
2557
+ static types() {
2558
+ return {
2559
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2560
+ statusCode: 'number',
2561
+ body: ListServiceContainersResponseBody,
2562
+ };
2563
+ }
2564
+ }
2565
+ exports.ListServiceContainersResponse = ListServiceContainersResponse;
2442
2566
  class ListServiceInstancesRequest extends $tea.Model {
2443
2567
  constructor(map) {
2444
2568
  super(map);
@@ -2765,6 +2889,44 @@ class ReleaseServiceResponse extends $tea.Model {
2765
2889
  }
2766
2890
  }
2767
2891
  exports.ReleaseServiceResponse = ReleaseServiceResponse;
2892
+ class RestartServiceResponseBody extends $tea.Model {
2893
+ constructor(map) {
2894
+ super(map);
2895
+ }
2896
+ static names() {
2897
+ return {
2898
+ message: 'Message',
2899
+ requestId: 'RequestId',
2900
+ };
2901
+ }
2902
+ static types() {
2903
+ return {
2904
+ message: 'string',
2905
+ requestId: 'string',
2906
+ };
2907
+ }
2908
+ }
2909
+ exports.RestartServiceResponseBody = RestartServiceResponseBody;
2910
+ class RestartServiceResponse extends $tea.Model {
2911
+ constructor(map) {
2912
+ super(map);
2913
+ }
2914
+ static names() {
2915
+ return {
2916
+ headers: 'headers',
2917
+ statusCode: 'statusCode',
2918
+ body: 'body',
2919
+ };
2920
+ }
2921
+ static types() {
2922
+ return {
2923
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2924
+ statusCode: 'number',
2925
+ body: RestartServiceResponseBody,
2926
+ };
2927
+ }
2928
+ }
2929
+ exports.RestartServiceResponse = RestartServiceResponse;
2768
2930
  class StartBenchmarkTaskResponseBody extends $tea.Model {
2769
2931
  constructor(map) {
2770
2932
  super(map);
@@ -3727,6 +3889,26 @@ class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
3727
3889
  }
3728
3890
  }
3729
3891
  exports.DescribeServiceCronScalerResponseBodyScaleJobs = DescribeServiceCronScalerResponseBodyScaleJobs;
3892
+ class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $tea.Model {
3893
+ constructor(map) {
3894
+ super(map);
3895
+ }
3896
+ static names() {
3897
+ return {
3898
+ advices: 'Advices',
3899
+ causes: 'Causes',
3900
+ error: 'Error',
3901
+ };
3902
+ }
3903
+ static types() {
3904
+ return {
3905
+ advices: { 'type': 'array', 'itemType': 'string' },
3906
+ causes: { 'type': 'array', 'itemType': 'string' },
3907
+ error: 'string',
3908
+ };
3909
+ }
3910
+ }
3911
+ exports.DescribeServiceDiagnosisResponseBodyDiagnosisList = DescribeServiceDiagnosisResponseBodyDiagnosisList;
3730
3912
  class DescribeServiceEventResponseBodyEvents extends $tea.Model {
3731
3913
  constructor(map) {
3732
3914
  super(map);
@@ -3749,6 +3931,26 @@ class DescribeServiceEventResponseBodyEvents extends $tea.Model {
3749
3931
  }
3750
3932
  }
3751
3933
  exports.DescribeServiceEventResponseBodyEvents = DescribeServiceEventResponseBodyEvents;
3934
+ class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.Model {
3935
+ constructor(map) {
3936
+ super(map);
3937
+ }
3938
+ static names() {
3939
+ return {
3940
+ advices: 'Advices',
3941
+ causes: 'Causes',
3942
+ error: 'Error',
3943
+ };
3944
+ }
3945
+ static types() {
3946
+ return {
3947
+ advices: { 'type': 'array', 'itemType': 'string' },
3948
+ causes: { 'type': 'array', 'itemType': 'string' },
3949
+ error: 'string',
3950
+ };
3951
+ }
3952
+ }
3953
+ exports.DescribeServiceInstanceDiagnosisResponseBodyDiagnosis = DescribeServiceInstanceDiagnosisResponseBodyDiagnosis;
3752
3954
  class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
3753
3955
  constructor(map) {
3754
3956
  super(map);
@@ -4438,9 +4640,15 @@ class Client extends openapi_client_1.default {
4438
4640
  async deleteServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4439
4641
  tea_util_1.default.validateModel(request);
4440
4642
  let query = {};
4643
+ if (!tea_util_1.default.isUnset(request.container)) {
4644
+ query["Container"] = request.container;
4645
+ }
4441
4646
  if (!tea_util_1.default.isUnset(request.instanceList)) {
4442
4647
  query["InstanceList"] = request.instanceList;
4443
4648
  }
4649
+ if (!tea_util_1.default.isUnset(request.softRestart)) {
4650
+ query["SoftRestart"] = request.softRestart;
4651
+ }
4444
4652
  let req = new $OpenApi.OpenApiRequest({
4445
4653
  headers: headers,
4446
4654
  query: openapi_util_1.default.query(query),
@@ -4722,6 +4930,28 @@ class Client extends openapi_client_1.default {
4722
4930
  let headers = {};
4723
4931
  return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
4724
4932
  }
4933
+ async describeServiceDiagnosisWithOptions(ClusterId, ServiceName, headers, runtime) {
4934
+ let req = new $OpenApi.OpenApiRequest({
4935
+ headers: headers,
4936
+ });
4937
+ let params = new $OpenApi.Params({
4938
+ action: "DescribeServiceDiagnosis",
4939
+ version: "2021-07-01",
4940
+ protocol: "HTTPS",
4941
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/diagnosis`,
4942
+ method: "GET",
4943
+ authType: "AK",
4944
+ style: "ROA",
4945
+ reqBodyType: "json",
4946
+ bodyType: "json",
4947
+ });
4948
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceDiagnosisResponse({}));
4949
+ }
4950
+ async describeServiceDiagnosis(ClusterId, ServiceName) {
4951
+ let runtime = new $Util.RuntimeOptions({});
4952
+ let headers = {};
4953
+ return await this.describeServiceDiagnosisWithOptions(ClusterId, ServiceName, headers, runtime);
4954
+ }
4725
4955
  async describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4726
4956
  tea_util_1.default.validateModel(request);
4727
4957
  let query = {};
@@ -4765,6 +4995,28 @@ class Client extends openapi_client_1.default {
4765
4995
  let headers = {};
4766
4996
  return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
4767
4997
  }
4998
+ async describeServiceInstanceDiagnosisWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime) {
4999
+ let req = new $OpenApi.OpenApiRequest({
5000
+ headers: headers,
5001
+ });
5002
+ let params = new $OpenApi.Params({
5003
+ action: "DescribeServiceInstanceDiagnosis",
5004
+ version: "2021-07-01",
5005
+ protocol: "HTTPS",
5006
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances/${openapi_util_1.default.getEncodeParam(InstanceName)}/diagnosis`,
5007
+ method: "GET",
5008
+ authType: "AK",
5009
+ style: "ROA",
5010
+ reqBodyType: "json",
5011
+ bodyType: "json",
5012
+ });
5013
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceInstanceDiagnosisResponse({}));
5014
+ }
5015
+ async describeServiceInstanceDiagnosis(ClusterId, ServiceName, InstanceName) {
5016
+ let runtime = new $Util.RuntimeOptions({});
5017
+ let headers = {};
5018
+ return await this.describeServiceInstanceDiagnosisWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
5019
+ }
4768
5020
  async describeServiceLogWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4769
5021
  tea_util_1.default.validateModel(request);
4770
5022
  let query = {};
@@ -5092,6 +5344,28 @@ class Client extends openapi_client_1.default {
5092
5344
  let headers = {};
5093
5345
  return await this.listResourcesWithOptions(request, headers, runtime);
5094
5346
  }
5347
+ async listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime) {
5348
+ let req = new $OpenApi.OpenApiRequest({
5349
+ headers: headers,
5350
+ });
5351
+ let params = new $OpenApi.Params({
5352
+ action: "ListServiceContainers",
5353
+ version: "2021-07-01",
5354
+ protocol: "HTTPS",
5355
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/instances/${openapi_util_1.default.getEncodeParam(InstanceName)}/containers`,
5356
+ method: "GET",
5357
+ authType: "AK",
5358
+ style: "ROA",
5359
+ reqBodyType: "json",
5360
+ bodyType: "json",
5361
+ });
5362
+ return $tea.cast(await this.callApi(params, req, runtime), new ListServiceContainersResponse({}));
5363
+ }
5364
+ async listServiceContainers(ClusterId, ServiceName, InstanceName) {
5365
+ let runtime = new $Util.RuntimeOptions({});
5366
+ let headers = {};
5367
+ return await this.listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
5368
+ }
5095
5369
  async listServiceInstancesWithOptions(ClusterId, ServiceName, request, headers, runtime) {
5096
5370
  tea_util_1.default.validateModel(request);
5097
5371
  let query = {};
@@ -5287,6 +5561,28 @@ class Client extends openapi_client_1.default {
5287
5561
  let headers = {};
5288
5562
  return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
5289
5563
  }
5564
+ async restartServiceWithOptions(ClusterId, ServiceName, headers, runtime) {
5565
+ let req = new $OpenApi.OpenApiRequest({
5566
+ headers: headers,
5567
+ });
5568
+ let params = new $OpenApi.Params({
5569
+ action: "RestartService",
5570
+ version: "2021-07-01",
5571
+ protocol: "HTTPS",
5572
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/restart`,
5573
+ method: "PUT",
5574
+ authType: "AK",
5575
+ style: "ROA",
5576
+ reqBodyType: "json",
5577
+ bodyType: "json",
5578
+ });
5579
+ return $tea.cast(await this.callApi(params, req, runtime), new RestartServiceResponse({}));
5580
+ }
5581
+ async restartService(ClusterId, ServiceName) {
5582
+ let runtime = new $Util.RuntimeOptions({});
5583
+ let headers = {};
5584
+ return await this.restartServiceWithOptions(ClusterId, ServiceName, headers, runtime);
5585
+ }
5290
5586
  async startBenchmarkTaskWithOptions(ClusterId, TaskName, headers, runtime) {
5291
5587
  let req = new $OpenApi.OpenApiRequest({
5292
5588
  headers: headers,