@alicloud/ess20220222 1.8.21 → 1.8.23

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 (44) hide show
  1. package/dist/client.js +3 -0
  2. package/dist/client.js.map +1 -1
  3. package/dist/models/CreateAlarmRequest.d.ts +15 -12
  4. package/dist/models/CreateAlarmRequest.js.map +1 -1
  5. package/dist/models/CreateScalingGroupRequest.d.ts +28 -4
  6. package/dist/models/CreateScalingGroupRequest.js.map +1 -1
  7. package/dist/models/DescribeInstanceRefreshesResponseBody.d.ts +40 -0
  8. package/dist/models/DescribeInstanceRefreshesResponseBody.js.map +1 -1
  9. package/dist/models/DescribeScalingGroupsRequest.d.ts +2 -2
  10. package/dist/models/DescribeScalingGroupsResponseBody.d.ts +20 -0
  11. package/dist/models/DescribeScalingGroupsResponseBody.js.map +1 -1
  12. package/dist/models/ModifyEciScalingConfigurationRequest.d.ts +1 -0
  13. package/dist/models/ModifyEciScalingConfigurationRequest.js +2 -0
  14. package/dist/models/ModifyEciScalingConfigurationRequest.js.map +1 -1
  15. package/dist/models/ModifyScalingGroupRequest.d.ts +24 -0
  16. package/dist/models/ModifyScalingGroupRequest.js.map +1 -1
  17. package/dist/models/RemoveInstancesRequest.d.ts +1 -0
  18. package/dist/models/RemoveInstancesRequest.js +2 -0
  19. package/dist/models/RemoveInstancesRequest.js.map +1 -1
  20. package/dist/models/RemoveInstancesResponseBody.d.ts +16 -0
  21. package/dist/models/RemoveInstancesResponseBody.js +29 -1
  22. package/dist/models/RemoveInstancesResponseBody.js.map +1 -1
  23. package/dist/models/ScaleWithAdjustmentRequest.d.ts +1 -0
  24. package/dist/models/ScaleWithAdjustmentRequest.js +2 -0
  25. package/dist/models/ScaleWithAdjustmentRequest.js.map +1 -1
  26. package/dist/models/StartInstanceRefreshRequest.d.ts +116 -4
  27. package/dist/models/StartInstanceRefreshRequest.js.map +1 -1
  28. package/dist/models/model.d.ts +1 -0
  29. package/dist/models/model.js +11 -9
  30. package/dist/models/model.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/client.ts +4 -0
  33. package/src/models/CreateAlarmRequest.ts +15 -12
  34. package/src/models/CreateScalingGroupRequest.ts +28 -4
  35. package/src/models/DescribeInstanceRefreshesResponseBody.ts +40 -0
  36. package/src/models/DescribeScalingGroupsRequest.ts +2 -2
  37. package/src/models/DescribeScalingGroupsResponseBody.ts +20 -0
  38. package/src/models/ModifyEciScalingConfigurationRequest.ts +3 -0
  39. package/src/models/ModifyScalingGroupRequest.ts +24 -0
  40. package/src/models/RemoveInstancesRequest.ts +3 -0
  41. package/src/models/RemoveInstancesResponseBody.ts +35 -0
  42. package/src/models/ScaleWithAdjustmentRequest.ts +3 -0
  43. package/src/models/StartInstanceRefreshRequest.ts +116 -4
  44. package/src/models/model.ts +1 -0
@@ -3,6 +3,15 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class StartInstanceRefreshRequestCheckpoints extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The percentage of new instances in the scaling group to the total number of instances. When this percentage is reached, the task is automatically suspended. Valid values: 1 to 100 (%).
9
+ *
10
+ * > Requires a small to large setting, and the last progress percentage needs to be 100.
11
+ *
12
+ * @example
13
+ * 20
14
+ */
6
15
  percentage?: number;
7
16
  static names(): { [key: string]: string } {
8
17
  return {
@@ -26,8 +35,29 @@ export class StartInstanceRefreshRequestCheckpoints extends $dara.Model {
26
35
  }
27
36
 
28
37
  export class StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmentVars extends $dara.Model {
38
+ /**
39
+ * @remarks
40
+ * > This parameter is unavailable for use.
41
+ *
42
+ * @example
43
+ * fieldPath
44
+ */
29
45
  fieldRefFieldPath?: string;
46
+ /**
47
+ * @remarks
48
+ * The name of the environment variable. It can be 1 to 128 characters in length. Format requirement:[0-9a-zA-Z], and underscores, cannot start with a number.
49
+ *
50
+ * @example
51
+ * PATH
52
+ */
30
53
  key?: string;
54
+ /**
55
+ * @remarks
56
+ * The value of the environment variable. The value must be 0 to 256 bits in length.
57
+ *
58
+ * @example
59
+ * /usr/local/bin
60
+ */
31
61
  value?: string;
32
62
  static names(): { [key: string]: string } {
33
63
  return {
@@ -55,10 +85,36 @@ export class StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmen
55
85
  }
56
86
 
57
87
  export class StartInstanceRefreshRequestDesiredConfigurationContainers extends $dara.Model {
88
+ /**
89
+ * @remarks
90
+ * The argument that corresponds to the startup command of the container. You can specify up to 10 arguments.
91
+ */
58
92
  args?: string[];
93
+ /**
94
+ * @remarks
95
+ * The container startup commands. You can specify up to 20 commands. Each command can contain up to 256 characters.
96
+ */
59
97
  commands?: string[];
98
+ /**
99
+ * @remarks
100
+ * The environment variables.
101
+ */
60
102
  environmentVars?: StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmentVars[];
103
+ /**
104
+ * @remarks
105
+ * The image in the container.
106
+ *
107
+ * @example
108
+ * registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest
109
+ */
61
110
  image?: string;
111
+ /**
112
+ * @remarks
113
+ * The custom name of the container.
114
+ *
115
+ * @example
116
+ * nginx
117
+ */
62
118
  name?: string;
63
119
  static names(): { [key: string]: string } {
64
120
  return {
@@ -99,6 +155,15 @@ export class StartInstanceRefreshRequestDesiredConfigurationContainers extends $
99
155
  }
100
156
 
101
157
  export class StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverrides extends $dara.Model {
158
+ /**
159
+ * @remarks
160
+ * The instance type specified by using this parameter overwrites the instance type of the launch template.
161
+ *
162
+ * > This parameter takes effect only if you specify LaunchTemplateId.
163
+ *
164
+ * @example
165
+ * ecs.c5.2xlarge
166
+ */
102
167
  instanceType?: string;
103
168
  static names(): { [key: string]: string } {
104
169
  return {
@@ -122,6 +187,16 @@ export class StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverri
122
187
  }
123
188
 
124
189
  export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model {
190
+ /**
191
+ * @remarks
192
+ * The containers in the elastic container instance.
193
+ *
194
+ * >
195
+ *
196
+ * * This parameter supports only scaling groups of the ECI type.
197
+ *
198
+ * * Only the containers in the scaling configuration list that are the same as those in the `Container.Name` are refreshed.
199
+ */
125
200
  containers?: StartInstanceRefreshRequestDesiredConfigurationContainers[];
126
201
  /**
127
202
  * @remarks
@@ -137,15 +212,37 @@ export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model
137
212
  * m-2ze8cqacj7opnf***
138
213
  */
139
214
  imageId?: string;
215
+ /**
216
+ * @remarks
217
+ * The ID of the launch template that you want to enable in the scaling group.
218
+ *
219
+ * @example
220
+ * lt-2ze2qli30u***
221
+ */
140
222
  launchTemplateId?: string;
223
+ /**
224
+ * @remarks
225
+ * The information about the instance types that are extended in the launch template.
226
+ */
141
227
  launchTemplateOverrides?: StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverrides[];
228
+ /**
229
+ * @remarks
230
+ * The version number of the launch template. Valid value:
231
+ *
232
+ * * A fixed template version number.
233
+ * * Default: the default version of the template.
234
+ * * Latest: the latest version of the template.
235
+ *
236
+ * > If you set the version to Default or Latest, the instance refresh task cannot be rolled back.
237
+ *
238
+ * @example
239
+ * 8
240
+ */
142
241
  launchTemplateVersion?: string;
143
242
  /**
144
243
  * @remarks
145
244
  * The ID of the scaling configuration.
146
245
  *
147
- * > After the instance refresh task is complete, the scaling group uses the scaling configuration specified by this parameter.
148
- *
149
246
  * @example
150
247
  * asc-2zed7lqn4ts4****
151
248
  */
@@ -188,7 +285,22 @@ export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model
188
285
  }
189
286
 
190
287
  export class StartInstanceRefreshRequest extends $dara.Model {
288
+ /**
289
+ * @remarks
290
+ * The duration of the pause when the refresh task checkpoint is entered.
291
+ *
292
+ * * Unit: minutes
293
+ * * Valid values: 1 to 2880.
294
+ * * Default: 60.
295
+ *
296
+ * @example
297
+ * 10
298
+ */
191
299
  checkpointPauseTime?: number;
300
+ /**
301
+ * @remarks
302
+ * Refresh Task Checkpoint: specifies that the task is automatically suspended for CheckpointPauseTime minutes when the proportion of new instances reaches the specified value during instance refresh.
303
+ */
192
304
  checkpoints?: StartInstanceRefreshRequestCheckpoints[];
193
305
  /**
194
306
  * @remarks
@@ -204,9 +316,9 @@ export class StartInstanceRefreshRequest extends $dara.Model {
204
316
  *
205
317
  * >
206
318
  *
207
- * * When you call this operation, you must specify one of the following parameters: ScalingConfigurationId and ImageId.
319
+ * * ScalingConfigurationId, ImageId, LaunchTemplateId, and Containers cannot be set at the same time. If you do not specify this parameter, the scaling group is refreshed based on the configurations that are in effect.
208
320
  *
209
- * * Instances whose configurations match the desired configurations of the task are ignored during instance refresh.
321
+ * * After the instance refresh task is complete, the scaling group uses the scaling configuration specified by this parameter.
210
322
  */
211
323
  desiredConfiguration?: StartInstanceRefreshRequestDesiredConfiguration;
212
324
  /**
@@ -248,6 +248,7 @@ export { ModifyScalingRuleRequestHybridMetricsDimensions } from './ModifyScaling
248
248
  export { ModifyScalingRuleRequestHybridMetrics } from './ModifyScalingRuleRequest';
249
249
  export { ModifyScalingRuleRequestStepAdjustments } from './ModifyScalingRuleRequest';
250
250
  export { RemoveInstancesRequestLifecycleHookContext } from './RemoveInstancesRequest';
251
+ export { RemoveInstancesResponseBodyIgnoredInstances } from './RemoveInstancesResponseBody';
251
252
  export { ScaleWithAdjustmentRequestLifecycleHookContext } from './ScaleWithAdjustmentRequest';
252
253
  export { ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars } from './ScaleWithAdjustmentRequest';
253
254
  export { ScaleWithAdjustmentRequestOverridesContainerOverrides } from './ScaleWithAdjustmentRequest';