@alicloud/ess20220222 1.8.19 → 1.8.21
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 +2 -2
- package/dist/client.js +20 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateNotificationConfigurationRequest.d.ts +4 -0
- package/dist/models/CreateNotificationConfigurationRequest.js.map +1 -1
- package/dist/models/CreateScalingGroupRequest.d.ts +2 -0
- package/dist/models/CreateScalingGroupRequest.js +4 -0
- package/dist/models/CreateScalingGroupRequest.js.map +1 -1
- package/dist/models/DescribeInstanceRefreshesResponseBody.d.ts +64 -0
- package/dist/models/DescribeInstanceRefreshesResponseBody.js +119 -1
- package/dist/models/DescribeInstanceRefreshesResponseBody.js.map +1 -1
- package/dist/models/DescribeNotificationConfigurationsResponseBody.d.ts +4 -0
- package/dist/models/DescribeNotificationConfigurationsResponseBody.js.map +1 -1
- package/dist/models/DescribeScalingGroupsResponseBody.d.ts +2 -0
- package/dist/models/DescribeScalingGroupsResponseBody.js +4 -0
- package/dist/models/DescribeScalingGroupsResponseBody.js.map +1 -1
- package/dist/models/ModifyNotificationConfigurationRequest.d.ts +4 -0
- package/dist/models/ModifyNotificationConfigurationRequest.js.map +1 -1
- package/dist/models/ModifyScalingGroupRequest.d.ts +2 -0
- package/dist/models/ModifyScalingGroupRequest.js +4 -0
- package/dist/models/ModifyScalingGroupRequest.js.map +1 -1
- package/dist/models/StartInstanceRefreshRequest.d.ts +64 -0
- package/dist/models/StartInstanceRefreshRequest.js +119 -1
- package/dist/models/StartInstanceRefreshRequest.js.map +1 -1
- package/dist/models/model.d.ts +8 -0
- package/dist/models/model.js +33 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +26 -2
- package/src/models/CreateNotificationConfigurationRequest.ts +4 -0
- package/src/models/CreateScalingGroupRequest.ts +6 -0
- package/src/models/DescribeInstanceRefreshesResponseBody.ts +146 -0
- package/src/models/DescribeNotificationConfigurationsResponseBody.ts +4 -0
- package/src/models/DescribeScalingGroupsResponseBody.ts +6 -0
- package/src/models/ModifyNotificationConfigurationRequest.ts +4 -0
- package/src/models/ModifyScalingGroupRequest.ts +6 -0
- package/src/models/StartInstanceRefreshRequest.ts +146 -0
- package/src/models/model.ts +8 -0
|
@@ -654,6 +654,7 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
654
654
|
* priority
|
|
655
655
|
*/
|
|
656
656
|
allocationStrategy?: string;
|
|
657
|
+
autoRebalance?: boolean;
|
|
657
658
|
/**
|
|
658
659
|
* @remarks
|
|
659
660
|
* Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set `MultiAZPolicy` to `COMPOSABLE`. Valid values:
|
|
@@ -669,6 +670,7 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
669
670
|
* false
|
|
670
671
|
*/
|
|
671
672
|
azBalance?: boolean;
|
|
673
|
+
balanceMode?: string;
|
|
672
674
|
/**
|
|
673
675
|
* @remarks
|
|
674
676
|
* The capacity options.
|
|
@@ -1102,7 +1104,9 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
1102
1104
|
return {
|
|
1103
1105
|
albServerGroups: 'AlbServerGroups',
|
|
1104
1106
|
allocationStrategy: 'AllocationStrategy',
|
|
1107
|
+
autoRebalance: 'AutoRebalance',
|
|
1105
1108
|
azBalance: 'AzBalance',
|
|
1109
|
+
balanceMode: 'BalanceMode',
|
|
1106
1110
|
capacityOptions: 'CapacityOptions',
|
|
1107
1111
|
clientToken: 'ClientToken',
|
|
1108
1112
|
compensateWithOnDemand: 'CompensateWithOnDemand',
|
|
@@ -1154,7 +1158,9 @@ export class CreateScalingGroupRequest extends $dara.Model {
|
|
|
1154
1158
|
return {
|
|
1155
1159
|
albServerGroups: { 'type': 'array', 'itemType': CreateScalingGroupRequestAlbServerGroups },
|
|
1156
1160
|
allocationStrategy: 'string',
|
|
1161
|
+
autoRebalance: 'boolean',
|
|
1157
1162
|
azBalance: 'boolean',
|
|
1163
|
+
balanceMode: 'string',
|
|
1158
1164
|
capacityOptions: CreateScalingGroupRequestCapacityOptions,
|
|
1159
1165
|
clientToken: 'string',
|
|
1160
1166
|
compensateWithOnDemand: 'boolean',
|
|
@@ -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
|
}
|
|
@@ -521,6 +521,7 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $dara.Model
|
|
|
521
521
|
* priority
|
|
522
522
|
*/
|
|
523
523
|
allocationStrategy?: string;
|
|
524
|
+
autoRebalance?: boolean;
|
|
524
525
|
/**
|
|
525
526
|
* @remarks
|
|
526
527
|
* Indicates whether instances in the scaling group are evenly distributed across the specified zones. This parameter takes effect only if you set `MultiAZPolicy` to `COMPOSABLE`. Valid values:
|
|
@@ -532,6 +533,7 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $dara.Model
|
|
|
532
533
|
* false
|
|
533
534
|
*/
|
|
534
535
|
azBalance?: boolean;
|
|
536
|
+
balanceMode?: string;
|
|
535
537
|
/**
|
|
536
538
|
* @remarks
|
|
537
539
|
* The capacity options.
|
|
@@ -1026,7 +1028,9 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $dara.Model
|
|
|
1026
1028
|
activeScalingConfigurationId: 'ActiveScalingConfigurationId',
|
|
1027
1029
|
albServerGroups: 'AlbServerGroups',
|
|
1028
1030
|
allocationStrategy: 'AllocationStrategy',
|
|
1031
|
+
autoRebalance: 'AutoRebalance',
|
|
1029
1032
|
azBalance: 'AzBalance',
|
|
1033
|
+
balanceMode: 'BalanceMode',
|
|
1030
1034
|
capacityOptions: 'CapacityOptions',
|
|
1031
1035
|
compensateWithOnDemand: 'CompensateWithOnDemand',
|
|
1032
1036
|
creationTime: 'CreationTime',
|
|
@@ -1094,7 +1098,9 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $dara.Model
|
|
|
1094
1098
|
activeScalingConfigurationId: 'string',
|
|
1095
1099
|
albServerGroups: { 'type': 'array', 'itemType': DescribeScalingGroupsResponseBodyScalingGroupsAlbServerGroups },
|
|
1096
1100
|
allocationStrategy: 'string',
|
|
1101
|
+
autoRebalance: 'boolean',
|
|
1097
1102
|
azBalance: 'boolean',
|
|
1103
|
+
balanceMode: 'string',
|
|
1098
1104
|
capacityOptions: DescribeScalingGroupsResponseBodyScalingGroupsCapacityOptions,
|
|
1099
1105
|
compensateWithOnDemand: 'boolean',
|
|
1100
1106
|
creationTime: 'string',
|
|
@@ -183,6 +183,7 @@ export class ModifyScalingGroupRequest extends $dara.Model {
|
|
|
183
183
|
* priority
|
|
184
184
|
*/
|
|
185
185
|
allocationStrategy?: string;
|
|
186
|
+
autoRebalance?: boolean;
|
|
186
187
|
/**
|
|
187
188
|
* @remarks
|
|
188
189
|
* Specifies whether to evenly distribute instances in the scaling group across zones. This parameter takes effect only when you set the `MultiAZPolicy` parameter to `COMPOSABLE`. Valid values:
|
|
@@ -196,6 +197,7 @@ export class ModifyScalingGroupRequest extends $dara.Model {
|
|
|
196
197
|
* false
|
|
197
198
|
*/
|
|
198
199
|
azBalance?: boolean;
|
|
200
|
+
balanceMode?: string;
|
|
199
201
|
/**
|
|
200
202
|
* @remarks
|
|
201
203
|
* The capacity options.
|
|
@@ -491,7 +493,9 @@ export class ModifyScalingGroupRequest extends $dara.Model {
|
|
|
491
493
|
return {
|
|
492
494
|
activeScalingConfigurationId: 'ActiveScalingConfigurationId',
|
|
493
495
|
allocationStrategy: 'AllocationStrategy',
|
|
496
|
+
autoRebalance: 'AutoRebalance',
|
|
494
497
|
azBalance: 'AzBalance',
|
|
498
|
+
balanceMode: 'BalanceMode',
|
|
495
499
|
capacityOptions: 'CapacityOptions',
|
|
496
500
|
compensateWithOnDemand: 'CompensateWithOnDemand',
|
|
497
501
|
customPolicyARN: 'CustomPolicyARN',
|
|
@@ -530,7 +534,9 @@ export class ModifyScalingGroupRequest extends $dara.Model {
|
|
|
530
534
|
return {
|
|
531
535
|
activeScalingConfigurationId: 'string',
|
|
532
536
|
allocationStrategy: 'string',
|
|
537
|
+
autoRebalance: 'boolean',
|
|
533
538
|
azBalance: 'boolean',
|
|
539
|
+
balanceMode: 'string',
|
|
534
540
|
capacityOptions: ModifyScalingGroupRequestCapacityOptions,
|
|
535
541
|
compensateWithOnDemand: 'boolean',
|
|
536
542
|
customPolicyARN: 'string',
|
|
@@ -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
|
}
|
package/src/models/model.ts
CHANGED
|
@@ -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';
|