@scaleway/sdk-autoscaling 2.14.0 → 2.15.1
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/LICENSE +191 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -6
- package/dist/index.gen.d.ts +3 -6
- package/dist/index.gen.js +2 -1
- package/dist/metadata.gen.d.ts +7 -5
- package/dist/metadata.gen.js +2 -1
- package/dist/v1alpha1/api.gen.d.ts +131 -128
- package/dist/v1alpha1/api.gen.js +5 -3
- package/dist/v1alpha1/index.gen.d.ts +9 -4
- package/dist/v1alpha1/index.gen.js +3 -1
- package/dist/v1alpha1/marshalling.gen.d.ts +4 -2
- package/dist/v1alpha1/marshalling.gen.js +3 -1
- package/dist/v1alpha1/metadata.gen.d.ts +79 -77
- package/dist/v1alpha1/metadata.gen.js +2 -1
- package/dist/v1alpha1/types.gen.d.ts +694 -692
- package/dist/v1alpha1/validation-rules.gen.d.ts +94 -89
- package/dist/v1alpha1/validation-rules.gen.js +3 -1
- package/dist/v1alpha2/api.gen.d.ts +58 -48
- package/dist/v1alpha2/api.gen.js +18 -4
- package/dist/v1alpha2/constants.gen.d.ts +3 -1
- package/dist/v1alpha2/constants.gen.js +2 -1
- package/dist/v1alpha2/content.gen.d.ts +3 -1
- package/dist/v1alpha2/content.gen.js +2 -1
- package/dist/v1alpha2/index.gen.d.ts +11 -6
- package/dist/v1alpha2/index.gen.js +3 -1
- package/dist/v1alpha2/marshalling.gen.d.ts +4 -2
- package/dist/v1alpha2/marshalling.gen.js +3 -1
- package/dist/v1alpha2/metadata.gen.d.ts +75 -73
- package/dist/v1alpha2/metadata.gen.js +2 -1
- package/dist/v1alpha2/types.gen.d.ts +452 -443
- package/dist/v1alpha2/validation-rules.gen.d.ts +29 -24
- package/dist/v1alpha2/validation-rules.gen.js +3 -1
- package/package.json +5 -7
- package/dist/.vite/license.md +0 -3
- package/dist/v1alpha1/types.gen.js +0 -0
- package/dist/v1alpha2/types.gen.js +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Zone } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1alpha1/types.gen.d.ts
|
|
2
3
|
export type InstanceGroupEventLevel = 'info' | 'success' | 'error';
|
|
3
4
|
export type InstanceGroupEventSource = 'unknown_source' | 'watcher' | 'scaler' | 'instance_manager' | 'supervisor';
|
|
4
5
|
export type InstancePolicyAction = 'unknown_action' | 'scale_up' | 'scale_down';
|
|
@@ -16,759 +17,760 @@ export type UpdateInstancePolicyRequestMetricManagedMetric = 'managed_metric_unk
|
|
|
16
17
|
export type UpdateInstancePolicyRequestMetricOperator = 'operator_unknown' | 'operator_greater_than' | 'operator_less_than';
|
|
17
18
|
export type VolumeInstanceTemplateVolumeType = 'unknown_volume_type' | 'l_ssd' | 'sbs';
|
|
18
19
|
export interface VolumeInstanceTemplateFromEmpty {
|
|
19
|
-
|
|
20
|
+
size: number;
|
|
20
21
|
}
|
|
21
22
|
export interface VolumeInstanceTemplateFromSnapshot {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
size?: number;
|
|
24
|
+
snapshotId: string;
|
|
24
25
|
}
|
|
25
26
|
export interface Capacity {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Maximum count of Instances for the Instance group.
|
|
29
|
+
*/
|
|
30
|
+
maxReplicas: number;
|
|
31
|
+
/**
|
|
32
|
+
* Minimum count of Instances for the Instance group.
|
|
33
|
+
*/
|
|
34
|
+
minReplicas: number;
|
|
35
|
+
/**
|
|
36
|
+
* Time (in seconds) after a scaling action during which requests to carry out a new scaling action will be denied.
|
|
37
|
+
*/
|
|
38
|
+
cooldownDelay?: string;
|
|
38
39
|
}
|
|
39
40
|
export interface Loadbalancer {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Load Balancer ID.
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
/**
|
|
46
|
+
* Load Balancer backend IDs.
|
|
47
|
+
*/
|
|
48
|
+
backendIds: string[];
|
|
49
|
+
/**
|
|
50
|
+
* ID of the Private Network attached to the Load Balancer.
|
|
51
|
+
*/
|
|
52
|
+
privateNetworkId: string;
|
|
52
53
|
}
|
|
53
54
|
export interface Metric {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Name or description of the metric policy.
|
|
57
|
+
*/
|
|
58
|
+
name: string;
|
|
59
|
+
/**
|
|
60
|
+
* Managed metric to use for this policy. These are available by default in Cockpit without any configuration or `node_exporter`. The chosen metric forms the basis of the condition that will be checked to determine whether a scaling action should be triggered.
|
|
61
|
+
*
|
|
62
|
+
* One-of ('metricType'): at most one of 'managedMetric', 'cockpitMetricName' could be set.
|
|
63
|
+
*/
|
|
64
|
+
managedMetric?: MetricManagedMetric;
|
|
65
|
+
/**
|
|
66
|
+
* Custom metric to use for this policy. This must be stored in Scaleway Cockpit. The metric forms the basis of the condition that will be checked to determine whether a scaling action should be triggered.
|
|
67
|
+
*
|
|
68
|
+
* One-of ('metricType'): at most one of 'managedMetric', 'cockpitMetricName' could be set.
|
|
69
|
+
*/
|
|
70
|
+
cockpitMetricName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Operator used when comparing the threshold value of the chosen `metric` to the actual sampled and aggregated value.
|
|
73
|
+
*/
|
|
74
|
+
operator: MetricOperator;
|
|
75
|
+
/**
|
|
76
|
+
* How the values sampled for the `metric` should be aggregated.
|
|
77
|
+
*/
|
|
78
|
+
aggregate: MetricAggregate;
|
|
79
|
+
/**
|
|
80
|
+
* Interval of time, in minutes, during which metric is sampled.
|
|
81
|
+
*/
|
|
82
|
+
samplingRangeMin: number;
|
|
83
|
+
/**
|
|
84
|
+
* Threshold value to measure the aggregated sampled `metric` value against. Combined with the `operator` field, determines whether a scaling action should be triggered.
|
|
85
|
+
*/
|
|
86
|
+
threshold: number;
|
|
86
87
|
}
|
|
87
88
|
export interface VolumeInstanceTemplate {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Name of the volume.
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
/**
|
|
94
|
+
* The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`).
|
|
95
|
+
*
|
|
96
|
+
* One-of ('requirements'): at most one of 'perfIops' could be set.
|
|
97
|
+
*/
|
|
98
|
+
perfIops?: number;
|
|
99
|
+
/**
|
|
100
|
+
* Specify the size of the new volume if creating a new one from scratch.
|
|
101
|
+
*
|
|
102
|
+
* One-of ('from'): at most one of 'fromEmpty', 'fromSnapshot' could be set.
|
|
103
|
+
*/
|
|
104
|
+
fromEmpty?: VolumeInstanceTemplateFromEmpty;
|
|
105
|
+
/**
|
|
106
|
+
* Specify the snapshot ID of the original snapshot.
|
|
107
|
+
*
|
|
108
|
+
* One-of ('from'): at most one of 'fromEmpty', 'fromSnapshot' could be set.
|
|
109
|
+
*/
|
|
110
|
+
fromSnapshot?: VolumeInstanceTemplateFromSnapshot;
|
|
111
|
+
/**
|
|
112
|
+
* List of tags assigned to the volume.
|
|
113
|
+
*/
|
|
114
|
+
tags: string[];
|
|
115
|
+
/**
|
|
116
|
+
* Force the Instance to boot on this volume.
|
|
117
|
+
*/
|
|
118
|
+
boot: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Type of the volume.
|
|
121
|
+
*/
|
|
122
|
+
volumeType: VolumeInstanceTemplateVolumeType;
|
|
122
123
|
}
|
|
123
124
|
export interface InstanceGroupEvent {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Instance group event ID.
|
|
127
|
+
*/
|
|
128
|
+
id: string;
|
|
129
|
+
/**
|
|
130
|
+
* Log source.
|
|
131
|
+
*/
|
|
132
|
+
source: InstanceGroupEventSource;
|
|
133
|
+
/**
|
|
134
|
+
* The severity of the log.
|
|
135
|
+
*/
|
|
136
|
+
level: InstanceGroupEventLevel;
|
|
137
|
+
/**
|
|
138
|
+
* Log title.
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
/**
|
|
142
|
+
* Date and time of the log.
|
|
143
|
+
*/
|
|
144
|
+
createdAt?: Date;
|
|
145
|
+
/**
|
|
146
|
+
* Full text of the log.
|
|
147
|
+
*/
|
|
148
|
+
details?: string;
|
|
148
149
|
}
|
|
149
150
|
export interface InstanceGroup {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
151
|
+
/**
|
|
152
|
+
* Instance group ID.
|
|
153
|
+
*/
|
|
154
|
+
id: string;
|
|
155
|
+
/**
|
|
156
|
+
* Project ID of the Instance group.
|
|
157
|
+
*/
|
|
158
|
+
projectId: string;
|
|
159
|
+
/**
|
|
160
|
+
* Name of the Instance group.
|
|
161
|
+
*/
|
|
162
|
+
name: string;
|
|
163
|
+
/**
|
|
164
|
+
* Instance group tags.
|
|
165
|
+
*/
|
|
166
|
+
tags: string[];
|
|
167
|
+
/**
|
|
168
|
+
* Template ID (ID of the Instance template to attach to the Instance group).
|
|
169
|
+
*/
|
|
170
|
+
instanceTemplateId: string;
|
|
171
|
+
/**
|
|
172
|
+
* Specification of the minimum and maximum replicas for the Instance group, and the cooldown interval between two scaling events.
|
|
173
|
+
*/
|
|
174
|
+
capacity: Capacity;
|
|
175
|
+
/**
|
|
176
|
+
* Specification of the Load Balancer linked to the Instance group.
|
|
177
|
+
*/
|
|
178
|
+
loadbalancer: Loadbalancer;
|
|
179
|
+
/**
|
|
180
|
+
* Any configuration errors for dependencies (Load Balancer, Private Network, Instance template etc.).
|
|
181
|
+
*/
|
|
182
|
+
errorMessages: string[];
|
|
183
|
+
/**
|
|
184
|
+
* Date on which the Instance group was created.
|
|
185
|
+
*/
|
|
186
|
+
createdAt?: Date;
|
|
187
|
+
/**
|
|
188
|
+
* Date on which the Instance group was last updated.
|
|
189
|
+
*/
|
|
190
|
+
updatedAt?: Date;
|
|
191
|
+
/**
|
|
192
|
+
* Zone for this resource.
|
|
193
|
+
*/
|
|
194
|
+
zone: Zone;
|
|
194
195
|
}
|
|
195
196
|
export interface InstancePolicy {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
197
|
+
/**
|
|
198
|
+
* Scaling policy ID.
|
|
199
|
+
*/
|
|
200
|
+
id: string;
|
|
201
|
+
/**
|
|
202
|
+
* Name of scaling policy.
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
/**
|
|
206
|
+
* Managed metric to use for this policy. These are available by default in Cockpit without any configuration or `node_exporter`. The chosen metric forms the basis of the condition that will be checked to determine whether a scaling action should be triggered.
|
|
207
|
+
*
|
|
208
|
+
* One-of ('trigger'): at most one of 'metric' could be set.
|
|
209
|
+
*/
|
|
210
|
+
metric?: Metric;
|
|
211
|
+
/**
|
|
212
|
+
* Action to execute when the metric-based condition is met.
|
|
213
|
+
*/
|
|
214
|
+
action: InstancePolicyAction;
|
|
215
|
+
/**
|
|
216
|
+
* How to use the number defined in `value` when determining by how many Instances to scale up/down.
|
|
217
|
+
*/
|
|
218
|
+
type: InstancePolicyType;
|
|
219
|
+
/**
|
|
220
|
+
* Number representing the magnitude of the scaling action to take for the Instance group.
|
|
221
|
+
*/
|
|
222
|
+
value: number;
|
|
223
|
+
/**
|
|
224
|
+
* Priority of this policy compared to all other scaling policies. The lower the number, the higher the priority (higher priority will be processed sooner in the order).
|
|
225
|
+
*/
|
|
226
|
+
priority: number;
|
|
227
|
+
/**
|
|
228
|
+
* Instance group ID related to this policy.
|
|
229
|
+
*/
|
|
230
|
+
instanceGroupId: string;
|
|
231
|
+
/**
|
|
232
|
+
* Zone for this resource.
|
|
233
|
+
*/
|
|
234
|
+
zone: Zone;
|
|
234
235
|
}
|
|
235
236
|
export interface InstanceTemplate {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
237
|
+
/**
|
|
238
|
+
* ID of Instance template resource.
|
|
239
|
+
*/
|
|
240
|
+
id: string;
|
|
241
|
+
/**
|
|
242
|
+
* Name of Instance commercial type.
|
|
243
|
+
*/
|
|
244
|
+
commercialType: string;
|
|
245
|
+
/**
|
|
246
|
+
* Instance image ID. Can be an ID of a marketplace or personal image. This image must be compatible with `volume` and `commercial_type` template.
|
|
247
|
+
*/
|
|
248
|
+
imageId?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Template of Instance volume.
|
|
251
|
+
*/
|
|
252
|
+
volumes: Record<string, VolumeInstanceTemplate>;
|
|
253
|
+
/**
|
|
254
|
+
* List of tags for the Instance template.
|
|
255
|
+
*/
|
|
256
|
+
tags: string[];
|
|
257
|
+
/**
|
|
258
|
+
* Instance security group ID (optional).
|
|
259
|
+
*/
|
|
260
|
+
securityGroupId?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Instance placement group ID. This is optional, but it is highly recommended to set a preference for Instance location within Availability Zone.
|
|
263
|
+
*/
|
|
264
|
+
placementGroupId?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Number of flexible IPv4 addresses to attach to the new Instance.
|
|
267
|
+
*/
|
|
268
|
+
publicIpsV4Count?: number;
|
|
269
|
+
/**
|
|
270
|
+
* Number of flexible IPv6 addresses to attach to the new Instance.
|
|
271
|
+
*/
|
|
272
|
+
publicIpsV6Count?: number;
|
|
273
|
+
/**
|
|
274
|
+
* ID of the Project containing the Instance template resource.
|
|
275
|
+
*/
|
|
276
|
+
projectId: string;
|
|
277
|
+
/**
|
|
278
|
+
* Name of Instance template.
|
|
279
|
+
*/
|
|
280
|
+
name: string;
|
|
281
|
+
/**
|
|
282
|
+
* Private Network IDs to attach to the new Instance.
|
|
283
|
+
*/
|
|
284
|
+
privateNetworkIds: string[];
|
|
285
|
+
/**
|
|
286
|
+
* Status of Instance template.
|
|
287
|
+
*/
|
|
288
|
+
status: InstanceTemplateStatus;
|
|
289
|
+
/**
|
|
290
|
+
* Cloud-config file must be passed in Base64 format. Cloud-config files are special scripts designed to be run by the cloud-init process. These are generally used for initial configuration on the very first boot of a server.
|
|
291
|
+
*/
|
|
292
|
+
cloudInit?: string;
|
|
293
|
+
/**
|
|
294
|
+
* Date on which the Instance template was created.
|
|
295
|
+
*/
|
|
296
|
+
createdAt?: Date;
|
|
297
|
+
/**
|
|
298
|
+
* Date on which the Instance template was last updated.
|
|
299
|
+
*/
|
|
300
|
+
updatedAt?: Date;
|
|
301
|
+
/**
|
|
302
|
+
* Zone for this resource.
|
|
303
|
+
*/
|
|
304
|
+
zone: Zone;
|
|
304
305
|
}
|
|
305
306
|
export interface UpdateInstanceGroupRequestCapacity {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
307
|
+
/**
|
|
308
|
+
* Maximum count of Instances for the Instance group.
|
|
309
|
+
*/
|
|
310
|
+
maxReplicas?: number;
|
|
311
|
+
/**
|
|
312
|
+
* Minimum count of Instances for the Instance group.
|
|
313
|
+
*/
|
|
314
|
+
minReplicas?: number;
|
|
315
|
+
/**
|
|
316
|
+
* Time (in seconds) after a scaling action during which requests to carry out a new scaling action will be denied.
|
|
317
|
+
*/
|
|
318
|
+
cooldownDelay?: string;
|
|
318
319
|
}
|
|
319
320
|
export interface UpdateInstanceGroupRequestLoadbalancer {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
/**
|
|
322
|
+
* Load Balancer backend IDs.
|
|
323
|
+
*/
|
|
324
|
+
backendIds?: string[];
|
|
324
325
|
}
|
|
325
326
|
export interface UpdateInstancePolicyRequestMetric {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
327
|
+
/**
|
|
328
|
+
* Name or description of your metric policy.
|
|
329
|
+
*/
|
|
330
|
+
name?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Managed metric to use for this policy. These are available by default in Cockpit without any configuration or `node_exporter`. The chosen metric forms the basis of the condition that will be checked to determine whether a scaling action should be triggered.
|
|
333
|
+
*
|
|
334
|
+
* One-of ('metricType'): at most one of 'managedMetric', 'cockpitMetricName' could be set.
|
|
335
|
+
*/
|
|
336
|
+
managedMetric?: UpdateInstancePolicyRequestMetricManagedMetric;
|
|
337
|
+
/**
|
|
338
|
+
* Custom metric to use for this policy. This must be stored in Scaleway Cockpit. The metric forms the basis of the condition that will be checked to determine whether a scaling action should be triggered.
|
|
339
|
+
*
|
|
340
|
+
* One-of ('metricType'): at most one of 'managedMetric', 'cockpitMetricName' could be set.
|
|
341
|
+
*/
|
|
342
|
+
cockpitMetricName?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Operator used when comparing the threshold value of the chosen `metric` to the actual sampled and aggregated value.
|
|
345
|
+
*/
|
|
346
|
+
operator: UpdateInstancePolicyRequestMetricOperator;
|
|
347
|
+
/**
|
|
348
|
+
* How the values sampled for the `metric` should be aggregated.
|
|
349
|
+
*/
|
|
350
|
+
aggregate: UpdateInstancePolicyRequestMetricAggregate;
|
|
351
|
+
/**
|
|
352
|
+
* Interval of time, in minutes, during which metric is sampled.
|
|
353
|
+
*/
|
|
354
|
+
samplingRangeMin?: number;
|
|
355
|
+
/**
|
|
356
|
+
* Threshold value to measure the aggregated sampled `metric` value against. Combined with the `operator` field, determines whether a scaling action should be triggered.
|
|
357
|
+
*/
|
|
358
|
+
threshold?: number;
|
|
358
359
|
}
|
|
359
360
|
export type CreateInstanceGroupRequest = {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
361
|
+
/**
|
|
362
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
363
|
+
*/
|
|
364
|
+
zone?: Zone;
|
|
365
|
+
/**
|
|
366
|
+
* Project ID to filter for, only Instance groups from this Project will be returned.
|
|
367
|
+
*/
|
|
368
|
+
projectId?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Name of Instance group.
|
|
371
|
+
*/
|
|
372
|
+
name: string;
|
|
373
|
+
/**
|
|
374
|
+
* List of tags for the Instance group.
|
|
375
|
+
*/
|
|
376
|
+
tags?: string[];
|
|
377
|
+
/**
|
|
378
|
+
* Template ID (ID of the Instance template to attach to the Instance group).
|
|
379
|
+
*/
|
|
380
|
+
templateId: string;
|
|
381
|
+
/**
|
|
382
|
+
* Specification of the minimum and maximum replicas for the Instance group, and the cooldown interval between two scaling events.
|
|
383
|
+
*/
|
|
384
|
+
capacity: Capacity;
|
|
385
|
+
/**
|
|
386
|
+
* Specification of the Load Balancer to link to the Instance group.
|
|
387
|
+
*/
|
|
388
|
+
loadbalancer: Loadbalancer;
|
|
388
389
|
};
|
|
389
390
|
export type CreateInstancePolicyRequest = {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
391
|
+
/**
|
|
392
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
393
|
+
*/
|
|
394
|
+
zone?: Zone;
|
|
395
|
+
/**
|
|
396
|
+
* Name of the policy.
|
|
397
|
+
*/
|
|
398
|
+
name: string;
|
|
399
|
+
/**
|
|
400
|
+
* Cockpit metric to use when determining whether to trigger a scale up/down action.
|
|
401
|
+
*
|
|
402
|
+
* One-of ('trigger'): at most one of 'metric' could be set.
|
|
403
|
+
*/
|
|
404
|
+
metric?: Metric;
|
|
405
|
+
/**
|
|
406
|
+
* Action to execute when the metric-based condition is met.
|
|
407
|
+
*/
|
|
408
|
+
action: InstancePolicyAction;
|
|
409
|
+
/**
|
|
410
|
+
* How to use the number defined in `value` when determining by how many Instances to scale up/down.
|
|
411
|
+
*/
|
|
412
|
+
type: InstancePolicyType;
|
|
413
|
+
/**
|
|
414
|
+
* Value representing the magnitude of the scaling action to take for the Instance group. Depending on the `type` parameter, this number could represent a total number of Instances in the group, a number of Instances to add, or a percentage to scale the group by.
|
|
415
|
+
*/
|
|
416
|
+
value: number;
|
|
417
|
+
/**
|
|
418
|
+
* Priority of this policy compared to all other scaling policies. This determines the processing order. The lower the number, the higher the priority.
|
|
419
|
+
*/
|
|
420
|
+
priority: number;
|
|
421
|
+
/**
|
|
422
|
+
* Instance group ID related to this policy.
|
|
423
|
+
*/
|
|
424
|
+
instanceGroupId: string;
|
|
424
425
|
};
|
|
425
426
|
export type CreateInstanceTemplateRequest = {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
427
|
+
/**
|
|
428
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
429
|
+
*/
|
|
430
|
+
zone?: Zone;
|
|
431
|
+
/**
|
|
432
|
+
* Name of Instance commercial type.
|
|
433
|
+
*/
|
|
434
|
+
commercialType: string;
|
|
435
|
+
/**
|
|
436
|
+
* Instance image ID. Can be an ID of a marketplace or personal image. This image must be compatible with `volume` and `commercial_type` template.
|
|
437
|
+
*/
|
|
438
|
+
imageId?: string;
|
|
439
|
+
/**
|
|
440
|
+
* Template of Instance volume.
|
|
441
|
+
*/
|
|
442
|
+
volumes: Record<string, VolumeInstanceTemplate>;
|
|
443
|
+
/**
|
|
444
|
+
* List of tags for the Instance template.
|
|
445
|
+
*/
|
|
446
|
+
tags?: string[];
|
|
447
|
+
/**
|
|
448
|
+
* Instance security group ID (optional).
|
|
449
|
+
*/
|
|
450
|
+
securityGroupId?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Instance placement group ID. This is optional, but it is highly recommended to set a preference for Instance location within Availability Zone.
|
|
453
|
+
*/
|
|
454
|
+
placementGroupId?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Number of flexible IPv4 addresses to attach to the new Instance.
|
|
457
|
+
*/
|
|
458
|
+
publicIpsV4Count?: number;
|
|
459
|
+
/**
|
|
460
|
+
* Number of flexible IPv6 addresses to attach to the new Instance.
|
|
461
|
+
*/
|
|
462
|
+
publicIpsV6Count?: number;
|
|
463
|
+
/**
|
|
464
|
+
* ID of the Project containing the Instance template resource.
|
|
465
|
+
*/
|
|
466
|
+
projectId?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Name of Instance template.
|
|
469
|
+
*/
|
|
470
|
+
name: string;
|
|
471
|
+
/**
|
|
472
|
+
* Private Network IDs to attach to the new Instance.
|
|
473
|
+
*/
|
|
474
|
+
privateNetworkIds?: string[];
|
|
475
|
+
/**
|
|
476
|
+
* Cloud-config file must be passed in Base64 format. Cloud-config files are special scripts designed to be run by the cloud-init process. These are generally used for initial configuration on the very first boot of a server.
|
|
477
|
+
*/
|
|
478
|
+
cloudInit?: string;
|
|
478
479
|
};
|
|
479
480
|
export type DeleteInstanceGroupRequest = {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
481
|
+
/**
|
|
482
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
483
|
+
*/
|
|
484
|
+
zone?: Zone;
|
|
485
|
+
/**
|
|
486
|
+
* ID of the Instance group to delete.
|
|
487
|
+
*/
|
|
488
|
+
instanceGroupId: string;
|
|
488
489
|
};
|
|
489
490
|
export type DeleteInstancePolicyRequest = {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
491
|
+
/**
|
|
492
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
493
|
+
*/
|
|
494
|
+
zone?: Zone;
|
|
495
|
+
/**
|
|
496
|
+
* ID of the policy to delete.
|
|
497
|
+
*/
|
|
498
|
+
policyId: string;
|
|
498
499
|
};
|
|
499
500
|
export type DeleteInstanceTemplateRequest = {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
501
|
+
/**
|
|
502
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
503
|
+
*/
|
|
504
|
+
zone?: Zone;
|
|
505
|
+
/**
|
|
506
|
+
* ID of the template to delete.
|
|
507
|
+
*/
|
|
508
|
+
templateId: string;
|
|
508
509
|
};
|
|
509
510
|
export type GetInstanceGroupRequest = {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
511
|
+
/**
|
|
512
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
513
|
+
*/
|
|
514
|
+
zone?: Zone;
|
|
515
|
+
/**
|
|
516
|
+
* ID of the requested Instance group.
|
|
517
|
+
*/
|
|
518
|
+
instanceGroupId: string;
|
|
518
519
|
};
|
|
519
520
|
export type GetInstancePolicyRequest = {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
521
|
+
/**
|
|
522
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
523
|
+
*/
|
|
524
|
+
zone?: Zone;
|
|
525
|
+
/**
|
|
526
|
+
* Policy ID.
|
|
527
|
+
*/
|
|
528
|
+
policyId: string;
|
|
528
529
|
};
|
|
529
530
|
export type GetInstanceTemplateRequest = {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
531
|
+
/**
|
|
532
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
533
|
+
*/
|
|
534
|
+
zone?: Zone;
|
|
535
|
+
/**
|
|
536
|
+
* Template ID of the resource.
|
|
537
|
+
*/
|
|
538
|
+
templateId: string;
|
|
538
539
|
};
|
|
539
540
|
export type ListInstanceGroupEventsRequest = {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
541
|
+
/**
|
|
542
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
543
|
+
*/
|
|
544
|
+
zone?: Zone;
|
|
545
|
+
/**
|
|
546
|
+
* List all event logs for the Instance group ID.
|
|
547
|
+
*/
|
|
548
|
+
instanceGroupId: string;
|
|
549
|
+
/**
|
|
550
|
+
* Sort order of Instance groups in the response.
|
|
551
|
+
*/
|
|
552
|
+
orderBy?: ListInstanceGroupEventsRequestOrderBy;
|
|
553
|
+
/**
|
|
554
|
+
* Page number to return, from the paginated results.
|
|
555
|
+
*/
|
|
556
|
+
page?: number;
|
|
557
|
+
/**
|
|
558
|
+
* Number of Instance groups to return per page.
|
|
559
|
+
*/
|
|
560
|
+
pageSize?: number;
|
|
560
561
|
};
|
|
561
562
|
export interface ListInstanceGroupEventsResponse {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
563
|
+
/**
|
|
564
|
+
* Paginated list of Instance groups.
|
|
565
|
+
*/
|
|
566
|
+
instanceEvents: InstanceGroupEvent[];
|
|
567
|
+
/**
|
|
568
|
+
* Count of all Instance groups matching the requested criteria.
|
|
569
|
+
*/
|
|
570
|
+
totalCount: number;
|
|
570
571
|
}
|
|
571
572
|
export type ListInstanceGroupsRequest = {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
573
|
+
/**
|
|
574
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
575
|
+
*/
|
|
576
|
+
zone?: Zone;
|
|
577
|
+
/**
|
|
578
|
+
* Sort order of Instance groups in the response.
|
|
579
|
+
*/
|
|
580
|
+
orderBy?: ListInstanceGroupsRequestOrderBy;
|
|
581
|
+
/**
|
|
582
|
+
* Page number to return, from the paginated results.
|
|
583
|
+
*/
|
|
584
|
+
page?: number;
|
|
585
|
+
/**
|
|
586
|
+
* Number of Instance groups to return per page.
|
|
587
|
+
*/
|
|
588
|
+
pageSize?: number;
|
|
588
589
|
};
|
|
589
590
|
export interface ListInstanceGroupsResponse {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
591
|
+
/**
|
|
592
|
+
* Paginated list of Instance groups.
|
|
593
|
+
*/
|
|
594
|
+
instanceGroups: InstanceGroup[];
|
|
595
|
+
/**
|
|
596
|
+
* Count of all Instance groups matching the requested criteria.
|
|
597
|
+
*/
|
|
598
|
+
totalCount: number;
|
|
598
599
|
}
|
|
599
600
|
export type ListInstancePoliciesRequest = {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
601
|
+
/**
|
|
602
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
603
|
+
*/
|
|
604
|
+
zone?: Zone;
|
|
605
|
+
/**
|
|
606
|
+
* Sort order of Instance groups in the response.
|
|
607
|
+
*/
|
|
608
|
+
orderBy?: ListInstancePoliciesRequestOrderBy;
|
|
609
|
+
/**
|
|
610
|
+
* Instance group ID.
|
|
611
|
+
*/
|
|
612
|
+
instanceGroupId: string;
|
|
613
|
+
/**
|
|
614
|
+
* Page number to return, from the paginated results.
|
|
615
|
+
*/
|
|
616
|
+
page?: number;
|
|
617
|
+
/**
|
|
618
|
+
* Number of scaling policies to return per page.
|
|
619
|
+
*/
|
|
620
|
+
pageSize?: number;
|
|
620
621
|
};
|
|
621
622
|
export interface ListInstancePoliciesResponse {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
623
|
+
/**
|
|
624
|
+
* Paginated list of policies.
|
|
625
|
+
*/
|
|
626
|
+
policies: InstancePolicy[];
|
|
627
|
+
/**
|
|
628
|
+
* Count of all policies matching the requested criteria.
|
|
629
|
+
*/
|
|
630
|
+
totalCount: number;
|
|
630
631
|
}
|
|
631
632
|
export type ListInstanceTemplatesRequest = {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
633
|
+
/**
|
|
634
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
635
|
+
*/
|
|
636
|
+
zone?: Zone;
|
|
637
|
+
/**
|
|
638
|
+
* Sort order of Instance groups in the response.
|
|
639
|
+
*/
|
|
640
|
+
orderBy?: ListInstanceTemplatesRequestOrderBy;
|
|
641
|
+
/**
|
|
642
|
+
* Page number to return, from the paginated results.
|
|
643
|
+
*/
|
|
644
|
+
page?: number;
|
|
645
|
+
/**
|
|
646
|
+
* Number of Instance groups to return per page.
|
|
647
|
+
*/
|
|
648
|
+
pageSize?: number;
|
|
648
649
|
};
|
|
649
650
|
export interface ListInstanceTemplatesResponse {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
651
|
+
/**
|
|
652
|
+
* Count of all templates matching the requested criteria.
|
|
653
|
+
*/
|
|
654
|
+
totalCount: number;
|
|
655
|
+
/**
|
|
656
|
+
* Paginated list of Instance templates.
|
|
657
|
+
*/
|
|
658
|
+
instanceTemplates: InstanceTemplate[];
|
|
658
659
|
}
|
|
659
660
|
export type UpdateInstanceGroupRequest = {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
661
|
+
/**
|
|
662
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
663
|
+
*/
|
|
664
|
+
zone?: Zone;
|
|
665
|
+
/**
|
|
666
|
+
* Instance group ID to update.
|
|
667
|
+
*/
|
|
668
|
+
instanceGroupId: string;
|
|
669
|
+
/**
|
|
670
|
+
* Name of Instance group.
|
|
671
|
+
*/
|
|
672
|
+
name?: string;
|
|
673
|
+
/**
|
|
674
|
+
* List of tags for the Load Balancer.
|
|
675
|
+
*/
|
|
676
|
+
tags?: string[];
|
|
677
|
+
/**
|
|
678
|
+
* Specification of the minimum and maximum replicas for the Instance group, and the cooldown interval between two scaling events.
|
|
679
|
+
*/
|
|
680
|
+
capacity?: UpdateInstanceGroupRequestCapacity;
|
|
681
|
+
/**
|
|
682
|
+
* Specification of the Load Balancer to link to the Instance group.
|
|
683
|
+
*/
|
|
684
|
+
loadbalancer?: UpdateInstanceGroupRequestLoadbalancer;
|
|
684
685
|
};
|
|
685
686
|
export type UpdateInstancePolicyRequest = {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
687
|
+
/**
|
|
688
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
689
|
+
*/
|
|
690
|
+
zone?: Zone;
|
|
691
|
+
/**
|
|
692
|
+
* Policy ID to update.
|
|
693
|
+
*/
|
|
694
|
+
policyId: string;
|
|
695
|
+
/**
|
|
696
|
+
* Policy name to update.
|
|
697
|
+
*/
|
|
698
|
+
name?: string;
|
|
699
|
+
/**
|
|
700
|
+
* Metric specification to update (Cockpit metric to use when determining whether to trigger a scale up/down action).
|
|
701
|
+
*
|
|
702
|
+
* One-of ('trigger'): at most one of 'metric' could be set.
|
|
703
|
+
*/
|
|
704
|
+
metric?: UpdateInstancePolicyRequestMetric;
|
|
705
|
+
/**
|
|
706
|
+
* Action to update (action to execute when the metric-based condition is met).
|
|
707
|
+
*/
|
|
708
|
+
action?: InstancePolicyAction;
|
|
709
|
+
/**
|
|
710
|
+
* Type to update (how to use the number defined in `value` when determining by how many Instances to scale up/down).
|
|
711
|
+
*/
|
|
712
|
+
type?: InstancePolicyType;
|
|
713
|
+
/**
|
|
714
|
+
* Value to update (number representing the magnitude of the scaling action to take for the Instance group).
|
|
715
|
+
*/
|
|
716
|
+
value?: number;
|
|
717
|
+
/**
|
|
718
|
+
* Priority to update (priority of this policy compared to all other scaling policies. The lower the number, the higher the priority).
|
|
719
|
+
*/
|
|
720
|
+
priority?: number;
|
|
720
721
|
};
|
|
721
722
|
export type UpdateInstanceTemplateRequest = {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
723
|
+
/**
|
|
724
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
725
|
+
*/
|
|
726
|
+
zone?: Zone;
|
|
727
|
+
/**
|
|
728
|
+
* Template ID of the resource.
|
|
729
|
+
*/
|
|
730
|
+
templateId: string;
|
|
731
|
+
/**
|
|
732
|
+
* Name of Instance commercial type.
|
|
733
|
+
*/
|
|
734
|
+
commercialType?: string;
|
|
735
|
+
/**
|
|
736
|
+
* Instance image ID. Can be an ID of a marketplace or personal image. This image must be compatible with `volume` and `commercial_type` template.
|
|
737
|
+
*/
|
|
738
|
+
imageId?: string;
|
|
739
|
+
/**
|
|
740
|
+
* Template of Instance volume.
|
|
741
|
+
*/
|
|
742
|
+
volumes?: Record<string, VolumeInstanceTemplate>;
|
|
743
|
+
/**
|
|
744
|
+
* List of tags for the Instance template.
|
|
745
|
+
*/
|
|
746
|
+
tags?: string[];
|
|
747
|
+
/**
|
|
748
|
+
* Instance security group ID (optional).
|
|
749
|
+
*/
|
|
750
|
+
securityGroupId?: string;
|
|
751
|
+
/**
|
|
752
|
+
* Instance placement group ID. This is optional, but it is highly recommended to set a preference for Instance location within Availability Zone.
|
|
753
|
+
*/
|
|
754
|
+
placementGroupId?: string;
|
|
755
|
+
/**
|
|
756
|
+
* Number of flexible IPv4 addresses to attach to the new Instance.
|
|
757
|
+
*/
|
|
758
|
+
publicIpsV4Count?: number;
|
|
759
|
+
/**
|
|
760
|
+
* Number of flexible IPv6 addresses to attach to the new Instance.
|
|
761
|
+
*/
|
|
762
|
+
publicIpsV6Count?: number;
|
|
763
|
+
/**
|
|
764
|
+
* Name of Instance template.
|
|
765
|
+
*/
|
|
766
|
+
name?: string;
|
|
767
|
+
/**
|
|
768
|
+
* Private Network IDs to attach to the new Instance.
|
|
769
|
+
*/
|
|
770
|
+
privateNetworkIds?: string[];
|
|
771
|
+
/**
|
|
772
|
+
* Cloud-config file must be passed in Base64 format. Cloud-config files are special scripts designed to be run by the cloud-init process. These are generally used for initial configuration on the very first boot of a server.
|
|
773
|
+
*/
|
|
774
|
+
cloudInit?: string;
|
|
774
775
|
};
|
|
776
|
+
//#endregion
|