@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/eas20210701",
3
- "version": "2.0.4",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
- "@alicloud/tea-util": "^1.4.5",
23
+ "@alicloud/tea-util": "^1.4.7",
24
24
  "@alicloud/openapi-client": "^0.4.4",
25
25
  "@alicloud/openapi-util": "^0.3.1",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
package/src/client.ts CHANGED
@@ -392,6 +392,8 @@ export class Service extends $tea.Model {
392
392
  roleAttrs?: string;
393
393
  runningInstance?: number;
394
394
  safetyLock?: string;
395
+ secondaryInternetEndpoint?: string;
396
+ secondaryIntranetEndpoint?: string;
395
397
  serviceConfig?: string;
396
398
  serviceGroup?: string;
397
399
  serviceId?: string;
@@ -430,6 +432,8 @@ export class Service extends $tea.Model {
430
432
  roleAttrs: 'RoleAttrs',
431
433
  runningInstance: 'RunningInstance',
432
434
  safetyLock: 'SafetyLock',
435
+ secondaryInternetEndpoint: 'SecondaryInternetEndpoint',
436
+ secondaryIntranetEndpoint: 'SecondaryIntranetEndpoint',
433
437
  serviceConfig: 'ServiceConfig',
434
438
  serviceGroup: 'ServiceGroup',
435
439
  serviceId: 'ServiceId',
@@ -471,6 +475,8 @@ export class Service extends $tea.Model {
471
475
  roleAttrs: 'string',
472
476
  runningInstance: 'number',
473
477
  safetyLock: 'string',
478
+ secondaryInternetEndpoint: 'string',
479
+ secondaryIntranetEndpoint: 'string',
474
480
  serviceConfig: 'string',
475
481
  serviceGroup: 'string',
476
482
  serviceId: 'string',
@@ -1581,16 +1587,22 @@ export class DeleteServiceCronScalerResponse extends $tea.Model {
1581
1587
  }
1582
1588
 
1583
1589
  export class DeleteServiceInstancesRequest extends $tea.Model {
1590
+ container?: string;
1584
1591
  instanceList?: string;
1592
+ softRestart?: boolean;
1585
1593
  static names(): { [key: string]: string } {
1586
1594
  return {
1595
+ container: 'Container',
1587
1596
  instanceList: 'InstanceList',
1597
+ softRestart: 'SoftRestart',
1588
1598
  };
1589
1599
  }
1590
1600
 
1591
1601
  static types(): { [key: string]: any } {
1592
1602
  return {
1603
+ container: 'string',
1593
1604
  instanceList: 'string',
1605
+ softRestart: 'boolean',
1594
1606
  };
1595
1607
  }
1596
1608
 
@@ -2293,6 +2305,53 @@ export class DescribeServiceCronScalerResponse extends $tea.Model {
2293
2305
  }
2294
2306
  }
2295
2307
 
2308
+ export class DescribeServiceDiagnosisResponseBody extends $tea.Model {
2309
+ diagnosisList?: DescribeServiceDiagnosisResponseBodyDiagnosisList[];
2310
+ requestId?: string;
2311
+ static names(): { [key: string]: string } {
2312
+ return {
2313
+ diagnosisList: 'DiagnosisList',
2314
+ requestId: 'RequestId',
2315
+ };
2316
+ }
2317
+
2318
+ static types(): { [key: string]: any } {
2319
+ return {
2320
+ diagnosisList: { 'type': 'array', 'itemType': DescribeServiceDiagnosisResponseBodyDiagnosisList },
2321
+ requestId: 'string',
2322
+ };
2323
+ }
2324
+
2325
+ constructor(map?: { [key: string]: any }) {
2326
+ super(map);
2327
+ }
2328
+ }
2329
+
2330
+ export class DescribeServiceDiagnosisResponse extends $tea.Model {
2331
+ headers: { [key: string]: string };
2332
+ statusCode: number;
2333
+ body: DescribeServiceDiagnosisResponseBody;
2334
+ static names(): { [key: string]: string } {
2335
+ return {
2336
+ headers: 'headers',
2337
+ statusCode: 'statusCode',
2338
+ body: 'body',
2339
+ };
2340
+ }
2341
+
2342
+ static types(): { [key: string]: any } {
2343
+ return {
2344
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2345
+ statusCode: 'number',
2346
+ body: DescribeServiceDiagnosisResponseBody,
2347
+ };
2348
+ }
2349
+
2350
+ constructor(map?: { [key: string]: any }) {
2351
+ super(map);
2352
+ }
2353
+ }
2354
+
2296
2355
  export class DescribeServiceEventRequest extends $tea.Model {
2297
2356
  endTime?: string;
2298
2357
  eventType?: string;
@@ -2383,6 +2442,53 @@ export class DescribeServiceEventResponse extends $tea.Model {
2383
2442
  }
2384
2443
  }
2385
2444
 
2445
+ export class DescribeServiceInstanceDiagnosisResponseBody extends $tea.Model {
2446
+ diagnosis?: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis;
2447
+ requestId?: string;
2448
+ static names(): { [key: string]: string } {
2449
+ return {
2450
+ diagnosis: 'Diagnosis',
2451
+ requestId: 'RequestId',
2452
+ };
2453
+ }
2454
+
2455
+ static types(): { [key: string]: any } {
2456
+ return {
2457
+ diagnosis: DescribeServiceInstanceDiagnosisResponseBodyDiagnosis,
2458
+ requestId: 'string',
2459
+ };
2460
+ }
2461
+
2462
+ constructor(map?: { [key: string]: any }) {
2463
+ super(map);
2464
+ }
2465
+ }
2466
+
2467
+ export class DescribeServiceInstanceDiagnosisResponse extends $tea.Model {
2468
+ headers: { [key: string]: string };
2469
+ statusCode: number;
2470
+ body: DescribeServiceInstanceDiagnosisResponseBody;
2471
+ static names(): { [key: string]: string } {
2472
+ return {
2473
+ headers: 'headers',
2474
+ statusCode: 'statusCode',
2475
+ body: 'body',
2476
+ };
2477
+ }
2478
+
2479
+ static types(): { [key: string]: any } {
2480
+ return {
2481
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2482
+ statusCode: 'number',
2483
+ body: DescribeServiceInstanceDiagnosisResponseBody,
2484
+ };
2485
+ }
2486
+
2487
+ constructor(map?: { [key: string]: any }) {
2488
+ super(map);
2489
+ }
2490
+ }
2491
+
2386
2492
  export class DescribeServiceLogRequest extends $tea.Model {
2387
2493
  containerName?: string;
2388
2494
  endTime?: string;
@@ -3108,6 +3214,56 @@ export class ListResourcesResponse extends $tea.Model {
3108
3214
  }
3109
3215
  }
3110
3216
 
3217
+ export class ListServiceContainersResponseBody extends $tea.Model {
3218
+ containers?: ContainerInfo[];
3219
+ requestId?: string;
3220
+ serviceName?: string;
3221
+ static names(): { [key: string]: string } {
3222
+ return {
3223
+ containers: 'Containers',
3224
+ requestId: 'RequestId',
3225
+ serviceName: 'ServiceName',
3226
+ };
3227
+ }
3228
+
3229
+ static types(): { [key: string]: any } {
3230
+ return {
3231
+ containers: { 'type': 'array', 'itemType': ContainerInfo },
3232
+ requestId: 'string',
3233
+ serviceName: 'string',
3234
+ };
3235
+ }
3236
+
3237
+ constructor(map?: { [key: string]: any }) {
3238
+ super(map);
3239
+ }
3240
+ }
3241
+
3242
+ export class ListServiceContainersResponse extends $tea.Model {
3243
+ headers: { [key: string]: string };
3244
+ statusCode: number;
3245
+ body: ListServiceContainersResponseBody;
3246
+ static names(): { [key: string]: string } {
3247
+ return {
3248
+ headers: 'headers',
3249
+ statusCode: 'statusCode',
3250
+ body: 'body',
3251
+ };
3252
+ }
3253
+
3254
+ static types(): { [key: string]: any } {
3255
+ return {
3256
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3257
+ statusCode: 'number',
3258
+ body: ListServiceContainersResponseBody,
3259
+ };
3260
+ }
3261
+
3262
+ constructor(map?: { [key: string]: any }) {
3263
+ super(map);
3264
+ }
3265
+ }
3266
+
3111
3267
  export class ListServiceInstancesRequest extends $tea.Model {
3112
3268
  filter?: string;
3113
3269
  hostIP?: string;
@@ -3532,6 +3688,53 @@ export class ReleaseServiceResponse extends $tea.Model {
3532
3688
  }
3533
3689
  }
3534
3690
 
3691
+ export class RestartServiceResponseBody extends $tea.Model {
3692
+ message?: string;
3693
+ requestId?: string;
3694
+ static names(): { [key: string]: string } {
3695
+ return {
3696
+ message: 'Message',
3697
+ requestId: 'RequestId',
3698
+ };
3699
+ }
3700
+
3701
+ static types(): { [key: string]: any } {
3702
+ return {
3703
+ message: 'string',
3704
+ requestId: 'string',
3705
+ };
3706
+ }
3707
+
3708
+ constructor(map?: { [key: string]: any }) {
3709
+ super(map);
3710
+ }
3711
+ }
3712
+
3713
+ export class RestartServiceResponse extends $tea.Model {
3714
+ headers: { [key: string]: string };
3715
+ statusCode: number;
3716
+ body: RestartServiceResponseBody;
3717
+ static names(): { [key: string]: string } {
3718
+ return {
3719
+ headers: 'headers',
3720
+ statusCode: 'statusCode',
3721
+ body: 'body',
3722
+ };
3723
+ }
3724
+
3725
+ static types(): { [key: string]: any } {
3726
+ return {
3727
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3728
+ statusCode: 'number',
3729
+ body: RestartServiceResponseBody,
3730
+ };
3731
+ }
3732
+
3733
+ constructor(map?: { [key: string]: any }) {
3734
+ super(map);
3735
+ }
3736
+ }
3737
+
3535
3738
  export class StartBenchmarkTaskResponseBody extends $tea.Model {
3536
3739
  message?: string;
3537
3740
  requestId?: string;
@@ -4720,6 +4923,31 @@ export class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
4720
4923
  }
4721
4924
  }
4722
4925
 
4926
+ export class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $tea.Model {
4927
+ advices?: string[];
4928
+ causes?: string[];
4929
+ error?: string;
4930
+ static names(): { [key: string]: string } {
4931
+ return {
4932
+ advices: 'Advices',
4933
+ causes: 'Causes',
4934
+ error: 'Error',
4935
+ };
4936
+ }
4937
+
4938
+ static types(): { [key: string]: any } {
4939
+ return {
4940
+ advices: { 'type': 'array', 'itemType': 'string' },
4941
+ causes: { 'type': 'array', 'itemType': 'string' },
4942
+ error: 'string',
4943
+ };
4944
+ }
4945
+
4946
+ constructor(map?: { [key: string]: any }) {
4947
+ super(map);
4948
+ }
4949
+ }
4950
+
4723
4951
  export class DescribeServiceEventResponseBodyEvents extends $tea.Model {
4724
4952
  message?: string;
4725
4953
  reason?: string;
@@ -4748,6 +4976,31 @@ export class DescribeServiceEventResponseBodyEvents extends $tea.Model {
4748
4976
  }
4749
4977
  }
4750
4978
 
4979
+ export class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.Model {
4980
+ advices?: string[];
4981
+ causes?: string[];
4982
+ error?: string;
4983
+ static names(): { [key: string]: string } {
4984
+ return {
4985
+ advices: 'Advices',
4986
+ causes: 'Causes',
4987
+ error: 'Error',
4988
+ };
4989
+ }
4990
+
4991
+ static types(): { [key: string]: any } {
4992
+ return {
4993
+ advices: { 'type': 'array', 'itemType': 'string' },
4994
+ causes: { 'type': 'array', 'itemType': 'string' },
4995
+ error: 'string',
4996
+ };
4997
+ }
4998
+
4999
+ constructor(map?: { [key: string]: any }) {
5000
+ super(map);
5001
+ }
5002
+ }
5003
+
4751
5004
  export class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
4752
5005
  availableAgent?: number;
4753
5006
  createTime?: string;
@@ -5549,10 +5802,18 @@ export default class Client extends OpenApi {
5549
5802
  async deleteServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: DeleteServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteServiceInstancesResponse> {
5550
5803
  Util.validateModel(request);
5551
5804
  let query : {[key: string ]: any} = { };
5805
+ if (!Util.isUnset(request.container)) {
5806
+ query["Container"] = request.container;
5807
+ }
5808
+
5552
5809
  if (!Util.isUnset(request.instanceList)) {
5553
5810
  query["InstanceList"] = request.instanceList;
5554
5811
  }
5555
5812
 
5813
+ if (!Util.isUnset(request.softRestart)) {
5814
+ query["SoftRestart"] = request.softRestart;
5815
+ }
5816
+
5556
5817
  let req = new $OpenApi.OpenApiRequest({
5557
5818
  headers: headers,
5558
5819
  query: OpenApiUtil.query(query),
@@ -5861,6 +6122,30 @@ export default class Client extends OpenApi {
5861
6122
  return await this.describeServiceCronScalerWithOptions(ClusterId, ServiceName, headers, runtime);
5862
6123
  }
5863
6124
 
6125
+ async describeServiceDiagnosisWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceDiagnosisResponse> {
6126
+ let req = new $OpenApi.OpenApiRequest({
6127
+ headers: headers,
6128
+ });
6129
+ let params = new $OpenApi.Params({
6130
+ action: "DescribeServiceDiagnosis",
6131
+ version: "2021-07-01",
6132
+ protocol: "HTTPS",
6133
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/diagnosis`,
6134
+ method: "GET",
6135
+ authType: "AK",
6136
+ style: "ROA",
6137
+ reqBodyType: "json",
6138
+ bodyType: "json",
6139
+ });
6140
+ return $tea.cast<DescribeServiceDiagnosisResponse>(await this.callApi(params, req, runtime), new DescribeServiceDiagnosisResponse({}));
6141
+ }
6142
+
6143
+ async describeServiceDiagnosis(ClusterId: string, ServiceName: string): Promise<DescribeServiceDiagnosisResponse> {
6144
+ let runtime = new $Util.RuntimeOptions({ });
6145
+ let headers : {[key: string ]: string} = { };
6146
+ return await this.describeServiceDiagnosisWithOptions(ClusterId, ServiceName, headers, runtime);
6147
+ }
6148
+
5864
6149
  async describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse> {
5865
6150
  Util.validateModel(request);
5866
6151
  let query : {[key: string ]: any} = { };
@@ -5912,6 +6197,30 @@ export default class Client extends OpenApi {
5912
6197
  return await this.describeServiceEventWithOptions(ClusterId, ServiceName, request, headers, runtime);
5913
6198
  }
5914
6199
 
6200
+ async describeServiceInstanceDiagnosisWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceInstanceDiagnosisResponse> {
6201
+ let req = new $OpenApi.OpenApiRequest({
6202
+ headers: headers,
6203
+ });
6204
+ let params = new $OpenApi.Params({
6205
+ action: "DescribeServiceInstanceDiagnosis",
6206
+ version: "2021-07-01",
6207
+ protocol: "HTTPS",
6208
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/instances/${OpenApiUtil.getEncodeParam(InstanceName)}/diagnosis`,
6209
+ method: "GET",
6210
+ authType: "AK",
6211
+ style: "ROA",
6212
+ reqBodyType: "json",
6213
+ bodyType: "json",
6214
+ });
6215
+ return $tea.cast<DescribeServiceInstanceDiagnosisResponse>(await this.callApi(params, req, runtime), new DescribeServiceInstanceDiagnosisResponse({}));
6216
+ }
6217
+
6218
+ async describeServiceInstanceDiagnosis(ClusterId: string, ServiceName: string, InstanceName: string): Promise<DescribeServiceInstanceDiagnosisResponse> {
6219
+ let runtime = new $Util.RuntimeOptions({ });
6220
+ let headers : {[key: string ]: string} = { };
6221
+ return await this.describeServiceInstanceDiagnosisWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
6222
+ }
6223
+
5915
6224
  async describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse> {
5916
6225
  Util.validateModel(request);
5917
6226
  let query : {[key: string ]: any} = { };
@@ -6292,6 +6601,30 @@ export default class Client extends OpenApi {
6292
6601
  return await this.listResourcesWithOptions(request, headers, runtime);
6293
6602
  }
6294
6603
 
6604
+ async listServiceContainersWithOptions(ClusterId: string, ServiceName: string, InstanceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceContainersResponse> {
6605
+ let req = new $OpenApi.OpenApiRequest({
6606
+ headers: headers,
6607
+ });
6608
+ let params = new $OpenApi.Params({
6609
+ action: "ListServiceContainers",
6610
+ version: "2021-07-01",
6611
+ protocol: "HTTPS",
6612
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/instances/${OpenApiUtil.getEncodeParam(InstanceName)}/containers`,
6613
+ method: "GET",
6614
+ authType: "AK",
6615
+ style: "ROA",
6616
+ reqBodyType: "json",
6617
+ bodyType: "json",
6618
+ });
6619
+ return $tea.cast<ListServiceContainersResponse>(await this.callApi(params, req, runtime), new ListServiceContainersResponse({}));
6620
+ }
6621
+
6622
+ async listServiceContainers(ClusterId: string, ServiceName: string, InstanceName: string): Promise<ListServiceContainersResponse> {
6623
+ let runtime = new $Util.RuntimeOptions({ });
6624
+ let headers : {[key: string ]: string} = { };
6625
+ return await this.listServiceContainersWithOptions(ClusterId, ServiceName, InstanceName, headers, runtime);
6626
+ }
6627
+
6295
6628
  async listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse> {
6296
6629
  Util.validateModel(request);
6297
6630
  let query : {[key: string ]: any} = { };
@@ -6526,6 +6859,30 @@ export default class Client extends OpenApi {
6526
6859
  return await this.releaseServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
6527
6860
  }
6528
6861
 
6862
+ async restartServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RestartServiceResponse> {
6863
+ let req = new $OpenApi.OpenApiRequest({
6864
+ headers: headers,
6865
+ });
6866
+ let params = new $OpenApi.Params({
6867
+ action: "RestartService",
6868
+ version: "2021-07-01",
6869
+ protocol: "HTTPS",
6870
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/restart`,
6871
+ method: "PUT",
6872
+ authType: "AK",
6873
+ style: "ROA",
6874
+ reqBodyType: "json",
6875
+ bodyType: "json",
6876
+ });
6877
+ return $tea.cast<RestartServiceResponse>(await this.callApi(params, req, runtime), new RestartServiceResponse({}));
6878
+ }
6879
+
6880
+ async restartService(ClusterId: string, ServiceName: string): Promise<RestartServiceResponse> {
6881
+ let runtime = new $Util.RuntimeOptions({ });
6882
+ let headers : {[key: string ]: string} = { };
6883
+ return await this.restartServiceWithOptions(ClusterId, ServiceName, headers, runtime);
6884
+ }
6885
+
6529
6886
  async startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse> {
6530
6887
  let req = new $OpenApi.OpenApiRequest({
6531
6888
  headers: headers,