@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
@@ -2,7 +2,127 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class StartInstanceRefreshRequestCheckpoints 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 StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmentVars 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 StartInstanceRefreshRequestDesiredConfigurationContainers extends $dara.Model {
58
+ args?: string[];
59
+ commands?: string[];
60
+ environmentVars?: StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmentVars[];
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': StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmentVars },
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 StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverrides 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 StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model {
125
+ containers?: StartInstanceRefreshRequestDesiredConfigurationContainers[];
6
126
  /**
7
127
  * @remarks
8
128
  * The image ID.
@@ -17,6 +137,9 @@ export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model
17
137
  * m-2ze8cqacj7opnf***
18
138
  */
19
139
  imageId?: string;
140
+ launchTemplateId?: string;
141
+ launchTemplateOverrides?: StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverrides[];
142
+ launchTemplateVersion?: string;
20
143
  /**
21
144
  * @remarks
22
145
  * The ID of the scaling configuration.
@@ -29,19 +152,33 @@ export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model
29
152
  scalingConfigurationId?: string;
30
153
  static names(): { [key: string]: string } {
31
154
  return {
155
+ containers: 'Containers',
32
156
  imageId: 'ImageId',
157
+ launchTemplateId: 'LaunchTemplateId',
158
+ launchTemplateOverrides: 'LaunchTemplateOverrides',
159
+ launchTemplateVersion: 'LaunchTemplateVersion',
33
160
  scalingConfigurationId: 'ScalingConfigurationId',
34
161
  };
35
162
  }
36
163
 
37
164
  static types(): { [key: string]: any } {
38
165
  return {
166
+ containers: { 'type': 'array', 'itemType': StartInstanceRefreshRequestDesiredConfigurationContainers },
39
167
  imageId: 'string',
168
+ launchTemplateId: 'string',
169
+ launchTemplateOverrides: { 'type': 'array', 'itemType': StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverrides },
170
+ launchTemplateVersion: 'string',
40
171
  scalingConfigurationId: 'string',
41
172
  };
42
173
  }
43
174
 
44
175
  validate() {
176
+ if(Array.isArray(this.containers)) {
177
+ $dara.Model.validateArray(this.containers);
178
+ }
179
+ if(Array.isArray(this.launchTemplateOverrides)) {
180
+ $dara.Model.validateArray(this.launchTemplateOverrides);
181
+ }
45
182
  super.validate();
46
183
  }
47
184
 
@@ -51,6 +188,8 @@ export class StartInstanceRefreshRequestDesiredConfiguration extends $dara.Model
51
188
  }
52
189
 
53
190
  export class StartInstanceRefreshRequest extends $dara.Model {
191
+ checkpointPauseTime?: number;
192
+ checkpoints?: StartInstanceRefreshRequestCheckpoints[];
54
193
  /**
55
194
  * @remarks
56
195
  * The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [Ensure idempotence](https://help.aliyun.com/document_detail/25965.html).
@@ -129,6 +268,8 @@ export class StartInstanceRefreshRequest extends $dara.Model {
129
268
  skipMatching?: boolean;
130
269
  static names(): { [key: string]: string } {
131
270
  return {
271
+ checkpointPauseTime: 'CheckpointPauseTime',
272
+ checkpoints: 'Checkpoints',
132
273
  clientToken: 'ClientToken',
133
274
  desiredConfiguration: 'DesiredConfiguration',
134
275
  maxHealthyPercentage: 'MaxHealthyPercentage',
@@ -143,6 +284,8 @@ export class StartInstanceRefreshRequest extends $dara.Model {
143
284
 
144
285
  static types(): { [key: string]: any } {
145
286
  return {
287
+ checkpointPauseTime: 'number',
288
+ checkpoints: { 'type': 'array', 'itemType': StartInstanceRefreshRequestCheckpoints },
146
289
  clientToken: 'string',
147
290
  desiredConfiguration: StartInstanceRefreshRequestDesiredConfiguration,
148
291
  maxHealthyPercentage: 'number',
@@ -156,6 +299,9 @@ export class StartInstanceRefreshRequest extends $dara.Model {
156
299
  }
157
300
 
158
301
  validate() {
302
+ if(Array.isArray(this.checkpoints)) {
303
+ $dara.Model.validateArray(this.checkpoints);
304
+ }
159
305
  if(this.desiredConfiguration && typeof (this.desiredConfiguration as any).validate === 'function') {
160
306
  (this.desiredConfiguration as any).validate();
161
307
  }
@@ -121,6 +121,10 @@ export { DescribeElasticStrengthResponseBodyElasticStrengthModelsResourcePools }
121
121
  export { DescribeElasticStrengthResponseBodyElasticStrengthModels } from './DescribeElasticStrengthResponseBody';
122
122
  export { DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth } from './DescribeElasticStrengthResponseBody';
123
123
  export { DescribeElasticStrengthResponseBodyResourcePools } from './DescribeElasticStrengthResponseBody';
124
+ export { DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksCheckpoints } from './DescribeInstanceRefreshesResponseBody';
125
+ export { DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainersEnvironmentVars } from './DescribeInstanceRefreshesResponseBody';
126
+ export { DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationContainers } from './DescribeInstanceRefreshesResponseBody';
127
+ export { DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfigurationLaunchTemplateOverrides } from './DescribeInstanceRefreshesResponseBody';
124
128
  export { DescribeInstanceRefreshesResponseBodyInstanceRefreshTasksDesiredConfiguration } from './DescribeInstanceRefreshesResponseBody';
125
129
  export { DescribeInstanceRefreshesResponseBodyInstanceRefreshTasks } from './DescribeInstanceRefreshesResponseBody';
126
130
  export { DescribeLifecycleActionsResponseBodyLifecycleActions } from './DescribeLifecycleActionsResponseBody';
@@ -250,6 +254,10 @@ export { ScaleWithAdjustmentRequestOverridesContainerOverrides } from './ScaleWi
250
254
  export { ScaleWithAdjustmentRequestOverrides } from './ScaleWithAdjustmentRequest';
251
255
  export { ScaleWithAdjustmentResponseBodyPlanResultResourceAllocations } from './ScaleWithAdjustmentResponseBody';
252
256
  export { ScaleWithAdjustmentResponseBodyPlanResult } from './ScaleWithAdjustmentResponseBody';
257
+ export { StartInstanceRefreshRequestCheckpoints } from './StartInstanceRefreshRequest';
258
+ export { StartInstanceRefreshRequestDesiredConfigurationContainersEnvironmentVars } from './StartInstanceRefreshRequest';
259
+ export { StartInstanceRefreshRequestDesiredConfigurationContainers } from './StartInstanceRefreshRequest';
260
+ export { StartInstanceRefreshRequestDesiredConfigurationLaunchTemplateOverrides } from './StartInstanceRefreshRequest';
253
261
  export { StartInstanceRefreshRequestDesiredConfiguration } from './StartInstanceRefreshRequest';
254
262
  export { TagResourcesRequestTags } from './TagResourcesRequest';
255
263
  export { ApplyEciScalingConfigurationRequest } from './ApplyEciScalingConfigurationRequest';