@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/src/client.ts
CHANGED
|
@@ -258,7 +258,7 @@ export class Service extends $tea.Model {
|
|
|
258
258
|
source?: string;
|
|
259
259
|
status?: string;
|
|
260
260
|
totalInstance?: number;
|
|
261
|
-
|
|
261
|
+
updateTime?: string;
|
|
262
262
|
weight?: number;
|
|
263
263
|
static names(): { [key: string]: string } {
|
|
264
264
|
return {
|
|
@@ -288,7 +288,7 @@ export class Service extends $tea.Model {
|
|
|
288
288
|
source: 'Source',
|
|
289
289
|
status: 'Status',
|
|
290
290
|
totalInstance: 'TotalInstance',
|
|
291
|
-
|
|
291
|
+
updateTime: 'UpdateTime',
|
|
292
292
|
weight: 'Weight',
|
|
293
293
|
};
|
|
294
294
|
}
|
|
@@ -321,7 +321,7 @@ export class Service extends $tea.Model {
|
|
|
321
321
|
source: 'string',
|
|
322
322
|
status: 'string',
|
|
323
323
|
totalInstance: 'number',
|
|
324
|
-
|
|
324
|
+
updateTime: 'string',
|
|
325
325
|
weight: 'number',
|
|
326
326
|
};
|
|
327
327
|
}
|
|
@@ -925,78 +925,6 @@ export class CreateServiceMirrorResponse extends $tea.Model {
|
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
export class CreateStressRequest extends $tea.Model {
|
|
929
|
-
body?: string;
|
|
930
|
-
static names(): { [key: string]: string } {
|
|
931
|
-
return {
|
|
932
|
-
body: 'body',
|
|
933
|
-
};
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
static types(): { [key: string]: any } {
|
|
937
|
-
return {
|
|
938
|
-
body: 'string',
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
constructor(map?: { [key: string]: any }) {
|
|
943
|
-
super(map);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
export class CreateStressResponseBody extends $tea.Model {
|
|
948
|
-
message?: string;
|
|
949
|
-
name?: string;
|
|
950
|
-
region?: string;
|
|
951
|
-
requestId?: string;
|
|
952
|
-
static names(): { [key: string]: string } {
|
|
953
|
-
return {
|
|
954
|
-
message: 'Message',
|
|
955
|
-
name: 'Name',
|
|
956
|
-
region: 'Region',
|
|
957
|
-
requestId: 'RequestId',
|
|
958
|
-
};
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
static types(): { [key: string]: any } {
|
|
962
|
-
return {
|
|
963
|
-
message: 'string',
|
|
964
|
-
name: 'string',
|
|
965
|
-
region: 'string',
|
|
966
|
-
requestId: 'string',
|
|
967
|
-
};
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
constructor(map?: { [key: string]: any }) {
|
|
971
|
-
super(map);
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
export class CreateStressResponse extends $tea.Model {
|
|
976
|
-
headers: { [key: string]: string };
|
|
977
|
-
statusCode: number;
|
|
978
|
-
body: CreateStressResponseBody;
|
|
979
|
-
static names(): { [key: string]: string } {
|
|
980
|
-
return {
|
|
981
|
-
headers: 'headers',
|
|
982
|
-
statusCode: 'statusCode',
|
|
983
|
-
body: 'body',
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
static types(): { [key: string]: any } {
|
|
988
|
-
return {
|
|
989
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
990
|
-
statusCode: 'number',
|
|
991
|
-
body: CreateStressResponseBody,
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
constructor(map?: { [key: string]: any }) {
|
|
996
|
-
super(map);
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
928
|
export class DeleteBenchmarkTaskResponseBody extends $tea.Model {
|
|
1001
929
|
message?: string;
|
|
1002
930
|
requestId?: string;
|
|
@@ -1508,53 +1436,6 @@ export class DeleteServiceMirrorResponse extends $tea.Model {
|
|
|
1508
1436
|
}
|
|
1509
1437
|
}
|
|
1510
1438
|
|
|
1511
|
-
export class DeleteStressResponseBody extends $tea.Model {
|
|
1512
|
-
message?: string;
|
|
1513
|
-
requestId?: string;
|
|
1514
|
-
static names(): { [key: string]: string } {
|
|
1515
|
-
return {
|
|
1516
|
-
message: 'Message',
|
|
1517
|
-
requestId: 'RequestId',
|
|
1518
|
-
};
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
static types(): { [key: string]: any } {
|
|
1522
|
-
return {
|
|
1523
|
-
message: 'string',
|
|
1524
|
-
requestId: 'string',
|
|
1525
|
-
};
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
constructor(map?: { [key: string]: any }) {
|
|
1529
|
-
super(map);
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
export class DeleteStressResponse extends $tea.Model {
|
|
1534
|
-
headers: { [key: string]: string };
|
|
1535
|
-
statusCode: number;
|
|
1536
|
-
body: DeleteStressResponseBody;
|
|
1537
|
-
static names(): { [key: string]: string } {
|
|
1538
|
-
return {
|
|
1539
|
-
headers: 'headers',
|
|
1540
|
-
statusCode: 'statusCode',
|
|
1541
|
-
body: 'body',
|
|
1542
|
-
};
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
static types(): { [key: string]: any } {
|
|
1546
|
-
return {
|
|
1547
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1548
|
-
statusCode: 'number',
|
|
1549
|
-
body: DeleteStressResponseBody,
|
|
1550
|
-
};
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
constructor(map?: { [key: string]: any }) {
|
|
1554
|
-
super(map);
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
1439
|
export class DescribeBenchmarkTaskResponseBody extends $tea.Model {
|
|
1559
1440
|
availableAgent?: number;
|
|
1560
1441
|
callerUid?: string;
|
|
@@ -2160,80 +2041,6 @@ export class DescribeServiceMirrorResponse extends $tea.Model {
|
|
|
2160
2041
|
}
|
|
2161
2042
|
}
|
|
2162
2043
|
|
|
2163
|
-
export class DescribeStressResponseBody extends $tea.Model {
|
|
2164
|
-
availableAgent?: number;
|
|
2165
|
-
callerUid?: string;
|
|
2166
|
-
desiredAgent?: number;
|
|
2167
|
-
message?: string;
|
|
2168
|
-
parentUid?: string;
|
|
2169
|
-
reason?: string;
|
|
2170
|
-
requestId?: string;
|
|
2171
|
-
serviceName?: string;
|
|
2172
|
-
status?: string;
|
|
2173
|
-
stressName?: string;
|
|
2174
|
-
token?: string;
|
|
2175
|
-
static names(): { [key: string]: string } {
|
|
2176
|
-
return {
|
|
2177
|
-
availableAgent: 'AvailableAgent',
|
|
2178
|
-
callerUid: 'CallerUid',
|
|
2179
|
-
desiredAgent: 'DesiredAgent',
|
|
2180
|
-
message: 'Message',
|
|
2181
|
-
parentUid: 'ParentUid',
|
|
2182
|
-
reason: 'Reason',
|
|
2183
|
-
requestId: 'RequestId',
|
|
2184
|
-
serviceName: 'ServiceName',
|
|
2185
|
-
status: 'Status',
|
|
2186
|
-
stressName: 'StressName',
|
|
2187
|
-
token: 'Token',
|
|
2188
|
-
};
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
static types(): { [key: string]: any } {
|
|
2192
|
-
return {
|
|
2193
|
-
availableAgent: 'number',
|
|
2194
|
-
callerUid: 'string',
|
|
2195
|
-
desiredAgent: 'number',
|
|
2196
|
-
message: 'string',
|
|
2197
|
-
parentUid: 'string',
|
|
2198
|
-
reason: 'string',
|
|
2199
|
-
requestId: 'string',
|
|
2200
|
-
serviceName: 'string',
|
|
2201
|
-
status: 'string',
|
|
2202
|
-
stressName: 'string',
|
|
2203
|
-
token: 'string',
|
|
2204
|
-
};
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
constructor(map?: { [key: string]: any }) {
|
|
2208
|
-
super(map);
|
|
2209
|
-
}
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
export class DescribeStressResponse extends $tea.Model {
|
|
2213
|
-
headers: { [key: string]: string };
|
|
2214
|
-
statusCode: number;
|
|
2215
|
-
body: DescribeStressResponseBody;
|
|
2216
|
-
static names(): { [key: string]: string } {
|
|
2217
|
-
return {
|
|
2218
|
-
headers: 'headers',
|
|
2219
|
-
statusCode: 'statusCode',
|
|
2220
|
-
body: 'body',
|
|
2221
|
-
};
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
static types(): { [key: string]: any } {
|
|
2225
|
-
return {
|
|
2226
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2227
|
-
statusCode: 'number',
|
|
2228
|
-
body: DescribeStressResponseBody,
|
|
2229
|
-
};
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
constructor(map?: { [key: string]: any }) {
|
|
2233
|
-
super(map);
|
|
2234
|
-
}
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2237
2044
|
export class ListBenchmarkTaskResponseBody extends $tea.Model {
|
|
2238
2045
|
requestId?: string;
|
|
2239
2046
|
tasks?: ListBenchmarkTaskResponseBodyTasks[];
|
|
@@ -2761,53 +2568,6 @@ export class ListServicesResponse extends $tea.Model {
|
|
|
2761
2568
|
}
|
|
2762
2569
|
}
|
|
2763
2570
|
|
|
2764
|
-
export class ListStressesResponseBody extends $tea.Model {
|
|
2765
|
-
requestId?: string;
|
|
2766
|
-
stresses?: ListStressesResponseBodyStresses[];
|
|
2767
|
-
static names(): { [key: string]: string } {
|
|
2768
|
-
return {
|
|
2769
|
-
requestId: 'RequestId',
|
|
2770
|
-
stresses: 'Stresses',
|
|
2771
|
-
};
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
static types(): { [key: string]: any } {
|
|
2775
|
-
return {
|
|
2776
|
-
requestId: 'string',
|
|
2777
|
-
stresses: { 'type': 'array', 'itemType': ListStressesResponseBodyStresses },
|
|
2778
|
-
};
|
|
2779
|
-
}
|
|
2780
|
-
|
|
2781
|
-
constructor(map?: { [key: string]: any }) {
|
|
2782
|
-
super(map);
|
|
2783
|
-
}
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
export class ListStressesResponse extends $tea.Model {
|
|
2787
|
-
headers: { [key: string]: string };
|
|
2788
|
-
statusCode: number;
|
|
2789
|
-
body: ListStressesResponseBody;
|
|
2790
|
-
static names(): { [key: string]: string } {
|
|
2791
|
-
return {
|
|
2792
|
-
headers: 'headers',
|
|
2793
|
-
statusCode: 'statusCode',
|
|
2794
|
-
body: 'body',
|
|
2795
|
-
};
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
|
-
static types(): { [key: string]: any } {
|
|
2799
|
-
return {
|
|
2800
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2801
|
-
statusCode: 'number',
|
|
2802
|
-
body: ListStressesResponseBody,
|
|
2803
|
-
};
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2806
|
-
constructor(map?: { [key: string]: any }) {
|
|
2807
|
-
super(map);
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2810
|
-
|
|
2811
2571
|
export class ReleaseServiceRequest extends $tea.Model {
|
|
2812
2572
|
weight?: number;
|
|
2813
2573
|
static names(): { [key: string]: string } {
|
|
@@ -2874,19 +2634,19 @@ export class ReleaseServiceResponse extends $tea.Model {
|
|
|
2874
2634
|
}
|
|
2875
2635
|
}
|
|
2876
2636
|
|
|
2877
|
-
export class
|
|
2878
|
-
|
|
2637
|
+
export class StartBenchmarkTaskResponseBody extends $tea.Model {
|
|
2638
|
+
message?: string;
|
|
2879
2639
|
requestId?: string;
|
|
2880
2640
|
static names(): { [key: string]: string } {
|
|
2881
2641
|
return {
|
|
2882
|
-
|
|
2642
|
+
message: 'Message',
|
|
2883
2643
|
requestId: 'RequestId',
|
|
2884
2644
|
};
|
|
2885
2645
|
}
|
|
2886
2646
|
|
|
2887
2647
|
static types(): { [key: string]: any } {
|
|
2888
2648
|
return {
|
|
2889
|
-
|
|
2649
|
+
message: 'string',
|
|
2890
2650
|
requestId: 'string',
|
|
2891
2651
|
};
|
|
2892
2652
|
}
|
|
@@ -2896,10 +2656,10 @@ export class ReportStressResponseBody extends $tea.Model {
|
|
|
2896
2656
|
}
|
|
2897
2657
|
}
|
|
2898
2658
|
|
|
2899
|
-
export class
|
|
2659
|
+
export class StartBenchmarkTaskResponse extends $tea.Model {
|
|
2900
2660
|
headers: { [key: string]: string };
|
|
2901
2661
|
statusCode: number;
|
|
2902
|
-
body:
|
|
2662
|
+
body: StartBenchmarkTaskResponseBody;
|
|
2903
2663
|
static names(): { [key: string]: string } {
|
|
2904
2664
|
return {
|
|
2905
2665
|
headers: 'headers',
|
|
@@ -2912,7 +2672,7 @@ export class ReportStressResponse extends $tea.Model {
|
|
|
2912
2672
|
return {
|
|
2913
2673
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2914
2674
|
statusCode: 'number',
|
|
2915
|
-
body:
|
|
2675
|
+
body: StartBenchmarkTaskResponseBody,
|
|
2916
2676
|
};
|
|
2917
2677
|
}
|
|
2918
2678
|
|
|
@@ -2921,7 +2681,7 @@ export class ReportStressResponse extends $tea.Model {
|
|
|
2921
2681
|
}
|
|
2922
2682
|
}
|
|
2923
2683
|
|
|
2924
|
-
export class
|
|
2684
|
+
export class StartServiceResponseBody extends $tea.Model {
|
|
2925
2685
|
message?: string;
|
|
2926
2686
|
requestId?: string;
|
|
2927
2687
|
static names(): { [key: string]: string } {
|
|
@@ -2943,10 +2703,10 @@ export class StartBenchmarkTaskResponseBody extends $tea.Model {
|
|
|
2943
2703
|
}
|
|
2944
2704
|
}
|
|
2945
2705
|
|
|
2946
|
-
export class
|
|
2706
|
+
export class StartServiceResponse extends $tea.Model {
|
|
2947
2707
|
headers: { [key: string]: string };
|
|
2948
2708
|
statusCode: number;
|
|
2949
|
-
body:
|
|
2709
|
+
body: StartServiceResponseBody;
|
|
2950
2710
|
static names(): { [key: string]: string } {
|
|
2951
2711
|
return {
|
|
2952
2712
|
headers: 'headers',
|
|
@@ -2959,7 +2719,7 @@ export class StartBenchmarkTaskResponse extends $tea.Model {
|
|
|
2959
2719
|
return {
|
|
2960
2720
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2961
2721
|
statusCode: 'number',
|
|
2962
|
-
body:
|
|
2722
|
+
body: StartServiceResponseBody,
|
|
2963
2723
|
};
|
|
2964
2724
|
}
|
|
2965
2725
|
|
|
@@ -2968,7 +2728,7 @@ export class StartBenchmarkTaskResponse extends $tea.Model {
|
|
|
2968
2728
|
}
|
|
2969
2729
|
}
|
|
2970
2730
|
|
|
2971
|
-
export class
|
|
2731
|
+
export class StopBenchmarkTaskResponseBody extends $tea.Model {
|
|
2972
2732
|
message?: string;
|
|
2973
2733
|
requestId?: string;
|
|
2974
2734
|
static names(): { [key: string]: string } {
|
|
@@ -2990,10 +2750,10 @@ export class StartServiceResponseBody extends $tea.Model {
|
|
|
2990
2750
|
}
|
|
2991
2751
|
}
|
|
2992
2752
|
|
|
2993
|
-
export class
|
|
2753
|
+
export class StopBenchmarkTaskResponse extends $tea.Model {
|
|
2994
2754
|
headers: { [key: string]: string };
|
|
2995
2755
|
statusCode: number;
|
|
2996
|
-
body:
|
|
2756
|
+
body: StopBenchmarkTaskResponseBody;
|
|
2997
2757
|
static names(): { [key: string]: string } {
|
|
2998
2758
|
return {
|
|
2999
2759
|
headers: 'headers',
|
|
@@ -3006,7 +2766,7 @@ export class StartServiceResponse extends $tea.Model {
|
|
|
3006
2766
|
return {
|
|
3007
2767
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3008
2768
|
statusCode: 'number',
|
|
3009
|
-
body:
|
|
2769
|
+
body: StopBenchmarkTaskResponseBody,
|
|
3010
2770
|
};
|
|
3011
2771
|
}
|
|
3012
2772
|
|
|
@@ -3015,7 +2775,7 @@ export class StartServiceResponse extends $tea.Model {
|
|
|
3015
2775
|
}
|
|
3016
2776
|
}
|
|
3017
2777
|
|
|
3018
|
-
export class
|
|
2778
|
+
export class StopServiceResponseBody extends $tea.Model {
|
|
3019
2779
|
message?: string;
|
|
3020
2780
|
requestId?: string;
|
|
3021
2781
|
static names(): { [key: string]: string } {
|
|
@@ -3037,10 +2797,10 @@ export class StartStressResponseBody extends $tea.Model {
|
|
|
3037
2797
|
}
|
|
3038
2798
|
}
|
|
3039
2799
|
|
|
3040
|
-
export class
|
|
2800
|
+
export class StopServiceResponse extends $tea.Model {
|
|
3041
2801
|
headers: { [key: string]: string };
|
|
3042
2802
|
statusCode: number;
|
|
3043
|
-
body:
|
|
2803
|
+
body: StopServiceResponseBody;
|
|
3044
2804
|
static names(): { [key: string]: string } {
|
|
3045
2805
|
return {
|
|
3046
2806
|
headers: 'headers',
|
|
@@ -3053,7 +2813,7 @@ export class StartStressResponse extends $tea.Model {
|
|
|
3053
2813
|
return {
|
|
3054
2814
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3055
2815
|
statusCode: 'number',
|
|
3056
|
-
body:
|
|
2816
|
+
body: StopServiceResponseBody,
|
|
3057
2817
|
};
|
|
3058
2818
|
}
|
|
3059
2819
|
|
|
@@ -3062,152 +2822,8 @@ export class StartStressResponse extends $tea.Model {
|
|
|
3062
2822
|
}
|
|
3063
2823
|
}
|
|
3064
2824
|
|
|
3065
|
-
export class
|
|
3066
|
-
|
|
3067
|
-
requestId?: string;
|
|
3068
|
-
static names(): { [key: string]: string } {
|
|
3069
|
-
return {
|
|
3070
|
-
message: 'Message',
|
|
3071
|
-
requestId: 'RequestId',
|
|
3072
|
-
};
|
|
3073
|
-
}
|
|
3074
|
-
|
|
3075
|
-
static types(): { [key: string]: any } {
|
|
3076
|
-
return {
|
|
3077
|
-
message: 'string',
|
|
3078
|
-
requestId: 'string',
|
|
3079
|
-
};
|
|
3080
|
-
}
|
|
3081
|
-
|
|
3082
|
-
constructor(map?: { [key: string]: any }) {
|
|
3083
|
-
super(map);
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3086
|
-
|
|
3087
|
-
export class StopBenchmarkTaskResponse extends $tea.Model {
|
|
3088
|
-
headers: { [key: string]: string };
|
|
3089
|
-
statusCode: number;
|
|
3090
|
-
body: StopBenchmarkTaskResponseBody;
|
|
3091
|
-
static names(): { [key: string]: string } {
|
|
3092
|
-
return {
|
|
3093
|
-
headers: 'headers',
|
|
3094
|
-
statusCode: 'statusCode',
|
|
3095
|
-
body: 'body',
|
|
3096
|
-
};
|
|
3097
|
-
}
|
|
3098
|
-
|
|
3099
|
-
static types(): { [key: string]: any } {
|
|
3100
|
-
return {
|
|
3101
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3102
|
-
statusCode: 'number',
|
|
3103
|
-
body: StopBenchmarkTaskResponseBody,
|
|
3104
|
-
};
|
|
3105
|
-
}
|
|
3106
|
-
|
|
3107
|
-
constructor(map?: { [key: string]: any }) {
|
|
3108
|
-
super(map);
|
|
3109
|
-
}
|
|
3110
|
-
}
|
|
3111
|
-
|
|
3112
|
-
export class StopServiceResponseBody extends $tea.Model {
|
|
3113
|
-
message?: string;
|
|
3114
|
-
requestId?: string;
|
|
3115
|
-
static names(): { [key: string]: string } {
|
|
3116
|
-
return {
|
|
3117
|
-
message: 'Message',
|
|
3118
|
-
requestId: 'RequestId',
|
|
3119
|
-
};
|
|
3120
|
-
}
|
|
3121
|
-
|
|
3122
|
-
static types(): { [key: string]: any } {
|
|
3123
|
-
return {
|
|
3124
|
-
message: 'string',
|
|
3125
|
-
requestId: 'string',
|
|
3126
|
-
};
|
|
3127
|
-
}
|
|
3128
|
-
|
|
3129
|
-
constructor(map?: { [key: string]: any }) {
|
|
3130
|
-
super(map);
|
|
3131
|
-
}
|
|
3132
|
-
}
|
|
3133
|
-
|
|
3134
|
-
export class StopServiceResponse extends $tea.Model {
|
|
3135
|
-
headers: { [key: string]: string };
|
|
3136
|
-
statusCode: number;
|
|
3137
|
-
body: StopServiceResponseBody;
|
|
3138
|
-
static names(): { [key: string]: string } {
|
|
3139
|
-
return {
|
|
3140
|
-
headers: 'headers',
|
|
3141
|
-
statusCode: 'statusCode',
|
|
3142
|
-
body: 'body',
|
|
3143
|
-
};
|
|
3144
|
-
}
|
|
3145
|
-
|
|
3146
|
-
static types(): { [key: string]: any } {
|
|
3147
|
-
return {
|
|
3148
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3149
|
-
statusCode: 'number',
|
|
3150
|
-
body: StopServiceResponseBody,
|
|
3151
|
-
};
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
constructor(map?: { [key: string]: any }) {
|
|
3155
|
-
super(map);
|
|
3156
|
-
}
|
|
3157
|
-
}
|
|
3158
|
-
|
|
3159
|
-
export class StopStressResponseBody extends $tea.Model {
|
|
3160
|
-
code?: number;
|
|
3161
|
-
message?: string;
|
|
3162
|
-
requestId?: string;
|
|
3163
|
-
static names(): { [key: string]: string } {
|
|
3164
|
-
return {
|
|
3165
|
-
code: 'Code',
|
|
3166
|
-
message: 'Message',
|
|
3167
|
-
requestId: 'RequestId',
|
|
3168
|
-
};
|
|
3169
|
-
}
|
|
3170
|
-
|
|
3171
|
-
static types(): { [key: string]: any } {
|
|
3172
|
-
return {
|
|
3173
|
-
code: 'number',
|
|
3174
|
-
message: 'string',
|
|
3175
|
-
requestId: 'string',
|
|
3176
|
-
};
|
|
3177
|
-
}
|
|
3178
|
-
|
|
3179
|
-
constructor(map?: { [key: string]: any }) {
|
|
3180
|
-
super(map);
|
|
3181
|
-
}
|
|
3182
|
-
}
|
|
3183
|
-
|
|
3184
|
-
export class StopStressResponse extends $tea.Model {
|
|
3185
|
-
headers: { [key: string]: string };
|
|
3186
|
-
statusCode: number;
|
|
3187
|
-
body: StopStressResponseBody;
|
|
3188
|
-
static names(): { [key: string]: string } {
|
|
3189
|
-
return {
|
|
3190
|
-
headers: 'headers',
|
|
3191
|
-
statusCode: 'statusCode',
|
|
3192
|
-
body: 'body',
|
|
3193
|
-
};
|
|
3194
|
-
}
|
|
3195
|
-
|
|
3196
|
-
static types(): { [key: string]: any } {
|
|
3197
|
-
return {
|
|
3198
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3199
|
-
statusCode: 'number',
|
|
3200
|
-
body: StopStressResponseBody,
|
|
3201
|
-
};
|
|
3202
|
-
}
|
|
3203
|
-
|
|
3204
|
-
constructor(map?: { [key: string]: any }) {
|
|
3205
|
-
super(map);
|
|
3206
|
-
}
|
|
3207
|
-
}
|
|
3208
|
-
|
|
3209
|
-
export class UpdateBenchmarkTaskRequest extends $tea.Model {
|
|
3210
|
-
body?: string;
|
|
2825
|
+
export class UpdateBenchmarkTaskRequest extends $tea.Model {
|
|
2826
|
+
body?: string;
|
|
3211
2827
|
static names(): { [key: string]: string } {
|
|
3212
2828
|
return {
|
|
3213
2829
|
body: 'body',
|
|
@@ -3758,72 +3374,6 @@ export class UpdateServiceVersionResponse extends $tea.Model {
|
|
|
3758
3374
|
}
|
|
3759
3375
|
}
|
|
3760
3376
|
|
|
3761
|
-
export class UpdateStressRequest extends $tea.Model {
|
|
3762
|
-
body?: string;
|
|
3763
|
-
static names(): { [key: string]: string } {
|
|
3764
|
-
return {
|
|
3765
|
-
body: 'body',
|
|
3766
|
-
};
|
|
3767
|
-
}
|
|
3768
|
-
|
|
3769
|
-
static types(): { [key: string]: any } {
|
|
3770
|
-
return {
|
|
3771
|
-
body: 'string',
|
|
3772
|
-
};
|
|
3773
|
-
}
|
|
3774
|
-
|
|
3775
|
-
constructor(map?: { [key: string]: any }) {
|
|
3776
|
-
super(map);
|
|
3777
|
-
}
|
|
3778
|
-
}
|
|
3779
|
-
|
|
3780
|
-
export class UpdateStressResponseBody extends $tea.Model {
|
|
3781
|
-
message?: string;
|
|
3782
|
-
requestId?: string;
|
|
3783
|
-
static names(): { [key: string]: string } {
|
|
3784
|
-
return {
|
|
3785
|
-
message: 'Message',
|
|
3786
|
-
requestId: 'RequestId',
|
|
3787
|
-
};
|
|
3788
|
-
}
|
|
3789
|
-
|
|
3790
|
-
static types(): { [key: string]: any } {
|
|
3791
|
-
return {
|
|
3792
|
-
message: 'string',
|
|
3793
|
-
requestId: 'string',
|
|
3794
|
-
};
|
|
3795
|
-
}
|
|
3796
|
-
|
|
3797
|
-
constructor(map?: { [key: string]: any }) {
|
|
3798
|
-
super(map);
|
|
3799
|
-
}
|
|
3800
|
-
}
|
|
3801
|
-
|
|
3802
|
-
export class UpdateStressResponse extends $tea.Model {
|
|
3803
|
-
headers: { [key: string]: string };
|
|
3804
|
-
statusCode: number;
|
|
3805
|
-
body: UpdateStressResponseBody;
|
|
3806
|
-
static names(): { [key: string]: string } {
|
|
3807
|
-
return {
|
|
3808
|
-
headers: 'headers',
|
|
3809
|
-
statusCode: 'statusCode',
|
|
3810
|
-
body: 'body',
|
|
3811
|
-
};
|
|
3812
|
-
}
|
|
3813
|
-
|
|
3814
|
-
static types(): { [key: string]: any } {
|
|
3815
|
-
return {
|
|
3816
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3817
|
-
statusCode: 'number',
|
|
3818
|
-
body: UpdateStressResponseBody,
|
|
3819
|
-
};
|
|
3820
|
-
}
|
|
3821
|
-
|
|
3822
|
-
constructor(map?: { [key: string]: any }) {
|
|
3823
|
-
super(map);
|
|
3824
|
-
}
|
|
3825
|
-
}
|
|
3826
|
-
|
|
3827
3377
|
export class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
|
|
3828
3378
|
cpu?: number;
|
|
3829
3379
|
qps?: number;
|
|
@@ -3951,46 +3501,6 @@ export class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
|
3951
3501
|
}
|
|
3952
3502
|
}
|
|
3953
3503
|
|
|
3954
|
-
export class ListStressesResponseBodyStresses extends $tea.Model {
|
|
3955
|
-
availableAgent?: number;
|
|
3956
|
-
createTime?: string;
|
|
3957
|
-
message?: string;
|
|
3958
|
-
region?: string;
|
|
3959
|
-
serviceName?: string;
|
|
3960
|
-
status?: string;
|
|
3961
|
-
stressName?: string;
|
|
3962
|
-
updateTime?: string;
|
|
3963
|
-
static names(): { [key: string]: string } {
|
|
3964
|
-
return {
|
|
3965
|
-
availableAgent: 'AvailableAgent',
|
|
3966
|
-
createTime: 'CreateTime',
|
|
3967
|
-
message: 'Message',
|
|
3968
|
-
region: 'Region',
|
|
3969
|
-
serviceName: 'ServiceName',
|
|
3970
|
-
status: 'Status',
|
|
3971
|
-
stressName: 'StressName',
|
|
3972
|
-
updateTime: 'UpdateTime',
|
|
3973
|
-
};
|
|
3974
|
-
}
|
|
3975
|
-
|
|
3976
|
-
static types(): { [key: string]: any } {
|
|
3977
|
-
return {
|
|
3978
|
-
availableAgent: 'number',
|
|
3979
|
-
createTime: 'string',
|
|
3980
|
-
message: 'string',
|
|
3981
|
-
region: 'string',
|
|
3982
|
-
serviceName: 'string',
|
|
3983
|
-
status: 'string',
|
|
3984
|
-
stressName: 'string',
|
|
3985
|
-
updateTime: 'string',
|
|
3986
|
-
};
|
|
3987
|
-
}
|
|
3988
|
-
|
|
3989
|
-
constructor(map?: { [key: string]: any }) {
|
|
3990
|
-
super(map);
|
|
3991
|
-
}
|
|
3992
|
-
}
|
|
3993
|
-
|
|
3994
3504
|
export class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
|
|
3995
3505
|
cpu?: number;
|
|
3996
3506
|
qps?: number;
|
|
@@ -4374,32 +3884,6 @@ export default class Client extends OpenApi {
|
|
|
4374
3884
|
return $tea.cast<CreateServiceMirrorResponse>(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
|
|
4375
3885
|
}
|
|
4376
3886
|
|
|
4377
|
-
async createStress(request: CreateStressRequest): Promise<CreateStressResponse> {
|
|
4378
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
4379
|
-
let headers : {[key: string ]: string} = { };
|
|
4380
|
-
return await this.createStressWithOptions(request, headers, runtime);
|
|
4381
|
-
}
|
|
4382
|
-
|
|
4383
|
-
async createStressWithOptions(request: CreateStressRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateStressResponse> {
|
|
4384
|
-
Util.validateModel(request);
|
|
4385
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
4386
|
-
headers: headers,
|
|
4387
|
-
body: request.body,
|
|
4388
|
-
});
|
|
4389
|
-
let params = new $OpenApi.Params({
|
|
4390
|
-
action: "CreateStress",
|
|
4391
|
-
version: "2021-07-01",
|
|
4392
|
-
protocol: "HTTPS",
|
|
4393
|
-
pathname: `/api/v2/stress`,
|
|
4394
|
-
method: "POST",
|
|
4395
|
-
authType: "AK",
|
|
4396
|
-
style: "ROA",
|
|
4397
|
-
reqBodyType: "json",
|
|
4398
|
-
bodyType: "json",
|
|
4399
|
-
});
|
|
4400
|
-
return $tea.cast<CreateStressResponse>(await this.callApi(params, req, runtime), new CreateStressResponse({}));
|
|
4401
|
-
}
|
|
4402
|
-
|
|
4403
3887
|
async deleteBenchmarkTask(ClusterId: string, TaskName: string): Promise<DeleteBenchmarkTaskResponse> {
|
|
4404
3888
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4405
3889
|
let headers : {[key: string ]: string} = { };
|
|
@@ -4678,32 +4162,6 @@ export default class Client extends OpenApi {
|
|
|
4678
4162
|
return $tea.cast<DeleteServiceMirrorResponse>(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
|
|
4679
4163
|
}
|
|
4680
4164
|
|
|
4681
|
-
async deleteStress(ClusterId: string, StressName: string): Promise<DeleteStressResponse> {
|
|
4682
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
4683
|
-
let headers : {[key: string ]: string} = { };
|
|
4684
|
-
return await this.deleteStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
4685
|
-
}
|
|
4686
|
-
|
|
4687
|
-
async deleteStressWithOptions(ClusterId: string, StressName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteStressResponse> {
|
|
4688
|
-
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
4689
|
-
StressName = OpenApiUtil.getEncodeParam(StressName);
|
|
4690
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
4691
|
-
headers: headers,
|
|
4692
|
-
});
|
|
4693
|
-
let params = new $OpenApi.Params({
|
|
4694
|
-
action: "DeleteStress",
|
|
4695
|
-
version: "2021-07-01",
|
|
4696
|
-
protocol: "HTTPS",
|
|
4697
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
|
|
4698
|
-
method: "DELETE",
|
|
4699
|
-
authType: "AK",
|
|
4700
|
-
style: "ROA",
|
|
4701
|
-
reqBodyType: "json",
|
|
4702
|
-
bodyType: "json",
|
|
4703
|
-
});
|
|
4704
|
-
return $tea.cast<DeleteStressResponse>(await this.callApi(params, req, runtime), new DeleteStressResponse({}));
|
|
4705
|
-
}
|
|
4706
|
-
|
|
4707
4165
|
async describeBenchmarkTask(ClusterId: string, TaskName: string): Promise<DescribeBenchmarkTaskResponse> {
|
|
4708
4166
|
let runtime = new $Util.RuntimeOptions({ });
|
|
4709
4167
|
let headers : {[key: string ]: string} = { };
|
|
@@ -4991,32 +4449,6 @@ export default class Client extends OpenApi {
|
|
|
4991
4449
|
return $tea.cast<DescribeServiceMirrorResponse>(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
|
|
4992
4450
|
}
|
|
4993
4451
|
|
|
4994
|
-
async describeStress(ClusterId: string, StressName: string): Promise<DescribeStressResponse> {
|
|
4995
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
4996
|
-
let headers : {[key: string ]: string} = { };
|
|
4997
|
-
return await this.describeStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
4998
|
-
}
|
|
4999
|
-
|
|
5000
|
-
async describeStressWithOptions(ClusterId: string, StressName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeStressResponse> {
|
|
5001
|
-
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
5002
|
-
StressName = OpenApiUtil.getEncodeParam(StressName);
|
|
5003
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
5004
|
-
headers: headers,
|
|
5005
|
-
});
|
|
5006
|
-
let params = new $OpenApi.Params({
|
|
5007
|
-
action: "DescribeStress",
|
|
5008
|
-
version: "2021-07-01",
|
|
5009
|
-
protocol: "HTTPS",
|
|
5010
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
|
|
5011
|
-
method: "GET",
|
|
5012
|
-
authType: "AK",
|
|
5013
|
-
style: "ROA",
|
|
5014
|
-
reqBodyType: "json",
|
|
5015
|
-
bodyType: "json",
|
|
5016
|
-
});
|
|
5017
|
-
return $tea.cast<DescribeStressResponse>(await this.callApi(params, req, runtime), new DescribeStressResponse({}));
|
|
5018
|
-
}
|
|
5019
|
-
|
|
5020
4452
|
async listBenchmarkTask(): Promise<ListBenchmarkTaskResponse> {
|
|
5021
4453
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5022
4454
|
let headers : {[key: string ]: string} = { };
|
|
@@ -5276,30 +4708,6 @@ export default class Client extends OpenApi {
|
|
|
5276
4708
|
return $tea.cast<ListServicesResponse>(await this.callApi(params, req, runtime), new ListServicesResponse({}));
|
|
5277
4709
|
}
|
|
5278
4710
|
|
|
5279
|
-
async listStresses(): Promise<ListStressesResponse> {
|
|
5280
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
5281
|
-
let headers : {[key: string ]: string} = { };
|
|
5282
|
-
return await this.listStressesWithOptions(headers, runtime);
|
|
5283
|
-
}
|
|
5284
|
-
|
|
5285
|
-
async listStressesWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListStressesResponse> {
|
|
5286
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
5287
|
-
headers: headers,
|
|
5288
|
-
});
|
|
5289
|
-
let params = new $OpenApi.Params({
|
|
5290
|
-
action: "ListStresses",
|
|
5291
|
-
version: "2021-07-01",
|
|
5292
|
-
protocol: "HTTPS",
|
|
5293
|
-
pathname: `/api/v2/stress`,
|
|
5294
|
-
method: "GET",
|
|
5295
|
-
authType: "AK",
|
|
5296
|
-
style: "ROA",
|
|
5297
|
-
reqBodyType: "json",
|
|
5298
|
-
bodyType: "json",
|
|
5299
|
-
});
|
|
5300
|
-
return $tea.cast<ListStressesResponse>(await this.callApi(params, req, runtime), new ListStressesResponse({}));
|
|
5301
|
-
}
|
|
5302
|
-
|
|
5303
4711
|
async releaseService(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest): Promise<ReleaseServiceResponse> {
|
|
5304
4712
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5305
4713
|
let headers : {[key: string ]: string} = { };
|
|
@@ -5333,32 +4741,6 @@ export default class Client extends OpenApi {
|
|
|
5333
4741
|
return $tea.cast<ReleaseServiceResponse>(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
|
|
5334
4742
|
}
|
|
5335
4743
|
|
|
5336
|
-
async reportStress(ClusterId: string, StressName: string): Promise<ReportStressResponse> {
|
|
5337
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
5338
|
-
let headers : {[key: string ]: string} = { };
|
|
5339
|
-
return await this.reportStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
5340
|
-
}
|
|
5341
|
-
|
|
5342
|
-
async reportStressWithOptions(ClusterId: string, StressName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ReportStressResponse> {
|
|
5343
|
-
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
5344
|
-
StressName = OpenApiUtil.getEncodeParam(StressName);
|
|
5345
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
5346
|
-
headers: headers,
|
|
5347
|
-
});
|
|
5348
|
-
let params = new $OpenApi.Params({
|
|
5349
|
-
action: "ReportStress",
|
|
5350
|
-
version: "2021-07-01",
|
|
5351
|
-
protocol: "HTTPS",
|
|
5352
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}/report`,
|
|
5353
|
-
method: "GET",
|
|
5354
|
-
authType: "AK",
|
|
5355
|
-
style: "ROA",
|
|
5356
|
-
reqBodyType: "json",
|
|
5357
|
-
bodyType: "json",
|
|
5358
|
-
});
|
|
5359
|
-
return $tea.cast<ReportStressResponse>(await this.callApi(params, req, runtime), new ReportStressResponse({}));
|
|
5360
|
-
}
|
|
5361
|
-
|
|
5362
4744
|
async startBenchmarkTask(ClusterId: string, TaskName: string): Promise<StartBenchmarkTaskResponse> {
|
|
5363
4745
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5364
4746
|
let headers : {[key: string ]: string} = { };
|
|
@@ -5411,32 +4793,6 @@ export default class Client extends OpenApi {
|
|
|
5411
4793
|
return $tea.cast<StartServiceResponse>(await this.callApi(params, req, runtime), new StartServiceResponse({}));
|
|
5412
4794
|
}
|
|
5413
4795
|
|
|
5414
|
-
async startStress(ClusterId: string, StressName: string): Promise<StartStressResponse> {
|
|
5415
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
5416
|
-
let headers : {[key: string ]: string} = { };
|
|
5417
|
-
return await this.startStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
5418
|
-
}
|
|
5419
|
-
|
|
5420
|
-
async startStressWithOptions(ClusterId: string, StressName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartStressResponse> {
|
|
5421
|
-
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
5422
|
-
StressName = OpenApiUtil.getEncodeParam(StressName);
|
|
5423
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
5424
|
-
headers: headers,
|
|
5425
|
-
});
|
|
5426
|
-
let params = new $OpenApi.Params({
|
|
5427
|
-
action: "StartStress",
|
|
5428
|
-
version: "2021-07-01",
|
|
5429
|
-
protocol: "HTTPS",
|
|
5430
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}/start`,
|
|
5431
|
-
method: "PUT",
|
|
5432
|
-
authType: "AK",
|
|
5433
|
-
style: "ROA",
|
|
5434
|
-
reqBodyType: "json",
|
|
5435
|
-
bodyType: "json",
|
|
5436
|
-
});
|
|
5437
|
-
return $tea.cast<StartStressResponse>(await this.callApi(params, req, runtime), new StartStressResponse({}));
|
|
5438
|
-
}
|
|
5439
|
-
|
|
5440
4796
|
async stopBenchmarkTask(ClusterId: string, TaskName: string): Promise<StopBenchmarkTaskResponse> {
|
|
5441
4797
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5442
4798
|
let headers : {[key: string ]: string} = { };
|
|
@@ -5489,32 +4845,6 @@ export default class Client extends OpenApi {
|
|
|
5489
4845
|
return $tea.cast<StopServiceResponse>(await this.callApi(params, req, runtime), new StopServiceResponse({}));
|
|
5490
4846
|
}
|
|
5491
4847
|
|
|
5492
|
-
async stopStress(ClusterId: string, StressName: string): Promise<StopStressResponse> {
|
|
5493
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
5494
|
-
let headers : {[key: string ]: string} = { };
|
|
5495
|
-
return await this.stopStressWithOptions(ClusterId, StressName, headers, runtime);
|
|
5496
|
-
}
|
|
5497
|
-
|
|
5498
|
-
async stopStressWithOptions(ClusterId: string, StressName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopStressResponse> {
|
|
5499
|
-
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
5500
|
-
StressName = OpenApiUtil.getEncodeParam(StressName);
|
|
5501
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
5502
|
-
headers: headers,
|
|
5503
|
-
});
|
|
5504
|
-
let params = new $OpenApi.Params({
|
|
5505
|
-
action: "StopStress",
|
|
5506
|
-
version: "2021-07-01",
|
|
5507
|
-
protocol: "HTTPS",
|
|
5508
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}/stop`,
|
|
5509
|
-
method: "PUT",
|
|
5510
|
-
authType: "AK",
|
|
5511
|
-
style: "ROA",
|
|
5512
|
-
reqBodyType: "json",
|
|
5513
|
-
bodyType: "json",
|
|
5514
|
-
});
|
|
5515
|
-
return $tea.cast<StopStressResponse>(await this.callApi(params, req, runtime), new StopStressResponse({}));
|
|
5516
|
-
}
|
|
5517
|
-
|
|
5518
4848
|
async updateBenchmarkTask(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest): Promise<UpdateBenchmarkTaskResponse> {
|
|
5519
4849
|
let runtime = new $Util.RuntimeOptions({ });
|
|
5520
4850
|
let headers : {[key: string ]: string} = { };
|
|
@@ -5797,32 +5127,4 @@ export default class Client extends OpenApi {
|
|
|
5797
5127
|
return $tea.cast<UpdateServiceVersionResponse>(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
|
|
5798
5128
|
}
|
|
5799
5129
|
|
|
5800
|
-
async updateStress(ClusterId: string, StressName: string, request: UpdateStressRequest): Promise<UpdateStressResponse> {
|
|
5801
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
5802
|
-
let headers : {[key: string ]: string} = { };
|
|
5803
|
-
return await this.updateStressWithOptions(ClusterId, StressName, request, headers, runtime);
|
|
5804
|
-
}
|
|
5805
|
-
|
|
5806
|
-
async updateStressWithOptions(ClusterId: string, StressName: string, request: UpdateStressRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateStressResponse> {
|
|
5807
|
-
Util.validateModel(request);
|
|
5808
|
-
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
5809
|
-
StressName = OpenApiUtil.getEncodeParam(StressName);
|
|
5810
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
5811
|
-
headers: headers,
|
|
5812
|
-
body: request.body,
|
|
5813
|
-
});
|
|
5814
|
-
let params = new $OpenApi.Params({
|
|
5815
|
-
action: "UpdateStress",
|
|
5816
|
-
version: "2021-07-01",
|
|
5817
|
-
protocol: "HTTPS",
|
|
5818
|
-
pathname: `/api/v2/stress/${ClusterId}/${StressName}`,
|
|
5819
|
-
method: "PUT",
|
|
5820
|
-
authType: "AK",
|
|
5821
|
-
style: "ROA",
|
|
5822
|
-
reqBodyType: "json",
|
|
5823
|
-
bodyType: "json",
|
|
5824
|
-
});
|
|
5825
|
-
return $tea.cast<UpdateStressResponse>(await this.callApi(params, req, runtime), new UpdateStressResponse({}));
|
|
5826
|
-
}
|
|
5827
|
-
|
|
5828
5130
|
}
|