@alicloud/ess20220222 1.8.11 → 1.8.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 +155 -26
- package/dist/client.js +174 -15
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +272 -26
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -3171,6 +3171,39 @@ export class CreateScalingConfigurationRequestNetworkInterfaces extends $dara.Mo
|
|
|
3171
3171
|
}
|
|
3172
3172
|
}
|
|
3173
3173
|
|
|
3174
|
+
export class CreateScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
|
|
3175
|
+
privatePoolIds?: string[];
|
|
3176
|
+
/**
|
|
3177
|
+
* @example
|
|
3178
|
+
* PrivatePoolFirst
|
|
3179
|
+
*/
|
|
3180
|
+
strategy?: string;
|
|
3181
|
+
static names(): { [key: string]: string } {
|
|
3182
|
+
return {
|
|
3183
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
3184
|
+
strategy: 'Strategy',
|
|
3185
|
+
};
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
static types(): { [key: string]: any } {
|
|
3189
|
+
return {
|
|
3190
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
3191
|
+
strategy: 'string',
|
|
3192
|
+
};
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
validate() {
|
|
3196
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
3197
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
3198
|
+
}
|
|
3199
|
+
super.validate();
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
constructor(map?: { [key: string]: any }) {
|
|
3203
|
+
super(map);
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3174
3207
|
export class CreateScalingConfigurationRequestSecurityOptions extends $dara.Model {
|
|
3175
3208
|
/**
|
|
3176
3209
|
* @remarks
|
|
@@ -4176,6 +4209,39 @@ export class CreateScalingConfigurationShrinkRequestNetworkInterfaces extends $d
|
|
|
4176
4209
|
}
|
|
4177
4210
|
}
|
|
4178
4211
|
|
|
4212
|
+
export class CreateScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
|
|
4213
|
+
privatePoolIds?: string[];
|
|
4214
|
+
/**
|
|
4215
|
+
* @example
|
|
4216
|
+
* PrivatePoolFirst
|
|
4217
|
+
*/
|
|
4218
|
+
strategy?: string;
|
|
4219
|
+
static names(): { [key: string]: string } {
|
|
4220
|
+
return {
|
|
4221
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
4222
|
+
strategy: 'Strategy',
|
|
4223
|
+
};
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
static types(): { [key: string]: any } {
|
|
4227
|
+
return {
|
|
4228
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
4229
|
+
strategy: 'string',
|
|
4230
|
+
};
|
|
4231
|
+
}
|
|
4232
|
+
|
|
4233
|
+
validate() {
|
|
4234
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
4235
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
4236
|
+
}
|
|
4237
|
+
super.validate();
|
|
4238
|
+
}
|
|
4239
|
+
|
|
4240
|
+
constructor(map?: { [key: string]: any }) {
|
|
4241
|
+
super(map);
|
|
4242
|
+
}
|
|
4243
|
+
}
|
|
4244
|
+
|
|
4179
4245
|
export class CreateScalingConfigurationShrinkRequestSecurityOptions extends $dara.Model {
|
|
4180
4246
|
/**
|
|
4181
4247
|
* @remarks
|
|
@@ -4336,6 +4402,14 @@ export class CreateScalingGroupRequestCapacityOptions extends $dara.Model {
|
|
|
4336
4402
|
*/
|
|
4337
4403
|
onDemandPercentageAboveBaseCapacity?: number;
|
|
4338
4404
|
/**
|
|
4405
|
+
* @remarks
|
|
4406
|
+
* The cost comparison method. Valid values:
|
|
4407
|
+
*
|
|
4408
|
+
* * 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.
|
|
4409
|
+
* * PricePerVCpu: compares costs based on unit price divided by the number of vCPUs.
|
|
4410
|
+
*
|
|
4411
|
+
* Default value: PricePerUnit.
|
|
4412
|
+
*
|
|
4339
4413
|
* @example
|
|
4340
4414
|
* PricePerUnit
|
|
4341
4415
|
*/
|
|
@@ -10479,9 +10553,25 @@ export class DescribeElasticStrengthResponseBodyElasticStrengthModels extends $d
|
|
|
10479
10553
|
}
|
|
10480
10554
|
|
|
10481
10555
|
export class DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth extends $dara.Model {
|
|
10556
|
+
/**
|
|
10557
|
+
* @example
|
|
10558
|
+
* 3
|
|
10559
|
+
*/
|
|
10482
10560
|
adequacyScore?: number;
|
|
10561
|
+
/**
|
|
10562
|
+
* @example
|
|
10563
|
+
* 3
|
|
10564
|
+
*/
|
|
10483
10565
|
healthScore?: number;
|
|
10566
|
+
/**
|
|
10567
|
+
* @example
|
|
10568
|
+
* 3
|
|
10569
|
+
*/
|
|
10484
10570
|
hotScore?: number;
|
|
10571
|
+
/**
|
|
10572
|
+
* @example
|
|
10573
|
+
* 3
|
|
10574
|
+
*/
|
|
10485
10575
|
supplyScore?: number;
|
|
10486
10576
|
static names(): { [key: string]: string } {
|
|
10487
10577
|
return {
|
|
@@ -10536,6 +10626,10 @@ export class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Mode
|
|
|
10536
10626
|
* The instanceType does not support the image in the configuration.
|
|
10537
10627
|
*/
|
|
10538
10628
|
msg?: string;
|
|
10629
|
+
/**
|
|
10630
|
+
* @example
|
|
10631
|
+
* Available
|
|
10632
|
+
*/
|
|
10539
10633
|
status?: string;
|
|
10540
10634
|
/**
|
|
10541
10635
|
* @remarks
|
|
@@ -12256,6 +12350,39 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetwo
|
|
|
12256
12350
|
}
|
|
12257
12351
|
}
|
|
12258
12352
|
|
|
12353
|
+
export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions extends $dara.Model {
|
|
12354
|
+
privatePoolIds?: string[];
|
|
12355
|
+
/**
|
|
12356
|
+
* @example
|
|
12357
|
+
* PrivatePoolFirst
|
|
12358
|
+
*/
|
|
12359
|
+
strategy?: string;
|
|
12360
|
+
static names(): { [key: string]: string } {
|
|
12361
|
+
return {
|
|
12362
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
12363
|
+
strategy: 'Strategy',
|
|
12364
|
+
};
|
|
12365
|
+
}
|
|
12366
|
+
|
|
12367
|
+
static types(): { [key: string]: any } {
|
|
12368
|
+
return {
|
|
12369
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
12370
|
+
strategy: 'string',
|
|
12371
|
+
};
|
|
12372
|
+
}
|
|
12373
|
+
|
|
12374
|
+
validate() {
|
|
12375
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
12376
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
12377
|
+
}
|
|
12378
|
+
super.validate();
|
|
12379
|
+
}
|
|
12380
|
+
|
|
12381
|
+
constructor(map?: { [key: string]: any }) {
|
|
12382
|
+
super(map);
|
|
12383
|
+
}
|
|
12384
|
+
}
|
|
12385
|
+
|
|
12259
12386
|
export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsSchedulerOptions extends $dara.Model {
|
|
12260
12387
|
/**
|
|
12261
12388
|
* @remarks
|
|
@@ -12749,6 +12876,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
12749
12876
|
* rg-aekzn2ou7xo****
|
|
12750
12877
|
*/
|
|
12751
12878
|
resourceGroupId?: string;
|
|
12879
|
+
resourcePoolOptions?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions;
|
|
12752
12880
|
/**
|
|
12753
12881
|
* @remarks
|
|
12754
12882
|
* The ID of the scaling configuration.
|
|
@@ -13052,6 +13180,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13052
13180
|
privatePoolOptions_matchCriteria: 'PrivatePoolOptions.MatchCriteria',
|
|
13053
13181
|
ramRoleName: 'RamRoleName',
|
|
13054
13182
|
resourceGroupId: 'ResourceGroupId',
|
|
13183
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
13055
13184
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
13056
13185
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
13057
13186
|
scalingGroupId: 'ScalingGroupId',
|
|
@@ -13129,6 +13258,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13129
13258
|
privatePoolOptions_matchCriteria: 'string',
|
|
13130
13259
|
ramRoleName: 'string',
|
|
13131
13260
|
resourceGroupId: 'string',
|
|
13261
|
+
resourcePoolOptions: DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions,
|
|
13132
13262
|
scalingConfigurationId: 'string',
|
|
13133
13263
|
scalingConfigurationName: 'string',
|
|
13134
13264
|
scalingGroupId: 'string',
|
|
@@ -13179,6 +13309,9 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13179
13309
|
if(Array.isArray(this.networkInterfaces)) {
|
|
13180
13310
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
13181
13311
|
}
|
|
13312
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
13313
|
+
(this.resourcePoolOptions as any).validate();
|
|
13314
|
+
}
|
|
13182
13315
|
if(this.schedulerOptions && typeof (this.schedulerOptions as any).validate === 'function') {
|
|
13183
13316
|
(this.schedulerOptions as any).validate();
|
|
13184
13317
|
}
|
|
@@ -14407,10 +14540,13 @@ export class DescribeScalingGroupsResponseBodyScalingGroupsCapacityOptions exten
|
|
|
14407
14540
|
onDemandPercentageAboveBaseCapacity?: number;
|
|
14408
14541
|
/**
|
|
14409
14542
|
* @remarks
|
|
14410
|
-
*
|
|
14543
|
+
* Indicates how prices are compared. Valid values:
|
|
14411
14544
|
*
|
|
14412
|
-
* * PricePerUnit:
|
|
14413
|
-
*
|
|
14545
|
+
* * PricePerUnit: Prices are compared based on the price per instance capacity.
|
|
14546
|
+
*
|
|
14547
|
+
* 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.
|
|
14548
|
+
*
|
|
14549
|
+
* * PricePerVCpu: Prices are compared based on the price per vCPU.
|
|
14414
14550
|
*
|
|
14415
14551
|
* @example
|
|
14416
14552
|
* PricePerUnit
|
|
@@ -16203,7 +16339,7 @@ export class DescribeScalingRulesResponseBodyScalingRules extends $dara.Model {
|
|
|
16203
16339
|
estimatedInstanceWarmup?: number;
|
|
16204
16340
|
/**
|
|
16205
16341
|
* @remarks
|
|
16206
|
-
* The Hybrid Cloud Monitoring metrics.
|
|
16342
|
+
* The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
|
|
16207
16343
|
*/
|
|
16208
16344
|
hybridMetrics?: DescribeScalingRulesResponseBodyScalingRulesHybridMetrics[];
|
|
16209
16345
|
/**
|
|
@@ -19938,6 +20074,39 @@ export class ModifyScalingConfigurationRequestNetworkInterfaces extends $dara.Mo
|
|
|
19938
20074
|
}
|
|
19939
20075
|
}
|
|
19940
20076
|
|
|
20077
|
+
export class ModifyScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
|
|
20078
|
+
privatePoolIds?: string[];
|
|
20079
|
+
/**
|
|
20080
|
+
* @example
|
|
20081
|
+
* PrivatePoolFirst
|
|
20082
|
+
*/
|
|
20083
|
+
strategy?: string;
|
|
20084
|
+
static names(): { [key: string]: string } {
|
|
20085
|
+
return {
|
|
20086
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
20087
|
+
strategy: 'Strategy',
|
|
20088
|
+
};
|
|
20089
|
+
}
|
|
20090
|
+
|
|
20091
|
+
static types(): { [key: string]: any } {
|
|
20092
|
+
return {
|
|
20093
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
20094
|
+
strategy: 'string',
|
|
20095
|
+
};
|
|
20096
|
+
}
|
|
20097
|
+
|
|
20098
|
+
validate() {
|
|
20099
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
20100
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
20101
|
+
}
|
|
20102
|
+
super.validate();
|
|
20103
|
+
}
|
|
20104
|
+
|
|
20105
|
+
constructor(map?: { [key: string]: any }) {
|
|
20106
|
+
super(map);
|
|
20107
|
+
}
|
|
20108
|
+
}
|
|
20109
|
+
|
|
19941
20110
|
export class ModifyScalingConfigurationRequestSecurityOptions extends $dara.Model {
|
|
19942
20111
|
/**
|
|
19943
20112
|
* @remarks
|
|
@@ -20961,6 +21130,39 @@ export class ModifyScalingConfigurationShrinkRequestNetworkInterfaces extends $d
|
|
|
20961
21130
|
}
|
|
20962
21131
|
}
|
|
20963
21132
|
|
|
21133
|
+
export class ModifyScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
|
|
21134
|
+
privatePoolIds?: string[];
|
|
21135
|
+
/**
|
|
21136
|
+
* @example
|
|
21137
|
+
* PrivatePoolFirst
|
|
21138
|
+
*/
|
|
21139
|
+
strategy?: string;
|
|
21140
|
+
static names(): { [key: string]: string } {
|
|
21141
|
+
return {
|
|
21142
|
+
privatePoolIds: 'PrivatePoolIds',
|
|
21143
|
+
strategy: 'Strategy',
|
|
21144
|
+
};
|
|
21145
|
+
}
|
|
21146
|
+
|
|
21147
|
+
static types(): { [key: string]: any } {
|
|
21148
|
+
return {
|
|
21149
|
+
privatePoolIds: { 'type': 'array', 'itemType': 'string' },
|
|
21150
|
+
strategy: 'string',
|
|
21151
|
+
};
|
|
21152
|
+
}
|
|
21153
|
+
|
|
21154
|
+
validate() {
|
|
21155
|
+
if(Array.isArray(this.privatePoolIds)) {
|
|
21156
|
+
$dara.Model.validateArray(this.privatePoolIds);
|
|
21157
|
+
}
|
|
21158
|
+
super.validate();
|
|
21159
|
+
}
|
|
21160
|
+
|
|
21161
|
+
constructor(map?: { [key: string]: any }) {
|
|
21162
|
+
super(map);
|
|
21163
|
+
}
|
|
21164
|
+
}
|
|
21165
|
+
|
|
20964
21166
|
export class ModifyScalingConfigurationShrinkRequestSecurityOptions extends $dara.Model {
|
|
20965
21167
|
/**
|
|
20966
21168
|
* @remarks
|
|
@@ -22065,7 +22267,7 @@ export class AttachAlbServerGroupsRequest extends $dara.Model {
|
|
|
22065
22267
|
* @remarks
|
|
22066
22268
|
* Specifies whether to add the existing Elastic Compute Service (ECS) instances or elastic container instances in the scaling group to the new ALB server group. Valid values:
|
|
22067
22269
|
*
|
|
22068
|
-
* * true: adds the existing ECS instances or elastic container instances in the scaling group to the new ALB server group
|
|
22270
|
+
* * true: adds the existing ECS instances or elastic container instances in the scaling group to the new ALB server group and returns the value of `ScalingActivityId`. You can query the value of ScalingActivityId to check whether the existing ECS instances are added to the ALB server group.
|
|
22069
22271
|
* * false: does not add the existing ECS instances or elastic container instances in the scaling group to the new ALB server group.
|
|
22070
22272
|
*
|
|
22071
22273
|
* Default value: false.
|
|
@@ -22244,7 +22446,7 @@ export class AttachDBInstancesRequest extends $dara.Model {
|
|
|
22244
22446
|
DBInstances?: string[];
|
|
22245
22447
|
/**
|
|
22246
22448
|
* @remarks
|
|
22247
|
-
* Specifies whether to add the private IP addresses of all ECS instances in the scaling group to the IP address whitelist of
|
|
22449
|
+
* Specifies whether to add the private IP addresses of all ECS instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance that you want to attach to the scaling group. Valid values:
|
|
22248
22450
|
*
|
|
22249
22451
|
* * true
|
|
22250
22452
|
* * false
|
|
@@ -23723,11 +23925,11 @@ export class CreateAlarmRequest extends $dara.Model {
|
|
|
23723
23925
|
scalingGroupId?: string;
|
|
23724
23926
|
/**
|
|
23725
23927
|
* @remarks
|
|
23726
|
-
* The method
|
|
23928
|
+
* The statistical method of the metric data. Valid values:
|
|
23727
23929
|
*
|
|
23728
|
-
* * Average: the average value.
|
|
23729
|
-
* * Minimum: the minimum value.
|
|
23730
|
-
* * Maximum: the maximum value.
|
|
23930
|
+
* * Average: calculates the average value of the metric data.
|
|
23931
|
+
* * Minimum: calculates the minimum value of the metric data.
|
|
23932
|
+
* * Maximum: calculates the maximum value of the metric data.
|
|
23731
23933
|
*
|
|
23732
23934
|
* Default value: Average.
|
|
23733
23935
|
*
|
|
@@ -24307,7 +24509,7 @@ export class CreateEciScalingConfigurationRequest extends $dara.Model {
|
|
|
24307
24509
|
ownerId?: number;
|
|
24308
24510
|
/**
|
|
24309
24511
|
* @remarks
|
|
24310
|
-
* The name of the instance Resource Access Management (RAM) role. Elastic container instances and Elastic Compute Service (ECS) instances can share the same RAM role. For more information, see [
|
|
24512
|
+
* The name of the instance Resource Access Management (RAM) role. Elastic container instances and Elastic Compute Service (ECS) instances can share the same RAM role. For more information, see [RAM roles](https://help.aliyun.com/document_detail/61175.html).
|
|
24311
24513
|
*
|
|
24312
24514
|
* @example
|
|
24313
24515
|
* RamTestRole
|
|
@@ -25373,6 +25575,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25373
25575
|
*/
|
|
25374
25576
|
resourceGroupId?: string;
|
|
25375
25577
|
resourceOwnerAccount?: string;
|
|
25578
|
+
resourcePoolOptions?: CreateScalingConfigurationRequestResourcePoolOptions;
|
|
25376
25579
|
/**
|
|
25377
25580
|
* @remarks
|
|
25378
25581
|
* 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.
|
|
@@ -25574,6 +25777,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25574
25777
|
ramRoleName: 'RamRoleName',
|
|
25575
25778
|
resourceGroupId: 'ResourceGroupId',
|
|
25576
25779
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
25780
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
25577
25781
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
25578
25782
|
scalingGroupId: 'ScalingGroupId',
|
|
25579
25783
|
schedulerOptions: 'SchedulerOptions',
|
|
@@ -25639,6 +25843,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25639
25843
|
ramRoleName: 'string',
|
|
25640
25844
|
resourceGroupId: 'string',
|
|
25641
25845
|
resourceOwnerAccount: 'string',
|
|
25846
|
+
resourcePoolOptions: CreateScalingConfigurationRequestResourcePoolOptions,
|
|
25642
25847
|
scalingConfigurationName: 'string',
|
|
25643
25848
|
scalingGroupId: 'string',
|
|
25644
25849
|
schedulerOptions: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
@@ -25688,6 +25893,9 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25688
25893
|
if(Array.isArray(this.networkInterfaces)) {
|
|
25689
25894
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
25690
25895
|
}
|
|
25896
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
25897
|
+
(this.resourcePoolOptions as any).validate();
|
|
25898
|
+
}
|
|
25691
25899
|
if(this.schedulerOptions) {
|
|
25692
25900
|
$dara.Model.validateMap(this.schedulerOptions);
|
|
25693
25901
|
}
|
|
@@ -26058,6 +26266,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26058
26266
|
*/
|
|
26059
26267
|
resourceGroupId?: string;
|
|
26060
26268
|
resourceOwnerAccount?: string;
|
|
26269
|
+
resourcePoolOptions?: CreateScalingConfigurationShrinkRequestResourcePoolOptions;
|
|
26061
26270
|
/**
|
|
26062
26271
|
* @remarks
|
|
26063
26272
|
* 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.
|
|
@@ -26259,6 +26468,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26259
26468
|
ramRoleName: 'RamRoleName',
|
|
26260
26469
|
resourceGroupId: 'ResourceGroupId',
|
|
26261
26470
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
26471
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
26262
26472
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
26263
26473
|
scalingGroupId: 'ScalingGroupId',
|
|
26264
26474
|
schedulerOptionsShrink: 'SchedulerOptions',
|
|
@@ -26324,6 +26534,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26324
26534
|
ramRoleName: 'string',
|
|
26325
26535
|
resourceGroupId: 'string',
|
|
26326
26536
|
resourceOwnerAccount: 'string',
|
|
26537
|
+
resourcePoolOptions: CreateScalingConfigurationShrinkRequestResourcePoolOptions,
|
|
26327
26538
|
scalingConfigurationName: 'string',
|
|
26328
26539
|
scalingGroupId: 'string',
|
|
26329
26540
|
schedulerOptionsShrink: 'string',
|
|
@@ -26373,6 +26584,9 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26373
26584
|
if(Array.isArray(this.networkInterfaces)) {
|
|
26374
26585
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
26375
26586
|
}
|
|
26587
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
26588
|
+
(this.resourcePoolOptions as any).validate();
|
|
26589
|
+
}
|
|
26376
26590
|
if(Array.isArray(this.securityGroupIds)) {
|
|
26377
26591
|
$dara.Model.validateArray(this.securityGroupIds);
|
|
26378
26592
|
}
|
|
@@ -27221,7 +27435,7 @@ export class CreateScalingRuleRequest extends $dara.Model {
|
|
|
27221
27435
|
estimatedInstanceWarmup?: number;
|
|
27222
27436
|
/**
|
|
27223
27437
|
* @remarks
|
|
27224
|
-
* The Hybrid Cloud Monitoring metrics.
|
|
27438
|
+
* The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
|
|
27225
27439
|
*/
|
|
27226
27440
|
hybridMetrics?: CreateScalingRuleRequestHybridMetrics[];
|
|
27227
27441
|
/**
|
|
@@ -27398,7 +27612,7 @@ export class CreateScalingRuleRequest extends $dara.Model {
|
|
|
27398
27612
|
* * SimpleScalingRule: a simple scaling rule. After you execute a simple scaling rule, Auto Scaling adjusts the number of ECS instances or elastic container instances in the scaling group based on the values of AdjustmentType and AdjustmentValue.
|
|
27399
27613
|
* * TargetTrackingScalingRule: a target tracking scaling rule. After you execute a target tracking scaling rule, Auto Scaling dynamically calculates the number of ECS instances or elastic container instances to scale based on the predefined metric (MetricName) and attempts to maintain the metric value close to the expected value (TargetValue).
|
|
27400
27614
|
* * StepScalingRule: a step scaling rule. After you execute a step scaling rule, Auto Scaling scales instances step by step based on the predefined thresholds and metric values.
|
|
27401
|
-
* * PredictiveScalingRule: a predictive scaling rule. After you execute a predictive scaling rule, Auto Scaling uses machine learning to analyze historical monitoring data of the scaling group and predicts the future values of metrics. In addition, Auto Scaling automatically creates scheduled tasks to
|
|
27615
|
+
* * PredictiveScalingRule: a predictive scaling rule. After you execute a predictive scaling rule, Auto Scaling uses machine learning to analyze historical monitoring data of the scaling group and predicts the future values of metrics. In addition, Auto Scaling automatically creates scheduled tasks to adjust the boundary values for the scaling group.
|
|
27402
27616
|
*
|
|
27403
27617
|
* Default value: SimpleScalingRule.
|
|
27404
27618
|
*
|
|
@@ -28988,7 +29202,7 @@ export class DescribeAlarmsRequest extends $dara.Model {
|
|
|
28988
29202
|
metricName?: string;
|
|
28989
29203
|
/**
|
|
28990
29204
|
* @remarks
|
|
28991
|
-
* The type
|
|
29205
|
+
* The metric type. Valid values:
|
|
28992
29206
|
*
|
|
28993
29207
|
* * system: system metrics of CloudMonitor
|
|
28994
29208
|
* * custom: custom metrics that are reported to CloudMonitor.
|
|
@@ -29677,7 +29891,7 @@ export class DescribeEciScalingConfigurationsRequest extends $dara.Model {
|
|
|
29677
29891
|
ownerId?: number;
|
|
29678
29892
|
/**
|
|
29679
29893
|
* @remarks
|
|
29680
|
-
* The
|
|
29894
|
+
* The page number. Pages start from page 1.
|
|
29681
29895
|
*
|
|
29682
29896
|
* Default value: 1.
|
|
29683
29897
|
*
|
|
@@ -29687,7 +29901,7 @@ export class DescribeEciScalingConfigurationsRequest extends $dara.Model {
|
|
|
29687
29901
|
pageNumber?: number;
|
|
29688
29902
|
/**
|
|
29689
29903
|
* @remarks
|
|
29690
|
-
* The number of entries
|
|
29904
|
+
* The number of entries per page. Maximum value: 50.
|
|
29691
29905
|
*
|
|
29692
29906
|
* Default value: 10.
|
|
29693
29907
|
*
|
|
@@ -30069,6 +30283,10 @@ export class DescribeElasticStrengthRequest extends $dara.Model {
|
|
|
30069
30283
|
}
|
|
30070
30284
|
|
|
30071
30285
|
export class DescribeElasticStrengthResponseBody extends $dara.Model {
|
|
30286
|
+
/**
|
|
30287
|
+
* @example
|
|
30288
|
+
* Strong
|
|
30289
|
+
*/
|
|
30072
30290
|
elasticStrength?: string;
|
|
30073
30291
|
/**
|
|
30074
30292
|
* @remarks
|
|
@@ -32641,7 +32859,7 @@ export class DescribeScalingGroupsRequest extends $dara.Model {
|
|
|
32641
32859
|
* @remarks
|
|
32642
32860
|
* The page number. Minimum value: 1.
|
|
32643
32861
|
*
|
|
32644
|
-
* Default value: 1
|
|
32862
|
+
* Default value: 1
|
|
32645
32863
|
*
|
|
32646
32864
|
* @example
|
|
32647
32865
|
* 1
|
|
@@ -34229,7 +34447,7 @@ export class DetachLoadBalancersRequest extends $dara.Model {
|
|
|
34229
34447
|
clientToken?: string;
|
|
34230
34448
|
/**
|
|
34231
34449
|
* @remarks
|
|
34232
|
-
* Specifies whether to remove Elastic Compute Service (ECS) instances in the scaling group from the backend server groups of the
|
|
34450
|
+
* Specifies whether to remove Elastic Compute Service (ECS) instances in the scaling group from the backend server groups of the load balancer. Valid values:
|
|
34233
34451
|
*
|
|
34234
34452
|
* * true
|
|
34235
34453
|
* * false
|
|
@@ -36355,7 +36573,7 @@ export class ModifyAlarmRequest extends $dara.Model {
|
|
|
36355
36573
|
* @remarks
|
|
36356
36574
|
* The metric type. Valid values:
|
|
36357
36575
|
*
|
|
36358
|
-
* * system: system metrics of CloudMonitor
|
|
36576
|
+
* * system: system metrics of CloudMonitor.
|
|
36359
36577
|
* * custom: custom metrics that are reported to CloudMonitor.
|
|
36360
36578
|
*
|
|
36361
36579
|
* @example
|
|
@@ -37350,12 +37568,11 @@ export class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
37350
37568
|
* @remarks
|
|
37351
37569
|
* The ID of the ECS instance.
|
|
37352
37570
|
*
|
|
37353
|
-
* This parameter is required.
|
|
37354
|
-
*
|
|
37355
37571
|
* @example
|
|
37356
37572
|
* i-bp109k5j3dum1ce6****
|
|
37357
37573
|
*/
|
|
37358
37574
|
instanceId?: string;
|
|
37575
|
+
instanceIds?: string[];
|
|
37359
37576
|
ownerId?: number;
|
|
37360
37577
|
/**
|
|
37361
37578
|
* @remarks
|
|
@@ -37382,6 +37599,7 @@ export class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
37382
37599
|
return {
|
|
37383
37600
|
entrusted: 'Entrusted',
|
|
37384
37601
|
instanceId: 'InstanceId',
|
|
37602
|
+
instanceIds: 'InstanceIds',
|
|
37385
37603
|
ownerId: 'OwnerId',
|
|
37386
37604
|
regionId: 'RegionId',
|
|
37387
37605
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
@@ -37393,6 +37611,7 @@ export class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
37393
37611
|
return {
|
|
37394
37612
|
entrusted: 'boolean',
|
|
37395
37613
|
instanceId: 'string',
|
|
37614
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
37396
37615
|
ownerId: 'number',
|
|
37397
37616
|
regionId: 'string',
|
|
37398
37617
|
resourceOwnerAccount: 'string',
|
|
@@ -37401,6 +37620,9 @@ export class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
37401
37620
|
}
|
|
37402
37621
|
|
|
37403
37622
|
validate() {
|
|
37623
|
+
if(Array.isArray(this.instanceIds)) {
|
|
37624
|
+
$dara.Model.validateArray(this.instanceIds);
|
|
37625
|
+
}
|
|
37404
37626
|
super.validate();
|
|
37405
37627
|
}
|
|
37406
37628
|
|
|
@@ -38202,6 +38424,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38202
38424
|
*/
|
|
38203
38425
|
resourceGroupId?: string;
|
|
38204
38426
|
resourceOwnerAccount?: string;
|
|
38427
|
+
resourcePoolOptions?: ModifyScalingConfigurationRequestResourcePoolOptions;
|
|
38205
38428
|
/**
|
|
38206
38429
|
* @remarks
|
|
38207
38430
|
* The ID of the scaling configuration that you want to modify.
|
|
@@ -38387,6 +38610,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38387
38610
|
ramRoleName: 'RamRoleName',
|
|
38388
38611
|
resourceGroupId: 'ResourceGroupId',
|
|
38389
38612
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
38613
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
38390
38614
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
38391
38615
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
38392
38616
|
schedulerOptions: 'SchedulerOptions',
|
|
@@ -38450,6 +38674,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38450
38674
|
ramRoleName: 'string',
|
|
38451
38675
|
resourceGroupId: 'string',
|
|
38452
38676
|
resourceOwnerAccount: 'string',
|
|
38677
|
+
resourcePoolOptions: ModifyScalingConfigurationRequestResourcePoolOptions,
|
|
38453
38678
|
scalingConfigurationId: 'string',
|
|
38454
38679
|
scalingConfigurationName: 'string',
|
|
38455
38680
|
schedulerOptions: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
@@ -38498,6 +38723,9 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38498
38723
|
if(Array.isArray(this.networkInterfaces)) {
|
|
38499
38724
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
38500
38725
|
}
|
|
38726
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
38727
|
+
(this.resourcePoolOptions as any).validate();
|
|
38728
|
+
}
|
|
38501
38729
|
if(this.schedulerOptions) {
|
|
38502
38730
|
$dara.Model.validateMap(this.schedulerOptions);
|
|
38503
38731
|
}
|
|
@@ -38865,6 +39093,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
38865
39093
|
*/
|
|
38866
39094
|
resourceGroupId?: string;
|
|
38867
39095
|
resourceOwnerAccount?: string;
|
|
39096
|
+
resourcePoolOptions?: ModifyScalingConfigurationShrinkRequestResourcePoolOptions;
|
|
38868
39097
|
/**
|
|
38869
39098
|
* @remarks
|
|
38870
39099
|
* The ID of the scaling configuration that you want to modify.
|
|
@@ -39050,6 +39279,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
39050
39279
|
ramRoleName: 'RamRoleName',
|
|
39051
39280
|
resourceGroupId: 'ResourceGroupId',
|
|
39052
39281
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
39282
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
39053
39283
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
39054
39284
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
39055
39285
|
schedulerOptionsShrink: 'SchedulerOptions',
|
|
@@ -39113,6 +39343,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
39113
39343
|
ramRoleName: 'string',
|
|
39114
39344
|
resourceGroupId: 'string',
|
|
39115
39345
|
resourceOwnerAccount: 'string',
|
|
39346
|
+
resourcePoolOptions: ModifyScalingConfigurationShrinkRequestResourcePoolOptions,
|
|
39116
39347
|
scalingConfigurationId: 'string',
|
|
39117
39348
|
scalingConfigurationName: 'string',
|
|
39118
39349
|
schedulerOptionsShrink: 'string',
|
|
@@ -39161,6 +39392,9 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
39161
39392
|
if(Array.isArray(this.networkInterfaces)) {
|
|
39162
39393
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
39163
39394
|
}
|
|
39395
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
39396
|
+
(this.resourcePoolOptions as any).validate();
|
|
39397
|
+
}
|
|
39164
39398
|
if(Array.isArray(this.securityGroupIds)) {
|
|
39165
39399
|
$dara.Model.validateArray(this.securityGroupIds);
|
|
39166
39400
|
}
|
|
@@ -39801,7 +40035,7 @@ export class ModifyScalingRuleRequest extends $dara.Model {
|
|
|
39801
40035
|
estimatedInstanceWarmup?: number;
|
|
39802
40036
|
/**
|
|
39803
40037
|
* @remarks
|
|
39804
|
-
* The Hybrid Cloud Monitoring metrics.
|
|
40038
|
+
* The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
|
|
39805
40039
|
*/
|
|
39806
40040
|
hybridMetrics?: ModifyScalingRuleRequestHybridMetrics[];
|
|
39807
40041
|
/**
|
|
@@ -44834,6 +45068,10 @@ export default class Client extends OpenApi {
|
|
|
44834
45068
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
44835
45069
|
}
|
|
44836
45070
|
|
|
45071
|
+
if (!$dara.isNull(request.resourcePoolOptions)) {
|
|
45072
|
+
query["ResourcePoolOptions"] = request.resourcePoolOptions;
|
|
45073
|
+
}
|
|
45074
|
+
|
|
44837
45075
|
if (!$dara.isNull(request.scalingConfigurationName)) {
|
|
44838
45076
|
query["ScalingConfigurationName"] = request.scalingConfigurationName;
|
|
44839
45077
|
}
|
|
@@ -49299,8 +49537,8 @@ export default class Client extends OpenApi {
|
|
|
49299
49537
|
* 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.
|
|
49300
49538
|
*
|
|
49301
49539
|
* @remarks
|
|
49302
|
-
*
|
|
49303
|
-
* * You can call the [
|
|
49540
|
+
* To rename a scaling configuration in a scaling group, ensure the new name is unique within that group.
|
|
49541
|
+
* * You can call the [DescribeEciScalingConfigurations](https://help.aliyun.com/document_detail/459374.html) operation to check the modification result.
|
|
49304
49542
|
*
|
|
49305
49543
|
* @param request - ModifyEciScalingConfigurationRequest
|
|
49306
49544
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -49539,8 +49777,8 @@ export default class Client extends OpenApi {
|
|
|
49539
49777
|
* 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.
|
|
49540
49778
|
*
|
|
49541
49779
|
* @remarks
|
|
49542
|
-
*
|
|
49543
|
-
* * You can call the [
|
|
49780
|
+
* To rename a scaling configuration in a scaling group, ensure the new name is unique within that group.
|
|
49781
|
+
* * You can call the [DescribeEciScalingConfigurations](https://help.aliyun.com/document_detail/459374.html) operation to check the modification result.
|
|
49544
49782
|
*
|
|
49545
49783
|
* @param request - ModifyEciScalingConfigurationRequest
|
|
49546
49784
|
* @returns ModifyEciScalingConfigurationResponse
|
|
@@ -49568,6 +49806,10 @@ export default class Client extends OpenApi {
|
|
|
49568
49806
|
query["InstanceId"] = request.instanceId;
|
|
49569
49807
|
}
|
|
49570
49808
|
|
|
49809
|
+
if (!$dara.isNull(request.instanceIds)) {
|
|
49810
|
+
query["InstanceIds"] = request.instanceIds;
|
|
49811
|
+
}
|
|
49812
|
+
|
|
49571
49813
|
if (!$dara.isNull(request.ownerId)) {
|
|
49572
49814
|
query["OwnerId"] = request.ownerId;
|
|
49573
49815
|
}
|
|
@@ -49967,6 +50209,10 @@ export default class Client extends OpenApi {
|
|
|
49967
50209
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
49968
50210
|
}
|
|
49969
50211
|
|
|
50212
|
+
if (!$dara.isNull(request.resourcePoolOptions)) {
|
|
50213
|
+
query["ResourcePoolOptions"] = request.resourcePoolOptions;
|
|
50214
|
+
}
|
|
50215
|
+
|
|
49970
50216
|
if (!$dara.isNull(request.scalingConfigurationId)) {
|
|
49971
50217
|
query["ScalingConfigurationId"] = request.scalingConfigurationId;
|
|
49972
50218
|
}
|