@alicloud/eas20210701 1.1.6 → 2.0.1

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,25 @@
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 Group extends $tea.Model {
8
+ accessToken?: string;
9
+ clusterId?: string;
10
+ createTime?: string;
11
+ internetEndpoint?: string;
12
+ intranetEndpoint?: string;
13
+ name?: string;
14
+ queueService?: string;
15
+ updateTime?: string;
16
+ static names(): {
17
+ [key: string]: string;
18
+ };
19
+ static types(): {
20
+ [key: string]: any;
21
+ };
22
+ constructor(map?: {
23
+ [key: string]: any;
24
+ });
25
+ }
7
26
  export declare class Instance extends $tea.Model {
8
27
  hostIP?: string;
9
28
  hostName?: string;
@@ -57,12 +76,14 @@ export declare class Resource extends $tea.Model {
57
76
  });
58
77
  }
59
78
  export declare class ResourceInstance extends $tea.Model {
79
+ arch?: string;
60
80
  autoRenewal?: boolean;
61
81
  chargeType?: string;
62
82
  createTime?: string;
63
83
  expiredTime?: string;
64
84
  instanceCpuCount?: number;
65
85
  instanceGpuCount?: number;
86
+ instanceGpuMemory?: string;
66
87
  instanceId?: string;
67
88
  instanceIp?: string;
68
89
  instanceMemory?: string;
@@ -72,6 +93,8 @@ export declare class ResourceInstance extends $tea.Model {
72
93
  instanceUsedCpu?: number;
73
94
  instanceUsedGpu?: number;
74
95
  instanceUsedMemory?: string;
96
+ region?: string;
97
+ zone?: string;
75
98
  static names(): {
76
99
  [key: string]: string;
77
100
  };
@@ -127,11 +150,14 @@ export declare class Service extends $tea.Model {
127
150
  requestId?: string;
128
151
  resource?: string;
129
152
  resourceAlias?: string;
153
+ role?: string;
154
+ roleAttrs?: string;
130
155
  runningInstance?: number;
131
156
  serviceConfig?: string;
132
157
  serviceGroup?: string;
133
158
  serviceId?: string;
134
159
  serviceName?: string;
160
+ serviceUid?: string;
135
161
  source?: string;
136
162
  status?: string;
137
163
  totalInstance?: number;
@@ -161,9 +187,9 @@ export declare class CreateBenchmarkTaskRequest extends $tea.Model {
161
187
  }
162
188
  export declare class CreateBenchmarkTaskResponseBody extends $tea.Model {
163
189
  message?: string;
164
- name?: string;
165
190
  region?: string;
166
191
  requestId?: string;
192
+ taskName?: string;
167
193
  static names(): {
168
194
  [key: string]: string;
169
195
  };
@@ -373,7 +399,7 @@ export declare class CreateServiceResponse extends $tea.Model {
373
399
  export declare class CreateServiceAutoScalerRequest extends $tea.Model {
374
400
  max?: number;
375
401
  min?: number;
376
- strategies?: CreateServiceAutoScalerRequestStrategies;
402
+ scaleStrategies?: CreateServiceAutoScalerRequestScaleStrategies[];
377
403
  static names(): {
378
404
  [key: string]: string;
379
405
  };
@@ -816,6 +842,7 @@ export declare class DescribeBenchmarkTaskResponseBody extends $tea.Model {
816
842
  availableAgent?: number;
817
843
  callerUid?: string;
818
844
  desiredAgent?: number;
845
+ endpoint?: string;
819
846
  message?: string;
820
847
  parentUid?: string;
821
848
  reason?: string;
@@ -851,7 +878,20 @@ export declare class DescribeBenchmarkTaskResponse extends $tea.Model {
851
878
  [key: string]: any;
852
879
  });
853
880
  }
881
+ export declare class DescribeBenchmarkTaskReportRequest extends $tea.Model {
882
+ reportType?: string;
883
+ static names(): {
884
+ [key: string]: string;
885
+ };
886
+ static types(): {
887
+ [key: string]: any;
888
+ };
889
+ constructor(map?: {
890
+ [key: string]: any;
891
+ });
892
+ }
854
893
  export declare class DescribeBenchmarkTaskReportResponseBody extends $tea.Model {
894
+ data?: any;
855
895
  reportUrl?: string;
856
896
  requestId?: string;
857
897
  static names(): {
@@ -880,6 +920,22 @@ export declare class DescribeBenchmarkTaskReportResponse extends $tea.Model {
880
920
  [key: string]: any;
881
921
  });
882
922
  }
923
+ export declare class DescribeGroupResponse extends $tea.Model {
924
+ headers: {
925
+ [key: string]: string;
926
+ };
927
+ statusCode: number;
928
+ body: Group;
929
+ static names(): {
930
+ [key: string]: string;
931
+ };
932
+ static types(): {
933
+ [key: string]: any;
934
+ };
935
+ constructor(map?: {
936
+ [key: string]: any;
937
+ });
938
+ }
883
939
  export declare class DescribeResourceResponseBody extends $tea.Model {
884
940
  clusterId?: string;
885
941
  cpuCount?: number;
@@ -1007,16 +1063,12 @@ export declare class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1007
1063
  behavior?: {
1008
1064
  [key: string]: any;
1009
1065
  };
1010
- currentValues?: {
1011
- [key: string]: any;
1012
- };
1066
+ currentMetrics?: DescribeServiceAutoScalerResponseBodyCurrentMetrics[];
1013
1067
  maxReplica?: number;
1014
1068
  minReplica?: number;
1015
1069
  requestId?: string;
1070
+ scaleStrategies?: DescribeServiceAutoScalerResponseBodyScaleStrategies[];
1016
1071
  serviceName?: string;
1017
- strategies?: {
1018
- [key: string]: any;
1019
- };
1020
1072
  static names(): {
1021
1073
  [key: string]: string;
1022
1074
  };
@@ -1074,6 +1126,53 @@ export declare class DescribeServiceCronScalerResponse extends $tea.Model {
1074
1126
  [key: string]: any;
1075
1127
  });
1076
1128
  }
1129
+ export declare class DescribeServiceEventRequest extends $tea.Model {
1130
+ endTime?: string;
1131
+ pageNum?: string;
1132
+ pageSize?: string;
1133
+ startTime?: string;
1134
+ static names(): {
1135
+ [key: string]: string;
1136
+ };
1137
+ static types(): {
1138
+ [key: string]: any;
1139
+ };
1140
+ constructor(map?: {
1141
+ [key: string]: any;
1142
+ });
1143
+ }
1144
+ export declare class DescribeServiceEventResponseBody extends $tea.Model {
1145
+ events?: DescribeServiceEventResponseBodyEvents[];
1146
+ pageNum?: number;
1147
+ requestId?: string;
1148
+ totalCount?: number;
1149
+ totalPageNum?: number;
1150
+ static names(): {
1151
+ [key: string]: string;
1152
+ };
1153
+ static types(): {
1154
+ [key: string]: any;
1155
+ };
1156
+ constructor(map?: {
1157
+ [key: string]: any;
1158
+ });
1159
+ }
1160
+ export declare class DescribeServiceEventResponse extends $tea.Model {
1161
+ headers: {
1162
+ [key: string]: string;
1163
+ };
1164
+ statusCode: number;
1165
+ body: DescribeServiceEventResponseBody;
1166
+ static names(): {
1167
+ [key: string]: string;
1168
+ };
1169
+ static types(): {
1170
+ [key: string]: any;
1171
+ };
1172
+ constructor(map?: {
1173
+ [key: string]: any;
1174
+ });
1175
+ }
1077
1176
  export declare class DescribeServiceLogRequest extends $tea.Model {
1078
1177
  endTime?: string;
1079
1178
  ip?: string;
@@ -1154,9 +1253,27 @@ export declare class DescribeServiceMirrorResponse extends $tea.Model {
1154
1253
  [key: string]: any;
1155
1254
  });
1156
1255
  }
1256
+ export declare class ListBenchmarkTaskRequest extends $tea.Model {
1257
+ fileter?: string;
1258
+ pageNumber?: string;
1259
+ pageSize?: string;
1260
+ serviceName?: string;
1261
+ static names(): {
1262
+ [key: string]: string;
1263
+ };
1264
+ static types(): {
1265
+ [key: string]: any;
1266
+ };
1267
+ constructor(map?: {
1268
+ [key: string]: any;
1269
+ });
1270
+ }
1157
1271
  export declare class ListBenchmarkTaskResponseBody extends $tea.Model {
1272
+ pageNumber?: number;
1273
+ pageSize?: number;
1158
1274
  requestId?: string;
1159
1275
  tasks?: ListBenchmarkTaskResponseBodyTasks[];
1276
+ totalCount?: number;
1160
1277
  static names(): {
1161
1278
  [key: string]: string;
1162
1279
  };
@@ -1183,6 +1300,52 @@ export declare class ListBenchmarkTaskResponse extends $tea.Model {
1183
1300
  [key: string]: any;
1184
1301
  });
1185
1302
  }
1303
+ export declare class ListGroupsRequest extends $tea.Model {
1304
+ filter?: string;
1305
+ pageNumber?: string;
1306
+ pageSize?: string;
1307
+ static names(): {
1308
+ [key: string]: string;
1309
+ };
1310
+ static types(): {
1311
+ [key: string]: any;
1312
+ };
1313
+ constructor(map?: {
1314
+ [key: string]: any;
1315
+ });
1316
+ }
1317
+ export declare class ListGroupsResponseBody extends $tea.Model {
1318
+ groups?: Group[];
1319
+ pageNumber?: number;
1320
+ pageSize?: number;
1321
+ requestId?: string;
1322
+ totalCount?: number;
1323
+ static names(): {
1324
+ [key: string]: string;
1325
+ };
1326
+ static types(): {
1327
+ [key: string]: any;
1328
+ };
1329
+ constructor(map?: {
1330
+ [key: string]: any;
1331
+ });
1332
+ }
1333
+ export declare class ListGroupsResponse extends $tea.Model {
1334
+ headers: {
1335
+ [key: string]: string;
1336
+ };
1337
+ statusCode: number;
1338
+ body: ListGroupsResponseBody;
1339
+ static names(): {
1340
+ [key: string]: string;
1341
+ };
1342
+ static types(): {
1343
+ [key: string]: any;
1344
+ };
1345
+ constructor(map?: {
1346
+ [key: string]: any;
1347
+ });
1348
+ }
1186
1349
  export declare class ListResourceInstanceWorkerRequest extends $tea.Model {
1187
1350
  pageNumber?: number;
1188
1351
  pageSize?: number;
@@ -1409,8 +1572,54 @@ export declare class ListServiceInstancesResponse extends $tea.Model {
1409
1572
  [key: string]: any;
1410
1573
  });
1411
1574
  }
1575
+ export declare class ListServiceVersionsRequest extends $tea.Model {
1576
+ pageNumber?: number;
1577
+ pageSize?: number;
1578
+ static names(): {
1579
+ [key: string]: string;
1580
+ };
1581
+ static types(): {
1582
+ [key: string]: any;
1583
+ };
1584
+ constructor(map?: {
1585
+ [key: string]: any;
1586
+ });
1587
+ }
1588
+ export declare class ListServiceVersionsResponseBody extends $tea.Model {
1589
+ pageNumber?: number;
1590
+ pageSize?: number;
1591
+ requestId?: string;
1592
+ totalCount?: number;
1593
+ versions?: ListServiceVersionsResponseBodyVersions[];
1594
+ static names(): {
1595
+ [key: string]: string;
1596
+ };
1597
+ static types(): {
1598
+ [key: string]: any;
1599
+ };
1600
+ constructor(map?: {
1601
+ [key: string]: any;
1602
+ });
1603
+ }
1604
+ export declare class ListServiceVersionsResponse extends $tea.Model {
1605
+ headers: {
1606
+ [key: string]: string;
1607
+ };
1608
+ statusCode: number;
1609
+ body: ListServiceVersionsResponseBody;
1610
+ static names(): {
1611
+ [key: string]: string;
1612
+ };
1613
+ static types(): {
1614
+ [key: string]: any;
1615
+ };
1616
+ constructor(map?: {
1617
+ [key: string]: any;
1618
+ });
1619
+ }
1412
1620
  export declare class ListServicesRequest extends $tea.Model {
1413
1621
  filter?: string;
1622
+ groupName?: string;
1414
1623
  order?: string;
1415
1624
  pageNumber?: number;
1416
1625
  pageSize?: number;
@@ -1786,7 +1995,7 @@ export declare class UpdateServiceResponse extends $tea.Model {
1786
1995
  export declare class UpdateServiceAutoScalerRequest extends $tea.Model {
1787
1996
  max?: number;
1788
1997
  min?: number;
1789
- strategies?: UpdateServiceAutoScalerRequestStrategies;
1998
+ scaleStrategies?: UpdateServiceAutoScalerRequestScaleStrategies[];
1790
1999
  static names(): {
1791
2000
  [key: string]: string;
1792
2001
  };
@@ -1951,9 +2160,10 @@ export declare class UpdateServiceVersionResponse extends $tea.Model {
1951
2160
  [key: string]: any;
1952
2161
  });
1953
2162
  }
1954
- export declare class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
1955
- cpu?: number;
1956
- qps?: number;
2163
+ export declare class CreateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
2164
+ metricName?: string;
2165
+ service?: string;
2166
+ threshold?: number;
1957
2167
  static names(): {
1958
2168
  [key: string]: string;
1959
2169
  };
@@ -1978,6 +2188,34 @@ export declare class CreateServiceCronScalerRequestScaleJobs extends $tea.Model
1978
2188
  [key: string]: any;
1979
2189
  });
1980
2190
  }
2191
+ export declare class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $tea.Model {
2192
+ metricName?: string;
2193
+ service?: string;
2194
+ value?: number;
2195
+ static names(): {
2196
+ [key: string]: string;
2197
+ };
2198
+ static types(): {
2199
+ [key: string]: any;
2200
+ };
2201
+ constructor(map?: {
2202
+ [key: string]: any;
2203
+ });
2204
+ }
2205
+ export declare class DescribeServiceAutoScalerResponseBodyScaleStrategies extends $tea.Model {
2206
+ metricName?: string;
2207
+ service?: string;
2208
+ threshold?: number;
2209
+ static names(): {
2210
+ [key: string]: string;
2211
+ };
2212
+ static types(): {
2213
+ [key: string]: any;
2214
+ };
2215
+ constructor(map?: {
2216
+ [key: string]: any;
2217
+ });
2218
+ }
1981
2219
  export declare class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea.Model {
1982
2220
  createTime?: string;
1983
2221
  lastProbeTime?: string;
@@ -1996,6 +2234,21 @@ export declare class DescribeServiceCronScalerResponseBodyScaleJobs extends $tea
1996
2234
  [key: string]: any;
1997
2235
  });
1998
2236
  }
2237
+ export declare class DescribeServiceEventResponseBodyEvents extends $tea.Model {
2238
+ message?: string;
2239
+ reason?: string;
2240
+ time?: string;
2241
+ type?: string;
2242
+ static names(): {
2243
+ [key: string]: string;
2244
+ };
2245
+ static types(): {
2246
+ [key: string]: any;
2247
+ };
2248
+ constructor(map?: {
2249
+ [key: string]: any;
2250
+ });
2251
+ }
1999
2252
  export declare class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
2000
2253
  availableAgent?: number;
2001
2254
  createTime?: string;
@@ -2016,9 +2269,26 @@ export declare class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
2016
2269
  [key: string]: any;
2017
2270
  });
2018
2271
  }
2019
- export declare class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
2020
- cpu?: number;
2021
- qps?: number;
2272
+ export declare class ListServiceVersionsResponseBodyVersions extends $tea.Model {
2273
+ buildTime?: string;
2274
+ imageAvailable?: string;
2275
+ imageId?: number;
2276
+ message?: string;
2277
+ serviceRunnable?: string;
2278
+ static names(): {
2279
+ [key: string]: string;
2280
+ };
2281
+ static types(): {
2282
+ [key: string]: any;
2283
+ };
2284
+ constructor(map?: {
2285
+ [key: string]: any;
2286
+ });
2287
+ }
2288
+ export declare class UpdateServiceAutoScalerRequestScaleStrategies extends $tea.Model {
2289
+ metricName?: string;
2290
+ service?: string;
2291
+ threshold?: number;
2022
2292
  static names(): {
2023
2293
  [key: string]: string;
2024
2294
  };
@@ -2124,10 +2394,14 @@ export default class Client extends OpenApi {
2124
2394
  describeBenchmarkTaskWithOptions(ClusterId: string, TaskName: string, headers: {
2125
2395
  [key: string]: string;
2126
2396
  }, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskResponse>;
2127
- describeBenchmarkTaskReport(ClusterId: string, TaskName: string): Promise<DescribeBenchmarkTaskReportResponse>;
2128
- describeBenchmarkTaskReportWithOptions(ClusterId: string, TaskName: string, headers: {
2397
+ describeBenchmarkTaskReport(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest): Promise<DescribeBenchmarkTaskReportResponse>;
2398
+ describeBenchmarkTaskReportWithOptions(ClusterId: string, TaskName: string, request: DescribeBenchmarkTaskReportRequest, headers: {
2129
2399
  [key: string]: string;
2130
2400
  }, runtime: $Util.RuntimeOptions): Promise<DescribeBenchmarkTaskReportResponse>;
2401
+ describeGroup(ClusterId: string, GroupName: string): Promise<DescribeGroupResponse>;
2402
+ describeGroupWithOptions(ClusterId: string, GroupName: string, headers: {
2403
+ [key: string]: string;
2404
+ }, runtime: $Util.RuntimeOptions): Promise<DescribeGroupResponse>;
2131
2405
  describeResource(ClusterId: string, ResourceId: string): Promise<DescribeResourceResponse>;
2132
2406
  describeResourceWithOptions(ClusterId: string, ResourceId: string, headers: {
2133
2407
  [key: string]: string;
@@ -2152,6 +2426,10 @@ export default class Client extends OpenApi {
2152
2426
  describeServiceCronScalerWithOptions(ClusterId: string, ServiceName: string, headers: {
2153
2427
  [key: string]: string;
2154
2428
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceCronScalerResponse>;
2429
+ describeServiceEvent(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest): Promise<DescribeServiceEventResponse>;
2430
+ describeServiceEventWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceEventRequest, headers: {
2431
+ [key: string]: string;
2432
+ }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceEventResponse>;
2155
2433
  describeServiceLog(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest): Promise<DescribeServiceLogResponse>;
2156
2434
  describeServiceLogWithOptions(ClusterId: string, ServiceName: string, request: DescribeServiceLogRequest, headers: {
2157
2435
  [key: string]: string;
@@ -2160,10 +2438,14 @@ export default class Client extends OpenApi {
2160
2438
  describeServiceMirrorWithOptions(ClusterId: string, ServiceName: string, headers: {
2161
2439
  [key: string]: string;
2162
2440
  }, runtime: $Util.RuntimeOptions): Promise<DescribeServiceMirrorResponse>;
2163
- listBenchmarkTask(): Promise<ListBenchmarkTaskResponse>;
2164
- listBenchmarkTaskWithOptions(headers: {
2441
+ listBenchmarkTask(request: ListBenchmarkTaskRequest): Promise<ListBenchmarkTaskResponse>;
2442
+ listBenchmarkTaskWithOptions(request: ListBenchmarkTaskRequest, headers: {
2165
2443
  [key: string]: string;
2166
2444
  }, runtime: $Util.RuntimeOptions): Promise<ListBenchmarkTaskResponse>;
2445
+ listGroups(request: ListGroupsRequest): Promise<ListGroupsResponse>;
2446
+ listGroupsWithOptions(request: ListGroupsRequest, headers: {
2447
+ [key: string]: string;
2448
+ }, runtime: $Util.RuntimeOptions): Promise<ListGroupsResponse>;
2167
2449
  listResourceInstanceWorker(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest): Promise<ListResourceInstanceWorkerResponse>;
2168
2450
  listResourceInstanceWorkerWithOptions(ClusterId: string, ResourceId: string, InstanceName: string, request: ListResourceInstanceWorkerRequest, headers: {
2169
2451
  [key: string]: string;
@@ -2184,6 +2466,10 @@ export default class Client extends OpenApi {
2184
2466
  listServiceInstancesWithOptions(ClusterId: string, ServiceName: string, request: ListServiceInstancesRequest, headers: {
2185
2467
  [key: string]: string;
2186
2468
  }, runtime: $Util.RuntimeOptions): Promise<ListServiceInstancesResponse>;
2469
+ listServiceVersions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest): Promise<ListServiceVersionsResponse>;
2470
+ listServiceVersionsWithOptions(ClusterId: string, ServiceName: string, request: ListServiceVersionsRequest, headers: {
2471
+ [key: string]: string;
2472
+ }, runtime: $Util.RuntimeOptions): Promise<ListServiceVersionsResponse>;
2187
2473
  listServices(request: ListServicesRequest): Promise<ListServicesResponse>;
2188
2474
  listServicesWithOptions(request: ListServicesRequest, headers: {
2189
2475
  [key: string]: string;