@alicloud/ess20220222 1.0.11 → 1.0.13

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.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -7125,6 +7125,7 @@ export class ScaleWithAdjustmentRequest extends $tea.Model {
7125
7125
  adjustmentValue?: number;
7126
7126
  clientToken?: string;
7127
7127
  minAdjustmentMagnitude?: number;
7128
+ overrides?: ScaleWithAdjustmentRequestOverrides;
7128
7129
  ownerId?: number;
7129
7130
  resourceOwnerAccount?: string;
7130
7131
  scalingGroupId?: string;
@@ -7135,6 +7136,7 @@ export class ScaleWithAdjustmentRequest extends $tea.Model {
7135
7136
  adjustmentValue: 'AdjustmentValue',
7136
7137
  clientToken: 'ClientToken',
7137
7138
  minAdjustmentMagnitude: 'MinAdjustmentMagnitude',
7139
+ overrides: 'Overrides',
7138
7140
  ownerId: 'OwnerId',
7139
7141
  resourceOwnerAccount: 'ResourceOwnerAccount',
7140
7142
  scalingGroupId: 'ScalingGroupId',
@@ -7148,6 +7150,50 @@ export class ScaleWithAdjustmentRequest extends $tea.Model {
7148
7150
  adjustmentValue: 'number',
7149
7151
  clientToken: 'string',
7150
7152
  minAdjustmentMagnitude: 'number',
7153
+ overrides: ScaleWithAdjustmentRequestOverrides,
7154
+ ownerId: 'number',
7155
+ resourceOwnerAccount: 'string',
7156
+ scalingGroupId: 'string',
7157
+ syncActivity: 'boolean',
7158
+ };
7159
+ }
7160
+
7161
+ constructor(map?: { [key: string]: any }) {
7162
+ super(map);
7163
+ }
7164
+ }
7165
+
7166
+ export class ScaleWithAdjustmentShrinkRequest extends $tea.Model {
7167
+ adjustmentType?: string;
7168
+ adjustmentValue?: number;
7169
+ clientToken?: string;
7170
+ minAdjustmentMagnitude?: number;
7171
+ overridesShrink?: string;
7172
+ ownerId?: number;
7173
+ resourceOwnerAccount?: string;
7174
+ scalingGroupId?: string;
7175
+ syncActivity?: boolean;
7176
+ static names(): { [key: string]: string } {
7177
+ return {
7178
+ adjustmentType: 'AdjustmentType',
7179
+ adjustmentValue: 'AdjustmentValue',
7180
+ clientToken: 'ClientToken',
7181
+ minAdjustmentMagnitude: 'MinAdjustmentMagnitude',
7182
+ overridesShrink: 'Overrides',
7183
+ ownerId: 'OwnerId',
7184
+ resourceOwnerAccount: 'ResourceOwnerAccount',
7185
+ scalingGroupId: 'ScalingGroupId',
7186
+ syncActivity: 'SyncActivity',
7187
+ };
7188
+ }
7189
+
7190
+ static types(): { [key: string]: any } {
7191
+ return {
7192
+ adjustmentType: 'string',
7193
+ adjustmentValue: 'number',
7194
+ clientToken: 'string',
7195
+ minAdjustmentMagnitude: 'number',
7196
+ overridesShrink: 'string',
7151
7197
  ownerId: 'number',
7152
7198
  resourceOwnerAccount: 'string',
7153
7199
  scalingGroupId: 'string',
@@ -13472,6 +13518,87 @@ export class ModifyScalingRuleRequestStepAdjustments extends $tea.Model {
13472
13518
  }
13473
13519
  }
13474
13520
 
13521
+ export class ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars extends $tea.Model {
13522
+ key?: string;
13523
+ value?: string;
13524
+ static names(): { [key: string]: string } {
13525
+ return {
13526
+ key: 'Key',
13527
+ value: 'Value',
13528
+ };
13529
+ }
13530
+
13531
+ static types(): { [key: string]: any } {
13532
+ return {
13533
+ key: 'string',
13534
+ value: 'string',
13535
+ };
13536
+ }
13537
+
13538
+ constructor(map?: { [key: string]: any }) {
13539
+ super(map);
13540
+ }
13541
+ }
13542
+
13543
+ export class ScaleWithAdjustmentRequestOverridesContainerOverrides extends $tea.Model {
13544
+ args?: string[];
13545
+ commands?: string[];
13546
+ cpu?: number;
13547
+ environmentVars?: ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars[];
13548
+ memory?: number;
13549
+ name?: string;
13550
+ static names(): { [key: string]: string } {
13551
+ return {
13552
+ args: 'Args',
13553
+ commands: 'Commands',
13554
+ cpu: 'Cpu',
13555
+ environmentVars: 'EnvironmentVars',
13556
+ memory: 'Memory',
13557
+ name: 'Name',
13558
+ };
13559
+ }
13560
+
13561
+ static types(): { [key: string]: any } {
13562
+ return {
13563
+ args: { 'type': 'array', 'itemType': 'string' },
13564
+ commands: { 'type': 'array', 'itemType': 'string' },
13565
+ cpu: 'number',
13566
+ environmentVars: { 'type': 'array', 'itemType': ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars },
13567
+ memory: 'number',
13568
+ name: 'string',
13569
+ };
13570
+ }
13571
+
13572
+ constructor(map?: { [key: string]: any }) {
13573
+ super(map);
13574
+ }
13575
+ }
13576
+
13577
+ export class ScaleWithAdjustmentRequestOverrides extends $tea.Model {
13578
+ containerOverrides?: ScaleWithAdjustmentRequestOverridesContainerOverrides[];
13579
+ cpu?: number;
13580
+ memory?: number;
13581
+ static names(): { [key: string]: string } {
13582
+ return {
13583
+ containerOverrides: 'ContainerOverrides',
13584
+ cpu: 'Cpu',
13585
+ memory: 'Memory',
13586
+ };
13587
+ }
13588
+
13589
+ static types(): { [key: string]: any } {
13590
+ return {
13591
+ containerOverrides: { 'type': 'array', 'itemType': ScaleWithAdjustmentRequestOverridesContainerOverrides },
13592
+ cpu: 'number',
13593
+ memory: 'number',
13594
+ };
13595
+ }
13596
+
13597
+ constructor(map?: { [key: string]: any }) {
13598
+ super(map);
13599
+ }
13600
+ }
13601
+
13475
13602
  export class TagResourcesRequestTags extends $tea.Model {
13476
13603
  key?: string;
13477
13604
  propagate?: boolean;
@@ -19132,12 +19259,18 @@ export default class Client extends OpenApi {
19132
19259
  * * If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
19133
19260
  * A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
19134
19261
  *
19135
- * @param request ScaleWithAdjustmentRequest
19262
+ * @param tmpReq ScaleWithAdjustmentRequest
19136
19263
  * @param runtime runtime options for this request RuntimeOptions
19137
19264
  * @return ScaleWithAdjustmentResponse
19138
19265
  */
19139
- async scaleWithAdjustmentWithOptions(request: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse> {
19140
- Util.validateModel(request);
19266
+ async scaleWithAdjustmentWithOptions(tmpReq: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse> {
19267
+ Util.validateModel(tmpReq);
19268
+ let request = new ScaleWithAdjustmentShrinkRequest({ });
19269
+ OpenApiUtil.convert(tmpReq, request);
19270
+ if (!Util.isUnset(tmpReq.overrides)) {
19271
+ request.overridesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.overrides, "Overrides", "json");
19272
+ }
19273
+
19141
19274
  let query = { };
19142
19275
  if (!Util.isUnset(request.adjustmentType)) {
19143
19276
  query["AdjustmentType"] = request.adjustmentType;
@@ -19155,6 +19288,10 @@ export default class Client extends OpenApi {
19155
19288
  query["MinAdjustmentMagnitude"] = request.minAdjustmentMagnitude;
19156
19289
  }
19157
19290
 
19291
+ if (!Util.isUnset(request.overridesShrink)) {
19292
+ query["Overrides"] = request.overridesShrink;
19293
+ }
19294
+
19158
19295
  if (!Util.isUnset(request.ownerId)) {
19159
19296
  query["OwnerId"] = request.ownerId;
19160
19297
  }