@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/dist/client.d.ts CHANGED
@@ -3687,6 +3687,27 @@ export declare class ScaleWithAdjustmentRequest extends $tea.Model {
3687
3687
  adjustmentValue?: number;
3688
3688
  clientToken?: string;
3689
3689
  minAdjustmentMagnitude?: number;
3690
+ overrides?: ScaleWithAdjustmentRequestOverrides;
3691
+ ownerId?: number;
3692
+ resourceOwnerAccount?: string;
3693
+ scalingGroupId?: string;
3694
+ syncActivity?: boolean;
3695
+ static names(): {
3696
+ [key: string]: string;
3697
+ };
3698
+ static types(): {
3699
+ [key: string]: any;
3700
+ };
3701
+ constructor(map?: {
3702
+ [key: string]: any;
3703
+ });
3704
+ }
3705
+ export declare class ScaleWithAdjustmentShrinkRequest extends $tea.Model {
3706
+ adjustmentType?: string;
3707
+ adjustmentValue?: number;
3708
+ clientToken?: string;
3709
+ minAdjustmentMagnitude?: number;
3710
+ overridesShrink?: string;
3690
3711
  ownerId?: number;
3691
3712
  resourceOwnerAccount?: string;
3692
3713
  scalingGroupId?: string;
@@ -6945,6 +6966,50 @@ export declare class ModifyScalingRuleRequestStepAdjustments extends $tea.Model
6945
6966
  [key: string]: any;
6946
6967
  });
6947
6968
  }
6969
+ export declare class ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars extends $tea.Model {
6970
+ key?: string;
6971
+ value?: string;
6972
+ static names(): {
6973
+ [key: string]: string;
6974
+ };
6975
+ static types(): {
6976
+ [key: string]: any;
6977
+ };
6978
+ constructor(map?: {
6979
+ [key: string]: any;
6980
+ });
6981
+ }
6982
+ export declare class ScaleWithAdjustmentRequestOverridesContainerOverrides extends $tea.Model {
6983
+ args?: string[];
6984
+ commands?: string[];
6985
+ cpu?: number;
6986
+ environmentVars?: ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars[];
6987
+ memory?: number;
6988
+ name?: string;
6989
+ static names(): {
6990
+ [key: string]: string;
6991
+ };
6992
+ static types(): {
6993
+ [key: string]: any;
6994
+ };
6995
+ constructor(map?: {
6996
+ [key: string]: any;
6997
+ });
6998
+ }
6999
+ export declare class ScaleWithAdjustmentRequestOverrides extends $tea.Model {
7000
+ containerOverrides?: ScaleWithAdjustmentRequestOverridesContainerOverrides[];
7001
+ cpu?: number;
7002
+ memory?: number;
7003
+ static names(): {
7004
+ [key: string]: string;
7005
+ };
7006
+ static types(): {
7007
+ [key: string]: any;
7008
+ };
7009
+ constructor(map?: {
7010
+ [key: string]: any;
7011
+ });
7012
+ }
6948
7013
  export declare class TagResourcesRequestTags extends $tea.Model {
6949
7014
  key?: string;
6950
7015
  propagate?: boolean;
@@ -7734,11 +7799,11 @@ export default class Client extends OpenApi {
7734
7799
  * * 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.
7735
7800
  * 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.
7736
7801
  *
7737
- * @param request ScaleWithAdjustmentRequest
7802
+ * @param tmpReq ScaleWithAdjustmentRequest
7738
7803
  * @param runtime runtime options for this request RuntimeOptions
7739
7804
  * @return ScaleWithAdjustmentResponse
7740
7805
  */
7741
- scaleWithAdjustmentWithOptions(request: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse>;
7806
+ scaleWithAdjustmentWithOptions(tmpReq: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse>;
7742
7807
  /**
7743
7808
  * Compared with the ExecuteScalingRule operation, the ScaleWithAdjustment operation does not require a scaling rule to be created in advance. Before you call the ScaleWithAdjustment operation, take note of the following items:
7744
7809
  * * The following conditions must be met:
package/dist/client.js CHANGED
@@ -5457,6 +5457,7 @@ class ScaleWithAdjustmentRequest extends $tea.Model {
5457
5457
  adjustmentValue: 'AdjustmentValue',
5458
5458
  clientToken: 'ClientToken',
5459
5459
  minAdjustmentMagnitude: 'MinAdjustmentMagnitude',
5460
+ overrides: 'Overrides',
5460
5461
  ownerId: 'OwnerId',
5461
5462
  resourceOwnerAccount: 'ResourceOwnerAccount',
5462
5463
  scalingGroupId: 'ScalingGroupId',
@@ -5469,6 +5470,7 @@ class ScaleWithAdjustmentRequest extends $tea.Model {
5469
5470
  adjustmentValue: 'number',
5470
5471
  clientToken: 'string',
5471
5472
  minAdjustmentMagnitude: 'number',
5473
+ overrides: ScaleWithAdjustmentRequestOverrides,
5472
5474
  ownerId: 'number',
5473
5475
  resourceOwnerAccount: 'string',
5474
5476
  scalingGroupId: 'string',
@@ -5477,6 +5479,38 @@ class ScaleWithAdjustmentRequest extends $tea.Model {
5477
5479
  }
5478
5480
  }
5479
5481
  exports.ScaleWithAdjustmentRequest = ScaleWithAdjustmentRequest;
5482
+ class ScaleWithAdjustmentShrinkRequest extends $tea.Model {
5483
+ constructor(map) {
5484
+ super(map);
5485
+ }
5486
+ static names() {
5487
+ return {
5488
+ adjustmentType: 'AdjustmentType',
5489
+ adjustmentValue: 'AdjustmentValue',
5490
+ clientToken: 'ClientToken',
5491
+ minAdjustmentMagnitude: 'MinAdjustmentMagnitude',
5492
+ overridesShrink: 'Overrides',
5493
+ ownerId: 'OwnerId',
5494
+ resourceOwnerAccount: 'ResourceOwnerAccount',
5495
+ scalingGroupId: 'ScalingGroupId',
5496
+ syncActivity: 'SyncActivity',
5497
+ };
5498
+ }
5499
+ static types() {
5500
+ return {
5501
+ adjustmentType: 'string',
5502
+ adjustmentValue: 'number',
5503
+ clientToken: 'string',
5504
+ minAdjustmentMagnitude: 'number',
5505
+ overridesShrink: 'string',
5506
+ ownerId: 'number',
5507
+ resourceOwnerAccount: 'string',
5508
+ scalingGroupId: 'string',
5509
+ syncActivity: 'boolean',
5510
+ };
5511
+ }
5512
+ }
5513
+ exports.ScaleWithAdjustmentShrinkRequest = ScaleWithAdjustmentShrinkRequest;
5480
5514
  class ScaleWithAdjustmentResponseBody extends $tea.Model {
5481
5515
  constructor(map) {
5482
5516
  super(map);
@@ -10345,6 +10379,70 @@ class ModifyScalingRuleRequestStepAdjustments extends $tea.Model {
10345
10379
  }
10346
10380
  }
10347
10381
  exports.ModifyScalingRuleRequestStepAdjustments = ModifyScalingRuleRequestStepAdjustments;
10382
+ class ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars extends $tea.Model {
10383
+ constructor(map) {
10384
+ super(map);
10385
+ }
10386
+ static names() {
10387
+ return {
10388
+ key: 'Key',
10389
+ value: 'Value',
10390
+ };
10391
+ }
10392
+ static types() {
10393
+ return {
10394
+ key: 'string',
10395
+ value: 'string',
10396
+ };
10397
+ }
10398
+ }
10399
+ exports.ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars = ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars;
10400
+ class ScaleWithAdjustmentRequestOverridesContainerOverrides extends $tea.Model {
10401
+ constructor(map) {
10402
+ super(map);
10403
+ }
10404
+ static names() {
10405
+ return {
10406
+ args: 'Args',
10407
+ commands: 'Commands',
10408
+ cpu: 'Cpu',
10409
+ environmentVars: 'EnvironmentVars',
10410
+ memory: 'Memory',
10411
+ name: 'Name',
10412
+ };
10413
+ }
10414
+ static types() {
10415
+ return {
10416
+ args: { 'type': 'array', 'itemType': 'string' },
10417
+ commands: { 'type': 'array', 'itemType': 'string' },
10418
+ cpu: 'number',
10419
+ environmentVars: { 'type': 'array', 'itemType': ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars },
10420
+ memory: 'number',
10421
+ name: 'string',
10422
+ };
10423
+ }
10424
+ }
10425
+ exports.ScaleWithAdjustmentRequestOverridesContainerOverrides = ScaleWithAdjustmentRequestOverridesContainerOverrides;
10426
+ class ScaleWithAdjustmentRequestOverrides extends $tea.Model {
10427
+ constructor(map) {
10428
+ super(map);
10429
+ }
10430
+ static names() {
10431
+ return {
10432
+ containerOverrides: 'ContainerOverrides',
10433
+ cpu: 'Cpu',
10434
+ memory: 'Memory',
10435
+ };
10436
+ }
10437
+ static types() {
10438
+ return {
10439
+ containerOverrides: { 'type': 'array', 'itemType': ScaleWithAdjustmentRequestOverridesContainerOverrides },
10440
+ cpu: 'number',
10441
+ memory: 'number',
10442
+ };
10443
+ }
10444
+ }
10445
+ exports.ScaleWithAdjustmentRequestOverrides = ScaleWithAdjustmentRequestOverrides;
10348
10446
  class TagResourcesRequestTags extends $tea.Model {
10349
10447
  constructor(map) {
10350
10448
  super(map);
@@ -15050,12 +15148,17 @@ class Client extends openapi_client_1.default {
15050
15148
  * * 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.
15051
15149
  * 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.
15052
15150
  *
15053
- * @param request ScaleWithAdjustmentRequest
15151
+ * @param tmpReq ScaleWithAdjustmentRequest
15054
15152
  * @param runtime runtime options for this request RuntimeOptions
15055
15153
  * @return ScaleWithAdjustmentResponse
15056
15154
  */
15057
- async scaleWithAdjustmentWithOptions(request, runtime) {
15058
- tea_util_1.default.validateModel(request);
15155
+ async scaleWithAdjustmentWithOptions(tmpReq, runtime) {
15156
+ tea_util_1.default.validateModel(tmpReq);
15157
+ let request = new ScaleWithAdjustmentShrinkRequest({});
15158
+ openapi_util_1.default.convert(tmpReq, request);
15159
+ if (!tea_util_1.default.isUnset(tmpReq.overrides)) {
15160
+ request.overridesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.overrides, "Overrides", "json");
15161
+ }
15059
15162
  let query = {};
15060
15163
  if (!tea_util_1.default.isUnset(request.adjustmentType)) {
15061
15164
  query["AdjustmentType"] = request.adjustmentType;
@@ -15069,6 +15172,9 @@ class Client extends openapi_client_1.default {
15069
15172
  if (!tea_util_1.default.isUnset(request.minAdjustmentMagnitude)) {
15070
15173
  query["MinAdjustmentMagnitude"] = request.minAdjustmentMagnitude;
15071
15174
  }
15175
+ if (!tea_util_1.default.isUnset(request.overridesShrink)) {
15176
+ query["Overrides"] = request.overridesShrink;
15177
+ }
15072
15178
  if (!tea_util_1.default.isUnset(request.ownerId)) {
15073
15179
  query["OwnerId"] = request.ownerId;
15074
15180
  }