@alicloud/ess20220222 1.8.18 → 1.8.20

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 (37) hide show
  1. package/dist/client.js +12 -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/DescribeInstanceRefreshesResponseBody.d.ts +64 -0
  7. package/dist/models/DescribeInstanceRefreshesResponseBody.js +119 -1
  8. package/dist/models/DescribeInstanceRefreshesResponseBody.js.map +1 -1
  9. package/dist/models/DescribeNotificationConfigurationsResponseBody.d.ts +1 -0
  10. package/dist/models/DescribeNotificationConfigurationsResponseBody.js +2 -0
  11. package/dist/models/DescribeNotificationConfigurationsResponseBody.js.map +1 -1
  12. package/dist/models/ModifyNotificationConfigurationRequest.d.ts +1 -0
  13. package/dist/models/ModifyNotificationConfigurationRequest.js +2 -0
  14. package/dist/models/ModifyNotificationConfigurationRequest.js.map +1 -1
  15. package/dist/models/ScaleWithAdjustmentRequest.d.ts +32 -9
  16. package/dist/models/ScaleWithAdjustmentRequest.js.map +1 -1
  17. package/dist/models/ScaleWithAdjustmentResponseBody.d.ts +50 -0
  18. package/dist/models/ScaleWithAdjustmentResponseBody.js.map +1 -1
  19. package/dist/models/ScaleWithAdjustmentShrinkRequest.d.ts +23 -4
  20. package/dist/models/ScaleWithAdjustmentShrinkRequest.js.map +1 -1
  21. package/dist/models/StartInstanceRefreshRequest.d.ts +64 -0
  22. package/dist/models/StartInstanceRefreshRequest.js +119 -1
  23. package/dist/models/StartInstanceRefreshRequest.js.map +1 -1
  24. package/dist/models/model.d.ts +8 -0
  25. package/dist/models/model.js +33 -16
  26. package/dist/models/model.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/client.ts +16 -0
  29. package/src/models/CreateNotificationConfigurationRequest.ts +3 -0
  30. package/src/models/DescribeInstanceRefreshesResponseBody.ts +146 -0
  31. package/src/models/DescribeNotificationConfigurationsResponseBody.ts +3 -0
  32. package/src/models/ModifyNotificationConfigurationRequest.ts +3 -0
  33. package/src/models/ScaleWithAdjustmentRequest.ts +32 -9
  34. package/src/models/ScaleWithAdjustmentResponseBody.ts +50 -0
  35. package/src/models/ScaleWithAdjustmentShrinkRequest.ts +23 -4
  36. package/src/models/StartInstanceRefreshRequest.ts +146 -0
  37. package/src/models/model.ts +8 -0
package/src/client.ts CHANGED
@@ -1528,6 +1528,10 @@ export default class Client extends OpenApi {
1528
1528
  async createNotificationConfigurationWithOptions(request: $_model.CreateNotificationConfigurationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateNotificationConfigurationResponse> {
1529
1529
  request.validate();
1530
1530
  let query = { };
1531
+ if (!$dara.isNull(request.messageEncoding)) {
1532
+ query["MessageEncoding"] = request.messageEncoding;
1533
+ }
1534
+
1531
1535
  if (!$dara.isNull(request.notificationArn)) {
1532
1536
  query["NotificationArn"] = request.notificationArn;
1533
1537
  }
@@ -6395,6 +6399,10 @@ export default class Client extends OpenApi {
6395
6399
  async modifyNotificationConfigurationWithOptions(request: $_model.ModifyNotificationConfigurationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyNotificationConfigurationResponse> {
6396
6400
  request.validate();
6397
6401
  let query = { };
6402
+ if (!$dara.isNull(request.messageEncoding)) {
6403
+ query["MessageEncoding"] = request.messageEncoding;
6404
+ }
6405
+
6398
6406
  if (!$dara.isNull(request.notificationArn)) {
6399
6407
  query["NotificationArn"] = request.notificationArn;
6400
6408
  }
@@ -7989,6 +7997,14 @@ export default class Client extends OpenApi {
7989
7997
  async startInstanceRefreshWithOptions(request: $_model.StartInstanceRefreshRequest, runtime: $dara.RuntimeOptions): Promise<$_model.StartInstanceRefreshResponse> {
7990
7998
  request.validate();
7991
7999
  let query = { };
8000
+ if (!$dara.isNull(request.checkpointPauseTime)) {
8001
+ query["CheckpointPauseTime"] = request.checkpointPauseTime;
8002
+ }
8003
+
8004
+ if (!$dara.isNull(request.checkpoints)) {
8005
+ query["Checkpoints"] = request.checkpoints;
8006
+ }
8007
+
7992
8008
  if (!$dara.isNull(request.clientToken)) {
7993
8009
  query["ClientToken"] = request.clientToken;
7994
8010
  }
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class CreateNotificationConfigurationRequest extends $dara.Model {
6
+ messageEncoding?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * The Alibaba Cloud Resource Name (ARN) of the notification recipient. The following list describes the value formats of this parameter:
@@ -63,6 +64,7 @@ export class CreateNotificationConfigurationRequest extends $dara.Model {
63
64
  timeZone?: string;
64
65
  static names(): { [key: string]: string } {
65
66
  return {
67
+ messageEncoding: 'MessageEncoding',
66
68
  notificationArn: 'NotificationArn',
67
69
  notificationTypes: 'NotificationTypes',
68
70
  ownerId: 'OwnerId',
@@ -75,6 +77,7 @@ export class CreateNotificationConfigurationRequest extends $dara.Model {
75
77
 
76
78
  static types(): { [key: string]: any } {
77
79
  return {
80
+ messageEncoding: 'string',
78
81
  notificationArn: 'string',
79
82
  notificationTypes: { 'type': 'array', 'itemType': 'string' },
80
83
  ownerId: 'number',
@@ -2,7 +2,127 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksCheckpoints extends $dara.Model {
6
+ percentage?: number;
7
+ static names(): { [key: string]: string } {
8
+ return {
9
+ percentage: 'Percentage',
10
+ };
11
+ }
12
+
13
+ static types(): { [key: string]: any } {
14
+ return {
15
+ percentage: 'number',
16
+ };
17
+ }
18
+
19
+ validate() {
20
+ super.validate();
21
+ }
22
+
23
+ constructor(map?: { [key: string]: any }) {
24
+ super(map);
25
+ }
26
+ }
27
+
28
+ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainersEnvironmentVars extends $dara.Model {
29
+ fieldRefFieldPath?: string;
30
+ key?: string;
31
+ value?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ fieldRefFieldPath: 'FieldRefFieldPath',
35
+ key: 'Key',
36
+ value: 'Value',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ fieldRefFieldPath: 'string',
43
+ key: 'string',
44
+ value: 'string',
45
+ };
46
+ }
47
+
48
+ validate() {
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
57
+ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainers extends $dara.Model {
58
+ args?: string[];
59
+ commands?: string[];
60
+ environmentVars?: DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainersEnvironmentVars[];
61
+ image?: string;
62
+ name?: string;
63
+ static names(): { [key: string]: string } {
64
+ return {
65
+ args: 'Args',
66
+ commands: 'Commands',
67
+ environmentVars: 'EnvironmentVars',
68
+ image: 'Image',
69
+ name: 'Name',
70
+ };
71
+ }
72
+
73
+ static types(): { [key: string]: any } {
74
+ return {
75
+ args: { 'type': 'array', 'itemType': 'string' },
76
+ commands: { 'type': 'array', 'itemType': 'string' },
77
+ environmentVars: { 'type': 'array', 'itemType': DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainersEnvironmentVars },
78
+ image: 'string',
79
+ name: 'string',
80
+ };
81
+ }
82
+
83
+ validate() {
84
+ if(Array.isArray(this.args)) {
85
+ $dara.Model.validateArray(this.args);
86
+ }
87
+ if(Array.isArray(this.commands)) {
88
+ $dara.Model.validateArray(this.commands);
89
+ }
90
+ if(Array.isArray(this.environmentVars)) {
91
+ $dara.Model.validateArray(this.environmentVars);
92
+ }
93
+ super.validate();
94
+ }
95
+
96
+ constructor(map?: { [key: string]: any }) {
97
+ super(map);
98
+ }
99
+ }
100
+
101
+ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationLaunchTemplateOverrides extends $dara.Model {
102
+ instanceType?: string;
103
+ static names(): { [key: string]: string } {
104
+ return {
105
+ instanceType: 'InstanceType',
106
+ };
107
+ }
108
+
109
+ static types(): { [key: string]: any } {
110
+ return {
111
+ instanceType: 'string',
112
+ };
113
+ }
114
+
115
+ validate() {
116
+ super.validate();
117
+ }
118
+
119
+ constructor(map?: { [key: string]: any }) {
120
+ super(map);
121
+ }
122
+ }
123
+
5
124
  export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfiguration extends $dara.Model {
125
+ containers?: DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainers[];
6
126
  /**
7
127
  * @remarks
8
128
  * The ID of the image file that provides the image resource for Auto Scaling to create instances.
@@ -11,6 +131,9 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredCon
11
131
  * m-uf6g5noisr****
12
132
  */
13
133
  imageId?: string;
134
+ launchTemplateId?: string;
135
+ launchTemplateOverrides?: DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationLaunchTemplateOverrides[];
136
+ launchTemplateVersion?: string;
14
137
  /**
15
138
  * @remarks
16
139
  * The ID of the scaling configuration.
@@ -21,19 +144,33 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredCon
21
144
  scalingConfigurationId?: string;
22
145
  static names(): { [key: string]: string } {
23
146
  return {
147
+ containers: 'Containers',
24
148
  imageId: 'ImageId',
149
+ launchTemplateId: 'LaunchTemplateId',
150
+ launchTemplateOverrides: 'LaunchTemplateOverrides',
151
+ launchTemplateVersion: 'LaunchTemplateVersion',
25
152
  scalingConfigurationId: 'ScalingConfigurationId',
26
153
  };
27
154
  }
28
155
 
29
156
  static types(): { [key: string]: any } {
30
157
  return {
158
+ containers: { 'type': 'array', 'itemType': DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainers },
31
159
  imageId: 'string',
160
+ launchTemplateId: 'string',
161
+ launchTemplateOverrides: { 'type': 'array', 'itemType': DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationLaunchTemplateOverrides },
162
+ launchTemplateVersion: 'string',
32
163
  scalingConfigurationId: 'string',
33
164
  };
34
165
  }
35
166
 
36
167
  validate() {
168
+ if(Array.isArray(this.containers)) {
169
+ $dara.Model.validateArray(this.containers);
170
+ }
171
+ if(Array.isArray(this.launchTemplateOverrides)) {
172
+ $dara.Model.validateArray(this.launchTemplateOverrides);
173
+ }
37
174
  super.validate();
38
175
  }
39
176
 
@@ -43,6 +180,8 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredCon
43
180
  }
44
181
 
45
182
  export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasks extends $dara.Model {
183
+ checkpointPauseTime?: number;
184
+ checkpoints?: DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksCheckpoints[];
46
185
  /**
47
186
  * @remarks
48
187
  * The desired configurations of the instance refresh task.
@@ -164,6 +303,8 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasks extends $
164
303
  totalNeedUpdateCapacity?: number;
165
304
  static names(): { [key: string]: string } {
166
305
  return {
306
+ checkpointPauseTime: 'CheckpointPauseTime',
307
+ checkpoints: 'Checkpoints',
167
308
  desiredConfiguration: 'DesiredConfiguration',
168
309
  detail: 'Detail',
169
310
  endTime: 'EndTime',
@@ -182,6 +323,8 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasks extends $
182
323
 
183
324
  static types(): { [key: string]: any } {
184
325
  return {
326
+ checkpointPauseTime: 'number',
327
+ checkpoints: { 'type': 'array', 'itemType': DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksCheckpoints },
185
328
  desiredConfiguration: DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfiguration,
186
329
  detail: 'string',
187
330
  endTime: 'string',
@@ -199,6 +342,9 @@ export class DescribeInstanceRefreshesResponseBodyInstanceRefreshTasks extends $
199
342
  }
200
343
 
201
344
  validate() {
345
+ if(Array.isArray(this.checkpoints)) {
346
+ $dara.Model.validateArray(this.checkpoints);
347
+ }
202
348
  if(this.desiredConfiguration && typeof (this.desiredConfiguration as any).validate === 'function') {
203
349
  (this.desiredConfiguration as any).validate();
204
350
  }
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class DescribeNotificationConfigurationsResponseBodyNotificationConfigurationModels extends $dara.Model {
6
+ messageEncoding?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * The Alibaba Cloud Resource Name (ARN) of the notification recipient. The value is in one of the following formats:
@@ -45,6 +46,7 @@ export class DescribeNotificationConfigurationsResponseBodyNotificationConfigura
45
46
  timeZone?: string;
46
47
  static names(): { [key: string]: string } {
47
48
  return {
49
+ messageEncoding: 'MessageEncoding',
48
50
  notificationArn: 'NotificationArn',
49
51
  notificationTypes: 'NotificationTypes',
50
52
  scalingGroupId: 'ScalingGroupId',
@@ -54,6 +56,7 @@ export class DescribeNotificationConfigurationsResponseBodyNotificationConfigura
54
56
 
55
57
  static types(): { [key: string]: any } {
56
58
  return {
59
+ messageEncoding: 'string',
57
60
  notificationArn: 'string',
58
61
  notificationTypes: { 'type': 'array', 'itemType': 'string' },
59
62
  scalingGroupId: 'string',
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ModifyNotificationConfigurationRequest extends $dara.Model {
6
+ messageEncoding?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * The Alibaba Cloud Resource Name (ARN) of the notification recipient. The following list describes the value formats of this parameter:
@@ -61,6 +62,7 @@ export class ModifyNotificationConfigurationRequest extends $dara.Model {
61
62
  timeZone?: string;
62
63
  static names(): { [key: string]: string } {
63
64
  return {
65
+ messageEncoding: 'MessageEncoding',
64
66
  notificationArn: 'NotificationArn',
65
67
  notificationTypes: 'NotificationTypes',
66
68
  ownerId: 'OwnerId',
@@ -73,6 +75,7 @@ export class ModifyNotificationConfigurationRequest extends $dara.Model {
73
75
 
74
76
  static types(): { [key: string]: any } {
75
77
  return {
78
+ messageEncoding: 'string',
76
79
  notificationArn: 'string',
77
80
  notificationTypes: { 'type': 'array', 'itemType': 'string' },
78
81
  ownerId: 'number',
@@ -48,7 +48,7 @@ export class ScaleWithAdjustmentRequestLifecycleHookContext extends $dara.Model
48
48
  export class ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars extends $dara.Model {
49
49
  /**
50
50
  * @remarks
51
- * The name of the environment variable. The name must be 1 to 128 characters in length and can contain letters, underscores (_), and digits. The name cannot start with a digit. Specify the value in the `[0-9a-zA-Z]` format.
51
+ * The name of the environment variable. The name must be 1 to 128 characters in length. Format requirement: `[0-9a-zA-Z]` and underscores (_). It cannot start with a digit.
52
52
  *
53
53
  * @example
54
54
  * PATH
@@ -88,7 +88,7 @@ export class ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVar
88
88
  export class ScaleWithAdjustmentRequestOverridesContainerOverrides extends $dara.Model {
89
89
  /**
90
90
  * @remarks
91
- * The arguments that correspond to the startup commands of the container. You can specify up to 10 arguments.
91
+ * The argument that corresponds to the startup command of the container. You can specify up to 10 arguments.
92
92
  */
93
93
  args?: string[];
94
94
  /**
@@ -98,7 +98,7 @@ export class ScaleWithAdjustmentRequestOverridesContainerOverrides extends $dara
98
98
  commands?: string[];
99
99
  /**
100
100
  * @remarks
101
- * The number of vCPUs that you want to allocate to the container.
101
+ * The number of vCPUs that you want to allocate to the container. Unit: vCPUs.
102
102
  *
103
103
  * @example
104
104
  * 2
@@ -119,7 +119,7 @@ export class ScaleWithAdjustmentRequestOverridesContainerOverrides extends $dara
119
119
  memory?: number;
120
120
  /**
121
121
  * @remarks
122
- * The container name. If you specify ContainerOverrides, you must also specify Name. ContainerOverrides takes effect only when the container name specified by Name matches that specified in the scaling configuration.
122
+ * The name of container N. If you specify ContainerOverrides, you must also specify Name. ContainerOverrides takes effect only when the container name specified by Name matches that specified in the scaling configuration.
123
123
  *
124
124
  * @example
125
125
  * container-1
@@ -173,7 +173,7 @@ export class ScaleWithAdjustmentRequestOverrides extends $dara.Model {
173
173
  containerOverrides?: ScaleWithAdjustmentRequestOverridesContainerOverrides[];
174
174
  /**
175
175
  * @remarks
176
- * The number of vCPUs that you want to allocate to the instance.
176
+ * The number of vCPUs that you want to allocate to the instance. Unit: vCPUs.
177
177
  *
178
178
  * @example
179
179
  * 2
@@ -187,6 +187,10 @@ export class ScaleWithAdjustmentRequestOverrides extends $dara.Model {
187
187
  * 4
188
188
  */
189
189
  memory?: number;
190
+ /**
191
+ * @example
192
+ * ZWNobyBoZWxsbyBlY3Mh
193
+ */
190
194
  userData?: string;
191
195
  static names(): { [key: string]: string } {
192
196
  return {
@@ -263,6 +267,18 @@ export class ScaleWithAdjustmentRequest extends $dara.Model {
263
267
  * 123e4567-e89b-12d3-a456-42665544****
264
268
  */
265
269
  clientToken?: string;
270
+ /**
271
+ * @remarks
272
+ * The execution mode. Valid values:
273
+ *
274
+ * * None: If this is not specified, auto scaling is performed.
275
+ * * 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.
276
+ *
277
+ * Default value: None.
278
+ *
279
+ * @example
280
+ * PlanOnly
281
+ */
266
282
  executionMode?: string;
267
283
  /**
268
284
  * @remarks
@@ -283,6 +299,13 @@ export class ScaleWithAdjustmentRequest extends $dara.Model {
283
299
  */
284
300
  overrides?: ScaleWithAdjustmentRequestOverrides;
285
301
  ownerId?: number;
302
+ /**
303
+ * @remarks
304
+ * Whether the current scale-out task supports concurrency.
305
+ *
306
+ * @example
307
+ * false
308
+ */
286
309
  parallelTask?: boolean;
287
310
  resourceOwnerAccount?: string;
288
311
  /**
@@ -297,12 +320,12 @@ export class ScaleWithAdjustmentRequest extends $dara.Model {
297
320
  scalingGroupId?: string;
298
321
  /**
299
322
  * @remarks
300
- * 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:
323
+ * 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:
301
324
  *
302
- * * true: triggers the scaling activity in a synchronous manner. A scaling activity is triggered at the time when the scaling rule is executed.
303
- * * 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.
325
+ * * true: triggers the scaling task in a synchronous manner. A scaling activity is triggered at the time when the scaling rule is executed.
326
+ * * 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.
304
327
  *
305
- * > For more information about the expected number of instances feature, see [Expected number of instances](https://help.aliyun.com/document_detail/146231.html).
328
+ * > For more information, see [Expected number of instances](https://help.aliyun.com/document_detail/146231.html).
306
329
  *
307
330
  * Default value: false.
308
331
  *
@@ -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
  *