@scaleway/sdk-autoscaling 2.13.1 → 2.15.0

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 (36) hide show
  1. package/LICENSE +191 -0
  2. package/dist/_virtual/_rolldown/runtime.js +11 -6
  3. package/dist/index.gen.d.ts +3 -6
  4. package/dist/index.gen.js +2 -1
  5. package/dist/metadata.gen.d.ts +7 -5
  6. package/dist/metadata.gen.js +2 -1
  7. package/dist/v1alpha1/api.gen.d.ts +131 -128
  8. package/dist/v1alpha1/api.gen.js +5 -3
  9. package/dist/v1alpha1/index.gen.d.ts +9 -4
  10. package/dist/v1alpha1/index.gen.js +3 -1
  11. package/dist/v1alpha1/marshalling.gen.d.ts +4 -2
  12. package/dist/v1alpha1/marshalling.gen.js +3 -1
  13. package/dist/v1alpha1/metadata.gen.d.ts +79 -77
  14. package/dist/v1alpha1/metadata.gen.js +2 -1
  15. package/dist/v1alpha1/types.gen.d.ts +694 -692
  16. package/dist/v1alpha1/validation-rules.gen.d.ts +94 -89
  17. package/dist/v1alpha1/validation-rules.gen.js +3 -1
  18. package/dist/v1alpha2/api.gen.d.ts +50 -48
  19. package/dist/v1alpha2/api.gen.js +5 -3
  20. package/dist/v1alpha2/constants.gen.d.ts +3 -1
  21. package/dist/v1alpha2/constants.gen.js +2 -1
  22. package/dist/v1alpha2/content.gen.d.ts +3 -1
  23. package/dist/v1alpha2/content.gen.js +2 -1
  24. package/dist/v1alpha2/index.gen.d.ts +11 -6
  25. package/dist/v1alpha2/index.gen.js +3 -1
  26. package/dist/v1alpha2/marshalling.gen.d.ts +4 -2
  27. package/dist/v1alpha2/marshalling.gen.js +3 -1
  28. package/dist/v1alpha2/metadata.gen.d.ts +75 -73
  29. package/dist/v1alpha2/metadata.gen.js +2 -1
  30. package/dist/v1alpha2/types.gen.d.ts +445 -443
  31. package/dist/v1alpha2/validation-rules.gen.d.ts +29 -24
  32. package/dist/v1alpha2/validation-rules.gen.js +3 -1
  33. package/package.json +5 -7
  34. package/dist/.vite/license.md +0 -3
  35. package/dist/v1alpha1/types.gen.js +0 -0
  36. package/dist/v1alpha2/types.gen.js +0 -0
@@ -1,4 +1,5 @@
1
- import type { Zone as ScwZone } from '@scaleway/sdk-client';
1
+ import { Zone } from "@scaleway/sdk-client";
2
+ //#region src/v1alpha2/types.gen.d.ts
2
3
  export type AlertAlertType = 'unknown_alert_type' | 'quotas_exceeded' | 'out_of_stock' | 'invalid_template' | 'template_not_found' | 'invalid_instance' | 'template_permissions_denied' | 'load_balancer_not_found' | 'load_balancer_permissions_denied' | 'backend_not_found' | 'backend_permissions_denied';
3
4
  export type GroupGroupStatus = 'unknown_group_status' | 'active' | 'scaling_out' | 'scaling_in' | 'refreshing' | 'healing' | 'scaling_failure' | 'deleting';
4
5
  export type GroupLoadBalancerConfigurationBackendAddressFamily = 'unknown_address_family' | 'ipv4' | 'ipv6';
@@ -6,500 +7,501 @@ export type GroupSummaryScalingPolicyTargetType = 'unknown_scaling_policy_target
6
7
  export type ListGroupsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
7
8
  export type LogLogLevel = 'unknown_log_level' | 'info' | 'warning' | 'error';
8
9
  export interface LoadBalancerConfigurationSpecAutoHealing {
9
- /**
10
- * Whether auto-healing is enabled.
11
- */
12
- enabled?: boolean;
13
- /**
14
- * Grace period for health checks.
15
- */
16
- gracePeriod?: string;
10
+ /**
11
+ * Whether auto-healing is enabled.
12
+ */
13
+ enabled?: boolean;
14
+ /**
15
+ * Grace period for health checks.
16
+ */
17
+ gracePeriod?: string;
17
18
  }
18
19
  export interface LoadBalancerConfigurationSpecBackend {
19
- /**
20
- * ID of the load balancer backend.
21
- */
22
- backendId: string;
23
- /**
24
- * IP address family (IPv4 or IPv6).
25
- */
26
- addressFamily: GroupLoadBalancerConfigurationBackendAddressFamily;
27
- /**
28
- * Optional private network ID.
29
- */
30
- privateNetworkId?: string;
20
+ /**
21
+ * ID of the load balancer backend.
22
+ */
23
+ backendId: string;
24
+ /**
25
+ * IP address family (IPv4 or IPv6).
26
+ */
27
+ addressFamily: GroupLoadBalancerConfigurationBackendAddressFamily;
28
+ /**
29
+ * Optional private network ID.
30
+ */
31
+ privateNetworkId?: string;
31
32
  }
32
33
  export interface GroupScalingPolicyScalingPolicyCpuTarget {
33
- targetAvgPercent: number;
34
+ targetAvgPercent: number;
34
35
  }
35
36
  export interface GroupScalingPolicyScalingPolicyFixedSize {
36
- size: number;
37
+ size: number;
37
38
  }
38
39
  export interface GroupScalingPolicyScalingPolicyMemoryTarget {
39
- targetAvgPercent: number;
40
+ targetAvgPercent: number;
40
41
  }
41
42
  export interface GroupLoadBalancerConfigurationAutoHealing {
42
- enabled: boolean;
43
- gracePeriod?: string;
43
+ enabled: boolean;
44
+ gracePeriod?: string;
44
45
  }
45
46
  export interface GroupLoadBalancerConfigurationBackend {
46
- backendId: string;
47
- addressFamily: GroupLoadBalancerConfigurationBackendAddressFamily;
48
- privateNetworkId?: string;
47
+ backendId: string;
48
+ addressFamily: GroupLoadBalancerConfigurationBackendAddressFamily;
49
+ privateNetworkId?: string;
49
50
  }
50
51
  export interface Alert {
51
- /**
52
- * Type of alert.
53
- */
54
- type: AlertAlertType;
55
- /**
56
- * Timestamp when the alert was opened.
57
- */
58
- openedAt?: Date;
59
- /**
60
- * Optional timestamp when the alert was closed.
61
- */
62
- closedAt?: Date;
63
- /**
64
- * ID of the group.
65
- */
66
- groupId: string;
67
- /**
68
- * List of quota names that are exceeded (for quotas_exceeded alerts).
69
- */
70
- failingQuotas: string[];
52
+ /**
53
+ * Type of alert.
54
+ */
55
+ type: AlertAlertType;
56
+ /**
57
+ * Timestamp when the alert was opened.
58
+ */
59
+ openedAt?: Date;
60
+ /**
61
+ * Optional timestamp when the alert was closed.
62
+ */
63
+ closedAt?: Date;
64
+ /**
65
+ * ID of the group.
66
+ */
67
+ groupId: string;
68
+ /**
69
+ * List of quota names that are exceeded (for quotas_exceeded alerts).
70
+ */
71
+ failingQuotas: string[];
71
72
  }
72
73
  export interface LoadBalancerConfigurationSpec {
73
- /**
74
- * ID of the load balancer (set to empty to disable).
75
- */
76
- loadBalancerId?: string;
77
- /**
78
- * List of load balancer backend configurations.
79
- */
80
- backends: LoadBalancerConfigurationSpecBackend[];
81
- /**
82
- * Auto-healing configuration.
83
- */
84
- autoHealing?: LoadBalancerConfigurationSpecAutoHealing;
74
+ /**
75
+ * ID of the load balancer (set to empty to disable).
76
+ */
77
+ loadBalancerId?: string;
78
+ /**
79
+ * List of load balancer backend configurations.
80
+ */
81
+ backends: LoadBalancerConfigurationSpecBackend[];
82
+ /**
83
+ * Auto-healing configuration.
84
+ */
85
+ autoHealing?: LoadBalancerConfigurationSpecAutoHealing;
85
86
  }
86
87
  export interface ScalingPolicySpec {
87
- /**
88
- * Minimum number of instances in the group.
89
- */
90
- minimumSize?: number;
91
- /**
92
- * Maximum number of instances in the group.
93
- */
94
- maximumSize?: number;
95
- /**
96
- * Cooldown period after a scale out event.
97
- */
98
- scaleOutCooldown?: string;
99
- /**
100
- * Cooldown period after a scale in event.
101
- */
102
- scaleInCooldown?: string;
103
- /**
104
- * Number of instances to remove in a single scale in event.
105
- */
106
- scaleInStep?: number;
107
- /**
108
- * Number of instances to add in a single scale out event.
109
- */
110
- scaleOutStep?: number;
111
- /**
112
- * Fixed size scaling policy configuration.
113
- *
114
- * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
115
- */
116
- fixedSize?: GroupScalingPolicyScalingPolicyFixedSize;
117
- /**
118
- * CPU target scaling policy configuration.
119
- *
120
- * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
121
- */
122
- cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget;
123
- /**
124
- * Memory target scaling policy configuration.
125
- *
126
- * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
127
- */
128
- memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget;
88
+ /**
89
+ * Minimum number of instances in the group.
90
+ */
91
+ minimumSize?: number;
92
+ /**
93
+ * Maximum number of instances in the group.
94
+ */
95
+ maximumSize?: number;
96
+ /**
97
+ * Cooldown period after a scale out event.
98
+ */
99
+ scaleOutCooldown?: string;
100
+ /**
101
+ * Cooldown period after a scale in event.
102
+ */
103
+ scaleInCooldown?: string;
104
+ /**
105
+ * Number of instances to remove in a single scale in event.
106
+ */
107
+ scaleInStep?: number;
108
+ /**
109
+ * Number of instances to add in a single scale out event.
110
+ */
111
+ scaleOutStep?: number;
112
+ /**
113
+ * Fixed size scaling policy configuration.
114
+ *
115
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
116
+ */
117
+ fixedSize?: GroupScalingPolicyScalingPolicyFixedSize;
118
+ /**
119
+ * CPU target scaling policy configuration.
120
+ *
121
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
122
+ */
123
+ cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget;
124
+ /**
125
+ * Memory target scaling policy configuration.
126
+ *
127
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
128
+ */
129
+ memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget;
129
130
  }
130
131
  export interface GroupLoadBalancerConfiguration {
131
- loadBalancerId: string;
132
- backends: GroupLoadBalancerConfigurationBackend[];
133
- autoHealing?: GroupLoadBalancerConfigurationAutoHealing;
132
+ loadBalancerId: string;
133
+ backends: GroupLoadBalancerConfigurationBackend[];
134
+ autoHealing?: GroupLoadBalancerConfigurationAutoHealing;
134
135
  }
135
136
  export interface GroupScalingPolicy {
136
- minimumSize: number;
137
- maximumSize: number;
138
- scaleOutCooldown?: string;
139
- scaleInCooldown?: string;
140
- scaleInStep: number;
141
- scaleOutStep: number;
142
- /**
143
- *
144
- * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
145
- */
146
- fixedSize?: GroupScalingPolicyScalingPolicyFixedSize;
147
- /**
148
- *
149
- * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
150
- */
151
- cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget;
152
- /**
153
- *
154
- * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
155
- */
156
- memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget;
137
+ minimumSize: number;
138
+ maximumSize: number;
139
+ scaleOutCooldown?: string;
140
+ scaleInCooldown?: string;
141
+ scaleInStep: number;
142
+ scaleOutStep: number;
143
+ /**
144
+ *
145
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
146
+ */
147
+ fixedSize?: GroupScalingPolicyScalingPolicyFixedSize;
148
+ /**
149
+ *
150
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
151
+ */
152
+ cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget;
153
+ /**
154
+ *
155
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
156
+ */
157
+ memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget;
157
158
  }
158
159
  export interface GroupSummary {
159
- /**
160
- * Project ID owning this group.
161
- */
162
- projectId: string;
163
- /**
164
- * Unique identifier of the autoscaling group.
165
- */
166
- id: string;
167
- /**
168
- * Name of the autoscaling group.
169
- */
170
- name: string;
171
- /**
172
- * Tags associated with the group.
173
- */
174
- tags: string[];
175
- /**
176
- * Current status of the autoscaling group.
177
- */
178
- status: GroupGroupStatus;
179
- /**
180
- * Creation timestamp of the group.
181
- */
182
- createdAt?: Date;
183
- /**
184
- * Last update timestamp of the group.
185
- */
186
- updatedAt?: Date;
187
- /**
188
- * The Instance template ID used to create instances in this group.
189
- */
190
- templateId: string;
191
- /**
192
- * Optional load balancer ID.
193
- */
194
- loadBalancerId?: string;
195
- /**
196
- * Current number of instances in the group.
197
- */
198
- currentSize: number;
199
- /**
200
- * Most recent active alert if any.
201
- */
202
- latestOpenAlert?: Alert;
203
- /**
204
- * The minimum number of instances in the group.
205
- */
206
- minimumSize: number;
207
- /**
208
- * The maximum number of instances in the group.
209
- */
210
- maximumSize: number;
211
- /**
212
- * Defines which metric the group uses for scaling (cpu, memory, or fixed size).
213
- */
214
- scalingPolicyTargetType: GroupSummaryScalingPolicyTargetType;
215
- /**
216
- * Availability zone of the group.
217
- */
218
- zone: ScwZone;
160
+ /**
161
+ * Project ID owning this group.
162
+ */
163
+ projectId: string;
164
+ /**
165
+ * Unique identifier of the autoscaling group.
166
+ */
167
+ id: string;
168
+ /**
169
+ * Name of the autoscaling group.
170
+ */
171
+ name: string;
172
+ /**
173
+ * Tags associated with the group.
174
+ */
175
+ tags: string[];
176
+ /**
177
+ * Current status of the autoscaling group.
178
+ */
179
+ status: GroupGroupStatus;
180
+ /**
181
+ * Creation timestamp of the group.
182
+ */
183
+ createdAt?: Date;
184
+ /**
185
+ * Last update timestamp of the group.
186
+ */
187
+ updatedAt?: Date;
188
+ /**
189
+ * The Instance template ID used to create instances in this group.
190
+ */
191
+ templateId: string;
192
+ /**
193
+ * Optional load balancer ID.
194
+ */
195
+ loadBalancerId?: string;
196
+ /**
197
+ * Current number of instances in the group.
198
+ */
199
+ currentSize: number;
200
+ /**
201
+ * Most recent active alert if any.
202
+ */
203
+ latestOpenAlert?: Alert;
204
+ /**
205
+ * The minimum number of instances in the group.
206
+ */
207
+ minimumSize: number;
208
+ /**
209
+ * The maximum number of instances in the group.
210
+ */
211
+ maximumSize: number;
212
+ /**
213
+ * Defines which metric the group uses for scaling (cpu, memory, or fixed size).
214
+ */
215
+ scalingPolicyTargetType: GroupSummaryScalingPolicyTargetType;
216
+ /**
217
+ * Availability zone of the group.
218
+ */
219
+ zone: Zone;
219
220
  }
220
221
  export interface Log {
221
- /**
222
- * Timestamp of the log entry.
223
- */
224
- timestamp?: Date;
225
- /**
226
- * Log level (info, warning, error).
227
- */
228
- level: LogLogLevel;
229
- /**
230
- * Log message content.
231
- */
232
- message: string;
222
+ /**
223
+ * Timestamp of the log entry.
224
+ */
225
+ timestamp?: Date;
226
+ /**
227
+ * Log level (info, warning, error).
228
+ */
229
+ level: LogLogLevel;
230
+ /**
231
+ * Log message content.
232
+ */
233
+ message: string;
233
234
  }
234
235
  export interface Server {
235
- /**
236
- * ID of the instance server.
237
- */
238
- serverId: string;
236
+ /**
237
+ * ID of the instance server.
238
+ */
239
+ serverId: string;
239
240
  }
240
241
  export type CreateGroupRequest = {
241
- /**
242
- * Zone to target. If none is passed will use default zone from the config.
243
- */
244
- zone?: ScwZone;
245
- /**
246
- * Project ID to create the group in.
247
- */
248
- projectId?: string;
249
- /**
250
- * Name of the autoscaling group.
251
- */
252
- name: string;
253
- /**
254
- * Tags associated with the group.
255
- */
256
- tags?: string[];
257
- /**
258
- * Template ID for instances in this group.
259
- */
260
- templateId: string;
261
- /**
262
- * Scaling policy configuration.
263
- */
264
- scalingPolicySpec?: ScalingPolicySpec;
265
- /**
266
- * Optional load balancer configuration.
267
- */
268
- loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec;
242
+ /**
243
+ * Zone to target. If none is passed will use default zone from the config.
244
+ */
245
+ zone?: Zone;
246
+ /**
247
+ * Project ID to create the group in.
248
+ */
249
+ projectId?: string;
250
+ /**
251
+ * Name of the autoscaling group.
252
+ */
253
+ name: string;
254
+ /**
255
+ * Tags associated with the group.
256
+ */
257
+ tags?: string[];
258
+ /**
259
+ * Template ID for instances in this group.
260
+ */
261
+ templateId: string;
262
+ /**
263
+ * Scaling policy configuration.
264
+ */
265
+ scalingPolicySpec?: ScalingPolicySpec;
266
+ /**
267
+ * Optional load balancer configuration.
268
+ */
269
+ loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec;
269
270
  };
270
271
  export type DeleteGroupRequest = {
271
- /**
272
- * Zone to target. If none is passed will use default zone from the config.
273
- */
274
- zone?: ScwZone;
275
- /**
276
- * ID of the group to delete.
277
- */
278
- groupId: string;
272
+ /**
273
+ * Zone to target. If none is passed will use default zone from the config.
274
+ */
275
+ zone?: Zone;
276
+ /**
277
+ * ID of the group to delete.
278
+ */
279
+ groupId: string;
279
280
  };
280
281
  export type GetGroupRequest = {
281
- /**
282
- * Zone to target. If none is passed will use default zone from the config.
283
- */
284
- zone?: ScwZone;
285
- /**
286
- * ID of the group to get.
287
- */
288
- groupId: string;
282
+ /**
283
+ * Zone to target. If none is passed will use default zone from the config.
284
+ */
285
+ zone?: Zone;
286
+ /**
287
+ * ID of the group to get.
288
+ */
289
+ groupId: string;
289
290
  };
290
291
  export interface Group {
291
- /**
292
- * Unique identifier of the autoscaling group.
293
- */
294
- id: string;
295
- /**
296
- * Project ID owning this group.
297
- */
298
- projectId: string;
299
- /**
300
- * Name of the autoscaling group.
301
- */
302
- name: string;
303
- /**
304
- * Tags associated with the group.
305
- */
306
- tags: string[];
307
- /**
308
- * Creation timestamp of the group.
309
- */
310
- createdAt?: Date;
311
- /**
312
- * Last update timestamp of the group.
313
- */
314
- updatedAt?: Date;
315
- /**
316
- * Current status of the autoscaling group.
317
- */
318
- status: GroupGroupStatus;
319
- /**
320
- * List of active alerts on the group.
321
- */
322
- openAlerts: Alert[];
323
- /**
324
- * Current number of instances in the group.
325
- */
326
- currentSize: number;
327
- /**
328
- * Target number of instances the group is scaling to.
329
- */
330
- targetSize: number;
331
- /**
332
- * Timestamp of the last scale out event.
333
- */
334
- lastScaleOutAt?: Date;
335
- /**
336
- * Timestamp of the last scale in event.
337
- */
338
- lastScaleInAt?: Date;
339
- /**
340
- * The Instance template ID used to create instances in this group.
341
- */
342
- templateId: string;
343
- /**
344
- * Scaling policy configuration.
345
- */
346
- scalingPolicy?: GroupScalingPolicy;
347
- /**
348
- * Optional load balancer configuration.
349
- */
350
- loadBalancerConfiguration?: GroupLoadBalancerConfiguration;
292
+ /**
293
+ * Unique identifier of the autoscaling group.
294
+ */
295
+ id: string;
296
+ /**
297
+ * Project ID owning this group.
298
+ */
299
+ projectId: string;
300
+ /**
301
+ * Name of the autoscaling group.
302
+ */
303
+ name: string;
304
+ /**
305
+ * Tags associated with the group.
306
+ */
307
+ tags: string[];
308
+ /**
309
+ * Creation timestamp of the group.
310
+ */
311
+ createdAt?: Date;
312
+ /**
313
+ * Last update timestamp of the group.
314
+ */
315
+ updatedAt?: Date;
316
+ /**
317
+ * Current status of the autoscaling group.
318
+ */
319
+ status: GroupGroupStatus;
320
+ /**
321
+ * List of active alerts on the group.
322
+ */
323
+ openAlerts: Alert[];
324
+ /**
325
+ * Current number of instances in the group.
326
+ */
327
+ currentSize: number;
328
+ /**
329
+ * Target number of instances the group is scaling to.
330
+ */
331
+ targetSize: number;
332
+ /**
333
+ * Timestamp of the last scale out event.
334
+ */
335
+ lastScaleOutAt?: Date;
336
+ /**
337
+ * Timestamp of the last scale in event.
338
+ */
339
+ lastScaleInAt?: Date;
340
+ /**
341
+ * The Instance template ID used to create instances in this group.
342
+ */
343
+ templateId: string;
344
+ /**
345
+ * Scaling policy configuration.
346
+ */
347
+ scalingPolicy?: GroupScalingPolicy;
348
+ /**
349
+ * Optional load balancer configuration.
350
+ */
351
+ loadBalancerConfiguration?: GroupLoadBalancerConfiguration;
351
352
  }
352
353
  export type ListAlertsRequest = {
353
- /**
354
- * Zone to target. If none is passed will use default zone from the config.
355
- */
356
- zone?: ScwZone;
357
- /**
358
- *
359
- * One-of ('scope'): at most one of 'groupId', 'projectId' could be set.
360
- */
361
- groupId?: string;
362
- pageToken?: string;
363
- pageSize?: number;
364
- /**
365
- *
366
- * One-of ('scope'): at most one of 'groupId', 'projectId' could be set.
367
- */
368
- projectId?: string;
354
+ /**
355
+ * Zone to target. If none is passed will use default zone from the config.
356
+ */
357
+ zone?: Zone;
358
+ /**
359
+ *
360
+ * One-of ('scope'): at most one of 'groupId', 'projectId' could be set.
361
+ */
362
+ groupId?: string;
363
+ pageToken?: string;
364
+ pageSize?: number;
365
+ /**
366
+ *
367
+ * One-of ('scope'): at most one of 'groupId', 'projectId' could be set.
368
+ */
369
+ projectId?: string;
369
370
  };
370
371
  export interface ListAlertsResponse {
371
- /**
372
- * List of alerts.
373
- */
374
- alerts: Alert[];
375
- /**
376
- * Token for the next page of results.
377
- */
378
- nextPageToken?: string;
379
- /**
380
- * Total number of alerts.
381
- */
382
- totalCount: number;
372
+ /**
373
+ * List of alerts.
374
+ */
375
+ alerts: Alert[];
376
+ /**
377
+ * Token for the next page of results.
378
+ */
379
+ nextPageToken?: string;
380
+ /**
381
+ * Total number of alerts.
382
+ */
383
+ totalCount: number;
383
384
  }
384
385
  export type ListGroupsRequest = {
385
- /**
386
- * Zone to target. If none is passed will use default zone from the config.
387
- */
388
- zone?: ScwZone;
389
- /**
390
- * Order criteria for listing groups.
391
- */
392
- orderBy?: ListGroupsRequestOrderBy;
393
- /**
394
- * Page size for pagination.
395
- */
396
- pageSize?: number;
397
- /**
398
- * Token for pagination.
399
- */
400
- pageToken?: string;
401
- /**
402
- * Project ID to filter groups.
403
- */
404
- projectId?: string;
405
- /**
406
- * Template ID to filter groups.
407
- */
408
- templateId?: string;
409
- /**
410
- * Load balancer ID to filter groups.
411
- */
412
- loadBalancerId?: string;
386
+ /**
387
+ * Zone to target. If none is passed will use default zone from the config.
388
+ */
389
+ zone?: Zone;
390
+ /**
391
+ * Order criteria for listing groups.
392
+ */
393
+ orderBy?: ListGroupsRequestOrderBy;
394
+ /**
395
+ * Page size for pagination.
396
+ */
397
+ pageSize?: number;
398
+ /**
399
+ * Token for pagination.
400
+ */
401
+ pageToken?: string;
402
+ /**
403
+ * Project ID to filter groups.
404
+ */
405
+ projectId?: string;
406
+ /**
407
+ * Template ID to filter groups.
408
+ */
409
+ templateId?: string;
410
+ /**
411
+ * Load balancer ID to filter groups.
412
+ */
413
+ loadBalancerId?: string;
413
414
  };
414
415
  export interface ListGroupsResponse {
415
- /**
416
- * List of group summaries.
417
- */
418
- groupSummaries: GroupSummary[];
419
- /**
420
- * Token for the next page of results.
421
- */
422
- nextPageToken?: string;
423
- /**
424
- * Total number of groups.
425
- */
426
- totalCount: number;
416
+ /**
417
+ * List of group summaries.
418
+ */
419
+ groupSummaries: GroupSummary[];
420
+ /**
421
+ * Token for the next page of results.
422
+ */
423
+ nextPageToken?: string;
424
+ /**
425
+ * Total number of groups.
426
+ */
427
+ totalCount: number;
427
428
  }
428
429
  export type ListLogsRequest = {
429
- /**
430
- * Zone to target. If none is passed will use default zone from the config.
431
- */
432
- zone?: ScwZone;
433
- groupId: string;
434
- pageToken?: string;
435
- pageSize?: number;
436
- startTime?: Date;
437
- endTime?: Date;
430
+ /**
431
+ * Zone to target. If none is passed will use default zone from the config.
432
+ */
433
+ zone?: Zone;
434
+ groupId: string;
435
+ pageToken?: string;
436
+ pageSize?: number;
437
+ startTime?: Date;
438
+ endTime?: Date;
438
439
  };
439
440
  export interface ListLogsResponse {
440
- /**
441
- * List of log entries.
442
- */
443
- logs: Log[];
444
- /**
445
- * Token for the next page of results.
446
- */
447
- nextPageToken?: string;
448
- /**
449
- * Total number of logs.
450
- */
451
- totalCount: number;
441
+ /**
442
+ * List of log entries.
443
+ */
444
+ logs: Log[];
445
+ /**
446
+ * Token for the next page of results.
447
+ */
448
+ nextPageToken?: string;
449
+ /**
450
+ * Total number of logs.
451
+ */
452
+ totalCount: number;
452
453
  }
453
454
  export type ListServersRequest = {
454
- /**
455
- * Zone to target. If none is passed will use default zone from the config.
456
- */
457
- zone?: ScwZone;
458
- groupId: string;
459
- pageToken?: string;
460
- pageSize?: number;
455
+ /**
456
+ * Zone to target. If none is passed will use default zone from the config.
457
+ */
458
+ zone?: Zone;
459
+ groupId: string;
460
+ pageToken?: string;
461
+ pageSize?: number;
461
462
  };
462
463
  export interface ListServersResponse {
463
- /**
464
- * List of servers.
465
- */
466
- servers: Server[];
467
- /**
468
- * Token for the next page of results.
469
- */
470
- nextPageToken?: string;
471
- /**
472
- * Total number of servers.
473
- */
474
- totalCount: number;
464
+ /**
465
+ * List of servers.
466
+ */
467
+ servers: Server[];
468
+ /**
469
+ * Token for the next page of results.
470
+ */
471
+ nextPageToken?: string;
472
+ /**
473
+ * Total number of servers.
474
+ */
475
+ totalCount: number;
475
476
  }
476
477
  export type UpdateGroupRequest = {
477
- /**
478
- * Zone to target. If none is passed will use default zone from the config.
479
- */
480
- zone?: ScwZone;
481
- /**
482
- * ID of the group to update.
483
- */
484
- groupId: string;
485
- /**
486
- * New name for the group.
487
- */
488
- name?: string;
489
- /**
490
- * New tags for the group.
491
- */
492
- tags?: string[];
493
- /**
494
- * New template ID for instances.
495
- */
496
- templateId?: string;
497
- /**
498
- * New scaling policy configuration.
499
- */
500
- scalingPolicySpec?: ScalingPolicySpec;
501
- /**
502
- * New load balancer configuration.
503
- */
504
- loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec;
478
+ /**
479
+ * Zone to target. If none is passed will use default zone from the config.
480
+ */
481
+ zone?: Zone;
482
+ /**
483
+ * ID of the group to update.
484
+ */
485
+ groupId: string;
486
+ /**
487
+ * New name for the group.
488
+ */
489
+ name?: string;
490
+ /**
491
+ * New tags for the group.
492
+ */
493
+ tags?: string[];
494
+ /**
495
+ * New template ID for instances.
496
+ */
497
+ templateId?: string;
498
+ /**
499
+ * New scaling policy configuration.
500
+ */
501
+ scalingPolicySpec?: ScalingPolicySpec;
502
+ /**
503
+ * New load balancer configuration.
504
+ */
505
+ loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec;
505
506
  };
507
+ //#endregion