@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 CHANGED
@@ -488,6 +488,7 @@ export declare class AttachInstancesRequest extends $tea.Model {
488
488
  * false
489
489
  */
490
490
  entrusted?: boolean;
491
+ ignoreInvalidInstance?: boolean;
491
492
  /**
492
493
  * @remarks
493
494
  * The IDs of the ECS instances, elastic container instances, non-Alibaba Cloud instances, or instances in Economical Mode.
@@ -5596,18 +5597,41 @@ export declare class DescribeEciScalingConfigurationsResponse extends $tea.Model
5596
5597
  });
5597
5598
  }
5598
5599
  export declare class DescribeElasticStrengthRequest extends $tea.Model {
5600
+ /**
5601
+ * @remarks
5602
+ * The disk categories of the data disks. The disk categories that do not match the specified criteria are returned after you call this operation.
5603
+ *
5604
+ * > If you do not specify the scaling group ID, you must specify this parameter.
5605
+ */
5599
5606
  dataDiskCategories?: string[];
5600
5607
  /**
5608
+ * @remarks
5609
+ * 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.
5610
+ *
5611
+ * > If you do not specify the scaling group ID, you must specify at least one of ImageId, ImageName, and ImageFamily.
5612
+ *
5601
5613
  * @example
5602
5614
  * CentOS7
5603
5615
  */
5604
5616
  imageFamily?: string;
5605
5617
  /**
5618
+ * @remarks
5619
+ * The ID of the image file that provides the image resource for Auto Scaling to create instances.
5620
+ *
5621
+ * > If you do not specify the scaling group ID, you must specify at least one of ImageId, ImageName, and ImageFamily.
5622
+ *
5606
5623
  * @example
5607
5624
  * centos6u5_64_20G_aliaegis****.vhd
5608
5625
  */
5609
5626
  imageId?: string;
5610
5627
  /**
5628
+ * @remarks
5629
+ * The name of the image. Each image name must be unique in a region. If you specify ImageId, ImageName is ignored.
5630
+ *
5631
+ * You cannot use ImageName to specify an Alibaba Cloud Marketplace image.
5632
+ *
5633
+ * > If you do not specify the scaling group ID, you must specify at least one of ImageId, ImageName, and ImageFamily.
5634
+ *
5611
5635
  * @example
5612
5636
  * ubuntu_18_04_x64_20G_alibase_20231225.vhd
5613
5637
  */
@@ -5618,16 +5642,25 @@ export declare class DescribeElasticStrengthRequest extends $tea.Model {
5618
5642
  */
5619
5643
  instanceTypes?: string[];
5620
5644
  /**
5645
+ * @remarks
5646
+ * 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.
5647
+ *
5648
+ * > If you do not specify the scaling group ID, you must specify this parameter.
5649
+ *
5621
5650
  * @example
5622
5651
  * 1
5623
5652
  */
5624
5653
  ipv6AddressCount?: number;
5625
5654
  /**
5626
5655
  * @remarks
5656
+ * **
5657
+ *
5658
+ * **Warning** This parameter is deprecated. We recommend that you use SpotStrategy.
5659
+ *
5627
5660
  * 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:
5628
5661
  *
5629
5662
  * * NoSpot: The instances are created as regular pay-as-you-go instances.
5630
- * * SpotWithPriceLimit: The instances are created as preemptible instances that have a user-defined maximum hourly price.
5663
+ * * SpotWithPriceLimit: The instances are created as preemptible instances with a user-defined maximum hourly price.
5631
5664
  * * 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.
5632
5665
  *
5633
5666
  * Default value: NoSpot.
@@ -5660,6 +5693,15 @@ export declare class DescribeElasticStrengthRequest extends $tea.Model {
5660
5693
  */
5661
5694
  scalingGroupIds?: string[];
5662
5695
  /**
5696
+ * @remarks
5697
+ * The instance bidding policy. Valid values:
5698
+ *
5699
+ * * NoSpot: The instances are created as pay-as-you-go instances.
5700
+ * * SpotWithPriceLimit: The instances are created as preemptible instances with a user-defined maximum hourly price.
5701
+ * * SpotAsPriceGo: The instances are created as preemptible instances for which the market price at the time of purchase is used as the bid price.
5702
+ *
5703
+ * Default value: NoSpot.
5704
+ *
5663
5705
  * @example
5664
5706
  * NoSpot
5665
5707
  */
@@ -5672,8 +5714,16 @@ export declare class DescribeElasticStrengthRequest extends $tea.Model {
5672
5714
  * * cloud_efficiency: ultra disk.
5673
5715
  * * cloud_ssd: standard SSD.
5674
5716
  * * cloud_essd: Enterprise SSD (ESSD).
5717
+ *
5718
+ * > If you do not specify the scaling group ID, you must specify this parameter.
5675
5719
  */
5676
5720
  systemDiskCategories?: string[];
5721
+ /**
5722
+ * @remarks
5723
+ * The vSwitch IDs.
5724
+ *
5725
+ * > If you do not specify the scaling group ID, you must specify this parameter.
5726
+ */
5677
5727
  vSwitchIds?: string[];
5678
5728
  static names(): {
5679
5729
  [key: string]: string;
@@ -5688,7 +5738,7 @@ export declare class DescribeElasticStrengthRequest extends $tea.Model {
5688
5738
  export declare class DescribeElasticStrengthResponseBody extends $tea.Model {
5689
5739
  /**
5690
5740
  * @remarks
5691
- * The scaling strengths of scaling configurations that are queried at the same time.
5741
+ * The scaling strength models.
5692
5742
  */
5693
5743
  elasticStrengthModels?: DescribeElasticStrengthResponseBodyElasticStrengthModels[];
5694
5744
  /**
@@ -5706,7 +5756,11 @@ export declare class DescribeElasticStrengthResponseBody extends $tea.Model {
5706
5756
  resourcePools?: DescribeElasticStrengthResponseBodyResourcePools[];
5707
5757
  /**
5708
5758
  * @remarks
5709
- * 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.
5759
+ * 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.
5760
+ *
5761
+ * **
5762
+ *
5763
+ * **Warning** This parameter is deprecated.
5710
5764
  *
5711
5765
  * @example
5712
5766
  * 1.5
@@ -12519,6 +12573,13 @@ export declare class ModifyScheduledTaskRequest extends $tea.Model {
12519
12573
  * 2
12520
12574
  */
12521
12575
  recurrenceValue?: string;
12576
+ /**
12577
+ * @remarks
12578
+ * The region ID.
12579
+ *
12580
+ * @example
12581
+ * cn-hangzhou
12582
+ */
12522
12583
  regionId?: string;
12523
12584
  resourceOwnerAccount?: string;
12524
12585
  resourceOwnerId?: number;
@@ -21462,9 +21523,49 @@ export declare class DescribeEciScalingConfigurationsResponseBodyScalingConfigur
21462
21523
  });
21463
21524
  }
21464
21525
  export declare class DescribeElasticStrengthResponseBodyElasticStrengthModelsResourcePoolsInventoryHealth extends $tea.Model {
21526
+ /**
21527
+ * @remarks
21528
+ * The adequacy score.
21529
+ *
21530
+ * Valid values: 0 to 3.
21531
+ *
21532
+ * @example
21533
+ * 3
21534
+ */
21465
21535
  adequacyScore?: number;
21536
+ /**
21537
+ * @remarks
21538
+ * The score of the inventory health.
21539
+ *
21540
+ * * A score between 5 and 6 indicates a sufficient inventory.
21541
+ * * A score between 1 and 4 indicates that there is no guarantee of a sufficient inventory. Select a reservation as necessary.
21542
+ * * A score between -3 and 0 indicates that the inventory is sufficient, and an alert is triggered. Select another instance type.
21543
+ *
21544
+ * Calculation formula: `HealthScore` = `AdequacyScore` + `SupplyScore` - `HotScore`.
21545
+ *
21546
+ * @example
21547
+ * 3
21548
+ */
21466
21549
  healthScore?: number;
21550
+ /**
21551
+ * @remarks
21552
+ * The popularity score.
21553
+ *
21554
+ * Valid values: 0 to 3.
21555
+ *
21556
+ * @example
21557
+ * 0
21558
+ */
21467
21559
  hotScore?: number;
21560
+ /**
21561
+ * @remarks
21562
+ * The score of the replenishment capability.
21563
+ *
21564
+ * Valid values: 0 to 3.
21565
+ *
21566
+ * @example
21567
+ * 2
21568
+ */
21468
21569
  supplyScore?: number;
21469
21570
  static names(): {
21470
21571
  [key: string]: string;
@@ -21493,6 +21594,10 @@ export declare class DescribeElasticStrengthResponseBodyElasticStrengthModelsRes
21493
21594
  * ecs.r7.large
21494
21595
  */
21495
21596
  instanceType?: string;
21597
+ /**
21598
+ * @remarks
21599
+ * The inventory health.
21600
+ */
21496
21601
  inventoryHealth?: DescribeElasticStrengthResponseBodyElasticStrengthModelsResourcePoolsInventoryHealth;
21497
21602
  /**
21498
21603
  * @remarks
@@ -21502,11 +21607,25 @@ export declare class DescribeElasticStrengthResponseBodyElasticStrengthModelsRes
21502
21607
  * The instanceTypes or diskTypes are not supported.
21503
21608
  */
21504
21609
  msg?: string;
21610
+ /**
21611
+ * @remarks
21612
+ * Indicates whether the resource pool is available. Valid values:
21613
+ *
21614
+ * * Available
21615
+ * * 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.)
21616
+ *
21617
+ * @example
21618
+ * Available
21619
+ */
21505
21620
  status?: string;
21506
21621
  /**
21507
21622
  * @remarks
21508
21623
  * The scaling strength of the resource pool.
21509
21624
  *
21625
+ * **
21626
+ *
21627
+ * **Warning** This parameter is deprecated.
21628
+ *
21510
21629
  * @example
21511
21630
  * 0.6
21512
21631
  */
@@ -21535,6 +21654,17 @@ export declare class DescribeElasticStrengthResponseBodyElasticStrengthModelsRes
21535
21654
  });
21536
21655
  }
21537
21656
  export declare class DescribeElasticStrengthResponseBodyElasticStrengthModels extends $tea.Model {
21657
+ /**
21658
+ * @remarks
21659
+ * The scaling strength level of the scaling group. Valid values:
21660
+ *
21661
+ * * Strong
21662
+ * * Medium
21663
+ * * Weak
21664
+ *
21665
+ * @example
21666
+ * Strong
21667
+ */
21538
21668
  elasticStrength?: string;
21539
21669
  /**
21540
21670
  * @remarks
@@ -21551,7 +21681,11 @@ export declare class DescribeElasticStrengthResponseBodyElasticStrengthModels ex
21551
21681
  scalingGroupId?: string;
21552
21682
  /**
21553
21683
  * @remarks
21554
- * 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.
21684
+ * 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.
21685
+ *
21686
+ * **
21687
+ *
21688
+ * **Warning** This parameter is deprecated.
21555
21689
  *
21556
21690
  * @example
21557
21691
  * 1.5
package/dist/client.js CHANGED
@@ -314,6 +314,7 @@ class AttachInstancesRequest extends $tea.Model {
314
314
  return {
315
315
  clientToken: 'ClientToken',
316
316
  entrusted: 'Entrusted',
317
+ ignoreInvalidInstance: 'IgnoreInvalidInstance',
317
318
  instanceIds: 'InstanceIds',
318
319
  lifecycleHook: 'LifecycleHook',
319
320
  loadBalancerWeights: 'LoadBalancerWeights',
@@ -329,6 +330,7 @@ class AttachInstancesRequest extends $tea.Model {
329
330
  return {
330
331
  clientToken: 'string',
331
332
  entrusted: 'boolean',
333
+ ignoreInvalidInstance: 'boolean',
332
334
  instanceIds: { 'type': 'array', 'itemType': 'string' },
333
335
  lifecycleHook: 'boolean',
334
336
  loadBalancerWeights: { 'type': 'array', 'itemType': 'number' },
@@ -14245,6 +14247,9 @@ class Client extends openapi_client_1.default {
14245
14247
  if (!tea_util_1.default.isUnset(request.entrusted)) {
14246
14248
  query["Entrusted"] = request.entrusted;
14247
14249
  }
14250
+ if (!tea_util_1.default.isUnset(request.ignoreInvalidInstance)) {
14251
+ query["IgnoreInvalidInstance"] = request.ignoreInvalidInstance;
14252
+ }
14248
14253
  if (!tea_util_1.default.isUnset(request.instanceIds)) {
14249
14254
  query["InstanceIds"] = request.instanceIds;
14250
14255
  }