@alicloud/eas20210701 1.1.3 → 1.1.4
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 +1 -320
- package/dist/client.js +2 -584
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +24 -722
package/dist/client.js
CHANGED
|
@@ -213,7 +213,7 @@ class Service extends $tea.Model {
|
|
|
213
213
|
source: 'Source',
|
|
214
214
|
status: 'Status',
|
|
215
215
|
totalInstance: 'TotalInstance',
|
|
216
|
-
|
|
216
|
+
updateTime: 'UpdateTime',
|
|
217
217
|
weight: 'Weight',
|
|
218
218
|
};
|
|
219
219
|
}
|
|
@@ -245,7 +245,7 @@ class Service extends $tea.Model {
|
|
|
245
245
|
source: 'string',
|
|
246
246
|
status: 'string',
|
|
247
247
|
totalInstance: 'number',
|
|
248
|
-
|
|
248
|
+
updateTime: 'string',
|
|
249
249
|
weight: 'number',
|
|
250
250
|
};
|
|
251
251
|
}
|
|
@@ -727,64 +727,6 @@ class CreateServiceMirrorResponse extends $tea.Model {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
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
730
|
class DeleteBenchmarkTaskResponseBody extends $tea.Model {
|
|
789
731
|
constructor(map) {
|
|
790
732
|
super(map);
|
|
@@ -1199,44 +1141,6 @@ class DeleteServiceMirrorResponse extends $tea.Model {
|
|
|
1199
1141
|
}
|
|
1200
1142
|
}
|
|
1201
1143
|
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
1144
|
class DescribeBenchmarkTaskResponseBody extends $tea.Model {
|
|
1241
1145
|
constructor(map) {
|
|
1242
1146
|
super(map);
|
|
@@ -1707,62 +1611,6 @@ class DescribeServiceMirrorResponse extends $tea.Model {
|
|
|
1707
1611
|
}
|
|
1708
1612
|
}
|
|
1709
1613
|
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
1614
|
class ListBenchmarkTaskResponseBody extends $tea.Model {
|
|
1767
1615
|
constructor(map) {
|
|
1768
1616
|
super(map);
|
|
@@ -2181,44 +2029,6 @@ class ListServicesResponse extends $tea.Model {
|
|
|
2181
2029
|
}
|
|
2182
2030
|
}
|
|
2183
2031
|
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
2032
|
class ReleaseServiceRequest extends $tea.Model {
|
|
2223
2033
|
constructor(map) {
|
|
2224
2034
|
super(map);
|
|
@@ -2273,44 +2083,6 @@ class ReleaseServiceResponse extends $tea.Model {
|
|
|
2273
2083
|
}
|
|
2274
2084
|
}
|
|
2275
2085
|
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
2086
|
class StartBenchmarkTaskResponseBody extends $tea.Model {
|
|
2315
2087
|
constructor(map) {
|
|
2316
2088
|
super(map);
|
|
@@ -2387,44 +2159,6 @@ class StartServiceResponse extends $tea.Model {
|
|
|
2387
2159
|
}
|
|
2388
2160
|
}
|
|
2389
2161
|
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
2162
|
class StopBenchmarkTaskResponseBody extends $tea.Model {
|
|
2429
2163
|
constructor(map) {
|
|
2430
2164
|
super(map);
|
|
@@ -2501,46 +2235,6 @@ class StopServiceResponse extends $tea.Model {
|
|
|
2501
2235
|
}
|
|
2502
2236
|
}
|
|
2503
2237
|
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
2238
|
class UpdateBenchmarkTaskRequest extends $tea.Model {
|
|
2545
2239
|
constructor(map) {
|
|
2546
2240
|
super(map);
|
|
@@ -2989,60 +2683,6 @@ class UpdateServiceVersionResponse extends $tea.Model {
|
|
|
2989
2683
|
}
|
|
2990
2684
|
}
|
|
2991
2685
|
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
2686
|
class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
|
|
3047
2687
|
constructor(map) {
|
|
3048
2688
|
super(map);
|
|
@@ -3141,36 +2781,6 @@ class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
|
3141
2781
|
}
|
|
3142
2782
|
}
|
|
3143
2783
|
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
2784
|
class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
|
|
3175
2785
|
constructor(map) {
|
|
3176
2786
|
super(map);
|
|
@@ -3504,30 +3114,6 @@ class Client extends openapi_client_1.default {
|
|
|
3504
3114
|
});
|
|
3505
3115
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
|
|
3506
3116
|
}
|
|
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
3117
|
async deleteBenchmarkTask(ClusterId, TaskName) {
|
|
3532
3118
|
let runtime = new $Util.RuntimeOptions({});
|
|
3533
3119
|
let headers = {};
|
|
@@ -3783,30 +3369,6 @@ class Client extends openapi_client_1.default {
|
|
|
3783
3369
|
});
|
|
3784
3370
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
|
|
3785
3371
|
}
|
|
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
3372
|
async describeBenchmarkTask(ClusterId, TaskName) {
|
|
3811
3373
|
let runtime = new $Util.RuntimeOptions({});
|
|
3812
3374
|
let headers = {};
|
|
@@ -4068,30 +3630,6 @@ class Client extends openapi_client_1.default {
|
|
|
4068
3630
|
});
|
|
4069
3631
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
|
|
4070
3632
|
}
|
|
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
3633
|
async listBenchmarkTask() {
|
|
4096
3634
|
let runtime = new $Util.RuntimeOptions({});
|
|
4097
3635
|
let headers = {};
|
|
@@ -4321,28 +3859,6 @@ class Client extends openapi_client_1.default {
|
|
|
4321
3859
|
});
|
|
4322
3860
|
return $tea.cast(await this.callApi(params, req, runtime), new ListServicesResponse({}));
|
|
4323
3861
|
}
|
|
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
3862
|
async releaseService(ClusterId, ServiceName, request) {
|
|
4347
3863
|
let runtime = new $Util.RuntimeOptions({});
|
|
4348
3864
|
let headers = {};
|
|
@@ -4373,30 +3889,6 @@ class Client extends openapi_client_1.default {
|
|
|
4373
3889
|
});
|
|
4374
3890
|
return $tea.cast(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
|
|
4375
3891
|
}
|
|
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
3892
|
async startBenchmarkTask(ClusterId, TaskName) {
|
|
4401
3893
|
let runtime = new $Util.RuntimeOptions({});
|
|
4402
3894
|
let headers = {};
|
|
@@ -4445,30 +3937,6 @@ class Client extends openapi_client_1.default {
|
|
|
4445
3937
|
});
|
|
4446
3938
|
return $tea.cast(await this.callApi(params, req, runtime), new StartServiceResponse({}));
|
|
4447
3939
|
}
|
|
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
3940
|
async stopBenchmarkTask(ClusterId, TaskName) {
|
|
4473
3941
|
let runtime = new $Util.RuntimeOptions({});
|
|
4474
3942
|
let headers = {};
|
|
@@ -4517,30 +3985,6 @@ class Client extends openapi_client_1.default {
|
|
|
4517
3985
|
});
|
|
4518
3986
|
return $tea.cast(await this.callApi(params, req, runtime), new StopServiceResponse({}));
|
|
4519
3987
|
}
|
|
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
3988
|
async updateBenchmarkTask(ClusterId, TaskName, request) {
|
|
4545
3989
|
let runtime = new $Util.RuntimeOptions({});
|
|
4546
3990
|
let headers = {};
|
|
@@ -4794,32 +4238,6 @@ class Client extends openapi_client_1.default {
|
|
|
4794
4238
|
});
|
|
4795
4239
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
|
|
4796
4240
|
}
|
|
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
4241
|
}
|
|
4824
4242
|
exports.default = Client;
|
|
4825
4243
|
//# sourceMappingURL=client.js.map
|