@alicloud/eas20210701 2.0.3 → 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
@@ -4,6 +4,28 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class ContainerInfo extends $tea.Model {
8
+ currentReaon?: string;
9
+ currentStatus?: string;
10
+ currentTimestamp?: string;
11
+ image?: string;
12
+ lastReason?: string;
13
+ lastStatus?: string;
14
+ lastTimestamp?: string;
15
+ name?: string;
16
+ port?: number;
17
+ ready?: boolean;
18
+ restartCount?: number;
19
+ static names(): {
20
+ [key: string]: string;
21
+ };
22
+ static types(): {
23
+ [key: string]: any;
24
+ };
25
+ constructor(map?: {
26
+ [key: string]: any;
27
+ });
28
+ }
7
29
  export declare class Group extends $tea.Model {
8
30
  accessToken?: string;
9
31
  clusterId?: string;
@@ -24,15 +46,18 @@ export declare class Group extends $tea.Model {
24
46
  });
25
47
  }
26
48
  export declare class Instance extends $tea.Model {
49
+ currentAmount?: number;
27
50
  hostIP?: string;
28
51
  hostName?: string;
29
52
  innerIP?: string;
30
53
  instanceName?: string;
31
54
  instancePort?: number;
55
+ isSpot?: boolean;
32
56
  lastState?: {
33
57
  [key: string]: any;
34
58
  }[];
35
59
  namespace?: string;
60
+ originalAmount?: number;
36
61
  readyProcesses?: number;
37
62
  reason?: string;
38
63
  resourceType?: string;
@@ -93,6 +118,7 @@ export declare class ResourceInstance extends $tea.Model {
93
118
  instanceMemory?: string;
94
119
  instanceName?: string;
95
120
  instanceStatus?: string;
121
+ instanceSystemDiskSize?: number;
96
122
  instanceTenantIp?: string;
97
123
  instanceType?: string;
98
124
  instanceUsedCpu?: number;
@@ -100,6 +126,7 @@ export declare class ResourceInstance extends $tea.Model {
100
126
  instanceUsedGpuMemory?: string;
101
127
  instanceUsedMemory?: string;
102
128
  region?: string;
129
+ resourceId?: string;
103
130
  zone?: string;
104
131
  static names(): {
105
132
  [key: string]: string;
@@ -161,6 +188,8 @@ export declare class Service extends $tea.Model {
161
188
  roleAttrs?: string;
162
189
  runningInstance?: number;
163
190
  safetyLock?: string;
191
+ secondaryInternetEndpoint?: string;
192
+ secondaryIntranetEndpoint?: string;
164
193
  serviceConfig?: string;
165
194
  serviceGroup?: string;
166
195
  serviceId?: string;
@@ -258,6 +287,8 @@ export declare class CreateResourceRequest extends $tea.Model {
258
287
  chargeType?: string;
259
288
  ecsInstanceCount?: number;
260
289
  ecsInstanceType?: string;
290
+ systemDiskSize?: number;
291
+ zone?: string;
261
292
  static names(): {
262
293
  [key: string]: string;
263
294
  };
@@ -270,6 +301,7 @@ export declare class CreateResourceRequest extends $tea.Model {
270
301
  }
271
302
  export declare class CreateResourceResponseBody extends $tea.Model {
272
303
  clusterId?: string;
304
+ instanceIds?: string[];
273
305
  ownerUid?: string;
274
306
  requestId?: string;
275
307
  resourceId?: string;
@@ -305,7 +337,9 @@ export declare class CreateResourceInstancesRequest extends $tea.Model {
305
337
  chargeType?: string;
306
338
  ecsInstanceCount?: number;
307
339
  ecsInstanceType?: string;
340
+ systemDiskSize?: number;
308
341
  userData?: string;
342
+ zone?: string;
309
343
  static names(): {
310
344
  [key: string]: string;
311
345
  };
@@ -317,6 +351,7 @@ export declare class CreateResourceInstancesRequest extends $tea.Model {
317
351
  });
318
352
  }
319
353
  export declare class CreateResourceInstancesResponseBody extends $tea.Model {
354
+ instanceIds?: string[];
320
355
  message?: string;
321
356
  requestId?: string;
322
357
  static names(): {
@@ -452,6 +487,7 @@ export declare class CreateServiceResponse extends $tea.Model {
452
487
  });
453
488
  }
454
489
  export declare class CreateServiceAutoScalerRequest extends $tea.Model {
490
+ behavior?: CreateServiceAutoScalerRequestBehavior;
455
491
  max?: number;
456
492
  min?: number;
457
493
  scaleStrategies?: CreateServiceAutoScalerRequestScaleStrategies[];
@@ -824,7 +860,9 @@ export declare class DeleteServiceCronScalerResponse extends $tea.Model {
824
860
  });
825
861
  }
826
862
  export declare class DeleteServiceInstancesRequest extends $tea.Model {
863
+ container?: string;
827
864
  instanceList?: string;
865
+ softRestart?: boolean;
828
866
  static names(): {
829
867
  [key: string]: string;
830
868
  };
@@ -1234,8 +1272,39 @@ export declare class DescribeServiceCronScalerResponse extends $tea.Model {
1234
1272
  [key: string]: any;
1235
1273
  });
1236
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
+ }
1237
1304
  export declare class DescribeServiceEventRequest extends $tea.Model {
1238
1305
  endTime?: string;
1306
+ eventType?: string;
1307
+ instanceName?: string;
1239
1308
  pageNum?: string;
1240
1309
  pageSize?: string;
1241
1310
  startTime?: string;
@@ -1281,12 +1350,44 @@ export declare class DescribeServiceEventResponse extends $tea.Model {
1281
1350
  [key: string]: any;
1282
1351
  });
1283
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
+ }
1284
1382
  export declare class DescribeServiceLogRequest extends $tea.Model {
1383
+ containerName?: string;
1285
1384
  endTime?: string;
1385
+ instanceName?: string;
1286
1386
  ip?: string;
1287
1387
  keyword?: string;
1288
1388
  pageNum?: number;
1289
1389
  pageSize?: number;
1390
+ previous?: boolean;
1290
1391
  startTime?: string;
1291
1392
  static names(): {
1292
1393
  [key: string]: string;
@@ -1542,10 +1643,15 @@ export declare class ListResourceInstanceWorkerResponse extends $tea.Model {
1542
1643
  }
1543
1644
  export declare class ListResourceInstancesRequest extends $tea.Model {
1544
1645
  chargeType?: string;
1646
+ filter?: string;
1647
+ instanceIP?: string;
1545
1648
  instanceId?: string;
1546
1649
  instanceName?: string;
1650
+ instanceStatus?: string;
1651
+ order?: string;
1547
1652
  pageNumber?: number;
1548
1653
  pageSize?: number;
1654
+ sort?: string;
1549
1655
  static names(): {
1550
1656
  [key: string]: string;
1551
1657
  };
@@ -1680,9 +1786,50 @@ export declare class ListResourcesResponse extends $tea.Model {
1680
1786
  [key: string]: any;
1681
1787
  });
1682
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
+ }
1683
1819
  export declare class ListServiceInstancesRequest extends $tea.Model {
1820
+ filter?: string;
1821
+ hostIP?: string;
1822
+ instanceIP?: string;
1823
+ instanceName?: string;
1824
+ instanceStatus?: string;
1825
+ instanceType?: string;
1826
+ isSpot?: boolean;
1827
+ order?: string;
1684
1828
  pageNumber?: number;
1685
1829
  pageSize?: number;
1830
+ resourceType?: string;
1831
+ role?: string;
1832
+ sort?: string;
1686
1833
  static names(): {
1687
1834
  [key: string]: string;
1688
1835
  };
@@ -1780,7 +1927,11 @@ export declare class ListServicesRequest extends $tea.Model {
1780
1927
  pageNumber?: number;
1781
1928
  pageSize?: number;
1782
1929
  parentServiceUid?: string;
1930
+ resourceName?: string;
1931
+ serviceName?: string;
1932
+ serviceStatus?: string;
1783
1933
  serviceType?: string;
1934
+ serviceUid?: string;
1784
1935
  sort?: string;
1785
1936
  static names(): {
1786
1937
  [key: string]: string;
@@ -1800,7 +1951,11 @@ export declare class ListServicesShrinkRequest extends $tea.Model {
1800
1951
  pageNumber?: number;
1801
1952
  pageSize?: number;
1802
1953
  parentServiceUid?: string;
1954
+ resourceName?: string;
1955
+ serviceName?: string;
1956
+ serviceStatus?: string;
1803
1957
  serviceType?: string;
1958
+ serviceUid?: string;
1804
1959
  sort?: string;
1805
1960
  static names(): {
1806
1961
  [key: string]: string;
@@ -1886,6 +2041,35 @@ export declare class ReleaseServiceResponse extends $tea.Model {
1886
2041
  [key: string]: any;
1887
2042
  });
1888
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
+ }
1889
2073
  export declare class StartBenchmarkTaskResponseBody extends $tea.Model {
1890
2074
  message?: string;
1891
2075
  requestId?: string;
@@ -2213,6 +2397,7 @@ export declare class UpdateServiceResponse extends $tea.Model {
2213
2397
  });
2214
2398
  }
2215
2399
  export declare class UpdateServiceAutoScalerRequest extends $tea.Model {
2400
+ behavior?: UpdateServiceAutoScalerRequestBehavior;
2216
2401
  max?: number;
2217
2402
  min?: number;
2218
2403
  scaleStrategies?: UpdateServiceAutoScalerRequestScaleStrategies[];
@@ -2477,6 +2662,57 @@ export declare class ServiceLabels extends $tea.Model {
2477
2662
  [key: string]: any;
2478
2663
  });
2479
2664
  }
2665
+ export declare class CreateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
2666
+ scaleDownGracePeriodSeconds?: number;
2667
+ scaleUpActivationReplicas?: number;
2668
+ static names(): {
2669
+ [key: string]: string;
2670
+ };
2671
+ static types(): {
2672
+ [key: string]: any;
2673
+ };
2674
+ constructor(map?: {
2675
+ [key: string]: any;
2676
+ });
2677
+ }
2678
+ export declare class CreateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
2679
+ stabilizationWindowSeconds?: number;
2680
+ static names(): {
2681
+ [key: string]: string;
2682
+ };
2683
+ static types(): {
2684
+ [key: string]: any;
2685
+ };
2686
+ constructor(map?: {
2687
+ [key: string]: any;
2688
+ });
2689
+ }
2690
+ export declare class CreateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
2691
+ stabilizationWindowSeconds?: number;
2692
+ static names(): {
2693
+ [key: string]: string;
2694
+ };
2695
+ static types(): {
2696
+ [key: string]: any;
2697
+ };
2698
+ constructor(map?: {
2699
+ [key: string]: any;
2700
+ });
2701
+ }
2702
+ export declare class CreateServiceAutoScalerRequestBehavior extends $tea.Model {
2703
+ onZero?: CreateServiceAutoScalerRequestBehaviorOnZero;
2704
+ scaleDown?: CreateServiceAutoScalerRequestBehaviorScaleDown;
2705
+ scaleUp?: CreateServiceAutoScalerRequestBehaviorScaleUp;
2706
+ static names(): {
2707
+ [key: string]: string;
2708
+ };
2709
+ static types(): {
2710
+ [key: string]: any;
2711
+ };
2712
+ constructor(map?: {
2713
+ [key: string]: any;
2714
+ });
2715
+ }
2480
2716
  export declare class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
2481
2717
  metricName?: string;
2482
2718
  service?: string;
@@ -2551,6 +2787,20 @@ export declare class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea
2551
2787
  [key: string]: any;
2552
2788
  });
2553
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
+ }
2554
2804
  export declare class DescribeServiceEventResponseBodyEvents extends $tea.Model {
2555
2805
  message?: string;
2556
2806
  reason?: string;
@@ -2566,6 +2816,20 @@ export declare class DescribeServiceEventResponseBodyEvents extends $tea.Model {
2566
2816
  [key: string]: any;
2567
2817
  });
2568
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
+ }
2569
2833
  export declare class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
2570
2834
  availableAgent?: number;
2571
2835
  createTime?: string;
@@ -2602,6 +2866,57 @@ export declare class ListServiceVersionsResponseBodyVersions extends $tea.Model
2602
2866
  [key: string]: any;
2603
2867
  });
2604
2868
  }
2869
+ export declare class UpdateServiceAutoScalerRequestBehaviorOnZero extends $tea.Model {
2870
+ scaleDownGracePeriodSeconds?: number;
2871
+ scaleUpActivationReplicas?: number;
2872
+ static names(): {
2873
+ [key: string]: string;
2874
+ };
2875
+ static types(): {
2876
+ [key: string]: any;
2877
+ };
2878
+ constructor(map?: {
2879
+ [key: string]: any;
2880
+ });
2881
+ }
2882
+ export declare class UpdateServiceAutoScalerRequestBehaviorScaleDown extends $tea.Model {
2883
+ stabilizationWindowSeconds?: number;
2884
+ static names(): {
2885
+ [key: string]: string;
2886
+ };
2887
+ static types(): {
2888
+ [key: string]: any;
2889
+ };
2890
+ constructor(map?: {
2891
+ [key: string]: any;
2892
+ });
2893
+ }
2894
+ export declare class UpdateServiceAutoScalerRequestBehaviorScaleUp extends $tea.Model {
2895
+ stabilizationWindowSeconds?: number;
2896
+ static names(): {
2897
+ [key: string]: string;
2898
+ };
2899
+ static types(): {
2900
+ [key: string]: any;
2901
+ };
2902
+ constructor(map?: {
2903
+ [key: string]: any;
2904
+ });
2905
+ }
2906
+ export declare class UpdateServiceAutoScalerRequestBehavior extends $tea.Model {
2907
+ onZero?: UpdateServiceAutoScalerRequestBehaviorOnZero;
2908
+ scaleDown?: UpdateServiceAutoScalerRequestBehaviorScaleDown;
2909
+ scaleUp?: UpdateServiceAutoScalerRequestBehaviorScaleUp;
2910
+ static names(): {
2911
+ [key: string]: string;
2912
+ };
2913
+ static types(): {
2914
+ [key: string]: any;
2915
+ };
2916
+ constructor(map?: {
2917
+ [key: string]: any;
2918
+ });
2919
+ }
2605
2920
  export declare class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
2606
2921
  metricName?: string;
2607
2922
  service?: string;
@@ -2751,10 +3066,18 @@ export default class Client extends OpenApi {
2751
3066
  [key: string]: string;
2752
3067
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceCronScalerResponse>;
2753
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>;
2754
3073
  describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {
2755
3074
  [key: string]: string;
2756
3075
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse>;
2757
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>;
2758
3081
  describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {
2759
3082
  [key: string]: string;
2760
3083
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceLogResponse>;
@@ -2791,6 +3114,10 @@ export default class Client extends OpenApi {
2791
3114
  [key: string]: string;
2792
3115
  }, runtime: $Util.RuntimeOptions): Promise<ListResourcesResponse>;
2793
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>;
2794
3121
  listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {
2795
3122
  [key: string]: string;
2796
3123
  }, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse>;
@@ -2807,6 +3134,10 @@ export default class Client extends OpenApi {
2807
3134
  [key: string]: string;
2808
3135
  }, runtime: $Util.RuntimeOptions): Promise<ReleaseServiceResponse>;
2809
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>;
2810
3141
  startBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {
2811
3142
  [key: string]: string;
2812
3143
  }, runtime: $Util.RuntimeOptions): Promise<StartBenchmarkTaskResponse>;