@alicloud/ess20220222 1.8.7 → 1.8.8
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 +138 -4
- package/dist/client.js +5 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +144 -4
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -630,6 +630,7 @@ export class AttachInstancesRequest extends $tea.Model {
|
|
|
630
630
|
* false
|
|
631
631
|
*/
|
|
632
632
|
entrusted?: boolean;
|
|
633
|
+
ignoreInvalidInstance?: boolean;
|
|
633
634
|
/**
|
|
634
635
|
* @remarks
|
|
635
636
|
* The IDs of the ECS instances, elastic container instances, non-Alibaba Cloud instances, or instances in Economical Mode.
|
|
@@ -681,6 +682,7 @@ export class AttachInstancesRequest extends $tea.Model {
|
|
|
681
682
|
return {
|
|
682
683
|
clientToken: 'ClientToken',
|
|
683
684
|
entrusted: 'Entrusted',
|
|
685
|
+
ignoreInvalidInstance: 'IgnoreInvalidInstance',
|
|
684
686
|
instanceIds: 'InstanceIds',
|
|
685
687
|
lifecycleHook: 'LifecycleHook',
|
|
686
688
|
loadBalancerWeights: 'LoadBalancerWeights',
|
|
@@ -697,6 +699,7 @@ export class AttachInstancesRequest extends $tea.Model {
|
|
|
697
699
|
return {
|
|
698
700
|
clientToken: 'string',
|
|
699
701
|
entrusted: 'boolean',
|
|
702
|
+
ignoreInvalidInstance: 'boolean',
|
|
700
703
|
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
701
704
|
lifecycleHook: 'boolean',
|
|
702
705
|
loadBalancerWeights: { 'type': 'array', 'itemType': 'number' },
|
|
@@ -7287,18 +7290,41 @@ export class DescribeEciScalingConfigurationsResponse extends $tea.Model {
|
|
|
7287
7290
|
}
|
|
7288
7291
|
|
|
7289
7292
|
export class DescribeElasticStrengthRequest extends $tea.Model {
|
|
7293
|
+
/**
|
|
7294
|
+
* @remarks
|
|
7295
|
+
* The disk categories of the data disks. The disk categories that do not match the specified criteria are returned after you call this operation.
|
|
7296
|
+
*
|
|
7297
|
+
* > If you do not specify the scaling group ID, you must specify this parameter.
|
|
7298
|
+
*/
|
|
7290
7299
|
dataDiskCategories?: string[];
|
|
7291
7300
|
/**
|
|
7301
|
+
* @remarks
|
|
7302
|
+
* The name of the image family. You can specify the ImageFamily request parameter to obtain the most recent available images in the current image family for instance creation. If you specify ImageId, you cannot specify ImageFamily.
|
|
7303
|
+
*
|
|
7304
|
+
* > If you do not specify the scaling group ID, you must specify at least one of ImageId, ImageName, and ImageFamily.
|
|
7305
|
+
*
|
|
7292
7306
|
* @example
|
|
7293
7307
|
* CentOS7
|
|
7294
7308
|
*/
|
|
7295
7309
|
imageFamily?: string;
|
|
7296
7310
|
/**
|
|
7311
|
+
* @remarks
|
|
7312
|
+
* The ID of the image file that provides the image resource for Auto Scaling to create instances.
|
|
7313
|
+
*
|
|
7314
|
+
* > If you do not specify the scaling group ID, you must specify at least one of ImageId, ImageName, and ImageFamily.
|
|
7315
|
+
*
|
|
7297
7316
|
* @example
|
|
7298
7317
|
* centos6u5_64_20G_aliaegis****.vhd
|
|
7299
7318
|
*/
|
|
7300
7319
|
imageId?: string;
|
|
7301
7320
|
/**
|
|
7321
|
+
* @remarks
|
|
7322
|
+
* The name of the image. Each image name must be unique in a region. If you specify ImageId, ImageName is ignored.
|
|
7323
|
+
*
|
|
7324
|
+
* You cannot use ImageName to specify an Alibaba Cloud Marketplace image.
|
|
7325
|
+
*
|
|
7326
|
+
* > If you do not specify the scaling group ID, you must specify at least one of ImageId, ImageName, and ImageFamily.
|
|
7327
|
+
*
|
|
7302
7328
|
* @example
|
|
7303
7329
|
* ubuntu_18_04_x64_20G_alibase_20231225.vhd
|
|
7304
7330
|
*/
|
|
@@ -7309,16 +7335,25 @@ export class DescribeElasticStrengthRequest extends $tea.Model {
|
|
|
7309
7335
|
*/
|
|
7310
7336
|
instanceTypes?: string[];
|
|
7311
7337
|
/**
|
|
7338
|
+
* @remarks
|
|
7339
|
+
* The number of IPv6 addresses. If the instance type that you specified does meet the requirement for the number of IPv6 addresses, the scaling strength is weak.
|
|
7340
|
+
*
|
|
7341
|
+
* > If you do not specify the scaling group ID, you must specify this parameter.
|
|
7342
|
+
*
|
|
7312
7343
|
* @example
|
|
7313
7344
|
* 1
|
|
7314
7345
|
*/
|
|
7315
7346
|
ipv6AddressCount?: number;
|
|
7316
7347
|
/**
|
|
7317
7348
|
* @remarks
|
|
7349
|
+
* **
|
|
7350
|
+
*
|
|
7351
|
+
* **Warning** This parameter is deprecated. We recommend that you use SpotStrategy.
|
|
7352
|
+
*
|
|
7318
7353
|
* The preemption policy that you want to apply to pay-as-you-go instances. The preemption policy specified by this parameter overwrites the preemption policy specified in the scaling configuration. Valid values:
|
|
7319
7354
|
*
|
|
7320
7355
|
* * NoSpot: The instances are created as regular pay-as-you-go instances.
|
|
7321
|
-
* * SpotWithPriceLimit: The instances are created as preemptible instances
|
|
7356
|
+
* * SpotWithPriceLimit: The instances are created as preemptible instances with a user-defined maximum hourly price.
|
|
7322
7357
|
* * SpotAsPriceGo: The instances are created as preemptible instances for which the market price at the time of purchase is automatically used as the bidding price.
|
|
7323
7358
|
*
|
|
7324
7359
|
* Default value: NoSpot.
|
|
@@ -7351,6 +7386,15 @@ export class DescribeElasticStrengthRequest extends $tea.Model {
|
|
|
7351
7386
|
*/
|
|
7352
7387
|
scalingGroupIds?: string[];
|
|
7353
7388
|
/**
|
|
7389
|
+
* @remarks
|
|
7390
|
+
* The instance bidding policy. Valid values:
|
|
7391
|
+
*
|
|
7392
|
+
* * NoSpot: The instances are created as pay-as-you-go instances.
|
|
7393
|
+
* * SpotWithPriceLimit: The instances are created as preemptible instances with a user-defined maximum hourly price.
|
|
7394
|
+
* * SpotAsPriceGo: The instances are created as preemptible instances for which the market price at the time of purchase is used as the bid price.
|
|
7395
|
+
*
|
|
7396
|
+
* Default value: NoSpot.
|
|
7397
|
+
*
|
|
7354
7398
|
* @example
|
|
7355
7399
|
* NoSpot
|
|
7356
7400
|
*/
|
|
@@ -7363,8 +7407,16 @@ export class DescribeElasticStrengthRequest extends $tea.Model {
|
|
|
7363
7407
|
* * cloud_efficiency: ultra disk.
|
|
7364
7408
|
* * cloud_ssd: standard SSD.
|
|
7365
7409
|
* * cloud_essd: Enterprise SSD (ESSD).
|
|
7410
|
+
*
|
|
7411
|
+
* > If you do not specify the scaling group ID, you must specify this parameter.
|
|
7366
7412
|
*/
|
|
7367
7413
|
systemDiskCategories?: string[];
|
|
7414
|
+
/**
|
|
7415
|
+
* @remarks
|
|
7416
|
+
* The vSwitch IDs.
|
|
7417
|
+
*
|
|
7418
|
+
* > If you do not specify the scaling group ID, you must specify this parameter.
|
|
7419
|
+
*/
|
|
7368
7420
|
vSwitchIds?: string[];
|
|
7369
7421
|
static names(): { [key: string]: string } {
|
|
7370
7422
|
return {
|
|
@@ -7410,7 +7462,7 @@ export class DescribeElasticStrengthRequest extends $tea.Model {
|
|
|
7410
7462
|
export class DescribeElasticStrengthResponseBody extends $tea.Model {
|
|
7411
7463
|
/**
|
|
7412
7464
|
* @remarks
|
|
7413
|
-
* The scaling
|
|
7465
|
+
* The scaling strength models.
|
|
7414
7466
|
*/
|
|
7415
7467
|
elasticStrengthModels?: DescribeElasticStrengthResponseBodyElasticStrengthModels[];
|
|
7416
7468
|
/**
|
|
@@ -7428,7 +7480,11 @@ export class DescribeElasticStrengthResponseBody extends $tea.Model {
|
|
|
7428
7480
|
resourcePools?: DescribeElasticStrengthResponseBodyResourcePools[];
|
|
7429
7481
|
/**
|
|
7430
7482
|
* @remarks
|
|
7431
|
-
* The scaling strength of the scaling group. Each combination of instance type + zone is scored from 0 to 1 based on its availability, with 0 being the weakest scaling strength and 1 being the strongest. The scaling strength of the scaling group is measured by the combined scores of all the combinations of instance type + zone.
|
|
7483
|
+
* The scaling strength score of the scaling group. Each combination of instance type + zone is scored from 0 to 1 based on its availability, with 0 being the weakest scaling strength and 1 being the strongest. The scaling strength score of the scaling group is measured by the combined scores of all the combinations of instance type + zone.
|
|
7484
|
+
*
|
|
7485
|
+
* **
|
|
7486
|
+
*
|
|
7487
|
+
* **Warning** This parameter is deprecated.
|
|
7432
7488
|
*
|
|
7433
7489
|
* @example
|
|
7434
7490
|
* 1.5
|
|
@@ -16394,6 +16450,13 @@ export class ModifyScheduledTaskRequest extends $tea.Model {
|
|
|
16394
16450
|
* 2
|
|
16395
16451
|
*/
|
|
16396
16452
|
recurrenceValue?: string;
|
|
16453
|
+
/**
|
|
16454
|
+
* @remarks
|
|
16455
|
+
* The region ID.
|
|
16456
|
+
*
|
|
16457
|
+
* @example
|
|
16458
|
+
* cn-hangzhou
|
|
16459
|
+
*/
|
|
16397
16460
|
regionId?: string;
|
|
16398
16461
|
resourceOwnerAccount?: string;
|
|
16399
16462
|
resourceOwnerId?: number;
|
|
@@ -28035,9 +28098,49 @@ export class DescribeEciScalingConfigurationsResponseBodyScalingConfigurations e
|
|
|
28035
28098
|
}
|
|
28036
28099
|
|
|
28037
28100
|
export class DescribeElasticStrengthResponseBodyElasticStrengthModelsResourcePoolsInventoryHealth extends $tea.Model {
|
|
28101
|
+
/**
|
|
28102
|
+
* @remarks
|
|
28103
|
+
* The adequacy score.
|
|
28104
|
+
*
|
|
28105
|
+
* Valid values: 0 to 3.
|
|
28106
|
+
*
|
|
28107
|
+
* @example
|
|
28108
|
+
* 3
|
|
28109
|
+
*/
|
|
28038
28110
|
adequacyScore?: number;
|
|
28111
|
+
/**
|
|
28112
|
+
* @remarks
|
|
28113
|
+
* The score of the inventory health.
|
|
28114
|
+
*
|
|
28115
|
+
* * A score between 5 and 6 indicates a sufficient inventory.
|
|
28116
|
+
* * A score between 1 and 4 indicates that there is no guarantee of a sufficient inventory. Select a reservation as necessary.
|
|
28117
|
+
* * A score between -3 and 0 indicates that the inventory is sufficient, and an alert is triggered. Select another instance type.
|
|
28118
|
+
*
|
|
28119
|
+
* Calculation formula: `HealthScore` = `AdequacyScore` + `SupplyScore` - `HotScore`.
|
|
28120
|
+
*
|
|
28121
|
+
* @example
|
|
28122
|
+
* 3
|
|
28123
|
+
*/
|
|
28039
28124
|
healthScore?: number;
|
|
28125
|
+
/**
|
|
28126
|
+
* @remarks
|
|
28127
|
+
* The popularity score.
|
|
28128
|
+
*
|
|
28129
|
+
* Valid values: 0 to 3.
|
|
28130
|
+
*
|
|
28131
|
+
* @example
|
|
28132
|
+
* 0
|
|
28133
|
+
*/
|
|
28040
28134
|
hotScore?: number;
|
|
28135
|
+
/**
|
|
28136
|
+
* @remarks
|
|
28137
|
+
* The score of the replenishment capability.
|
|
28138
|
+
*
|
|
28139
|
+
* Valid values: 0 to 3.
|
|
28140
|
+
*
|
|
28141
|
+
* @example
|
|
28142
|
+
* 2
|
|
28143
|
+
*/
|
|
28041
28144
|
supplyScore?: number;
|
|
28042
28145
|
static names(): { [key: string]: string } {
|
|
28043
28146
|
return {
|
|
@@ -28079,6 +28182,10 @@ export class DescribeElasticStrengthResponseBodyElasticStrengthModelsResourcePoo
|
|
|
28079
28182
|
* ecs.r7.large
|
|
28080
28183
|
*/
|
|
28081
28184
|
instanceType?: string;
|
|
28185
|
+
/**
|
|
28186
|
+
* @remarks
|
|
28187
|
+
* The inventory health.
|
|
28188
|
+
*/
|
|
28082
28189
|
inventoryHealth?: DescribeElasticStrengthResponseBodyElasticStrengthModelsResourcePoolsInventoryHealth;
|
|
28083
28190
|
/**
|
|
28084
28191
|
* @remarks
|
|
@@ -28088,11 +28195,25 @@ export class DescribeElasticStrengthResponseBodyElasticStrengthModelsResourcePoo
|
|
|
28088
28195
|
* The instanceTypes or diskTypes are not supported.
|
|
28089
28196
|
*/
|
|
28090
28197
|
msg?: string;
|
|
28198
|
+
/**
|
|
28199
|
+
* @remarks
|
|
28200
|
+
* Indicates whether the resource pool is available. Valid values:
|
|
28201
|
+
*
|
|
28202
|
+
* * Available
|
|
28203
|
+
* * Unavailable (If a constraint is not provided, the instance type is not deployed, or the instance type is out of stock, the resource pool becomes unavailable.)
|
|
28204
|
+
*
|
|
28205
|
+
* @example
|
|
28206
|
+
* Available
|
|
28207
|
+
*/
|
|
28091
28208
|
status?: string;
|
|
28092
28209
|
/**
|
|
28093
28210
|
* @remarks
|
|
28094
28211
|
* The scaling strength of the resource pool.
|
|
28095
28212
|
*
|
|
28213
|
+
* **
|
|
28214
|
+
*
|
|
28215
|
+
* **Warning** This parameter is deprecated.
|
|
28216
|
+
*
|
|
28096
28217
|
* @example
|
|
28097
28218
|
* 0.6
|
|
28098
28219
|
*/
|
|
@@ -28142,6 +28263,17 @@ export class DescribeElasticStrengthResponseBodyElasticStrengthModelsResourcePoo
|
|
|
28142
28263
|
}
|
|
28143
28264
|
|
|
28144
28265
|
export class DescribeElasticStrengthResponseBodyElasticStrengthModels extends $tea.Model {
|
|
28266
|
+
/**
|
|
28267
|
+
* @remarks
|
|
28268
|
+
* The scaling strength level of the scaling group. Valid values:
|
|
28269
|
+
*
|
|
28270
|
+
* * Strong
|
|
28271
|
+
* * Medium
|
|
28272
|
+
* * Weak
|
|
28273
|
+
*
|
|
28274
|
+
* @example
|
|
28275
|
+
* Strong
|
|
28276
|
+
*/
|
|
28145
28277
|
elasticStrength?: string;
|
|
28146
28278
|
/**
|
|
28147
28279
|
* @remarks
|
|
@@ -28158,7 +28290,11 @@ export class DescribeElasticStrengthResponseBodyElasticStrengthModels extends $t
|
|
|
28158
28290
|
scalingGroupId?: string;
|
|
28159
28291
|
/**
|
|
28160
28292
|
* @remarks
|
|
28161
|
-
* The scaling strength of the scaling group. Each combination of instance type + zone is scored from 0 to 1 based on its availability, with 0 being the weakest scaling strength and 1 being the strongest. The scaling strength of the scaling group is measured by the combined scores of all the combinations of instance type + zone.
|
|
28293
|
+
* The scaling strength score of the scaling group. Each combination of instance type + zone is scored from 0 to 1 based on its availability, with 0 being the weakest scaling strength and 1 being the strongest. The scaling strength score of the scaling group is measured by the combined scores of all the combinations of instance type + zone.
|
|
28294
|
+
*
|
|
28295
|
+
* **
|
|
28296
|
+
*
|
|
28297
|
+
* **Warning** This parameter is deprecated.
|
|
28162
28298
|
*
|
|
28163
28299
|
* @example
|
|
28164
28300
|
* 1.5
|
|
@@ -38704,6 +38840,10 @@ export default class Client extends OpenApi {
|
|
|
38704
38840
|
query["Entrusted"] = request.entrusted;
|
|
38705
38841
|
}
|
|
38706
38842
|
|
|
38843
|
+
if (!Util.isUnset(request.ignoreInvalidInstance)) {
|
|
38844
|
+
query["IgnoreInvalidInstance"] = request.ignoreInvalidInstance;
|
|
38845
|
+
}
|
|
38846
|
+
|
|
38707
38847
|
if (!Util.isUnset(request.instanceIds)) {
|
|
38708
38848
|
query["InstanceIds"] = request.instanceIds;
|
|
38709
38849
|
}
|