@alicloud/ess20220222 1.4.2 → 1.5.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ess20220222",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2994,6 +2994,81 @@ export class DescribeAlarmsResponse extends $tea.Model {
2994
2994
  }
2995
2995
  }
2996
2996
 
2997
+ export class DescribeAlertConfigurationRequest extends $tea.Model {
2998
+ ownerId?: number;
2999
+ regionId?: string;
3000
+ resourceOwnerAccount?: string;
3001
+ scalingGroupId?: string;
3002
+ static names(): { [key: string]: string } {
3003
+ return {
3004
+ ownerId: 'OwnerId',
3005
+ regionId: 'RegionId',
3006
+ resourceOwnerAccount: 'ResourceOwnerAccount',
3007
+ scalingGroupId: 'ScalingGroupId',
3008
+ };
3009
+ }
3010
+
3011
+ static types(): { [key: string]: any } {
3012
+ return {
3013
+ ownerId: 'number',
3014
+ regionId: 'string',
3015
+ resourceOwnerAccount: 'string',
3016
+ scalingGroupId: 'string',
3017
+ };
3018
+ }
3019
+
3020
+ constructor(map?: { [key: string]: any }) {
3021
+ super(map);
3022
+ }
3023
+ }
3024
+
3025
+ export class DescribeAlertConfigurationResponseBody extends $tea.Model {
3026
+ requestId?: string;
3027
+ scaleStatuses?: string[];
3028
+ static names(): { [key: string]: string } {
3029
+ return {
3030
+ requestId: 'RequestId',
3031
+ scaleStatuses: 'ScaleStatuses',
3032
+ };
3033
+ }
3034
+
3035
+ static types(): { [key: string]: any } {
3036
+ return {
3037
+ requestId: 'string',
3038
+ scaleStatuses: { 'type': 'array', 'itemType': 'string' },
3039
+ };
3040
+ }
3041
+
3042
+ constructor(map?: { [key: string]: any }) {
3043
+ super(map);
3044
+ }
3045
+ }
3046
+
3047
+ export class DescribeAlertConfigurationResponse extends $tea.Model {
3048
+ headers?: { [key: string]: string };
3049
+ statusCode?: number;
3050
+ body?: DescribeAlertConfigurationResponseBody;
3051
+ static names(): { [key: string]: string } {
3052
+ return {
3053
+ headers: 'headers',
3054
+ statusCode: 'statusCode',
3055
+ body: 'body',
3056
+ };
3057
+ }
3058
+
3059
+ static types(): { [key: string]: any } {
3060
+ return {
3061
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3062
+ statusCode: 'number',
3063
+ body: DescribeAlertConfigurationResponseBody,
3064
+ };
3065
+ }
3066
+
3067
+ constructor(map?: { [key: string]: any }) {
3068
+ super(map);
3069
+ }
3070
+ }
3071
+
2997
3072
  export class DescribeEciScalingConfigurationDetailRequest extends $tea.Model {
2998
3073
  outputFormat?: string;
2999
3074
  regionId?: string;
@@ -6123,6 +6198,81 @@ export class ModifyAlarmResponse extends $tea.Model {
6123
6198
  }
6124
6199
  }
6125
6200
 
6201
+ export class ModifyAlertConfigurationRequest extends $tea.Model {
6202
+ ownerId?: number;
6203
+ regionId?: string;
6204
+ resourceOwnerAccount?: string;
6205
+ scaleStatuses?: string[];
6206
+ scalingGroupId?: string;
6207
+ static names(): { [key: string]: string } {
6208
+ return {
6209
+ ownerId: 'OwnerId',
6210
+ regionId: 'RegionId',
6211
+ resourceOwnerAccount: 'ResourceOwnerAccount',
6212
+ scaleStatuses: 'ScaleStatuses',
6213
+ scalingGroupId: 'ScalingGroupId',
6214
+ };
6215
+ }
6216
+
6217
+ static types(): { [key: string]: any } {
6218
+ return {
6219
+ ownerId: 'number',
6220
+ regionId: 'string',
6221
+ resourceOwnerAccount: 'string',
6222
+ scaleStatuses: { 'type': 'array', 'itemType': 'string' },
6223
+ scalingGroupId: 'string',
6224
+ };
6225
+ }
6226
+
6227
+ constructor(map?: { [key: string]: any }) {
6228
+ super(map);
6229
+ }
6230
+ }
6231
+
6232
+ export class ModifyAlertConfigurationResponseBody extends $tea.Model {
6233
+ requestId?: string;
6234
+ static names(): { [key: string]: string } {
6235
+ return {
6236
+ requestId: 'RequestId',
6237
+ };
6238
+ }
6239
+
6240
+ static types(): { [key: string]: any } {
6241
+ return {
6242
+ requestId: 'string',
6243
+ };
6244
+ }
6245
+
6246
+ constructor(map?: { [key: string]: any }) {
6247
+ super(map);
6248
+ }
6249
+ }
6250
+
6251
+ export class ModifyAlertConfigurationResponse extends $tea.Model {
6252
+ headers?: { [key: string]: string };
6253
+ statusCode?: number;
6254
+ body?: ModifyAlertConfigurationResponseBody;
6255
+ static names(): { [key: string]: string } {
6256
+ return {
6257
+ headers: 'headers',
6258
+ statusCode: 'statusCode',
6259
+ body: 'body',
6260
+ };
6261
+ }
6262
+
6263
+ static types(): { [key: string]: any } {
6264
+ return {
6265
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6266
+ statusCode: 'number',
6267
+ body: ModifyAlertConfigurationResponseBody,
6268
+ };
6269
+ }
6270
+
6271
+ constructor(map?: { [key: string]: any }) {
6272
+ super(map);
6273
+ }
6274
+ }
6275
+
6126
6276
  export class ModifyEciScalingConfigurationRequest extends $tea.Model {
6127
6277
  acrRegistryInfos?: ModifyEciScalingConfigurationRequestAcrRegistryInfos[];
6128
6278
  activeDeadlineSeconds?: number;
@@ -19094,6 +19244,56 @@ export default class Client extends OpenApi {
19094
19244
  return await this.describeAlarmsWithOptions(request, runtime);
19095
19245
  }
19096
19246
 
19247
+ /**
19248
+ * @param request DescribeAlertConfigurationRequest
19249
+ * @param runtime runtime options for this request RuntimeOptions
19250
+ * @return DescribeAlertConfigurationResponse
19251
+ */
19252
+ async describeAlertConfigurationWithOptions(request: DescribeAlertConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAlertConfigurationResponse> {
19253
+ Util.validateModel(request);
19254
+ let query = { };
19255
+ if (!Util.isUnset(request.ownerId)) {
19256
+ query["OwnerId"] = request.ownerId;
19257
+ }
19258
+
19259
+ if (!Util.isUnset(request.regionId)) {
19260
+ query["RegionId"] = request.regionId;
19261
+ }
19262
+
19263
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
19264
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
19265
+ }
19266
+
19267
+ if (!Util.isUnset(request.scalingGroupId)) {
19268
+ query["ScalingGroupId"] = request.scalingGroupId;
19269
+ }
19270
+
19271
+ let req = new $OpenApi.OpenApiRequest({
19272
+ query: OpenApiUtil.query(query),
19273
+ });
19274
+ let params = new $OpenApi.Params({
19275
+ action: "DescribeAlertConfiguration",
19276
+ version: "2022-02-22",
19277
+ protocol: "HTTPS",
19278
+ pathname: "/",
19279
+ method: "POST",
19280
+ authType: "AK",
19281
+ style: "RPC",
19282
+ reqBodyType: "formData",
19283
+ bodyType: "json",
19284
+ });
19285
+ return $tea.cast<DescribeAlertConfigurationResponse>(await this.callApi(params, req, runtime), new DescribeAlertConfigurationResponse({}));
19286
+ }
19287
+
19288
+ /**
19289
+ * @param request DescribeAlertConfigurationRequest
19290
+ * @return DescribeAlertConfigurationResponse
19291
+ */
19292
+ async describeAlertConfiguration(request: DescribeAlertConfigurationRequest): Promise<DescribeAlertConfigurationResponse> {
19293
+ let runtime = new $Util.RuntimeOptions({ });
19294
+ return await this.describeAlertConfigurationWithOptions(request, runtime);
19295
+ }
19296
+
19097
19297
  /**
19098
19298
  * @summary Queries scaling configurations of the Elastic Container Instance type to learn the scaling configuration details. This allows you to select an appropriate template when you create elastic container instances. If you set OutputFormat to yaml, the output is a Kubernetes Deployment file in the YAML format.
19099
19299
  *
@@ -21564,6 +21764,60 @@ export default class Client extends OpenApi {
21564
21764
  return await this.modifyAlarmWithOptions(request, runtime);
21565
21765
  }
21566
21766
 
21767
+ /**
21768
+ * @param request ModifyAlertConfigurationRequest
21769
+ * @param runtime runtime options for this request RuntimeOptions
21770
+ * @return ModifyAlertConfigurationResponse
21771
+ */
21772
+ async modifyAlertConfigurationWithOptions(request: ModifyAlertConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAlertConfigurationResponse> {
21773
+ Util.validateModel(request);
21774
+ let query = { };
21775
+ if (!Util.isUnset(request.ownerId)) {
21776
+ query["OwnerId"] = request.ownerId;
21777
+ }
21778
+
21779
+ if (!Util.isUnset(request.regionId)) {
21780
+ query["RegionId"] = request.regionId;
21781
+ }
21782
+
21783
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
21784
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
21785
+ }
21786
+
21787
+ if (!Util.isUnset(request.scaleStatuses)) {
21788
+ query["ScaleStatuses"] = request.scaleStatuses;
21789
+ }
21790
+
21791
+ if (!Util.isUnset(request.scalingGroupId)) {
21792
+ query["ScalingGroupId"] = request.scalingGroupId;
21793
+ }
21794
+
21795
+ let req = new $OpenApi.OpenApiRequest({
21796
+ query: OpenApiUtil.query(query),
21797
+ });
21798
+ let params = new $OpenApi.Params({
21799
+ action: "ModifyAlertConfiguration",
21800
+ version: "2022-02-22",
21801
+ protocol: "HTTPS",
21802
+ pathname: "/",
21803
+ method: "POST",
21804
+ authType: "AK",
21805
+ style: "RPC",
21806
+ reqBodyType: "formData",
21807
+ bodyType: "json",
21808
+ });
21809
+ return $tea.cast<ModifyAlertConfigurationResponse>(await this.callApi(params, req, runtime), new ModifyAlertConfigurationResponse({}));
21810
+ }
21811
+
21812
+ /**
21813
+ * @param request ModifyAlertConfigurationRequest
21814
+ * @return ModifyAlertConfigurationResponse
21815
+ */
21816
+ async modifyAlertConfiguration(request: ModifyAlertConfigurationRequest): Promise<ModifyAlertConfigurationResponse> {
21817
+ let runtime = new $Util.RuntimeOptions({ });
21818
+ return await this.modifyAlertConfigurationWithOptions(request, runtime);
21819
+ }
21820
+
21567
21821
  /**
21568
21822
  * @summary Modifies a scaling configuration for a scaling group that contains elastic container instances.
21569
21823
  *