@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/src/client.ts CHANGED
@@ -237,6 +237,7 @@ export class Service extends $tea.Model {
237
237
  cpu?: number;
238
238
  createTime?: string;
239
239
  currentVersion?: number;
240
+ extraData?: string;
240
241
  gpu?: number;
241
242
  image?: string;
242
243
  internetEndpoint?: string;
@@ -251,14 +252,16 @@ export class Service extends $tea.Model {
251
252
  region?: string;
252
253
  requestId?: string;
253
254
  resource?: string;
255
+ resourceAlias?: string;
254
256
  runningInstance?: number;
255
257
  serviceConfig?: string;
258
+ serviceGroup?: string;
256
259
  serviceId?: string;
257
260
  serviceName?: string;
258
261
  source?: string;
259
262
  status?: string;
260
263
  totalInstance?: number;
261
- updatetime?: string;
264
+ updateTime?: string;
262
265
  weight?: number;
263
266
  static names(): { [key: string]: string } {
264
267
  return {
@@ -267,6 +270,7 @@ export class Service extends $tea.Model {
267
270
  cpu: 'Cpu',
268
271
  createTime: 'CreateTime',
269
272
  currentVersion: 'CurrentVersion',
273
+ extraData: 'ExtraData',
270
274
  gpu: 'Gpu',
271
275
  image: 'Image',
272
276
  internetEndpoint: 'InternetEndpoint',
@@ -281,14 +285,16 @@ export class Service extends $tea.Model {
281
285
  region: 'Region',
282
286
  requestId: 'RequestId',
283
287
  resource: 'Resource',
288
+ resourceAlias: 'ResourceAlias',
284
289
  runningInstance: 'RunningInstance',
285
290
  serviceConfig: 'ServiceConfig',
291
+ serviceGroup: 'ServiceGroup',
286
292
  serviceId: 'ServiceId',
287
293
  serviceName: 'ServiceName',
288
294
  source: 'Source',
289
295
  status: 'Status',
290
296
  totalInstance: 'TotalInstance',
291
- updatetime: 'Updatetime',
297
+ updateTime: 'UpdateTime',
292
298
  weight: 'Weight',
293
299
  };
294
300
  }
@@ -300,6 +306,7 @@ export class Service extends $tea.Model {
300
306
  cpu: 'number',
301
307
  createTime: 'string',
302
308
  currentVersion: 'number',
309
+ extraData: 'string',
303
310
  gpu: 'number',
304
311
  image: 'string',
305
312
  internetEndpoint: 'string',
@@ -314,14 +321,16 @@ export class Service extends $tea.Model {
314
321
  region: 'string',
315
322
  requestId: 'string',
316
323
  resource: 'string',
324
+ resourceAlias: 'string',
317
325
  runningInstance: 'number',
318
326
  serviceConfig: 'string',
327
+ serviceGroup: 'string',
319
328
  serviceId: 'string',
320
329
  serviceName: 'string',
321
330
  source: 'string',
322
331
  status: 'string',
323
332
  totalInstance: 'number',
324
- updatetime: 'string',
333
+ updateTime: 'string',
325
334
  weight: 'number',
326
335
  };
327
336
  }
@@ -721,9 +730,9 @@ export class CreateServiceAutoScalerRequest extends $tea.Model {
721
730
  strategies?: CreateServiceAutoScalerRequestStrategies;
722
731
  static names(): { [key: string]: string } {
723
732
  return {
724
- max: 'Max',
725
- min: 'Min',
726
- strategies: 'Strategies',
733
+ max: 'max',
734
+ min: 'min',
735
+ strategies: 'strategies',
727
736
  };
728
737
  }
729
738
 
@@ -925,78 +934,6 @@ export class CreateServiceMirrorResponse extends $tea.Model {
925
934
  }
926
935
  }
927
936
 
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
937
  export class DeleteBenchmarkTaskResponseBody extends $tea.Model {
1001
938
  message?: string;
1002
939
  requestId?: string;
@@ -1508,53 +1445,6 @@ export class DeleteServiceMirrorResponse extends $tea.Model {
1508
1445
  }
1509
1446
  }
1510
1447
 
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
1448
  export class DescribeBenchmarkTaskResponseBody extends $tea.Model {
1559
1449
  availableAgent?: number;
1560
1450
  callerUid?: string;
@@ -1906,6 +1796,7 @@ export class DescribeServiceResponse extends $tea.Model {
1906
1796
  }
1907
1797
 
1908
1798
  export class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1799
+ behavior?: { [key: string]: any };
1909
1800
  currentValues?: { [key: string]: any };
1910
1801
  maxReplica?: number;
1911
1802
  minReplica?: number;
@@ -1914,6 +1805,7 @@ export class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1914
1805
  strategies?: { [key: string]: any };
1915
1806
  static names(): { [key: string]: string } {
1916
1807
  return {
1808
+ behavior: 'Behavior',
1917
1809
  currentValues: 'CurrentValues',
1918
1810
  maxReplica: 'MaxReplica',
1919
1811
  minReplica: 'MinReplica',
@@ -1925,6 +1817,7 @@ export class DescribeServiceAutoScalerResponseBody extends $tea.Model {
1925
1817
 
1926
1818
  static types(): { [key: string]: any } {
1927
1819
  return {
1820
+ behavior: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1928
1821
  currentValues: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1929
1822
  maxReplica: 'number',
1930
1823
  minReplica: 'number',
@@ -2160,80 +2053,6 @@ export class DescribeServiceMirrorResponse extends $tea.Model {
2160
2053
  }
2161
2054
  }
2162
2055
 
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
2056
  export class ListBenchmarkTaskResponseBody extends $tea.Model {
2238
2057
  requestId?: string;
2239
2058
  tasks?: ListBenchmarkTaskResponseBodyTasks[];
@@ -2761,63 +2580,19 @@ export class ListServicesResponse extends $tea.Model {
2761
2580
  }
2762
2581
  }
2763
2582
 
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
2583
  export class ReleaseServiceRequest extends $tea.Model {
2584
+ trafficState?: string;
2812
2585
  weight?: number;
2813
2586
  static names(): { [key: string]: string } {
2814
2587
  return {
2588
+ trafficState: 'TrafficState',
2815
2589
  weight: 'Weight',
2816
2590
  };
2817
2591
  }
2818
2592
 
2819
2593
  static types(): { [key: string]: any } {
2820
2594
  return {
2595
+ trafficState: 'string',
2821
2596
  weight: 'number',
2822
2597
  };
2823
2598
  }
@@ -2874,19 +2649,19 @@ export class ReleaseServiceResponse extends $tea.Model {
2874
2649
  }
2875
2650
  }
2876
2651
 
2877
- export class ReportStressResponseBody extends $tea.Model {
2878
- reportUrl?: string;
2652
+ export class StartBenchmarkTaskResponseBody extends $tea.Model {
2653
+ message?: string;
2879
2654
  requestId?: string;
2880
2655
  static names(): { [key: string]: string } {
2881
2656
  return {
2882
- reportUrl: 'ReportUrl',
2657
+ message: 'Message',
2883
2658
  requestId: 'RequestId',
2884
2659
  };
2885
2660
  }
2886
2661
 
2887
2662
  static types(): { [key: string]: any } {
2888
2663
  return {
2889
- reportUrl: 'string',
2664
+ message: 'string',
2890
2665
  requestId: 'string',
2891
2666
  };
2892
2667
  }
@@ -2896,10 +2671,10 @@ export class ReportStressResponseBody extends $tea.Model {
2896
2671
  }
2897
2672
  }
2898
2673
 
2899
- export class ReportStressResponse extends $tea.Model {
2674
+ export class StartBenchmarkTaskResponse extends $tea.Model {
2900
2675
  headers: { [key: string]: string };
2901
2676
  statusCode: number;
2902
- body: ReportStressResponseBody;
2677
+ body: StartBenchmarkTaskResponseBody;
2903
2678
  static names(): { [key: string]: string } {
2904
2679
  return {
2905
2680
  headers: 'headers',
@@ -2912,7 +2687,7 @@ export class ReportStressResponse extends $tea.Model {
2912
2687
  return {
2913
2688
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2914
2689
  statusCode: 'number',
2915
- body: ReportStressResponseBody,
2690
+ body: StartBenchmarkTaskResponseBody,
2916
2691
  };
2917
2692
  }
2918
2693
 
@@ -2921,7 +2696,7 @@ export class ReportStressResponse extends $tea.Model {
2921
2696
  }
2922
2697
  }
2923
2698
 
2924
- export class StartBenchmarkTaskResponseBody extends $tea.Model {
2699
+ export class StartServiceResponseBody extends $tea.Model {
2925
2700
  message?: string;
2926
2701
  requestId?: string;
2927
2702
  static names(): { [key: string]: string } {
@@ -2943,10 +2718,10 @@ export class StartBenchmarkTaskResponseBody extends $tea.Model {
2943
2718
  }
2944
2719
  }
2945
2720
 
2946
- export class StartBenchmarkTaskResponse extends $tea.Model {
2721
+ export class StartServiceResponse extends $tea.Model {
2947
2722
  headers: { [key: string]: string };
2948
2723
  statusCode: number;
2949
- body: StartBenchmarkTaskResponseBody;
2724
+ body: StartServiceResponseBody;
2950
2725
  static names(): { [key: string]: string } {
2951
2726
  return {
2952
2727
  headers: 'headers',
@@ -2959,7 +2734,7 @@ export class StartBenchmarkTaskResponse extends $tea.Model {
2959
2734
  return {
2960
2735
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2961
2736
  statusCode: 'number',
2962
- body: StartBenchmarkTaskResponseBody,
2737
+ body: StartServiceResponseBody,
2963
2738
  };
2964
2739
  }
2965
2740
 
@@ -2968,7 +2743,7 @@ export class StartBenchmarkTaskResponse extends $tea.Model {
2968
2743
  }
2969
2744
  }
2970
2745
 
2971
- export class StartServiceResponseBody extends $tea.Model {
2746
+ export class StopBenchmarkTaskResponseBody extends $tea.Model {
2972
2747
  message?: string;
2973
2748
  requestId?: string;
2974
2749
  static names(): { [key: string]: string } {
@@ -2990,10 +2765,10 @@ export class StartServiceResponseBody extends $tea.Model {
2990
2765
  }
2991
2766
  }
2992
2767
 
2993
- export class StartServiceResponse extends $tea.Model {
2768
+ export class StopBenchmarkTaskResponse extends $tea.Model {
2994
2769
  headers: { [key: string]: string };
2995
2770
  statusCode: number;
2996
- body: StartServiceResponseBody;
2771
+ body: StopBenchmarkTaskResponseBody;
2997
2772
  static names(): { [key: string]: string } {
2998
2773
  return {
2999
2774
  headers: 'headers',
@@ -3006,7 +2781,7 @@ export class StartServiceResponse extends $tea.Model {
3006
2781
  return {
3007
2782
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3008
2783
  statusCode: 'number',
3009
- body: StartServiceResponseBody,
2784
+ body: StopBenchmarkTaskResponseBody,
3010
2785
  };
3011
2786
  }
3012
2787
 
@@ -3015,7 +2790,7 @@ export class StartServiceResponse extends $tea.Model {
3015
2790
  }
3016
2791
  }
3017
2792
 
3018
- export class StartStressResponseBody extends $tea.Model {
2793
+ export class StopServiceResponseBody extends $tea.Model {
3019
2794
  message?: string;
3020
2795
  requestId?: string;
3021
2796
  static names(): { [key: string]: string } {
@@ -3037,10 +2812,10 @@ export class StartStressResponseBody extends $tea.Model {
3037
2812
  }
3038
2813
  }
3039
2814
 
3040
- export class StartStressResponse extends $tea.Model {
2815
+ export class StopServiceResponse extends $tea.Model {
3041
2816
  headers: { [key: string]: string };
3042
2817
  statusCode: number;
3043
- body: StartStressResponseBody;
2818
+ body: StopServiceResponseBody;
3044
2819
  static names(): { [key: string]: string } {
3045
2820
  return {
3046
2821
  headers: 'headers',
@@ -3053,151 +2828,7 @@ export class StartStressResponse extends $tea.Model {
3053
2828
  return {
3054
2829
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3055
2830
  statusCode: 'number',
3056
- body: StartStressResponseBody,
3057
- };
3058
- }
3059
-
3060
- constructor(map?: { [key: string]: any }) {
3061
- super(map);
3062
- }
3063
- }
3064
-
3065
- export class StopBenchmarkTaskResponseBody extends $tea.Model {
3066
- message?: string;
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,
2831
+ body: StopServiceResponseBody,
3201
2832
  };
3202
2833
  }
3203
2834
 
@@ -3488,9 +3119,9 @@ export class UpdateServiceAutoScalerRequest extends $tea.Model {
3488
3119
  strategies?: UpdateServiceAutoScalerRequestStrategies;
3489
3120
  static names(): { [key: string]: string } {
3490
3121
  return {
3491
- max: 'Max',
3492
- min: 'Min',
3493
- strategies: 'Strategies',
3122
+ max: 'max',
3123
+ min: 'min',
3124
+ strategies: 'strategies',
3494
3125
  };
3495
3126
  }
3496
3127
 
@@ -3758,79 +3389,13 @@ export class UpdateServiceVersionResponse extends $tea.Model {
3758
3389
  }
3759
3390
  }
3760
3391
 
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
3392
  export class CreateServiceAutoScalerRequestStrategies extends $tea.Model {
3828
3393
  cpu?: number;
3829
3394
  qps?: number;
3830
3395
  static names(): { [key: string]: string } {
3831
3396
  return {
3832
- cpu: 'Cpu',
3833
- qps: 'Qps',
3397
+ cpu: 'cpu',
3398
+ qps: 'qps',
3834
3399
  };
3835
3400
  }
3836
3401
 
@@ -3951,53 +3516,13 @@ export class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
3951
3516
  }
3952
3517
  }
3953
3518
 
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
3519
  export class UpdateServiceAutoScalerRequestStrategies extends $tea.Model {
3995
3520
  cpu?: number;
3996
3521
  qps?: number;
3997
3522
  static names(): { [key: string]: string } {
3998
3523
  return {
3999
- cpu: 'Cpu',
4000
- qps: 'Qps',
3524
+ cpu: 'cpu',
3525
+ qps: 'qps',
4001
3526
  };
4002
3527
  }
4003
3528
 
@@ -4271,15 +3796,15 @@ export default class Client extends OpenApi {
4271
3796
  ServiceName = OpenApiUtil.getEncodeParam(ServiceName);
4272
3797
  let body : {[key: string ]: any} = { };
4273
3798
  if (!Util.isUnset(request.max)) {
4274
- body["Max"] = request.max;
3799
+ body["max"] = request.max;
4275
3800
  }
4276
3801
 
4277
3802
  if (!Util.isUnset(request.min)) {
4278
- body["Min"] = request.min;
3803
+ body["min"] = request.min;
4279
3804
  }
4280
3805
 
4281
3806
  if (!Util.isUnset($tea.toMap(request.strategies))) {
4282
- body["Strategies"] = request.strategies;
3807
+ body["strategies"] = request.strategies;
4283
3808
  }
4284
3809
 
4285
3810
  let req = new $OpenApi.OpenApiRequest({
@@ -4374,32 +3899,6 @@ export default class Client extends OpenApi {
4374
3899
  return $tea.cast<CreateServiceMirrorResponse>(await this.callApi(params, req, runtime), new CreateServiceMirrorResponse({}));
4375
3900
  }
4376
3901
 
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
3902
  async deleteBenchmarkTask(ClusterId: string, TaskName: string): Promise<DeleteBenchmarkTaskResponse> {
4404
3903
  let runtime = new $Util.RuntimeOptions({ });
4405
3904
  let headers : {[key: string ]: string} = { };
@@ -4678,32 +4177,6 @@ export default class Client extends OpenApi {
4678
4177
  return $tea.cast<DeleteServiceMirrorResponse>(await this.callApi(params, req, runtime), new DeleteServiceMirrorResponse({}));
4679
4178
  }
4680
4179
 
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
4180
  async describeBenchmarkTask(ClusterId: string, TaskName: string): Promise<DescribeBenchmarkTaskResponse> {
4708
4181
  let runtime = new $Util.RuntimeOptions({ });
4709
4182
  let headers : {[key: string ]: string} = { };
@@ -4991,32 +4464,6 @@ export default class Client extends OpenApi {
4991
4464
  return $tea.cast<DescribeServiceMirrorResponse>(await this.callApi(params, req, runtime), new DescribeServiceMirrorResponse({}));
4992
4465
  }
4993
4466
 
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
4467
  async listBenchmarkTask(): Promise<ListBenchmarkTaskResponse> {
5021
4468
  let runtime = new $Util.RuntimeOptions({ });
5022
4469
  let headers : {[key: string ]: string} = { };
@@ -5276,30 +4723,6 @@ export default class Client extends OpenApi {
5276
4723
  return $tea.cast<ListServicesResponse>(await this.callApi(params, req, runtime), new ListServicesResponse({}));
5277
4724
  }
5278
4725
 
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
4726
  async releaseService(ClusterId: string, ServiceName: string, request: ReleaseServiceRequest): Promise<ReleaseServiceResponse> {
5304
4727
  let runtime = new $Util.RuntimeOptions({ });
5305
4728
  let headers : {[key: string ]: string} = { };
@@ -5311,6 +4734,10 @@ export default class Client extends OpenApi {
5311
4734
  ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
5312
4735
  ServiceName = OpenApiUtil.getEncodeParam(ServiceName);
5313
4736
  let body : {[key: string ]: any} = { };
4737
+ if (!Util.isUnset(request.trafficState)) {
4738
+ body["TrafficState"] = request.trafficState;
4739
+ }
4740
+
5314
4741
  if (!Util.isUnset(request.weight)) {
5315
4742
  body["Weight"] = request.weight;
5316
4743
  }
@@ -5333,32 +4760,6 @@ export default class Client extends OpenApi {
5333
4760
  return $tea.cast<ReleaseServiceResponse>(await this.callApi(params, req, runtime), new ReleaseServiceResponse({}));
5334
4761
  }
5335
4762
 
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
4763
  async startBenchmarkTask(ClusterId: string, TaskName: string): Promise<StartBenchmarkTaskResponse> {
5363
4764
  let runtime = new $Util.RuntimeOptions({ });
5364
4765
  let headers : {[key: string ]: string} = { };
@@ -5411,32 +4812,6 @@ export default class Client extends OpenApi {
5411
4812
  return $tea.cast<StartServiceResponse>(await this.callApi(params, req, runtime), new StartServiceResponse({}));
5412
4813
  }
5413
4814
 
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
4815
  async stopBenchmarkTask(ClusterId: string, TaskName: string): Promise<StopBenchmarkTaskResponse> {
5441
4816
  let runtime = new $Util.RuntimeOptions({ });
5442
4817
  let headers : {[key: string ]: string} = { };
@@ -5489,32 +4864,6 @@ export default class Client extends OpenApi {
5489
4864
  return $tea.cast<StopServiceResponse>(await this.callApi(params, req, runtime), new StopServiceResponse({}));
5490
4865
  }
5491
4866
 
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
4867
  async updateBenchmarkTask(ClusterId: string, TaskName: string, request: UpdateBenchmarkTaskRequest): Promise<UpdateBenchmarkTaskResponse> {
5519
4868
  let runtime = new $Util.RuntimeOptions({ });
5520
4869
  let headers : {[key: string ]: string} = { };
@@ -5661,15 +5010,15 @@ export default class Client extends OpenApi {
5661
5010
  ServiceName = OpenApiUtil.getEncodeParam(ServiceName);
5662
5011
  let body : {[key: string ]: any} = { };
5663
5012
  if (!Util.isUnset(request.max)) {
5664
- body["Max"] = request.max;
5013
+ body["max"] = request.max;
5665
5014
  }
5666
5015
 
5667
5016
  if (!Util.isUnset(request.min)) {
5668
- body["Min"] = request.min;
5017
+ body["min"] = request.min;
5669
5018
  }
5670
5019
 
5671
5020
  if (!Util.isUnset($tea.toMap(request.strategies))) {
5672
- body["Strategies"] = request.strategies;
5021
+ body["strategies"] = request.strategies;
5673
5022
  }
5674
5023
 
5675
5024
  let req = new $OpenApi.OpenApiRequest({
@@ -5797,32 +5146,4 @@ export default class Client extends OpenApi {
5797
5146
  return $tea.cast<UpdateServiceVersionResponse>(await this.callApi(params, req, runtime), new UpdateServiceVersionResponse({}));
5798
5147
  }
5799
5148
 
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
5149
  }