@alicloud/eas20210701 1.1.3 → 1.1.6
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 +8 -320
- package/dist/client.js +31 -600
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +57 -736
package/dist/client.js
CHANGED
|
@@ -192,6 +192,7 @@ class Service extends $tea.Model {
|
|
|
192
192
|
cpu: 'Cpu',
|
|
193
193
|
createTime: 'CreateTime',
|
|
194
194
|
currentVersion: 'CurrentVersion',
|
|
195
|
+
extraData: 'ExtraData',
|
|
195
196
|
gpu: 'Gpu',
|
|
196
197
|
image: 'Image',
|
|
197
198
|
internetEndpoint: 'InternetEndpoint',
|
|
@@ -206,14 +207,16 @@ class Service extends $tea.Model {
|
|
|
206
207
|
region: 'Region',
|
|
207
208
|
requestId: 'RequestId',
|
|
208
209
|
resource: 'Resource',
|
|
210
|
+
resourceAlias: 'ResourceAlias',
|
|
209
211
|
runningInstance: 'RunningInstance',
|
|
210
212
|
serviceConfig: 'ServiceConfig',
|
|
213
|
+
serviceGroup: 'ServiceGroup',
|
|
211
214
|
serviceId: 'ServiceId',
|
|
212
215
|
serviceName: 'ServiceName',
|
|
213
216
|
source: 'Source',
|
|
214
217
|
status: 'Status',
|
|
215
218
|
totalInstance: 'TotalInstance',
|
|
216
|
-
|
|
219
|
+
updateTime: 'UpdateTime',
|
|
217
220
|
weight: 'Weight',
|
|
218
221
|
};
|
|
219
222
|
}
|
|
@@ -224,6 +227,7 @@ class Service extends $tea.Model {
|
|
|
224
227
|
cpu: 'number',
|
|
225
228
|
createTime: 'string',
|
|
226
229
|
currentVersion: 'number',
|
|
230
|
+
extraData: 'string',
|
|
227
231
|
gpu: 'number',
|
|
228
232
|
image: 'string',
|
|
229
233
|
internetEndpoint: 'string',
|
|
@@ -238,14 +242,16 @@ class Service extends $tea.Model {
|
|
|
238
242
|
region: 'string',
|
|
239
243
|
requestId: 'string',
|
|
240
244
|
resource: 'string',
|
|
245
|
+
resourceAlias: 'string',
|
|
241
246
|
runningInstance: 'number',
|
|
242
247
|
serviceConfig: 'string',
|
|
248
|
+
serviceGroup: 'string',
|
|
243
249
|
serviceId: 'string',
|
|
244
250
|
serviceName: 'string',
|
|
245
251
|
source: 'string',
|
|
246
252
|
status: 'string',
|
|
247
253
|
totalInstance: 'number',
|
|
248
|
-
|
|
254
|
+
updateTime: 'string',
|
|
249
255
|
weight: 'number',
|
|
250
256
|
};
|
|
251
257
|
}
|
|
@@ -563,9 +569,9 @@ class CreateServiceAutoScalerRequest extends $tea.Model {
|
|
|
563
569
|
}
|
|
564
570
|
static names() {
|
|
565
571
|
return {
|
|
566
|
-
max: '
|
|
567
|
-
min: '
|
|
568
|
-
strategies: '
|
|
572
|
+
max: 'max',
|
|
573
|
+
min: 'min',
|
|
574
|
+
strategies: 'strategies',
|
|
569
575
|
};
|
|
570
576
|
}
|
|
571
577
|
static types() {
|
|
@@ -727,64 +733,6 @@ class CreateServiceMirrorResponse extends $tea.Model {
|
|
|
727
733
|
}
|
|
728
734
|
}
|
|
729
735
|
exports.CreateServiceMirrorResponse = CreateServiceMirrorResponse;
|
|
730
|
-
class CreateStressRequest extends $tea.Model {
|
|
731
|
-
constructor(map) {
|
|
732
|
-
super(map);
|
|
733
|
-
}
|
|
734
|
-
static names() {
|
|
735
|
-
return {
|
|
736
|
-
body: 'body',
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
static types() {
|
|
740
|
-
return {
|
|
741
|
-
body: 'string',
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
exports.CreateStressRequest = CreateStressRequest;
|
|
746
|
-
class CreateStressResponseBody extends $tea.Model {
|
|
747
|
-
constructor(map) {
|
|
748
|
-
super(map);
|
|
749
|
-
}
|
|
750
|
-
static names() {
|
|
751
|
-
return {
|
|
752
|
-
message: 'Message',
|
|
753
|
-
name: 'Name',
|
|
754
|
-
region: 'Region',
|
|
755
|
-
requestId: 'RequestId',
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
static types() {
|
|
759
|
-
return {
|
|
760
|
-
message: 'string',
|
|
761
|
-
name: 'string',
|
|
762
|
-
region: 'string',
|
|
763
|
-
requestId: 'string',
|
|
764
|
-
};
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
exports.CreateStressResponseBody = CreateStressResponseBody;
|
|
768
|
-
class CreateStressResponse extends $tea.Model {
|
|
769
|
-
constructor(map) {
|
|
770
|
-
super(map);
|
|
771
|
-
}
|
|
772
|
-
static names() {
|
|
773
|
-
return {
|
|
774
|
-
headers: 'headers',
|
|
775
|
-
statusCode: 'statusCode',
|
|
776
|
-
body: 'body',
|
|
777
|
-
};
|
|
778
|
-
}
|
|
779
|
-
static types() {
|
|
780
|
-
return {
|
|
781
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
782
|
-
statusCode: 'number',
|
|
783
|
-
body: CreateStressResponseBody,
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
exports.CreateStressResponse = CreateStressResponse;
|
|
788
736
|
class DeleteBenchmarkTaskResponseBody extends $tea.Model {
|
|
789
737
|
constructor(map) {
|
|
790
738
|
super(map);
|
|
@@ -1199,44 +1147,6 @@ class DeleteServiceMirrorResponse extends $tea.Model {
|
|
|
1199
1147
|
}
|
|
1200
1148
|
}
|
|
1201
1149
|
exports.DeleteServiceMirrorResponse = DeleteServiceMirrorResponse;
|
|
1202
|
-
class DeleteStressResponseBody extends $tea.Model {
|
|
1203
|
-
constructor(map) {
|
|
1204
|
-
super(map);
|
|
1205
|
-
}
|
|
1206
|
-
static names() {
|
|
1207
|
-
return {
|
|
1208
|
-
message: 'Message',
|
|
1209
|
-
requestId: 'RequestId',
|
|
1210
|
-
};
|
|
1211
|
-
}
|
|
1212
|
-
static types() {
|
|
1213
|
-
return {
|
|
1214
|
-
message: 'string',
|
|
1215
|
-
requestId: 'string',
|
|
1216
|
-
};
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
exports.DeleteStressResponseBody = DeleteStressResponseBody;
|
|
1220
|
-
class DeleteStressResponse extends $tea.Model {
|
|
1221
|
-
constructor(map) {
|
|
1222
|
-
super(map);
|
|
1223
|
-
}
|
|
1224
|
-
static names() {
|
|
1225
|
-
return {
|
|
1226
|
-
headers: 'headers',
|
|
1227
|
-
statusCode: 'statusCode',
|
|
1228
|
-
body: 'body',
|
|
1229
|
-
};
|
|
1230
|
-
}
|
|
1231
|
-
static types() {
|
|
1232
|
-
return {
|
|
1233
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1234
|
-
statusCode: 'number',
|
|
1235
|
-
body: DeleteStressResponseBody,
|
|
1236
|
-
};
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
exports.DeleteStressResponse = DeleteStressResponse;
|
|
1240
1150
|
class DescribeBenchmarkTaskResponseBody extends $tea.Model {
|
|
1241
1151
|
constructor(map) {
|
|
1242
1152
|
super(map);
|
|
@@ -1513,6 +1423,7 @@ class DescribeServiceAutoScalerResponseBody extends $tea.Model {
|
|
|
1513
1423
|
}
|
|
1514
1424
|
static names() {
|
|
1515
1425
|
return {
|
|
1426
|
+
behavior: 'Behavior',
|
|
1516
1427
|
currentValues: 'CurrentValues',
|
|
1517
1428
|
maxReplica: 'MaxReplica',
|
|
1518
1429
|
minReplica: 'MinReplica',
|
|
@@ -1523,6 +1434,7 @@ class DescribeServiceAutoScalerResponseBody extends $tea.Model {
|
|
|
1523
1434
|
}
|
|
1524
1435
|
static types() {
|
|
1525
1436
|
return {
|
|
1437
|
+
behavior: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1526
1438
|
currentValues: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1527
1439
|
maxReplica: 'number',
|
|
1528
1440
|
minReplica: 'number',
|
|
@@ -1707,62 +1619,6 @@ class DescribeServiceMirrorResponse extends $tea.Model {
|
|
|
1707
1619
|
}
|
|
1708
1620
|
}
|
|
1709
1621
|
exports.DescribeServiceMirrorResponse = DescribeServiceMirrorResponse;
|
|
1710
|
-
class DescribeStressResponseBody extends $tea.Model {
|
|
1711
|
-
constructor(map) {
|
|
1712
|
-
super(map);
|
|
1713
|
-
}
|
|
1714
|
-
static names() {
|
|
1715
|
-
return {
|
|
1716
|
-
availableAgent: 'AvailableAgent',
|
|
1717
|
-
callerUid: 'CallerUid',
|
|
1718
|
-
desiredAgent: 'DesiredAgent',
|
|
1719
|
-
message: 'Message',
|
|
1720
|
-
parentUid: 'ParentUid',
|
|
1721
|
-
reason: 'Reason',
|
|
1722
|
-
requestId: 'RequestId',
|
|
1723
|
-
serviceName: 'ServiceName',
|
|
1724
|
-
status: 'Status',
|
|
1725
|
-
stressName: 'StressName',
|
|
1726
|
-
token: 'Token',
|
|
1727
|
-
};
|
|
1728
|
-
}
|
|
1729
|
-
static types() {
|
|
1730
|
-
return {
|
|
1731
|
-
availableAgent: 'number',
|
|
1732
|
-
callerUid: 'string',
|
|
1733
|
-
desiredAgent: 'number',
|
|
1734
|
-
message: 'string',
|
|
1735
|
-
parentUid: 'string',
|
|
1736
|
-
reason: 'string',
|
|
1737
|
-
requestId: 'string',
|
|
1738
|
-
serviceName: 'string',
|
|
1739
|
-
status: 'string',
|
|
1740
|
-
stressName: 'string',
|
|
1741
|
-
token: 'string',
|
|
1742
|
-
};
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
exports.DescribeStressResponseBody = DescribeStressResponseBody;
|
|
1746
|
-
class DescribeStressResponse extends $tea.Model {
|
|
1747
|
-
constructor(map) {
|
|
1748
|
-
super(map);
|
|
1749
|
-
}
|
|
1750
|
-
static names() {
|
|
1751
|
-
return {
|
|
1752
|
-
headers: 'headers',
|
|
1753
|
-
statusCode: 'statusCode',
|
|
1754
|
-
body: 'body',
|
|
1755
|
-
};
|
|
1756
|
-
}
|
|
1757
|
-
static types() {
|
|
1758
|
-
return {
|
|
1759
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1760
|
-
statusCode: 'number',
|
|
1761
|
-
body: DescribeStressResponseBody,
|
|
1762
|
-
};
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
exports.DescribeStressResponse = DescribeStressResponse;
|
|
1766
1622
|
class ListBenchmarkTaskResponseBody extends $tea.Model {
|
|
1767
1623
|
constructor(map) {
|
|
1768
1624
|
super(map);
|
|
@@ -2181,55 +2037,19 @@ class ListServicesResponse extends $tea.Model {
|
|
|
2181
2037
|
}
|
|
2182
2038
|
}
|
|
2183
2039
|
exports.ListServicesResponse = ListServicesResponse;
|
|
2184
|
-
class ListStressesResponseBody extends $tea.Model {
|
|
2185
|
-
constructor(map) {
|
|
2186
|
-
super(map);
|
|
2187
|
-
}
|
|
2188
|
-
static names() {
|
|
2189
|
-
return {
|
|
2190
|
-
requestId: 'RequestId',
|
|
2191
|
-
stresses: 'Stresses',
|
|
2192
|
-
};
|
|
2193
|
-
}
|
|
2194
|
-
static types() {
|
|
2195
|
-
return {
|
|
2196
|
-
requestId: 'string',
|
|
2197
|
-
stresses: { 'type': 'array', 'itemType': ListStressesResponseBodyStresses },
|
|
2198
|
-
};
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
exports.ListStressesResponseBody = ListStressesResponseBody;
|
|
2202
|
-
class ListStressesResponse extends $tea.Model {
|
|
2203
|
-
constructor(map) {
|
|
2204
|
-
super(map);
|
|
2205
|
-
}
|
|
2206
|
-
static names() {
|
|
2207
|
-
return {
|
|
2208
|
-
headers: 'headers',
|
|
2209
|
-
statusCode: 'statusCode',
|
|
2210
|
-
body: 'body',
|
|
2211
|
-
};
|
|
2212
|
-
}
|
|
2213
|
-
static types() {
|
|
2214
|
-
return {
|
|
2215
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2216
|
-
statusCode: 'number',
|
|
2217
|
-
body: ListStressesResponseBody,
|
|
2218
|
-
};
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
exports.ListStressesResponse = ListStressesResponse;
|
|
2222
2040
|
class ReleaseServiceRequest extends $tea.Model {
|
|
2223
2041
|
constructor(map) {
|
|
2224
2042
|
super(map);
|
|
2225
2043
|
}
|
|
2226
2044
|
static names() {
|
|
2227
2045
|
return {
|
|
2046
|
+
trafficState: 'TrafficState',
|
|
2228
2047
|
weight: 'Weight',
|
|
2229
2048
|
};
|
|
2230
2049
|
}
|
|
2231
2050
|
static types() {
|
|
2232
2051
|
return {
|
|
2052
|
+
trafficState: 'string',
|
|
2233
2053
|
weight: 'number',
|
|
2234
2054
|
};
|
|
2235
2055
|
}
|
|
@@ -2273,44 +2093,6 @@ class ReleaseServiceResponse extends $tea.Model {
|
|
|
2273
2093
|
}
|
|
2274
2094
|
}
|
|
2275
2095
|
exports.ReleaseServiceResponse = ReleaseServiceResponse;
|
|
2276
|
-
class ReportStressResponseBody extends $tea.Model {
|
|
2277
|
-
constructor(map) {
|
|
2278
|
-
super(map);
|
|
2279
|
-
}
|
|
2280
|
-
static names() {
|
|
2281
|
-
return {
|
|
2282
|
-
reportUrl: 'ReportUrl',
|
|
2283
|
-
requestId: 'RequestId',
|
|
2284
|
-
};
|
|
2285
|
-
}
|
|
2286
|
-
static types() {
|
|
2287
|
-
return {
|
|
2288
|
-
reportUrl: 'string',
|
|
2289
|
-
requestId: 'string',
|
|
2290
|
-
};
|
|
2291
|
-
}
|
|
2292
|
-
}
|
|
2293
|
-
exports.ReportStressResponseBody = ReportStressResponseBody;
|
|
2294
|
-
class ReportStressResponse extends $tea.Model {
|
|
2295
|
-
constructor(map) {
|
|
2296
|
-
super(map);
|
|
2297
|
-
}
|
|
2298
|
-
static names() {
|
|
2299
|
-
return {
|
|
2300
|
-
headers: 'headers',
|
|
2301
|
-
statusCode: 'statusCode',
|
|
2302
|
-
body: 'body',
|
|
2303
|
-
};
|
|
2304
|
-
}
|
|
2305
|
-
static types() {
|
|
2306
|
-
return {
|
|
2307
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2308
|
-
statusCode: 'number',
|
|
2309
|
-
body: ReportStressResponseBody,
|
|
2310
|
-
};
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
exports.ReportStressResponse = ReportStressResponse;
|
|
2314
2096
|
class StartBenchmarkTaskResponseBody extends $tea.Model {
|
|
2315
2097
|
constructor(map) {
|
|
2316
2098
|
super(map);
|
|
@@ -2387,44 +2169,6 @@ class StartServiceResponse extends $tea.Model {
|
|
|
2387
2169
|
}
|
|
2388
2170
|
}
|
|
2389
2171
|
exports.StartServiceResponse = StartServiceResponse;
|
|
2390
|
-
class StartStressResponseBody extends $tea.Model {
|
|
2391
|
-
constructor(map) {
|
|
2392
|
-
super(map);
|
|
2393
|
-
}
|
|
2394
|
-
static names() {
|
|
2395
|
-
return {
|
|
2396
|
-
message: 'Message',
|
|
2397
|
-
requestId: 'RequestId',
|
|
2398
|
-
};
|
|
2399
|
-
}
|
|
2400
|
-
static types() {
|
|
2401
|
-
return {
|
|
2402
|
-
message: 'string',
|
|
2403
|
-
requestId: 'string',
|
|
2404
|
-
};
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
exports.StartStressResponseBody = StartStressResponseBody;
|
|
2408
|
-
class StartStressResponse extends $tea.Model {
|
|
2409
|
-
constructor(map) {
|
|
2410
|
-
super(map);
|
|
2411
|
-
}
|
|
2412
|
-
static names() {
|
|
2413
|
-
return {
|
|
2414
|
-
headers: 'headers',
|
|
2415
|
-
statusCode: 'statusCode',
|
|
2416
|
-
body: 'body',
|
|
2417
|
-
};
|
|
2418
|
-
}
|
|
2419
|
-
static types() {
|
|
2420
|
-
return {
|
|
2421
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2422
|
-
statusCode: 'number',
|
|
2423
|
-
body: StartStressResponseBody,
|
|
2424
|
-
};
|
|
2425
|
-
}
|
|
2426
|
-
}
|
|
2427
|
-
exports.StartStressResponse = StartStressResponse;
|
|
2428
2172
|
class StopBenchmarkTaskResponseBody extends $tea.Model {
|
|
2429
2173
|
constructor(map) {
|
|
2430
2174
|
super(map);
|
|
@@ -2501,46 +2245,6 @@ class StopServiceResponse extends $tea.Model {
|
|
|
2501
2245
|
}
|
|
2502
2246
|
}
|
|
2503
2247
|
exports.StopServiceResponse = StopServiceResponse;
|
|
2504
|
-
class StopStressResponseBody extends $tea.Model {
|
|
2505
|
-
constructor(map) {
|
|
2506
|
-
super(map);
|
|
2507
|
-
}
|
|
2508
|
-
static names() {
|
|
2509
|
-
return {
|
|
2510
|
-
code: 'Code',
|
|
2511
|
-
message: 'Message',
|
|
2512
|
-
requestId: 'RequestId',
|
|
2513
|
-
};
|
|
2514
|
-
}
|
|
2515
|
-
static types() {
|
|
2516
|
-
return {
|
|
2517
|
-
code: 'number',
|
|
2518
|
-
message: 'string',
|
|
2519
|
-
requestId: 'string',
|
|
2520
|
-
};
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
exports.StopStressResponseBody = StopStressResponseBody;
|
|
2524
|
-
class StopStressResponse extends $tea.Model {
|
|
2525
|
-
constructor(map) {
|
|
2526
|
-
super(map);
|
|
2527
|
-
}
|
|
2528
|
-
static names() {
|
|
2529
|
-
return {
|
|
2530
|
-
headers: 'headers',
|
|
2531
|
-
statusCode: 'statusCode',
|
|
2532
|
-
body: 'body',
|
|
2533
|
-
};
|
|
2534
|
-
}
|
|
2535
|
-
static types() {
|
|
2536
|
-
return {
|
|
2537
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2538
|
-
statusCode: 'number',
|
|
2539
|
-
body: StopStressResponseBody,
|
|
2540
|
-
};
|
|
2541
|
-
}
|
|
2542
|
-
}
|
|
2543
|
-
exports.StopStressResponse = StopStressResponse;
|
|
2544
2248
|
class UpdateBenchmarkTaskRequest extends $tea.Model {
|
|
2545
2249
|
constructor(map) {
|
|
2546
2250
|
super(map);
|
|
@@ -2771,9 +2475,9 @@ class UpdateServiceAutoScalerRequest extends $tea.Model {
|
|
|
2771
2475
|
}
|
|
2772
2476
|
static names() {
|
|
2773
2477
|
return {
|
|
2774
|
-
max: '
|
|
2775
|
-
min: '
|
|
2776
|
-
strategies: '
|
|
2478
|
+
max: 'max',
|
|
2479
|
+
min: 'min',
|
|
2480
|
+
strategies: 'strategies',
|
|
2777
2481
|
};
|
|
2778
2482
|
}
|
|
2779
2483
|
static types() {
|
|
@@ -2989,68 +2693,14 @@ class UpdateServiceVersionResponse extends $tea.Model {
|
|
|
2989
2693
|
}
|
|
2990
2694
|
}
|
|
2991
2695
|
exports.UpdateServiceVersionResponse = UpdateServiceVersionResponse;
|
|
2992
|
-
class UpdateStressRequest extends $tea.Model {
|
|
2993
|
-
constructor(map) {
|
|
2994
|
-
super(map);
|
|
2995
|
-
}
|
|
2996
|
-
static names() {
|
|
2997
|
-
return {
|
|
2998
|
-
body: 'body',
|
|
2999
|
-
};
|
|
3000
|
-
}
|
|
3001
|
-
static types() {
|
|
3002
|
-
return {
|
|
3003
|
-
body: 'string',
|
|
3004
|
-
};
|
|
3005
|
-
}
|
|
3006
|
-
}
|
|
3007
|
-
exports.UpdateStressRequest = UpdateStressRequest;
|
|
3008
|
-
class UpdateStressResponseBody extends $tea.Model {
|
|
3009
|
-
constructor(map) {
|
|
3010
|
-
super(map);
|
|
3011
|
-
}
|
|
3012
|
-
static names() {
|
|
3013
|
-
return {
|
|
3014
|
-
message: 'Message',
|
|
3015
|
-
requestId: 'RequestId',
|
|
3016
|
-
};
|
|
3017
|
-
}
|
|
3018
|
-
static types() {
|
|
3019
|
-
return {
|
|
3020
|
-
message: 'string',
|
|
3021
|
-
requestId: 'string',
|
|
3022
|
-
};
|
|
3023
|
-
}
|
|
3024
|
-
}
|
|
3025
|
-
exports.UpdateStressResponseBody = UpdateStressResponseBody;
|
|
3026
|
-
class UpdateStressResponse extends $tea.Model {
|
|
3027
|
-
constructor(map) {
|
|
3028
|
-
super(map);
|
|
3029
|
-
}
|
|
3030
|
-
static names() {
|
|
3031
|
-
return {
|
|
3032
|
-
headers: 'headers',
|
|
3033
|
-
statusCode: 'statusCode',
|
|
3034
|
-
body: 'body',
|
|
3035
|
-
};
|
|
3036
|
-
}
|
|
3037
|
-
static types() {
|
|
3038
|
-
return {
|
|
3039
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3040
|
-
statusCode: 'number',
|
|
3041
|
-
body: UpdateStressResponseBody,
|
|
3042
|
-
};
|
|
3043
|
-
}
|
|
3044
|
-
}
|
|
3045
|
-
exports.UpdateStressResponse = UpdateStressResponse;
|
|
3046
2696
|
class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
|
|
3047
2697
|
constructor(map) {
|
|
3048
2698
|
super(map);
|
|
3049
2699
|
}
|
|
3050
2700
|
static names() {
|
|
3051
2701
|
return {
|
|
3052
|
-
cpu: '
|
|
3053
|
-
qps: '
|
|
2702
|
+
cpu: 'cpu',
|
|
2703
|
+
qps: 'qps',
|
|
3054
2704
|
};
|
|
3055
2705
|
}
|
|
3056
2706
|
static types() {
|
|
@@ -3141,44 +2791,14 @@ class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
|
3141
2791
|
}
|
|
3142
2792
|
}
|
|
3143
2793
|
exports.ListBenchmarkTaskResponseBodyTasks = ListBenchmarkTaskResponseBodyTasks;
|
|
3144
|
-
class ListStressesResponseBodyStresses extends $tea.Model {
|
|
3145
|
-
constructor(map) {
|
|
3146
|
-
super(map);
|
|
3147
|
-
}
|
|
3148
|
-
static names() {
|
|
3149
|
-
return {
|
|
3150
|
-
availableAgent: 'AvailableAgent',
|
|
3151
|
-
createTime: 'CreateTime',
|
|
3152
|
-
message: 'Message',
|
|
3153
|
-
region: 'Region',
|
|
3154
|
-
serviceName: 'ServiceName',
|
|
3155
|
-
status: 'Status',
|
|
3156
|
-
stressName: 'StressName',
|
|
3157
|
-
updateTime: 'UpdateTime',
|
|
3158
|
-
};
|
|
3159
|
-
}
|
|
3160
|
-
static types() {
|
|
3161
|
-
return {
|
|
3162
|
-
availableAgent: 'number',
|
|
3163
|
-
createTime: 'string',
|
|
3164
|
-
message: 'string',
|
|
3165
|
-
region: 'string',
|
|
3166
|
-
serviceName: 'string',
|
|
3167
|
-
status: 'string',
|
|
3168
|
-
stressName: 'string',
|
|
3169
|
-
updateTime: 'string',
|
|
3170
|
-
};
|
|
3171
|
-
}
|
|
3172
|
-
}
|
|
3173
|
-
exports.ListStressesResponseBodyStresses = ListStressesResponseBodyStresses;
|
|
3174
2794
|
class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
|
|
3175
2795
|
constructor(map) {
|
|
3176
2796
|
super(map);
|
|
3177
2797
|
}
|
|
3178
2798
|
static names() {
|
|
3179
2799
|
return {
|
|
3180
|
-
cpu: '
|
|
3181
|
-
qps: '
|
|
2800
|
+
cpu: 'cpu',
|
|
2801
|
+
qps: 'qps',
|
|
3182
2802
|
};
|
|
3183
2803
|
}
|
|
3184
2804
|
static types() {
|
|
@@ -3413,13 +3033,13 @@ class Client extends openapi_client_1.default {
|
|
|
3413
3033
|
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
3414
3034
|
let body = {};
|
|
3415
3035
|
if (!tea_util_1.default.isUnset(request.max)) {
|
|
3416
|
-
body["
|
|
3036
|
+
body["max"] = request.max;
|
|
3417
3037
|
}
|
|
3418
3038
|
if (!tea_util_1.default.isUnset(request.min)) {
|
|
3419
|
-
body["
|
|
3039
|
+
body["min"] = request.min;
|
|
3420
3040
|
}
|
|
3421
3041
|
if (!tea_util_1.default.isUnset($tea.toMap(request.strategies))) {
|
|
3422
|
-
body["
|
|
3042
|
+
body["strategies"] = request.strategies;
|
|
3423
3043
|
}
|
|
3424
3044
|
let req = new $OpenApi.OpenApiRequest({
|
|
3425
3045
|
headers: headers,
|
|
@@ -3504,30 +3124,6 @@ class Client extends openapi_client_1.default {
|
|
|
3504
3124
|
});
|
|
3505
3125
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
|
|
3506
3126
|
}
|
|
3507
|
-
async createStress(request) {
|
|
3508
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
3509
|
-
let headers = {};
|
|
3510
|
-
return await this.createStressWithOptions(request, headers, runtime);
|
|
3511
|
-
}
|
|
3512
|
-
async createStressWithOptions(request, headers, runtime) {
|
|
3513
|
-
tea_util_1.default.validateModel(request);
|
|
3514
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
3515
|
-
headers: headers,
|
|
3516
|
-
body: request.body,
|
|
3517
|
-
});
|
|
3518
|
-
let params = new $OpenApi.Params({
|
|
3519
|
-
action: "CreateStress",
|
|
3520
|
-
version: "2021-07-01",
|
|
3521
|
-
protocol: "HTTPS",
|
|
3522
|
-
pathname: `/api/v2/stress`,
|
|
3523
|
-
method: "POST",
|
|
3524
|
-
authType: "AK",
|
|
3525
|
-
style: "ROA",
|
|
3526
|
-
reqBodyType: "json",
|
|
3527
|
-
bodyType: "json",
|
|
3528
|
-
});
|
|
3529
|
-
return $tea.cast(await this.callApi(params, req, runtime), new CreateStressResponse({}));
|
|
3530
|
-
}
|
|
3531
3127
|
async deleteBenchmarkTask(ClusterId, TaskName) {
|
|
3532
3128
|
let runtime = new $Util.RuntimeOptions({});
|
|
3533
3129
|
let headers = {};
|
|
@@ -3783,30 +3379,6 @@ class Client extends openapi_client_1.default {
|
|
|
3783
3379
|
});
|
|
3784
3380
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
|
|
3785
3381
|
}
|
|
3786
|
-
async deleteStress(ClusterId, StressName) {
|
|
3787
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
3788
|
-
let headers = {};
|
|
3789
|
-
return await this.deleteStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
3790
|
-
}
|
|
3791
|
-
async deleteStressWithOptions(ClusterId, StressName, headers, runtime) {
|
|
3792
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
3793
|
-
StressName = openapi_util_1.default.getEncodeParam(StressName);
|
|
3794
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
3795
|
-
headers: headers,
|
|
3796
|
-
});
|
|
3797
|
-
let params = new $OpenApi.Params({
|
|
3798
|
-
action: "DeleteStress",
|
|
3799
|
-
version: "2021-07-01",
|
|
3800
|
-
protocol: "HTTPS",
|
|
3801
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
|
|
3802
|
-
method: "DELETE",
|
|
3803
|
-
authType: "AK",
|
|
3804
|
-
style: "ROA",
|
|
3805
|
-
reqBodyType: "json",
|
|
3806
|
-
bodyType: "json",
|
|
3807
|
-
});
|
|
3808
|
-
return $tea.cast(await this.callApi(params, req, runtime), new DeleteStressResponse({}));
|
|
3809
|
-
}
|
|
3810
3382
|
async describeBenchmarkTask(ClusterId, TaskName) {
|
|
3811
3383
|
let runtime = new $Util.RuntimeOptions({});
|
|
3812
3384
|
let headers = {};
|
|
@@ -4068,30 +3640,6 @@ class Client extends openapi_client_1.default {
|
|
|
4068
3640
|
});
|
|
4069
3641
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
|
|
4070
3642
|
}
|
|
4071
|
-
async describeStress(ClusterId, StressName) {
|
|
4072
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
4073
|
-
let headers = {};
|
|
4074
|
-
return await this.describeStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
4075
|
-
}
|
|
4076
|
-
async describeStressWithOptions(ClusterId, StressName, headers, runtime) {
|
|
4077
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4078
|
-
StressName = openapi_util_1.default.getEncodeParam(StressName);
|
|
4079
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
4080
|
-
headers: headers,
|
|
4081
|
-
});
|
|
4082
|
-
let params = new $OpenApi.Params({
|
|
4083
|
-
action: "DescribeStress",
|
|
4084
|
-
version: "2021-07-01",
|
|
4085
|
-
protocol: "HTTPS",
|
|
4086
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
|
|
4087
|
-
method: "GET",
|
|
4088
|
-
authType: "AK",
|
|
4089
|
-
style: "ROA",
|
|
4090
|
-
reqBodyType: "json",
|
|
4091
|
-
bodyType: "json",
|
|
4092
|
-
});
|
|
4093
|
-
return $tea.cast(await this.callApi(params, req, runtime), new DescribeStressResponse({}));
|
|
4094
|
-
}
|
|
4095
3643
|
async listBenchmarkTask() {
|
|
4096
3644
|
let runtime = new $Util.RuntimeOptions({});
|
|
4097
3645
|
let headers = {};
|
|
@@ -4321,28 +3869,6 @@ class Client extends openapi_client_1.default {
|
|
|
4321
3869
|
});
|
|
4322
3870
|
return $tea.cast(await this.callApi(params, req, runtime), new ListServicesResponse({}));
|
|
4323
3871
|
}
|
|
4324
|
-
async listStresses() {
|
|
4325
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
4326
|
-
let headers = {};
|
|
4327
|
-
return await this.listStressesWithOptions(headers, runtime);
|
|
4328
|
-
}
|
|
4329
|
-
async listStressesWithOptions(headers, runtime) {
|
|
4330
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
4331
|
-
headers: headers,
|
|
4332
|
-
});
|
|
4333
|
-
let params = new $OpenApi.Params({
|
|
4334
|
-
action: "ListStresses",
|
|
4335
|
-
version: "2021-07-01",
|
|
4336
|
-
protocol: "HTTPS",
|
|
4337
|
-
pathname: `/api/v2/stress`,
|
|
4338
|
-
method: "GET",
|
|
4339
|
-
authType: "AK",
|
|
4340
|
-
style: "ROA",
|
|
4341
|
-
reqBodyType: "json",
|
|
4342
|
-
bodyType: "json",
|
|
4343
|
-
});
|
|
4344
|
-
return $tea.cast(await this.callApi(params, req, runtime), new ListStressesResponse({}));
|
|
4345
|
-
}
|
|
4346
3872
|
async releaseService(ClusterId, ServiceName, request) {
|
|
4347
3873
|
let runtime = new $Util.RuntimeOptions({});
|
|
4348
3874
|
let headers = {};
|
|
@@ -4353,6 +3879,9 @@ class Client extends openapi_client_1.default {
|
|
|
4353
3879
|
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4354
3880
|
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
4355
3881
|
let body = {};
|
|
3882
|
+
if (!tea_util_1.default.isUnset(request.trafficState)) {
|
|
3883
|
+
body["TrafficState"] = request.trafficState;
|
|
3884
|
+
}
|
|
4356
3885
|
if (!tea_util_1.default.isUnset(request.weight)) {
|
|
4357
3886
|
body["Weight"] = request.weight;
|
|
4358
3887
|
}
|
|
@@ -4373,30 +3902,6 @@ class Client extends openapi_client_1.default {
|
|
|
4373
3902
|
});
|
|
4374
3903
|
return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
|
|
4375
3904
|
}
|
|
4376
|
-
async reportStress(ClusterId, StressName) {
|
|
4377
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
4378
|
-
let headers = {};
|
|
4379
|
-
return await this.reportStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
4380
|
-
}
|
|
4381
|
-
async reportStressWithOptions(ClusterId, StressName, headers, runtime) {
|
|
4382
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4383
|
-
StressName = openapi_util_1.default.getEncodeParam(StressName);
|
|
4384
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
4385
|
-
headers: headers,
|
|
4386
|
-
});
|
|
4387
|
-
let params = new $OpenApi.Params({
|
|
4388
|
-
action: "ReportStress",
|
|
4389
|
-
version: "2021-07-01",
|
|
4390
|
-
protocol: "HTTPS",
|
|
4391
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}/report`,
|
|
4392
|
-
method: "GET",
|
|
4393
|
-
authType: "AK",
|
|
4394
|
-
style: "ROA",
|
|
4395
|
-
reqBodyType: "json",
|
|
4396
|
-
bodyType: "json",
|
|
4397
|
-
});
|
|
4398
|
-
return $tea.cast(await this.callApi(params, req, runtime), new ReportStressResponse({}));
|
|
4399
|
-
}
|
|
4400
3905
|
async startBenchmarkTask(ClusterId, TaskName) {
|
|
4401
3906
|
let runtime = new $Util.RuntimeOptions({});
|
|
4402
3907
|
let headers = {};
|
|
@@ -4445,30 +3950,6 @@ class Client extends openapi_client_1.default {
|
|
|
4445
3950
|
});
|
|
4446
3951
|
return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
|
|
4447
3952
|
}
|
|
4448
|
-
async startStress(ClusterId, StressName) {
|
|
4449
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
4450
|
-
let headers = {};
|
|
4451
|
-
return await this.startStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
4452
|
-
}
|
|
4453
|
-
async startStressWithOptions(ClusterId, StressName, headers, runtime) {
|
|
4454
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4455
|
-
StressName = openapi_util_1.default.getEncodeParam(StressName);
|
|
4456
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
4457
|
-
headers: headers,
|
|
4458
|
-
});
|
|
4459
|
-
let params = new $OpenApi.Params({
|
|
4460
|
-
action: "StartStress",
|
|
4461
|
-
version: "2021-07-01",
|
|
4462
|
-
protocol: "HTTPS",
|
|
4463
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}/start`,
|
|
4464
|
-
method: "PUT",
|
|
4465
|
-
authType: "AK",
|
|
4466
|
-
style: "ROA",
|
|
4467
|
-
reqBodyType: "json",
|
|
4468
|
-
bodyType: "json",
|
|
4469
|
-
});
|
|
4470
|
-
return $tea.cast(await this.callApi(params, req, runtime), new StartStressResponse({}));
|
|
4471
|
-
}
|
|
4472
3953
|
async stopBenchmarkTask(ClusterId, TaskName) {
|
|
4473
3954
|
let runtime = new $Util.RuntimeOptions({});
|
|
4474
3955
|
let headers = {};
|
|
@@ -4517,30 +3998,6 @@ class Client extends openapi_client_1.default {
|
|
|
4517
3998
|
});
|
|
4518
3999
|
return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
|
|
4519
4000
|
}
|
|
4520
|
-
async stopStress(ClusterId, StressName) {
|
|
4521
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
4522
|
-
let headers = {};
|
|
4523
|
-
return await this.stopStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
4524
|
-
}
|
|
4525
|
-
async stopStressWithOptions(ClusterId, StressName, headers, runtime) {
|
|
4526
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4527
|
-
StressName = openapi_util_1.default.getEncodeParam(StressName);
|
|
4528
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
4529
|
-
headers: headers,
|
|
4530
|
-
});
|
|
4531
|
-
let params = new $OpenApi.Params({
|
|
4532
|
-
action: "StopStress",
|
|
4533
|
-
version: "2021-07-01",
|
|
4534
|
-
protocol: "HTTPS",
|
|
4535
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}/stop`,
|
|
4536
|
-
method: "PUT",
|
|
4537
|
-
authType: "AK",
|
|
4538
|
-
style: "ROA",
|
|
4539
|
-
reqBodyType: "json",
|
|
4540
|
-
bodyType: "json",
|
|
4541
|
-
});
|
|
4542
|
-
return $tea.cast(await this.callApi(params, req, runtime), new StopStressResponse({}));
|
|
4543
|
-
}
|
|
4544
4001
|
async updateBenchmarkTask(ClusterId, TaskName, request) {
|
|
4545
4002
|
let runtime = new $Util.RuntimeOptions({});
|
|
4546
4003
|
let headers = {};
|
|
@@ -4673,13 +4130,13 @@ class Client extends openapi_client_1.default {
|
|
|
4673
4130
|
ServiceName = openapi_util_1.default.getEncodeParam(ServiceName);
|
|
4674
4131
|
let body = {};
|
|
4675
4132
|
if (!tea_util_1.default.isUnset(request.max)) {
|
|
4676
|
-
body["
|
|
4133
|
+
body["max"] = request.max;
|
|
4677
4134
|
}
|
|
4678
4135
|
if (!tea_util_1.default.isUnset(request.min)) {
|
|
4679
|
-
body["
|
|
4136
|
+
body["min"] = request.min;
|
|
4680
4137
|
}
|
|
4681
4138
|
if (!tea_util_1.default.isUnset($tea.toMap(request.strategies))) {
|
|
4682
|
-
body["
|
|
4139
|
+
body["strategies"] = request.strategies;
|
|
4683
4140
|
}
|
|
4684
4141
|
let req = new $OpenApi.OpenApiRequest({
|
|
4685
4142
|
headers: headers,
|
|
@@ -4794,32 +4251,6 @@ class Client extends openapi_client_1.default {
|
|
|
4794
4251
|
});
|
|
4795
4252
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
|
|
4796
4253
|
}
|
|
4797
|
-
async updateStress(ClusterId, StressName, request) {
|
|
4798
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
4799
|
-
let headers = {};
|
|
4800
|
-
return await this.updateStressWithOptions(ClusterId, StressName, request, headers, runtime);
|
|
4801
|
-
}
|
|
4802
|
-
async updateStressWithOptions(ClusterId, StressName, request, headers, runtime) {
|
|
4803
|
-
tea_util_1.default.validateModel(request);
|
|
4804
|
-
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
4805
|
-
StressName = openapi_util_1.default.getEncodeParam(StressName);
|
|
4806
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
4807
|
-
headers: headers,
|
|
4808
|
-
body: request.body,
|
|
4809
|
-
});
|
|
4810
|
-
let params = new $OpenApi.Params({
|
|
4811
|
-
action: "UpdateStress",
|
|
4812
|
-
version: "2021-07-01",
|
|
4813
|
-
protocol: "HTTPS",
|
|
4814
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
|
|
4815
|
-
method: "PUT",
|
|
4816
|
-
authType: "AK",
|
|
4817
|
-
style: "ROA",
|
|
4818
|
-
reqBodyType: "json",
|
|
4819
|
-
bodyType: "json",
|
|
4820
|
-
});
|
|
4821
|
-
return $tea.cast(await this.callApi(params, req, runtime), new UpdateStressResponse({}));
|
|
4822
|
-
}
|
|
4823
4254
|
}
|
|
4824
4255
|
exports.default = Client;
|
|
4825
4256
|
//# sourceMappingURL=client.js.map
|