@alicloud/ess20220222 1.8.11 → 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 +98 -12
- package/dist/client.js +166 -15
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +206 -12
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
|
|
@@ -4336,6 +4394,14 @@ export class CreateScalingGroupRequestCapacityOptions extends $dara.Model {
|
|
|
4336
4394
|
*/
|
|
4337
4395
|
onDemandPercentageAboveBaseCapacity?: number;
|
|
4338
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
|
+
*
|
|
4339
4405
|
* @example
|
|
4340
4406
|
* PricePerUnit
|
|
4341
4407
|
*/
|
|
@@ -12256,6 +12322,35 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetwo
|
|
|
12256
12322
|
}
|
|
12257
12323
|
}
|
|
12258
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
|
+
|
|
12259
12354
|
export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsSchedulerOptions extends $dara.Model {
|
|
12260
12355
|
/**
|
|
12261
12356
|
* @remarks
|
|
@@ -12749,6 +12844,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
12749
12844
|
* rg-aekzn2ou7xo****
|
|
12750
12845
|
*/
|
|
12751
12846
|
resourceGroupId?: string;
|
|
12847
|
+
resourcePoolOptions?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions;
|
|
12752
12848
|
/**
|
|
12753
12849
|
* @remarks
|
|
12754
12850
|
* The ID of the scaling configuration.
|
|
@@ -13052,6 +13148,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13052
13148
|
privatePoolOptions_matchCriteria: 'PrivatePoolOptions.MatchCriteria',
|
|
13053
13149
|
ramRoleName: 'RamRoleName',
|
|
13054
13150
|
resourceGroupId: 'ResourceGroupId',
|
|
13151
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
13055
13152
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
13056
13153
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
13057
13154
|
scalingGroupId: 'ScalingGroupId',
|
|
@@ -13129,6 +13226,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13129
13226
|
privatePoolOptions_matchCriteria: 'string',
|
|
13130
13227
|
ramRoleName: 'string',
|
|
13131
13228
|
resourceGroupId: 'string',
|
|
13229
|
+
resourcePoolOptions: DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions,
|
|
13132
13230
|
scalingConfigurationId: 'string',
|
|
13133
13231
|
scalingConfigurationName: 'string',
|
|
13134
13232
|
scalingGroupId: 'string',
|
|
@@ -13179,6 +13277,9 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
|
|
|
13179
13277
|
if(Array.isArray(this.networkInterfaces)) {
|
|
13180
13278
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
13181
13279
|
}
|
|
13280
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
13281
|
+
(this.resourcePoolOptions as any).validate();
|
|
13282
|
+
}
|
|
13182
13283
|
if(this.schedulerOptions && typeof (this.schedulerOptions as any).validate === 'function') {
|
|
13183
13284
|
(this.schedulerOptions as any).validate();
|
|
13184
13285
|
}
|
|
@@ -14407,10 +14508,13 @@ export class DescribeScalingGroupsResponseBodyScalingGroupsCapacityOptions exten
|
|
|
14407
14508
|
onDemandPercentageAboveBaseCapacity?: number;
|
|
14408
14509
|
/**
|
|
14409
14510
|
* @remarks
|
|
14410
|
-
*
|
|
14511
|
+
* Indicates how prices are compared. Valid values:
|
|
14411
14512
|
*
|
|
14412
|
-
* * PricePerUnit:
|
|
14413
|
-
*
|
|
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.
|
|
14414
14518
|
*
|
|
14415
14519
|
* @example
|
|
14416
14520
|
* PricePerUnit
|
|
@@ -16203,7 +16307,7 @@ export class DescribeScalingRulesResponseBodyScalingRules extends $dara.Model {
|
|
|
16203
16307
|
estimatedInstanceWarmup?: number;
|
|
16204
16308
|
/**
|
|
16205
16309
|
* @remarks
|
|
16206
|
-
* 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).
|
|
16207
16311
|
*/
|
|
16208
16312
|
hybridMetrics?: DescribeScalingRulesResponseBodyScalingRulesHybridMetrics[];
|
|
16209
16313
|
/**
|
|
@@ -19938,6 +20042,35 @@ export class ModifyScalingConfigurationRequestNetworkInterfaces extends $dara.Mo
|
|
|
19938
20042
|
}
|
|
19939
20043
|
}
|
|
19940
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
|
+
|
|
19941
20074
|
export class ModifyScalingConfigurationRequestSecurityOptions extends $dara.Model {
|
|
19942
20075
|
/**
|
|
19943
20076
|
* @remarks
|
|
@@ -20961,6 +21094,35 @@ export class ModifyScalingConfigurationShrinkRequestNetworkInterfaces extends $d
|
|
|
20961
21094
|
}
|
|
20962
21095
|
}
|
|
20963
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
|
+
|
|
20964
21126
|
export class ModifyScalingConfigurationShrinkRequestSecurityOptions extends $dara.Model {
|
|
20965
21127
|
/**
|
|
20966
21128
|
* @remarks
|
|
@@ -25373,6 +25535,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25373
25535
|
*/
|
|
25374
25536
|
resourceGroupId?: string;
|
|
25375
25537
|
resourceOwnerAccount?: string;
|
|
25538
|
+
resourcePoolOptions?: CreateScalingConfigurationRequestResourcePoolOptions;
|
|
25376
25539
|
/**
|
|
25377
25540
|
* @remarks
|
|
25378
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.
|
|
@@ -25574,6 +25737,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25574
25737
|
ramRoleName: 'RamRoleName',
|
|
25575
25738
|
resourceGroupId: 'ResourceGroupId',
|
|
25576
25739
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
25740
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
25577
25741
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
25578
25742
|
scalingGroupId: 'ScalingGroupId',
|
|
25579
25743
|
schedulerOptions: 'SchedulerOptions',
|
|
@@ -25639,6 +25803,7 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25639
25803
|
ramRoleName: 'string',
|
|
25640
25804
|
resourceGroupId: 'string',
|
|
25641
25805
|
resourceOwnerAccount: 'string',
|
|
25806
|
+
resourcePoolOptions: CreateScalingConfigurationRequestResourcePoolOptions,
|
|
25642
25807
|
scalingConfigurationName: 'string',
|
|
25643
25808
|
scalingGroupId: 'string',
|
|
25644
25809
|
schedulerOptions: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
@@ -25688,6 +25853,9 @@ export class CreateScalingConfigurationRequest extends $dara.Model {
|
|
|
25688
25853
|
if(Array.isArray(this.networkInterfaces)) {
|
|
25689
25854
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
25690
25855
|
}
|
|
25856
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
25857
|
+
(this.resourcePoolOptions as any).validate();
|
|
25858
|
+
}
|
|
25691
25859
|
if(this.schedulerOptions) {
|
|
25692
25860
|
$dara.Model.validateMap(this.schedulerOptions);
|
|
25693
25861
|
}
|
|
@@ -26058,6 +26226,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26058
26226
|
*/
|
|
26059
26227
|
resourceGroupId?: string;
|
|
26060
26228
|
resourceOwnerAccount?: string;
|
|
26229
|
+
resourcePoolOptions?: CreateScalingConfigurationShrinkRequestResourcePoolOptions;
|
|
26061
26230
|
/**
|
|
26062
26231
|
* @remarks
|
|
26063
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.
|
|
@@ -26259,6 +26428,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26259
26428
|
ramRoleName: 'RamRoleName',
|
|
26260
26429
|
resourceGroupId: 'ResourceGroupId',
|
|
26261
26430
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
26431
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
26262
26432
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
26263
26433
|
scalingGroupId: 'ScalingGroupId',
|
|
26264
26434
|
schedulerOptionsShrink: 'SchedulerOptions',
|
|
@@ -26324,6 +26494,7 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26324
26494
|
ramRoleName: 'string',
|
|
26325
26495
|
resourceGroupId: 'string',
|
|
26326
26496
|
resourceOwnerAccount: 'string',
|
|
26497
|
+
resourcePoolOptions: CreateScalingConfigurationShrinkRequestResourcePoolOptions,
|
|
26327
26498
|
scalingConfigurationName: 'string',
|
|
26328
26499
|
scalingGroupId: 'string',
|
|
26329
26500
|
schedulerOptionsShrink: 'string',
|
|
@@ -26373,6 +26544,9 @@ export class CreateScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
26373
26544
|
if(Array.isArray(this.networkInterfaces)) {
|
|
26374
26545
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
26375
26546
|
}
|
|
26547
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
26548
|
+
(this.resourcePoolOptions as any).validate();
|
|
26549
|
+
}
|
|
26376
26550
|
if(Array.isArray(this.securityGroupIds)) {
|
|
26377
26551
|
$dara.Model.validateArray(this.securityGroupIds);
|
|
26378
26552
|
}
|
|
@@ -27221,7 +27395,7 @@ export class CreateScalingRuleRequest extends $dara.Model {
|
|
|
27221
27395
|
estimatedInstanceWarmup?: number;
|
|
27222
27396
|
/**
|
|
27223
27397
|
* @remarks
|
|
27224
|
-
* 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).
|
|
27225
27399
|
*/
|
|
27226
27400
|
hybridMetrics?: CreateScalingRuleRequestHybridMetrics[];
|
|
27227
27401
|
/**
|
|
@@ -28988,7 +29162,7 @@ export class DescribeAlarmsRequest extends $dara.Model {
|
|
|
28988
29162
|
metricName?: string;
|
|
28989
29163
|
/**
|
|
28990
29164
|
* @remarks
|
|
28991
|
-
* The type
|
|
29165
|
+
* The metric type. Valid values:
|
|
28992
29166
|
*
|
|
28993
29167
|
* * system: system metrics of CloudMonitor
|
|
28994
29168
|
* * custom: custom metrics that are reported to CloudMonitor.
|
|
@@ -32641,7 +32815,7 @@ export class DescribeScalingGroupsRequest extends $dara.Model {
|
|
|
32641
32815
|
* @remarks
|
|
32642
32816
|
* The page number. Minimum value: 1.
|
|
32643
32817
|
*
|
|
32644
|
-
* Default value: 1
|
|
32818
|
+
* Default value: 1
|
|
32645
32819
|
*
|
|
32646
32820
|
* @example
|
|
32647
32821
|
* 1
|
|
@@ -38202,6 +38376,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38202
38376
|
*/
|
|
38203
38377
|
resourceGroupId?: string;
|
|
38204
38378
|
resourceOwnerAccount?: string;
|
|
38379
|
+
resourcePoolOptions?: ModifyScalingConfigurationRequestResourcePoolOptions;
|
|
38205
38380
|
/**
|
|
38206
38381
|
* @remarks
|
|
38207
38382
|
* The ID of the scaling configuration that you want to modify.
|
|
@@ -38387,6 +38562,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38387
38562
|
ramRoleName: 'RamRoleName',
|
|
38388
38563
|
resourceGroupId: 'ResourceGroupId',
|
|
38389
38564
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
38565
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
38390
38566
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
38391
38567
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
38392
38568
|
schedulerOptions: 'SchedulerOptions',
|
|
@@ -38450,6 +38626,7 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38450
38626
|
ramRoleName: 'string',
|
|
38451
38627
|
resourceGroupId: 'string',
|
|
38452
38628
|
resourceOwnerAccount: 'string',
|
|
38629
|
+
resourcePoolOptions: ModifyScalingConfigurationRequestResourcePoolOptions,
|
|
38453
38630
|
scalingConfigurationId: 'string',
|
|
38454
38631
|
scalingConfigurationName: 'string',
|
|
38455
38632
|
schedulerOptions: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
@@ -38498,6 +38675,9 @@ export class ModifyScalingConfigurationRequest extends $dara.Model {
|
|
|
38498
38675
|
if(Array.isArray(this.networkInterfaces)) {
|
|
38499
38676
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
38500
38677
|
}
|
|
38678
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
38679
|
+
(this.resourcePoolOptions as any).validate();
|
|
38680
|
+
}
|
|
38501
38681
|
if(this.schedulerOptions) {
|
|
38502
38682
|
$dara.Model.validateMap(this.schedulerOptions);
|
|
38503
38683
|
}
|
|
@@ -38865,6 +39045,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
38865
39045
|
*/
|
|
38866
39046
|
resourceGroupId?: string;
|
|
38867
39047
|
resourceOwnerAccount?: string;
|
|
39048
|
+
resourcePoolOptions?: ModifyScalingConfigurationShrinkRequestResourcePoolOptions;
|
|
38868
39049
|
/**
|
|
38869
39050
|
* @remarks
|
|
38870
39051
|
* The ID of the scaling configuration that you want to modify.
|
|
@@ -39050,6 +39231,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
39050
39231
|
ramRoleName: 'RamRoleName',
|
|
39051
39232
|
resourceGroupId: 'ResourceGroupId',
|
|
39052
39233
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
39234
|
+
resourcePoolOptions: 'ResourcePoolOptions',
|
|
39053
39235
|
scalingConfigurationId: 'ScalingConfigurationId',
|
|
39054
39236
|
scalingConfigurationName: 'ScalingConfigurationName',
|
|
39055
39237
|
schedulerOptionsShrink: 'SchedulerOptions',
|
|
@@ -39113,6 +39295,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
39113
39295
|
ramRoleName: 'string',
|
|
39114
39296
|
resourceGroupId: 'string',
|
|
39115
39297
|
resourceOwnerAccount: 'string',
|
|
39298
|
+
resourcePoolOptions: ModifyScalingConfigurationShrinkRequestResourcePoolOptions,
|
|
39116
39299
|
scalingConfigurationId: 'string',
|
|
39117
39300
|
scalingConfigurationName: 'string',
|
|
39118
39301
|
schedulerOptionsShrink: 'string',
|
|
@@ -39161,6 +39344,9 @@ export class ModifyScalingConfigurationShrinkRequest extends $dara.Model {
|
|
|
39161
39344
|
if(Array.isArray(this.networkInterfaces)) {
|
|
39162
39345
|
$dara.Model.validateArray(this.networkInterfaces);
|
|
39163
39346
|
}
|
|
39347
|
+
if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
|
|
39348
|
+
(this.resourcePoolOptions as any).validate();
|
|
39349
|
+
}
|
|
39164
39350
|
if(Array.isArray(this.securityGroupIds)) {
|
|
39165
39351
|
$dara.Model.validateArray(this.securityGroupIds);
|
|
39166
39352
|
}
|
|
@@ -39801,7 +39987,7 @@ export class ModifyScalingRuleRequest extends $dara.Model {
|
|
|
39801
39987
|
estimatedInstanceWarmup?: number;
|
|
39802
39988
|
/**
|
|
39803
39989
|
* @remarks
|
|
39804
|
-
* 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).
|
|
39805
39991
|
*/
|
|
39806
39992
|
hybridMetrics?: ModifyScalingRuleRequestHybridMetrics[];
|
|
39807
39993
|
/**
|
|
@@ -44834,6 +45020,10 @@ export default class Client extends OpenApi {
|
|
|
44834
45020
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
44835
45021
|
}
|
|
44836
45022
|
|
|
45023
|
+
if (!$dara.isNull(request.resourcePoolOptions)) {
|
|
45024
|
+
query["ResourcePoolOptions"] = request.resourcePoolOptions;
|
|
45025
|
+
}
|
|
45026
|
+
|
|
44837
45027
|
if (!$dara.isNull(request.scalingConfigurationName)) {
|
|
44838
45028
|
query["ScalingConfigurationName"] = request.scalingConfigurationName;
|
|
44839
45029
|
}
|
|
@@ -49299,8 +49489,8 @@ export default class Client extends OpenApi {
|
|
|
49299
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.
|
|
49300
49490
|
*
|
|
49301
49491
|
* @remarks
|
|
49302
|
-
*
|
|
49303
|
-
* * 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.
|
|
49304
49494
|
*
|
|
49305
49495
|
* @param request - ModifyEciScalingConfigurationRequest
|
|
49306
49496
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -49539,8 +49729,8 @@ export default class Client extends OpenApi {
|
|
|
49539
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.
|
|
49540
49730
|
*
|
|
49541
49731
|
* @remarks
|
|
49542
|
-
*
|
|
49543
|
-
* * 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.
|
|
49544
49734
|
*
|
|
49545
49735
|
* @param request - ModifyEciScalingConfigurationRequest
|
|
49546
49736
|
* @returns ModifyEciScalingConfigurationResponse
|
|
@@ -49967,6 +50157,10 @@ export default class Client extends OpenApi {
|
|
|
49967
50157
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
49968
50158
|
}
|
|
49969
50159
|
|
|
50160
|
+
if (!$dara.isNull(request.resourcePoolOptions)) {
|
|
50161
|
+
query["ResourcePoolOptions"] = request.resourcePoolOptions;
|
|
50162
|
+
}
|
|
50163
|
+
|
|
49970
50164
|
if (!$dara.isNull(request.scalingConfigurationId)) {
|
|
49971
50165
|
query["ScalingConfigurationId"] = request.scalingConfigurationId;
|
|
49972
50166
|
}
|