@alicloud/ess20220222 1.8.17 → 1.8.19

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.
Files changed (26) hide show
  1. package/dist/client.js +6 -0
  2. package/dist/client.js.map +1 -1
  3. package/dist/models/CreateNotificationConfigurationRequest.d.ts +1 -0
  4. package/dist/models/CreateNotificationConfigurationRequest.js +2 -0
  5. package/dist/models/CreateNotificationConfigurationRequest.js.map +1 -1
  6. package/dist/models/DescribeNotificationConfigurationsResponseBody.d.ts +1 -0
  7. package/dist/models/DescribeNotificationConfigurationsResponseBody.js +2 -0
  8. package/dist/models/DescribeNotificationConfigurationsResponseBody.js.map +1 -1
  9. package/dist/models/ModifyNotificationConfigurationRequest.d.ts +1 -0
  10. package/dist/models/ModifyNotificationConfigurationRequest.js +2 -0
  11. package/dist/models/ModifyNotificationConfigurationRequest.js.map +1 -1
  12. package/dist/models/ScaleWithAdjustmentRequest.d.ts +33 -9
  13. package/dist/models/ScaleWithAdjustmentRequest.js +2 -0
  14. package/dist/models/ScaleWithAdjustmentRequest.js.map +1 -1
  15. package/dist/models/ScaleWithAdjustmentResponseBody.d.ts +50 -0
  16. package/dist/models/ScaleWithAdjustmentResponseBody.js.map +1 -1
  17. package/dist/models/ScaleWithAdjustmentShrinkRequest.d.ts +23 -4
  18. package/dist/models/ScaleWithAdjustmentShrinkRequest.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/client.ts +8 -0
  21. package/src/models/CreateNotificationConfigurationRequest.ts +3 -0
  22. package/src/models/DescribeNotificationConfigurationsResponseBody.ts +3 -0
  23. package/src/models/ModifyNotificationConfigurationRequest.ts +3 -0
  24. package/src/models/ScaleWithAdjustmentRequest.ts +35 -9
  25. package/src/models/ScaleWithAdjustmentResponseBody.ts +50 -0
  26. package/src/models/ScaleWithAdjustmentShrinkRequest.ts +23 -4
@@ -3,10 +3,52 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ScaleWithAdjustmentResponseBodyPlanResultResourceAllocations extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The number of instances.
9
+ *
10
+ * @example
11
+ * 1
12
+ */
6
13
  amount?: number;
14
+ /**
15
+ * @remarks
16
+ * The billing method of the instance. Valid values:
17
+ *
18
+ * * **Prepaid**: subscription.
19
+ * * **Postpaid**: pay-as-you-go.
20
+ *
21
+ * @example
22
+ * PostPaid
23
+ */
7
24
  instanceChargeType?: string;
25
+ /**
26
+ * @remarks
27
+ * The instance type.
28
+ *
29
+ * @example
30
+ * ecs.u1-c1m8.large
31
+ */
8
32
  instanceType?: string;
33
+ /**
34
+ * @remarks
35
+ * The spot policy of instances. Valid values:
36
+ *
37
+ * * NoSpot: The instances are created as pay-as-you-go instances.
38
+ * * SpotWithPriceLimit: The instances are created as spot instances for which you can specify the maximum hourly price.
39
+ * * SpotAsPriceGo: The instances are spot instances for which the market price at the time of purchase is automatically used as the bid price.
40
+ *
41
+ * @example
42
+ * NoSpot
43
+ */
9
44
  spotStrategy?: string;
45
+ /**
46
+ * @remarks
47
+ * The ID of the zone.
48
+ *
49
+ * @example
50
+ * cn-beijing-g
51
+ */
10
52
  zoneId?: string;
11
53
  static names(): { [key: string]: string } {
12
54
  return {
@@ -38,6 +80,10 @@ export class ScaleWithAdjustmentResponseBodyPlanResultResourceAllocations extend
38
80
  }
39
81
 
40
82
  export class ScaleWithAdjustmentResponseBodyPlanResult extends $dara.Model {
83
+ /**
84
+ * @remarks
85
+ * The resource allocation information in the elastic planning result.
86
+ */
41
87
  resourceAllocations?: ScaleWithAdjustmentResponseBodyPlanResultResourceAllocations[];
42
88
  static names(): { [key: string]: string } {
43
89
  return {
@@ -76,6 +122,10 @@ export class ScaleWithAdjustmentResponseBody extends $dara.Model {
76
122
  * CapacityChange
77
123
  */
78
124
  activityType?: string;
125
+ /**
126
+ * @remarks
127
+ * The elastic planning result returned when the ExecutionMode is set to PlanOnly.
128
+ */
79
129
  planResult?: ScaleWithAdjustmentResponseBodyPlanResult;
80
130
  /**
81
131
  * @remarks
@@ -47,6 +47,18 @@ export class ScaleWithAdjustmentShrinkRequest extends $dara.Model {
47
47
  * 123e4567-e89b-12d3-a456-42665544****
48
48
  */
49
49
  clientToken?: string;
50
+ /**
51
+ * @remarks
52
+ * The execution mode. Valid values:
53
+ *
54
+ * * None: If this is not specified, auto scaling is performed.
55
+ * * PlanOnly: Scaling is not triggered. Only elastic planning is performed. The planning result is returned in PlanResult, including the instance type, zone ID, billing type, and number of created instances.
56
+ *
57
+ * Default value: None.
58
+ *
59
+ * @example
60
+ * PlanOnly
61
+ */
50
62
  executionMode?: string;
51
63
  /**
52
64
  * @remarks
@@ -67,6 +79,13 @@ export class ScaleWithAdjustmentShrinkRequest extends $dara.Model {
67
79
  */
68
80
  overridesShrink?: string;
69
81
  ownerId?: number;
82
+ /**
83
+ * @remarks
84
+ * Whether the current scale-out task supports concurrency.
85
+ *
86
+ * @example
87
+ * false
88
+ */
70
89
  parallelTask?: boolean;
71
90
  resourceOwnerAccount?: string;
72
91
  /**
@@ -81,12 +100,12 @@ export class ScaleWithAdjustmentShrinkRequest extends $dara.Model {
81
100
  scalingGroupId?: string;
82
101
  /**
83
102
  * @remarks
84
- * Specifies whether to trigger the scaling activity in a synchronous manner. This parameter takes effect only on scaling groups for which you specified an expected number of instances. Valid values:
103
+ * Specifies whether to trigger the scaling task in a synchronous manner. This parameter takes effect only on scaling groups for which you specified an expected number of instances. Valid Values:
85
104
  *
86
- * * true: triggers the scaling activity in a synchronous manner. A scaling activity is triggered at the time when the scaling rule is executed.
87
- * * false: does not trigger the scaling activity in a synchronous manner. After you change the expected number of instances for the scaling group, Auto Scaling checks whether the total number of instances in the scaling group matches the new expected number and determines whether to trigger the scaling activity based on the check result.
105
+ * * true: triggers the scaling task in a synchronous manner. A scaling activity is triggered at the time when the scaling rule is executed.
106
+ * * false: does not trigger the scaling task in a synchronous manner. After you change the expected number of instances for the scaling group, Auto Scaling checks whether the total number of instances in the scaling group matches the new expected number and determines whether to trigger the scaling activity based on the check result.
88
107
  *
89
- * > For more information about the expected number of instances feature, see [Expected number of instances](https://help.aliyun.com/document_detail/146231.html).
108
+ * > For more information, see [Expected number of instances](https://help.aliyun.com/document_detail/146231.html).
90
109
  *
91
110
  * Default value: false.
92
111
  *