@alicloud/ess20220222 1.8.10 → 1.8.12
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 +153 -19
- package/dist/client.js +200 -15
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +286 -19
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -3171,6 +3171,35 @@ export class CreateScalingConfigurationRequestNetworkInterfaces extends $dara.Mo
|
|
|
3171
3171
|
}
|
|
3172
3172
|
}
|
|
3173
3173
|
|
|
3174
|
+
export class CreateScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
|
|
3175
|
+
privatePoolIds?: string[];
|
|
3176
|
+
strategy?: string;
|
|
3177
|
+
static names(): { [key: string]: string } {
|
|
3178
|
+
return {
|
|
3179
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
3180
|
+
strategy: 'Strategy',
|
|
3181
|
+
};
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
static types(): { [key: string]: any } {
|
|
3185
|
+
return {
|
|
3186
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
3187
|
+
strategy: 'string',
|
|
3188
|
+
};
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
validate() {
|
|
3192
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
3193
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
3194
|
+
}
|
|
3195
|
+
super.validate();
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
constructor(map?: { [key: string]: any }) {
|
|
3199
|
+
super(map);
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
|
|
3174
3203
|
export class CreateScalingConfigurationRequestSecurityOptions extends $dara.Model {
|
|
3175
3204
|
/**
|
|
3176
3205
|
* @remarks
|
|
@@ -4176,6 +4205,35 @@ export class CreateScalingConfigurationShrinkRequestNetworkInterfaces extends $d
|
|
|
4176
4205
|
}
|
|
4177
4206
|
}
|
|
4178
4207
|
|
|
4208
|
+
export class CreateScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
|
|
4209
|
+
privatePoolIds?: string[];
|
|
4210
|
+
strategy?: string;
|
|
4211
|
+
static names(): { [key: string]: string } {
|
|
4212
|
+
return {
|
|
4213
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
4214
|
+
strategy: 'Strategy',
|
|
4215
|
+
};
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
static types(): { [key: string]: any } {
|
|
4219
|
+
return {
|
|
4220
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
4221
|
+
strategy: 'string',
|
|
4222
|
+
};
|
|
4223
|
+
}
|
|
4224
|
+
|
|
4225
|
+
validate() {
|
|
4226
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
4227
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
4228
|
+
}
|
|
4229
|
+
super.validate();
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
constructor(map?: { [key: string]: any }) {
|
|
4233
|
+
super(map);
|
|
4234
|
+
}
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4179
4237
|
export class CreateScalingConfigurationShrinkRequestSecurityOptions extends $dara.Model {
|
|
4180
4238
|
/**
|
|
4181
4239
|
* @remarks
|
|
@@ -4335,6 +4393,18 @@ export class CreateScalingGroupRequestCapacityOptions extends $dara.Model {
|
|
|
4335
4393
|
* 20
|
|
4336
4394
|
*/
|
|
4337
4395
|
onDemandPercentageAboveBaseCapacity?: number;
|
|
4396
|
+
/**
|
|
4397
|
+
* @remarks
|
|
4398
|
+
* The cost comparison method. Valid values:
|
|
4399
|
+
*
|
|
4400
|
+
* * PricePerUnit: compares costs based on unit price divided by instance capacities (weights). The capacity of an instance in a scaling group is determined by the weight of the instance type used. If no weight is set, the capacity defaults to 1.
|
|
4401
|
+
* * PricePerVCpu: compares costs based on unit price divided by the number of vCPUs.
|
|
4402
|
+
*
|
|
4403
|
+
* Default value: PricePerUnit.
|
|
4404
|
+
*
|
|
4405
|
+
* @example
|
|
4406
|
+
* PricePerUnit
|
|
4407
|
+
*/
|
|
4338
4408
|
priceComparisonMode?: string;
|
|
4339
4409
|
/**
|
|
4340
4410
|
* @remarks
|
|
@@ -4723,7 +4793,7 @@ export class CreateScalingGroupRequestServerGroups extends $dara.Model {
|
|
|
4723
4793
|
export class CreateScalingGroupRequestTags extends $dara.Model {
|
|
4724
4794
|
/**
|
|
4725
4795
|
* @remarks
|
|
4726
|
-
* The tag key.
|
|
4796
|
+
* The tag key that you want to add to the scaling group.
|
|
4727
4797
|
*
|
|
4728
4798
|
* @example
|
|
4729
4799
|
* Department
|
|
@@ -4731,10 +4801,10 @@ export class CreateScalingGroupRequestTags extends $dara.Model {
|
|
|
4731
4801
|
key?: string;
|
|
4732
4802
|
/**
|
|
4733
4803
|
* @remarks
|
|
4734
|
-
* Specifies whether to propagate the tag that you want to add. Valid values:
|
|
4804
|
+
* Specifies whether to propagate the tag that you want to add to the scaling group. Valid values:
|
|
4735
4805
|
*
|
|
4736
|
-
* * true: propagates the tag to
|
|
4737
|
-
* * false: does not propagate the tag to any
|
|
4806
|
+
* * true: propagates the tag to only instances that are newly created.
|
|
4807
|
+
* * false: does not propagate the tag to any instances.
|
|
4738
4808
|
*
|
|
4739
4809
|
* Default value: false.
|
|
4740
4810
|
*
|
|
@@ -4744,7 +4814,7 @@ export class CreateScalingGroupRequestTags extends $dara.Model {
|
|
|
4744
4814
|
propagate?: boolean;
|
|
4745
4815
|
/**
|
|
4746
4816
|
* @remarks
|
|
4747
|
-
* The tag value.
|
|
4817
|
+
* The tag value that you want to add to the scaling group.
|
|
4748
4818
|
*
|
|
4749
4819
|
* @example
|
|
4750
4820
|
* Finance
|
|
@@ -10474,6 +10544,38 @@ export class DescribeElasticStrengthResponseBodyElasticStrengthModels extends $d
|
|
|
10474
10544
|
}
|
|
10475
10545
|
}
|
|
10476
10546
|
|
|
10547
|
+
export class DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth extends $dara.Model {
|
|
10548
|
+
adequacyScore?: number;
|
|
10549
|
+
healthScore?: number;
|
|
10550
|
+
hotScore?: number;
|
|
10551
|
+
supplyScore?: number;
|
|
10552
|
+
static names(): { [key: string]: string } {
|
|
10553
|
+
return {
|
|
10554
|
+
adequacyScore: 'AdequacyScore',
|
|
10555
|
+
healthScore: 'HealthScore',
|
|
10556
|
+
hotScore: 'HotScore',
|
|
10557
|
+
supplyScore: 'SupplyScore',
|
|
10558
|
+
};
|
|
10559
|
+
}
|
|
10560
|
+
|
|
10561
|
+
static types(): { [key: string]: any } {
|
|
10562
|
+
return {
|
|
10563
|
+
adequacyScore: 'number',
|
|
10564
|
+
healthScore: 'number',
|
|
10565
|
+
hotScore: 'number',
|
|
10566
|
+
supplyScore: 'number',
|
|
10567
|
+
};
|
|
10568
|
+
}
|
|
10569
|
+
|
|
10570
|
+
validate() {
|
|
10571
|
+
super.validate();
|
|
10572
|
+
}
|
|
10573
|
+
|
|
10574
|
+
constructor(map?: { [key: string]: any }) {
|
|
10575
|
+
super(map);
|
|
10576
|
+
}
|
|
10577
|
+
}
|
|
10578
|
+
|
|
10477
10579
|
export class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Model {
|
|
10478
10580
|
/**
|
|
10479
10581
|
* @remarks
|
|
@@ -10491,6 +10593,7 @@ export class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Mode
|
|
|
10491
10593
|
* ecs.c7t.xlarge
|
|
10492
10594
|
*/
|
|
10493
10595
|
instanceType?: string;
|
|
10596
|
+
inventoryHealth?: DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth;
|
|
10494
10597
|
/**
|
|
10495
10598
|
* @remarks
|
|
10496
10599
|
* The error message returned when the scaling strength is the weakest.
|
|
@@ -10499,6 +10602,7 @@ export class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Mode
|
|
|
10499
10602
|
* The instanceType does not support the image in the configuration.
|
|
10500
10603
|
*/
|
|
10501
10604
|
msg?: string;
|
|
10605
|
+
status?: string;
|
|
10502
10606
|
/**
|
|
10503
10607
|
* @remarks
|
|
10504
10608
|
* The scaling strength of the resource pool.
|
|
@@ -10524,7 +10628,9 @@ export class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Mode
|
|
|
10524
10628
|
return {
|
|
10525
10629
|
code: 'Code',
|
|
10526
10630
|
instanceType: 'InstanceType',
|
|
10631
|
+
inventoryHealth: 'InventoryHealth',
|
|
10527
10632
|
msg: 'Msg',
|
|
10633
|
+
status: 'Status',
|
|
10528
10634
|
strength: 'Strength',
|
|
10529
10635
|
vSwitchIds: 'VSwitchIds',
|
|
10530
10636
|
zoneId: 'ZoneId',
|
|
@@ -10535,7 +10641,9 @@ export class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Mode
|
|
|
10535
10641
|
return {
|
|
10536
10642
|
code: 'string',
|
|
10537
10643
|
instanceType: 'string',
|
|
10644
|
+
inventoryHealth: DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth,
|
|
10538
10645
|
msg: 'string',
|
|
10646
|
+
status: 'string',
|
|
10539
10647
|
strength: 'number',
|
|
10540
10648
|
vSwitchIds: { 'type': 'array', 'itemType': 'string' },
|
|
10541
10649
|
zoneId: 'string',
|
|
@@ -10543,6 +10651,9 @@ export class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Mode
|
|
|
10543
10651
|
}
|
|
10544
10652
|
|
|
10545
10653
|
validate() {
|
|
10654
|
+
if(this.inventoryHealth && typeof (this.inventoryHealth as any).validate === 'function') {
|
|
10655
|
+
(this.inventoryHealth as any).validate();
|
|
10656
|
+
}
|
|
10546
10657
|
if(Array.isArray(this.vSwitchIds)) {
|
|
10547
10658
|
$dara.Model.validateArray(this.vSwitchIds);
|
|
10548
10659
|
}
|
|
@@ -12211,6 +12322,35 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetwo
|
|
|
12211
12322
|
}
|
|
12212
12323
|
}
|
|
12213
12324
|
|
|
12325
|
+
export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions extends $dara.Model {
|
|
12326
|
+
privatePoolIds?: string[];
|
|
12327
|
+
strategy?: string;
|
|
12328
|
+
static names(): { [key: string]: string } {
|
|
12329
|
+
return {
|
|
12330
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
12331
|
+
strategy: 'Strategy',
|
|
12332
|
+
};
|
|
12333
|
+
}
|
|
12334
|
+
|
|
12335
|
+
static types(): { [key: string]: any } {
|
|
12336
|
+
return {
|
|
12337
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
12338
|
+
strategy: 'string',
|
|
12339
|
+
};
|
|
12340
|
+
}
|
|
12341
|
+
|
|
12342
|
+
validate() {
|
|
12343
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
12344
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
12345
|
+
}
|
|
12346
|
+
super.validate();
|
|
12347
|
+
}
|
|
12348
|
+
|
|
12349
|
+
constructor(map?: { [key: string]: any }) {
|
|
12350
|
+
super(map);
|
|
12351
|
+
}
|
|
12352
|
+
}
|
|
12353
|
+
|
|
12214
12354
|
export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsSchedulerOptions extends $dara.Model {
|
|
12215
12355
|
/**
|
|
12216
12356
|
* @remarks
|
|
@@ -12704,6 +12844,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
12704
12844
|
* rg-aekzn2ou7xo****
|
|
12705
12845
|
*/
|
|
12706
12846
|
resourceGroupId?: string;
|
|
12847
|
+
resourcePoolOptions?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions;
|
|
12707
12848
|
/**
|
|
12708
12849
|
* @remarks
|
|
12709
12850
|
* The ID of the scaling configuration.
|
|
@@ -13007,6 +13148,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13007
13148
|
privatePoolOptions_matchCriteria: 'PrivatePoolOptions.MatchCriteria',
|
|
13008
13149
|
ramRoleName: 'RamRoleName',
|
|
13009
13150
|
resourceGroupId: 'ResourceGroupId',
|
|
13151
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
13010
13152
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
13011
13153
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
13012
13154
|
scalingGroupId: 'ScalingGroupId',
|
|
@@ -13084,6 +13226,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13084
13226
|
privatePoolOptions_matchCriteria: 'string',
|
|
13085
13227
|
ramRoleName: 'string',
|
|
13086
13228
|
resourceGroupId: 'string',
|
|
13229
|
+
resourcePoolOptions: DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions,
|
|
13087
13230
|
scalingConfigurationId: 'string',
|
|
13088
13231
|
scalingConfigurationName: 'string',
|
|
13089
13232
|
scalingGroupId: 'string',
|
|
@@ -13134,6 +13277,9 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13134
13277
|
if(Array.isArray(this.networkInterfaces)) {
|
|
13135
13278
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
13136
13279
|
}
|
|
13280
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
13281
|
+
(this.resourcePoolOptions as any).validate();
|
|
13282
|
+
}
|
|
13137
13283
|
if(this.schedulerOptions && typeof (this.schedulerOptions as any).validate === 'function') {
|
|
13138
13284
|
(this.schedulerOptions as any).validate();
|
|
13139
13285
|
}
|
|
@@ -14360,6 +14506,19 @@ export class DescribeScalingGroupsResponseBodyScalingGroupsCapacityOptions exten
|
|
|
14360
14506
|
* 0
|
|
14361
14507
|
*/
|
|
14362
14508
|
onDemandPercentageAboveBaseCapacity?: number;
|
|
14509
|
+
/**
|
|
14510
|
+
* @remarks
|
|
14511
|
+
* Indicates how prices are compared. Valid values:
|
|
14512
|
+
*
|
|
14513
|
+
* * PricePerUnit: Prices are compared based on the price per instance capacity.
|
|
14514
|
+
*
|
|
14515
|
+
* Capacity is determined by the weights assigned to instance types in the scaling group. If no weight is specified, a default weight of 1 is used, meaning each instance is assigned a capacity of 1.
|
|
14516
|
+
*
|
|
14517
|
+
* * PricePerVCpu: Prices are compared based on the price per vCPU.
|
|
14518
|
+
*
|
|
14519
|
+
* @example
|
|
14520
|
+
* PricePerUnit
|
|
14521
|
+
*/
|
|
14363
14522
|
priceComparisonMode?: string;
|
|
14364
14523
|
/**
|
|
14365
14524
|
* @remarks
|
|
@@ -16148,7 +16307,7 @@ export class DescribeScalingRulesResponseBodyScalingRules extends $dara.Model {
|
|
|
16148
16307
|
estimatedInstanceWarmup?: number;
|
|
16149
16308
|
/**
|
|
16150
16309
|
* @remarks
|
|
16151
|
-
* The Hybrid Cloud Monitoring metrics.
|
|
16310
|
+
* The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
|
|
16152
16311
|
*/
|
|
16153
16312
|
hybridMetrics?: DescribeScalingRulesResponseBodyScalingRulesHybridMetrics[];
|
|
16154
16313
|
/**
|
|
@@ -19883,6 +20042,35 @@ export class ModifyScalingConfigurationRequestNetworkInterfaces extends $dara.Mo
|
|
|
19883
20042
|
}
|
|
19884
20043
|
}
|
|
19885
20044
|
|
|
20045
|
+
export class ModifyScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
|
|
20046
|
+
privatePoolIds?: string[];
|
|
20047
|
+
strategy?: string;
|
|
20048
|
+
static names(): { [key: string]: string } {
|
|
20049
|
+
return {
|
|
20050
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
20051
|
+
strategy: 'Strategy',
|
|
20052
|
+
};
|
|
20053
|
+
}
|
|
20054
|
+
|
|
20055
|
+
static types(): { [key: string]: any } {
|
|
20056
|
+
return {
|
|
20057
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
20058
|
+
strategy: 'string',
|
|
20059
|
+
};
|
|
20060
|
+
}
|
|
20061
|
+
|
|
20062
|
+
validate() {
|
|
20063
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
20064
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
20065
|
+
}
|
|
20066
|
+
super.validate();
|
|
20067
|
+
}
|
|
20068
|
+
|
|
20069
|
+
constructor(map?: { [key: string]: any }) {
|
|
20070
|
+
super(map);
|
|
20071
|
+
}
|
|
20072
|
+
}
|
|
20073
|
+
|
|
19886
20074
|
export class ModifyScalingConfigurationRequestSecurityOptions extends $dara.Model {
|
|
19887
20075
|
/**
|
|
19888
20076
|
* @remarks
|
|
@@ -20906,6 +21094,35 @@ export class ModifyScalingConfigurationShrinkRequestNetworkInterfaces extends $d
|
|
|
20906
21094
|
}
|
|
20907
21095
|
}
|
|
20908
21096
|
|
|
21097
|
+
export class ModifyScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
|
|
21098
|
+
privatePoolIds?: string[];
|
|
21099
|
+
strategy?: string;
|
|
21100
|
+
static names(): { [key: string]: string } {
|
|
21101
|
+
return {
|
|
21102
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
21103
|
+
strategy: 'Strategy',
|
|
21104
|
+
};
|
|
21105
|
+
}
|
|
21106
|
+
|
|
21107
|
+
static types(): { [key: string]: any } {
|
|
21108
|
+
return {
|
|
21109
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
21110
|
+
strategy: 'string',
|
|
21111
|
+
};
|
|
21112
|
+
}
|
|
21113
|
+
|
|
21114
|
+
validate() {
|
|
21115
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
21116
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
21117
|
+
}
|
|
21118
|
+
super.validate();
|
|
21119
|
+
}
|
|
21120
|
+
|
|
21121
|
+
constructor(map?: { [key: string]: any }) {
|
|
21122
|
+
super(map);
|
|
21123
|
+
}
|
|
21124
|
+
}
|
|
21125
|
+
|
|
20909
21126
|
export class ModifyScalingConfigurationShrinkRequestSecurityOptions extends $dara.Model {
|
|
20910
21127
|
/**
|
|
20911
21128
|
* @remarks
|
|
@@ -20982,7 +21199,7 @@ export class ModifyScalingConfigurationShrinkRequestSpotPriceLimits extends $dar
|
|
|
20982
21199
|
export class ModifyScalingGroupRequestCapacityOptions extends $dara.Model {
|
|
20983
21200
|
/**
|
|
20984
21201
|
* @remarks
|
|
20985
|
-
* Specifies whether to automatically create pay-as-you-go instances to
|
|
21202
|
+
* Specifies whether to automatically create pay-as-you-go ECS instances to reach the required number of ECS instances when preemptible ECS instances cannot be created due to high prices or insufficient inventory of resources. This parameter takes effect only if you set `MultiAZPolicy` in the `CreateScalingGroup` operation to `COST_OPTIMIZED`. Valid values:
|
|
20986
21203
|
*
|
|
20987
21204
|
* * true
|
|
20988
21205
|
* * false
|
|
@@ -20993,7 +21210,7 @@ export class ModifyScalingGroupRequestCapacityOptions extends $dara.Model {
|
|
|
20993
21210
|
compensateWithOnDemand?: boolean;
|
|
20994
21211
|
/**
|
|
20995
21212
|
* @remarks
|
|
20996
|
-
* The minimum number of pay-as-you-go instances
|
|
21213
|
+
* The minimum number of pay-as-you-go instances required in the scaling group. When the number of pay-as-you-go instances drops below the value of this parameter, Auto Scaling preferentially creates pay-as-you-go instances. Valid values: 0 to 1000.
|
|
20997
21214
|
*
|
|
20998
21215
|
* If you set `MultiAZPolicy` to `COMPOSABLE`, the default value is 0.
|
|
20999
21216
|
*
|
|
@@ -21003,7 +21220,7 @@ export class ModifyScalingGroupRequestCapacityOptions extends $dara.Model {
|
|
|
21003
21220
|
onDemandBaseCapacity?: number;
|
|
21004
21221
|
/**
|
|
21005
21222
|
* @remarks
|
|
21006
|
-
* The percentage of pay-as-you-go instances
|
|
21223
|
+
* The percentage of additional pay-as-you-go instances beyond the minimum required by `OnDemandBaseCapacity` in the scaling group. Valid values: 0 to 100
|
|
21007
21224
|
*
|
|
21008
21225
|
* If you set `MultiAZPolicy` to `COMPOSABLE`, the default value is 100.
|
|
21009
21226
|
*
|
|
@@ -21011,10 +21228,25 @@ export class ModifyScalingGroupRequestCapacityOptions extends $dara.Model {
|
|
|
21011
21228
|
* 20
|
|
21012
21229
|
*/
|
|
21013
21230
|
onDemandPercentageAboveBaseCapacity?: number;
|
|
21231
|
+
/**
|
|
21232
|
+
* @remarks
|
|
21233
|
+
* The price comparison mode. Valid values:
|
|
21234
|
+
*
|
|
21235
|
+
* * PricePerUnit: compares prices based on capacity.
|
|
21236
|
+
*
|
|
21237
|
+
* The capacity of instances in a scaling group is determined by the weights of the instance types used. If no weight is specified, the default weight is 1, which specifies that each instance in the scaling group has a capacity of 1.
|
|
21238
|
+
*
|
|
21239
|
+
* * PricePerVCpu: compares prices based on the price per vCPU.
|
|
21240
|
+
*
|
|
21241
|
+
* Default value: PricePerUnit.
|
|
21242
|
+
*
|
|
21243
|
+
* @example
|
|
21244
|
+
* PricePerUnit
|
|
21245
|
+
*/
|
|
21014
21246
|
priceComparisonMode?: string;
|
|
21015
21247
|
/**
|
|
21016
21248
|
* @remarks
|
|
21017
|
-
* Specifies whether to replace pay-as-you-go
|
|
21249
|
+
* Specifies whether to replace pay-as-you-go instances with preemptible instances. If you specify `CompensateWithOnDemand`, it may result in a higher percentage of pay-as-you-go instances compared to the value of `OnDemandPercentageAboveBaseCapacity`. In this case, Auto Scaling will try to deploy preemptible instances to replace the surplus pay-as-you-go instances. When `CompensateWithOnDemand` is specified, Auto Scaling creates pay-as-you-go instances if there are not enough preemptible instance types. To avoid keeping these pay-as-you-go ECS instances for long periods, Auto Scaling tries to replace them with preemptible instances as soon as enough of preemptible instance types become available. Valid values:
|
|
21018
21250
|
*
|
|
21019
21251
|
* * true
|
|
21020
21252
|
* * false
|
|
@@ -25303,6 +25535,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25303
25535
|
*/
|
|
25304
25536
|
resourceGroupId?: string;
|
|
25305
25537
|
resourceOwnerAccount?: string;
|
|
25538
|
+
resourcePoolOptions?: CreateScalingConfigurationRequestResourcePoolOptions;
|
|
25306
25539
|
/**
|
|
25307
25540
|
* @remarks
|
|
25308
25541
|
* The name of the scaling configuration. The name must be 2 to 64 characters in length and can contain letters, digits, underscores (_), hyphens (-), and periods (.). The name must start with a letter or a digit.
|
|
@@ -25504,6 +25737,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25504
25737
|
ramRoleName: 'RamRoleName',
|
|
25505
25738
|
resourceGroupId: 'ResourceGroupId',
|
|
25506
25739
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
25740
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
25507
25741
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
25508
25742
|
scalingGroupId: 'ScalingGroupId',
|
|
25509
25743
|
schedulerOptions: 'SchedulerOptions',
|
|
@@ -25569,6 +25803,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25569
25803
|
ramRoleName: 'string',
|
|
25570
25804
|
resourceGroupId: 'string',
|
|
25571
25805
|
resourceOwnerAccount: 'string',
|
|
25806
|
+
resourcePoolOptions: CreateScalingConfigurationRequestResourcePoolOptions,
|
|
25572
25807
|
scalingConfigurationName: 'string',
|
|
25573
25808
|
scalingGroupId: 'string',
|
|
25574
25809
|
schedulerOptions: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
@@ -25618,6 +25853,9 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25618
25853
|
if(Array.isArray(this.networkInterfaces)) {
|
|
25619
25854
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
25620
25855
|
}
|
|
25856
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
25857
|
+
(this.resourcePoolOptions as any).validate();
|
|
25858
|
+
}
|
|
25621
25859
|
if(this.schedulerOptions) {
|
|
25622
25860
|
$dara.Model.validateMap(this.schedulerOptions);
|
|
25623
25861
|
}
|
|
@@ -25988,6 +26226,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
25988
26226
|
*/
|
|
25989
26227
|
resourceGroupId?: string;
|
|
25990
26228
|
resourceOwnerAccount?: string;
|
|
26229
|
+
resourcePoolOptions?: CreateScalingConfigurationShrinkRequestResourcePoolOptions;
|
|
25991
26230
|
/**
|
|
25992
26231
|
* @remarks
|
|
25993
26232
|
* The name of the scaling configuration. The name must be 2 to 64 characters in length and can contain letters, digits, underscores (_), hyphens (-), and periods (.). The name must start with a letter or a digit.
|
|
@@ -26189,6 +26428,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26189
26428
|
ramRoleName: 'RamRoleName',
|
|
26190
26429
|
resourceGroupId: 'ResourceGroupId',
|
|
26191
26430
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
26431
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
26192
26432
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
26193
26433
|
scalingGroupId: 'ScalingGroupId',
|
|
26194
26434
|
schedulerOptionsShrink: 'SchedulerOptions',
|
|
@@ -26254,6 +26494,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26254
26494
|
ramRoleName: 'string',
|
|
26255
26495
|
resourceGroupId: 'string',
|
|
26256
26496
|
resourceOwnerAccount: 'string',
|
|
26497
|
+
resourcePoolOptions: CreateScalingConfigurationShrinkRequestResourcePoolOptions,
|
|
26257
26498
|
scalingConfigurationName: 'string',
|
|
26258
26499
|
scalingGroupId: 'string',
|
|
26259
26500
|
schedulerOptionsShrink: 'string',
|
|
@@ -26303,6 +26544,9 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26303
26544
|
if(Array.isArray(this.networkInterfaces)) {
|
|
26304
26545
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
26305
26546
|
}
|
|
26547
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
26548
|
+
(this.resourcePoolOptions as any).validate();
|
|
26549
|
+
}
|
|
26306
26550
|
if(Array.isArray(this.securityGroupIds)) {
|
|
26307
26551
|
$dara.Model.validateArray(this.securityGroupIds);
|
|
26308
26552
|
}
|
|
@@ -27151,7 +27395,7 @@ export class CreateScalingRuleRequest extends $dara.Model {
|
|
|
27151
27395
|
estimatedInstanceWarmup?: number;
|
|
27152
27396
|
/**
|
|
27153
27397
|
* @remarks
|
|
27154
|
-
* The Hybrid Cloud Monitoring metrics.
|
|
27398
|
+
* The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
|
|
27155
27399
|
*/
|
|
27156
27400
|
hybridMetrics?: CreateScalingRuleRequestHybridMetrics[];
|
|
27157
27401
|
/**
|
|
@@ -28918,7 +29162,7 @@ export class DescribeAlarmsRequest extends $dara.Model {
|
|
|
28918
29162
|
metricName?: string;
|
|
28919
29163
|
/**
|
|
28920
29164
|
* @remarks
|
|
28921
|
-
* The type
|
|
29165
|
+
* The metric type. Valid values:
|
|
28922
29166
|
*
|
|
28923
29167
|
* * system: system metrics of CloudMonitor
|
|
28924
29168
|
* * custom: custom metrics that are reported to CloudMonitor.
|
|
@@ -29999,6 +30243,7 @@ export class DescribeElasticStrengthRequest extends $dara.Model {
|
|
|
29999
30243
|
}
|
|
30000
30244
|
|
|
30001
30245
|
export class DescribeElasticStrengthResponseBody extends $dara.Model {
|
|
30246
|
+
elasticStrength?: string;
|
|
30002
30247
|
/**
|
|
30003
30248
|
* @remarks
|
|
30004
30249
|
* The scaling strength models.
|
|
@@ -30031,6 +30276,7 @@ export class DescribeElasticStrengthResponseBody extends $dara.Model {
|
|
|
30031
30276
|
totalStrength?: number;
|
|
30032
30277
|
static names(): { [key: string]: string } {
|
|
30033
30278
|
return {
|
|
30279
|
+
elasticStrength: 'ElasticStrength',
|
|
30034
30280
|
elasticStrengthModels: 'ElasticStrengthModels',
|
|
30035
30281
|
requestId: 'RequestId',
|
|
30036
30282
|
resourcePools: 'ResourcePools',
|
|
@@ -30040,6 +30286,7 @@ export class DescribeElasticStrengthResponseBody extends $dara.Model {
|
|
|
30040
30286
|
|
|
30041
30287
|
static types(): { [key: string]: any } {
|
|
30042
30288
|
return {
|
|
30289
|
+
elasticStrength: 'string',
|
|
30043
30290
|
elasticStrengthModels: { 'type': 'array', 'itemType': DescribeElasticStrengthResponseBodyElasticStrengthModels },
|
|
30044
30291
|
requestId: 'string',
|
|
30045
30292
|
resourcePools: { 'type': 'array', 'itemType': DescribeElasticStrengthResponseBodyResourcePools },
|
|
@@ -32566,9 +32813,9 @@ export class DescribeScalingGroupsRequest extends $dara.Model {
|
|
|
32566
32813
|
ownerId?: number;
|
|
32567
32814
|
/**
|
|
32568
32815
|
* @remarks
|
|
32569
|
-
* The page number.
|
|
32816
|
+
* The page number. Minimum value: 1.
|
|
32570
32817
|
*
|
|
32571
|
-
* Default value: 1
|
|
32818
|
+
* Default value: 1
|
|
32572
32819
|
*
|
|
32573
32820
|
* @example
|
|
32574
32821
|
* 1
|
|
@@ -38129,6 +38376,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38129
38376
|
*/
|
|
38130
38377
|
resourceGroupId?: string;
|
|
38131
38378
|
resourceOwnerAccount?: string;
|
|
38379
|
+
resourcePoolOptions?: ModifyScalingConfigurationRequestResourcePoolOptions;
|
|
38132
38380
|
/**
|
|
38133
38381
|
* @remarks
|
|
38134
38382
|
* The ID of the scaling configuration that you want to modify.
|
|
@@ -38314,6 +38562,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38314
38562
|
ramRoleName: 'RamRoleName',
|
|
38315
38563
|
resourceGroupId: 'ResourceGroupId',
|
|
38316
38564
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
38565
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
38317
38566
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
38318
38567
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
38319
38568
|
schedulerOptions: 'SchedulerOptions',
|
|
@@ -38377,6 +38626,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38377
38626
|
ramRoleName: 'string',
|
|
38378
38627
|
resourceGroupId: 'string',
|
|
38379
38628
|
resourceOwnerAccount: 'string',
|
|
38629
|
+
resourcePoolOptions: ModifyScalingConfigurationRequestResourcePoolOptions,
|
|
38380
38630
|
scalingConfigurationId: 'string',
|
|
38381
38631
|
scalingConfigurationName: 'string',
|
|
38382
38632
|
schedulerOptions: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
@@ -38425,6 +38675,9 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38425
38675
|
if(Array.isArray(this.networkInterfaces)) {
|
|
38426
38676
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
38427
38677
|
}
|
|
38678
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
38679
|
+
(this.resourcePoolOptions as any).validate();
|
|
38680
|
+
}
|
|
38428
38681
|
if(this.schedulerOptions) {
|
|
38429
38682
|
$dara.Model.validateMap(this.schedulerOptions);
|
|
38430
38683
|
}
|
|
@@ -38792,6 +39045,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
38792
39045
|
*/
|
|
38793
39046
|
resourceGroupId?: string;
|
|
38794
39047
|
resourceOwnerAccount?: string;
|
|
39048
|
+
resourcePoolOptions?: ModifyScalingConfigurationShrinkRequestResourcePoolOptions;
|
|
38795
39049
|
/**
|
|
38796
39050
|
* @remarks
|
|
38797
39051
|
* The ID of the scaling configuration that you want to modify.
|
|
@@ -38977,6 +39231,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
38977
39231
|
ramRoleName: 'RamRoleName',
|
|
38978
39232
|
resourceGroupId: 'ResourceGroupId',
|
|
38979
39233
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
39234
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
38980
39235
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
38981
39236
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
38982
39237
|
schedulerOptionsShrink: 'SchedulerOptions',
|
|
@@ -39040,6 +39295,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
39040
39295
|
ramRoleName: 'string',
|
|
39041
39296
|
resourceGroupId: 'string',
|
|
39042
39297
|
resourceOwnerAccount: 'string',
|
|
39298
|
+
resourcePoolOptions: ModifyScalingConfigurationShrinkRequestResourcePoolOptions,
|
|
39043
39299
|
scalingConfigurationId: 'string',
|
|
39044
39300
|
scalingConfigurationName: 'string',
|
|
39045
39301
|
schedulerOptionsShrink: 'string',
|
|
@@ -39088,6 +39344,9 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
39088
39344
|
if(Array.isArray(this.networkInterfaces)) {
|
|
39089
39345
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
39090
39346
|
}
|
|
39347
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
39348
|
+
(this.resourcePoolOptions as any).validate();
|
|
39349
|
+
}
|
|
39091
39350
|
if(Array.isArray(this.securityGroupIds)) {
|
|
39092
39351
|
$dara.Model.validateArray(this.securityGroupIds);
|
|
39093
39352
|
}
|
|
@@ -39728,7 +39987,7 @@ export class ModifyScalingRuleRequest extends $dara.Model {
|
|
|
39728
39987
|
estimatedInstanceWarmup?: number;
|
|
39729
39988
|
/**
|
|
39730
39989
|
* @remarks
|
|
39731
|
-
* The Hybrid Cloud Monitoring metrics.
|
|
39990
|
+
* The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
|
|
39732
39991
|
*/
|
|
39733
39992
|
hybridMetrics?: ModifyScalingRuleRequestHybridMetrics[];
|
|
39734
39993
|
/**
|
|
@@ -44761,6 +45020,10 @@ export default class Client extends OpenApi {
|
|
|
44761
45020
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
44762
45021
|
}
|
|
44763
45022
|
|
|
45023
|
+
if (!$dara.isNull(request.resourcePoolOptions)) {
|
|
45024
|
+
query["ResourcePoolOptions"] = request.resourcePoolOptions;
|
|
45025
|
+
}
|
|
45026
|
+
|
|
44764
45027
|
if (!$dara.isNull(request.scalingConfigurationName)) {
|
|
44765
45028
|
query["ScalingConfigurationName"] = request.scalingConfigurationName;
|
|
44766
45029
|
}
|
|
@@ -49226,8 +49489,8 @@ export default class Client extends OpenApi {
|
|
|
49226
49489
|
* Modifies a scaling configuration of the Elastic Container Instance type. When you call the ModifyEciScalingConfiguration operation, you can specify the ID, name, and instance properties of the scaling configuration whose information you want to modify. You can modify the instance restart policy, instance bidding policy, and elastic IP address (EIP) bandwidth.
|
|
49227
49490
|
*
|
|
49228
49491
|
* @remarks
|
|
49229
|
-
*
|
|
49230
|
-
* * You can call the [
|
|
49492
|
+
* To rename a scaling configuration in a scaling group, ensure the new name is unique within that group.
|
|
49493
|
+
* * You can call the [DescribeEciScalingConfigurations](https://help.aliyun.com/document_detail/459374.html) operation to check the modification result.
|
|
49231
49494
|
*
|
|
49232
49495
|
* @param request - ModifyEciScalingConfigurationRequest
|
|
49233
49496
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -49466,8 +49729,8 @@ export default class Client extends OpenApi {
|
|
|
49466
49729
|
* Modifies a scaling configuration of the Elastic Container Instance type. When you call the ModifyEciScalingConfiguration operation, you can specify the ID, name, and instance properties of the scaling configuration whose information you want to modify. You can modify the instance restart policy, instance bidding policy, and elastic IP address (EIP) bandwidth.
|
|
49467
49730
|
*
|
|
49468
49731
|
* @remarks
|
|
49469
|
-
*
|
|
49470
|
-
* * You can call the [
|
|
49732
|
+
* To rename a scaling configuration in a scaling group, ensure the new name is unique within that group.
|
|
49733
|
+
* * You can call the [DescribeEciScalingConfigurations](https://help.aliyun.com/document_detail/459374.html) operation to check the modification result.
|
|
49471
49734
|
*
|
|
49472
49735
|
* @param request - ModifyEciScalingConfigurationRequest
|
|
49473
49736
|
* @returns ModifyEciScalingConfigurationResponse
|
|
@@ -49894,6 +50157,10 @@ export default class Client extends OpenApi {
|
|
|
49894
50157
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
49895
50158
|
}
|
|
49896
50159
|
|
|
50160
|
+
if (!$dara.isNull(request.resourcePoolOptions)) {
|
|
50161
|
+
query["ResourcePoolOptions"] = request.resourcePoolOptions;
|
|
50162
|
+
}
|
|
50163
|
+
|
|
49897
50164
|
if (!$dara.isNull(request.scalingConfigurationId)) {
|
|
49898
50165
|
query["ScalingConfigurationId"] = request.scalingConfigurationId;
|
|
49899
50166
|
}
|