@scaleway/sdk-autoscaling 2.18.0 → 2.19.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.
@@ -5,7 +5,7 @@ const unmarshalGroupLoadBalancerConfigurationAutoHealing = (data) => {
5
5
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupLoadBalancerConfigurationAutoHealing' failed as data isn't a dictionary.`);
6
6
  return {
7
7
  enabled: data.enabled,
8
- gracePeriod: data.grace_period
8
+ gracePeriod: data.grace_period ?? null
9
9
  };
10
10
  };
11
11
  const unmarshalGroupLoadBalancerConfigurationBackend = (data) => {
@@ -13,7 +13,7 @@ const unmarshalGroupLoadBalancerConfigurationBackend = (data) => {
13
13
  return {
14
14
  addressFamily: data.address_family,
15
15
  backendId: data.backend_id,
16
- privateNetworkId: data.private_network_id
16
+ privateNetworkId: data.private_network_id ?? null
17
17
  };
18
18
  };
19
19
  const unmarshalGroupScalingPolicyScalingPolicyCpuTarget = (data) => {
@@ -31,17 +31,17 @@ const unmarshalGroupScalingPolicyScalingPolicyMemoryTarget = (data) => {
31
31
  const unmarshalAlert = (data) => {
32
32
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Alert' failed as data isn't a dictionary.`);
33
33
  return {
34
- closedAt: unmarshalDate(data.closed_at),
34
+ closedAt: unmarshalDate(data.closed_at) ?? null,
35
35
  failingQuotas: data.failing_quotas,
36
36
  groupId: data.group_id,
37
- openedAt: unmarshalDate(data.opened_at),
37
+ openedAt: unmarshalDate(data.opened_at) ?? null,
38
38
  type: data.type
39
39
  };
40
40
  };
41
41
  const unmarshalGroupLoadBalancerConfiguration = (data) => {
42
42
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupLoadBalancerConfiguration' failed as data isn't a dictionary.`);
43
43
  return {
44
- autoHealing: data.auto_healing ? unmarshalGroupLoadBalancerConfigurationAutoHealing(data.auto_healing) : void 0,
44
+ autoHealing: data.auto_healing ? unmarshalGroupLoadBalancerConfigurationAutoHealing(data.auto_healing) : null,
45
45
  backends: unmarshalArrayOfObject(data.backends, unmarshalGroupLoadBalancerConfigurationBackend),
46
46
  loadBalancerId: data.load_balancer_id
47
47
  };
@@ -49,36 +49,36 @@ const unmarshalGroupLoadBalancerConfiguration = (data) => {
49
49
  const unmarshalGroupScalingPolicy = (data) => {
50
50
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupScalingPolicy' failed as data isn't a dictionary.`);
51
51
  return {
52
- cpuTarget: data.cpu_target ? unmarshalGroupScalingPolicyScalingPolicyCpuTarget(data.cpu_target) : void 0,
53
- fixedSize: data.fixed_size ? unmarshalGroupScalingPolicyScalingPolicyFixedSize(data.fixed_size) : void 0,
52
+ cpuTarget: data.cpu_target ? unmarshalGroupScalingPolicyScalingPolicyCpuTarget(data.cpu_target) : null,
53
+ fixedSize: data.fixed_size ? unmarshalGroupScalingPolicyScalingPolicyFixedSize(data.fixed_size) : null,
54
54
  maximumSize: data.maximum_size,
55
- memoryTarget: data.memory_target ? unmarshalGroupScalingPolicyScalingPolicyMemoryTarget(data.memory_target) : void 0,
55
+ memoryTarget: data.memory_target ? unmarshalGroupScalingPolicyScalingPolicyMemoryTarget(data.memory_target) : null,
56
56
  minimumSize: data.minimum_size,
57
- scaleInCooldown: data.scale_in_cooldown,
57
+ scaleInCooldown: data.scale_in_cooldown ?? null,
58
58
  scaleInStep: data.scale_in_step,
59
- scaleOutCooldown: data.scale_out_cooldown,
59
+ scaleOutCooldown: data.scale_out_cooldown ?? null,
60
60
  scaleOutStep: data.scale_out_step
61
61
  };
62
62
  };
63
63
  const unmarshalGroup = (data) => {
64
64
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Group' failed as data isn't a dictionary.`);
65
65
  return {
66
- createdAt: unmarshalDate(data.created_at),
66
+ createdAt: unmarshalDate(data.created_at) ?? null,
67
67
  currentSize: data.current_size,
68
68
  id: data.id,
69
- lastScaleInAt: unmarshalDate(data.last_scale_in_at),
70
- lastScaleOutAt: unmarshalDate(data.last_scale_out_at),
71
- loadBalancerConfiguration: data.load_balancer_configuration ? unmarshalGroupLoadBalancerConfiguration(data.load_balancer_configuration) : void 0,
69
+ lastScaleInAt: unmarshalDate(data.last_scale_in_at) ?? null,
70
+ lastScaleOutAt: unmarshalDate(data.last_scale_out_at) ?? null,
71
+ loadBalancerConfiguration: data.load_balancer_configuration ? unmarshalGroupLoadBalancerConfiguration(data.load_balancer_configuration) : null,
72
72
  name: data.name,
73
73
  openAlerts: unmarshalArrayOfObject(data.open_alerts, unmarshalAlert),
74
74
  projectId: data.project_id,
75
- scalingPolicy: data.scaling_policy ? unmarshalGroupScalingPolicy(data.scaling_policy) : void 0,
75
+ scalingPolicy: data.scaling_policy ? unmarshalGroupScalingPolicy(data.scaling_policy) : null,
76
76
  srn: data.srn,
77
77
  status: data.status,
78
78
  tags: data.tags,
79
79
  targetSize: data.target_size,
80
80
  templateId: data.template_id,
81
- updatedAt: unmarshalDate(data.updated_at),
81
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
82
82
  zone: data.zone
83
83
  };
84
84
  };
@@ -86,18 +86,18 @@ const unmarshalListAlertsResponse = (data) => {
86
86
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAlertsResponse' failed as data isn't a dictionary.`);
87
87
  return {
88
88
  alerts: unmarshalArrayOfObject(data.alerts, unmarshalAlert),
89
- nextPageToken: data.next_page_token,
89
+ nextPageToken: data.next_page_token ?? null,
90
90
  totalCount: data.total_count
91
91
  };
92
92
  };
93
93
  const unmarshalGroupSummary = (data) => {
94
94
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupSummary' failed as data isn't a dictionary.`);
95
95
  return {
96
- createdAt: unmarshalDate(data.created_at),
96
+ createdAt: unmarshalDate(data.created_at) ?? null,
97
97
  currentSize: data.current_size,
98
98
  id: data.id,
99
- latestOpenAlert: data.latest_open_alert ? unmarshalAlert(data.latest_open_alert) : void 0,
100
- loadBalancerId: data.load_balancer_id,
99
+ latestOpenAlert: data.latest_open_alert ? unmarshalAlert(data.latest_open_alert) : null,
100
+ loadBalancerId: data.load_balancer_id ?? null,
101
101
  maximumSize: data.maximum_size,
102
102
  minimumSize: data.minimum_size,
103
103
  name: data.name,
@@ -107,7 +107,7 @@ const unmarshalGroupSummary = (data) => {
107
107
  status: data.status,
108
108
  tags: data.tags,
109
109
  templateId: data.template_id,
110
- updatedAt: unmarshalDate(data.updated_at),
110
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
111
111
  zone: data.zone
112
112
  };
113
113
  };
@@ -115,7 +115,7 @@ const unmarshalListGroupsResponse = (data) => {
115
115
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListGroupsResponse' failed as data isn't a dictionary.`);
116
116
  return {
117
117
  groupSummaries: unmarshalArrayOfObject(data.group_summaries, unmarshalGroupSummary),
118
- nextPageToken: data.next_page_token,
118
+ nextPageToken: data.next_page_token ?? null,
119
119
  totalCount: data.total_count
120
120
  };
121
121
  };
@@ -124,14 +124,14 @@ const unmarshalLog = (data) => {
124
124
  return {
125
125
  level: data.level,
126
126
  message: data.message,
127
- timestamp: unmarshalDate(data.timestamp)
127
+ timestamp: unmarshalDate(data.timestamp) ?? null
128
128
  };
129
129
  };
130
130
  const unmarshalListLogsResponse = (data) => {
131
131
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
132
132
  return {
133
133
  logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
134
- nextPageToken: data.next_page_token,
134
+ nextPageToken: data.next_page_token ?? null,
135
135
  totalCount: data.total_count
136
136
  };
137
137
  };
@@ -142,7 +142,7 @@ const unmarshalServer = (data) => {
142
142
  const unmarshalListServersResponse = (data) => {
143
143
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
144
144
  return {
145
- nextPageToken: data.next_page_token,
145
+ nextPageToken: data.next_page_token ?? null,
146
146
  servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
147
147
  totalCount: data.total_count
148
148
  };
@@ -160,7 +160,7 @@ const marshalGroupScalingPolicyScalingPolicyCpuTarget = (request, defaults) => (
160
160
  const marshalGroupScalingPolicyScalingPolicyFixedSize = (request, defaults) => ({ size: request.size });
161
161
  const marshalGroupScalingPolicyScalingPolicyMemoryTarget = (request, defaults) => ({ target_avg_percent: request.targetAvgPercent });
162
162
  const marshalLoadBalancerConfigurationSpec = (request, defaults) => ({
163
- auto_healing: request.autoHealing !== void 0 ? marshalLoadBalancerConfigurationSpecAutoHealing(request.autoHealing, defaults) : void 0,
163
+ auto_healing: request.autoHealing != null ? marshalLoadBalancerConfigurationSpecAutoHealing(request.autoHealing, defaults) : void 0,
164
164
  backends: request.backends.map((elt) => marshalLoadBalancerConfigurationSpecBackend(elt, defaults)),
165
165
  load_balancer_id: request.loadBalancerId
166
166
  });
@@ -174,30 +174,30 @@ const marshalScalingPolicySpec = (request, defaults) => ({
174
174
  ...resolveOneOf([
175
175
  {
176
176
  param: "fixed_size",
177
- value: request.fixedSize !== void 0 ? marshalGroupScalingPolicyScalingPolicyFixedSize(request.fixedSize, defaults) : void 0
177
+ value: request.fixedSize != null ? marshalGroupScalingPolicyScalingPolicyFixedSize(request.fixedSize, defaults) : void 0
178
178
  },
179
179
  {
180
180
  param: "cpu_target",
181
- value: request.cpuTarget !== void 0 ? marshalGroupScalingPolicyScalingPolicyCpuTarget(request.cpuTarget, defaults) : void 0
181
+ value: request.cpuTarget != null ? marshalGroupScalingPolicyScalingPolicyCpuTarget(request.cpuTarget, defaults) : void 0
182
182
  },
183
183
  {
184
184
  param: "memory_target",
185
- value: request.memoryTarget !== void 0 ? marshalGroupScalingPolicyScalingPolicyMemoryTarget(request.memoryTarget, defaults) : void 0
185
+ value: request.memoryTarget != null ? marshalGroupScalingPolicyScalingPolicyMemoryTarget(request.memoryTarget, defaults) : void 0
186
186
  }
187
187
  ])
188
188
  });
189
189
  const marshalCreateGroupRequest = (request, defaults) => ({
190
- load_balancer_configuration_spec: request.loadBalancerConfigurationSpec !== void 0 ? marshalLoadBalancerConfigurationSpec(request.loadBalancerConfigurationSpec, defaults) : void 0,
190
+ load_balancer_configuration_spec: request.loadBalancerConfigurationSpec != null ? marshalLoadBalancerConfigurationSpec(request.loadBalancerConfigurationSpec, defaults) : void 0,
191
191
  name: request.name,
192
192
  project_id: request.projectId ?? defaults.defaultProjectId,
193
- scaling_policy_spec: request.scalingPolicySpec !== void 0 ? marshalScalingPolicySpec(request.scalingPolicySpec, defaults) : void 0,
193
+ scaling_policy_spec: request.scalingPolicySpec != null ? marshalScalingPolicySpec(request.scalingPolicySpec, defaults) : void 0,
194
194
  tags: request.tags,
195
195
  template_id: request.templateId
196
196
  });
197
197
  const marshalUpdateGroupRequest = (request, defaults) => ({
198
- load_balancer_configuration_spec: request.loadBalancerConfigurationSpec !== void 0 ? marshalLoadBalancerConfigurationSpec(request.loadBalancerConfigurationSpec, defaults) : void 0,
198
+ load_balancer_configuration_spec: request.loadBalancerConfigurationSpec != null ? marshalLoadBalancerConfigurationSpec(request.loadBalancerConfigurationSpec, defaults) : void 0,
199
199
  name: request.name,
200
- scaling_policy_spec: request.scalingPolicySpec !== void 0 ? marshalScalingPolicySpec(request.scalingPolicySpec, defaults) : void 0,
200
+ scaling_policy_spec: request.scalingPolicySpec != null ? marshalScalingPolicySpec(request.scalingPolicySpec, defaults) : void 0,
201
201
  tags: request.tags,
202
202
  template_id: request.templateId
203
203
  });
@@ -10,11 +10,11 @@ export interface LoadBalancerConfigurationSpecAutoHealing {
10
10
  /**
11
11
  * Whether auto-healing is enabled.
12
12
  */
13
- enabled?: boolean;
13
+ enabled?: boolean | null;
14
14
  /**
15
15
  * Grace period for health checks.
16
16
  */
17
- gracePeriod?: string;
17
+ gracePeriod?: string | null;
18
18
  }
19
19
  export interface LoadBalancerConfigurationSpecBackend {
20
20
  /**
@@ -28,7 +28,7 @@ export interface LoadBalancerConfigurationSpecBackend {
28
28
  /**
29
29
  * Optional private network ID.
30
30
  */
31
- privateNetworkId?: string;
31
+ privateNetworkId?: string | null;
32
32
  }
33
33
  export interface GroupScalingPolicyScalingPolicyCpuTarget {
34
34
  targetAvgPercent: number;
@@ -41,12 +41,12 @@ export interface GroupScalingPolicyScalingPolicyMemoryTarget {
41
41
  }
42
42
  export interface GroupLoadBalancerConfigurationAutoHealing {
43
43
  enabled: boolean;
44
- gracePeriod?: string;
44
+ gracePeriod?: string | null;
45
45
  }
46
46
  export interface GroupLoadBalancerConfigurationBackend {
47
47
  backendId: string;
48
48
  addressFamily: GroupLoadBalancerConfigurationBackendAddressFamily;
49
- privateNetworkId?: string;
49
+ privateNetworkId?: string | null;
50
50
  }
51
51
  export interface Alert {
52
52
  /**
@@ -56,11 +56,11 @@ export interface Alert {
56
56
  /**
57
57
  * Timestamp when the alert was opened.
58
58
  */
59
- openedAt?: Date;
59
+ openedAt?: Date | null;
60
60
  /**
61
61
  * Optional timestamp when the alert was closed.
62
62
  */
63
- closedAt?: Date;
63
+ closedAt?: Date | null;
64
64
  /**
65
65
  * ID of the group.
66
66
  */
@@ -74,7 +74,7 @@ export interface LoadBalancerConfigurationSpec {
74
74
  /**
75
75
  * ID of the load balancer (set to empty to disable).
76
76
  */
77
- loadBalancerId?: string;
77
+ loadBalancerId?: string | null;
78
78
  /**
79
79
  * List of load balancer backend configurations.
80
80
  */
@@ -82,79 +82,79 @@ export interface LoadBalancerConfigurationSpec {
82
82
  /**
83
83
  * Auto-healing configuration.
84
84
  */
85
- autoHealing?: LoadBalancerConfigurationSpecAutoHealing;
85
+ autoHealing?: LoadBalancerConfigurationSpecAutoHealing | null;
86
86
  }
87
87
  export interface ScalingPolicySpec {
88
88
  /**
89
89
  * Minimum number of instances in the group.
90
90
  */
91
- minimumSize?: number;
91
+ minimumSize?: number | null;
92
92
  /**
93
93
  * Maximum number of instances in the group.
94
94
  */
95
- maximumSize?: number;
95
+ maximumSize?: number | null;
96
96
  /**
97
97
  * Cooldown period after a scale out event.
98
98
  */
99
- scaleOutCooldown?: string;
99
+ scaleOutCooldown?: string | null;
100
100
  /**
101
101
  * Cooldown period after a scale in event.
102
102
  */
103
- scaleInCooldown?: string;
103
+ scaleInCooldown?: string | null;
104
104
  /**
105
105
  * Number of instances to remove in a single scale in event.
106
106
  */
107
- scaleInStep?: number;
107
+ scaleInStep?: number | null;
108
108
  /**
109
109
  * Number of instances to add in a single scale out event.
110
110
  */
111
- scaleOutStep?: number;
111
+ scaleOutStep?: number | null;
112
112
  /**
113
113
  * Fixed size scaling policy configuration.
114
114
  *
115
115
  * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
116
116
  */
117
- fixedSize?: GroupScalingPolicyScalingPolicyFixedSize;
117
+ fixedSize?: GroupScalingPolicyScalingPolicyFixedSize | null;
118
118
  /**
119
119
  * CPU target scaling policy configuration.
120
120
  *
121
121
  * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
122
122
  */
123
- cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget;
123
+ cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget | null;
124
124
  /**
125
125
  * Memory target scaling policy configuration.
126
126
  *
127
127
  * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
128
128
  */
129
- memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget;
129
+ memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget | null;
130
130
  }
131
131
  export interface GroupLoadBalancerConfiguration {
132
132
  loadBalancerId: string;
133
133
  backends: GroupLoadBalancerConfigurationBackend[];
134
- autoHealing?: GroupLoadBalancerConfigurationAutoHealing;
134
+ autoHealing?: GroupLoadBalancerConfigurationAutoHealing | null;
135
135
  }
136
136
  export interface GroupScalingPolicy {
137
137
  minimumSize: number;
138
138
  maximumSize: number;
139
- scaleOutCooldown?: string;
140
- scaleInCooldown?: string;
139
+ scaleOutCooldown?: string | null;
140
+ scaleInCooldown?: string | null;
141
141
  scaleInStep: number;
142
142
  scaleOutStep: number;
143
143
  /**
144
144
  *
145
145
  * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
146
146
  */
147
- fixedSize?: GroupScalingPolicyScalingPolicyFixedSize;
147
+ fixedSize?: GroupScalingPolicyScalingPolicyFixedSize | null;
148
148
  /**
149
149
  *
150
150
  * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
151
151
  */
152
- cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget;
152
+ cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget | null;
153
153
  /**
154
154
  *
155
155
  * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
156
156
  */
157
- memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget;
157
+ memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget | null;
158
158
  }
159
159
  export interface GroupSummary {
160
160
  /**
@@ -184,11 +184,11 @@ export interface GroupSummary {
184
184
  /**
185
185
  * Creation timestamp of the group.
186
186
  */
187
- createdAt?: Date;
187
+ createdAt?: Date | null;
188
188
  /**
189
189
  * Last update timestamp of the group.
190
190
  */
191
- updatedAt?: Date;
191
+ updatedAt?: Date | null;
192
192
  /**
193
193
  * The Instance template ID used to create instances in this group.
194
194
  */
@@ -196,7 +196,7 @@ export interface GroupSummary {
196
196
  /**
197
197
  * Optional load balancer ID.
198
198
  */
199
- loadBalancerId?: string;
199
+ loadBalancerId?: string | null;
200
200
  /**
201
201
  * Current number of instances in the group.
202
202
  */
@@ -204,7 +204,7 @@ export interface GroupSummary {
204
204
  /**
205
205
  * Most recent active alert if any.
206
206
  */
207
- latestOpenAlert?: Alert;
207
+ latestOpenAlert?: Alert | null;
208
208
  /**
209
209
  * The minimum number of instances in the group.
210
210
  */
@@ -226,7 +226,7 @@ export interface Log {
226
226
  /**
227
227
  * Timestamp of the log entry.
228
228
  */
229
- timestamp?: Date;
229
+ timestamp?: Date | null;
230
230
  /**
231
231
  * Log level (info, warning, error).
232
232
  */
@@ -246,11 +246,11 @@ export type CreateGroupRequest = {
246
246
  /**
247
247
  * Zone to target. If none is passed will use default zone from the config.
248
248
  */
249
- zone?: Zone;
249
+ zone?: Zone | null;
250
250
  /**
251
251
  * Project ID to create the group in.
252
252
  */
253
- projectId?: string;
253
+ projectId?: string | null;
254
254
  /**
255
255
  * Name of the autoscaling group.
256
256
  */
@@ -258,7 +258,7 @@ export type CreateGroupRequest = {
258
258
  /**
259
259
  * Tags associated with the group.
260
260
  */
261
- tags?: string[];
261
+ tags?: string[] | null;
262
262
  /**
263
263
  * Template ID for instances in this group.
264
264
  */
@@ -266,17 +266,17 @@ export type CreateGroupRequest = {
266
266
  /**
267
267
  * Scaling policy configuration.
268
268
  */
269
- scalingPolicySpec?: ScalingPolicySpec;
269
+ scalingPolicySpec?: ScalingPolicySpec | null;
270
270
  /**
271
271
  * Optional load balancer configuration.
272
272
  */
273
- loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec;
273
+ loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec | null;
274
274
  };
275
275
  export type DeleteGroupRequest = {
276
276
  /**
277
277
  * Zone to target. If none is passed will use default zone from the config.
278
278
  */
279
- zone?: Zone;
279
+ zone?: Zone | null;
280
280
  /**
281
281
  * ID of the group to delete.
282
282
  */
@@ -286,7 +286,7 @@ export type GetGroupRequest = {
286
286
  /**
287
287
  * Zone to target. If none is passed will use default zone from the config.
288
288
  */
289
- zone?: Zone;
289
+ zone?: Zone | null;
290
290
  /**
291
291
  * ID of the group to get.
292
292
  */
@@ -316,11 +316,11 @@ export interface Group {
316
316
  /**
317
317
  * Creation timestamp of the group.
318
318
  */
319
- createdAt?: Date;
319
+ createdAt?: Date | null;
320
320
  /**
321
321
  * Last update timestamp of the group.
322
322
  */
323
- updatedAt?: Date;
323
+ updatedAt?: Date | null;
324
324
  /**
325
325
  * Current status of the autoscaling group.
326
326
  */
@@ -340,11 +340,11 @@ export interface Group {
340
340
  /**
341
341
  * Timestamp of the last scale out event.
342
342
  */
343
- lastScaleOutAt?: Date;
343
+ lastScaleOutAt?: Date | null;
344
344
  /**
345
345
  * Timestamp of the last scale in event.
346
346
  */
347
- lastScaleInAt?: Date;
347
+ lastScaleInAt?: Date | null;
348
348
  /**
349
349
  * The Instance template ID used to create instances in this group.
350
350
  */
@@ -352,11 +352,11 @@ export interface Group {
352
352
  /**
353
353
  * Scaling policy configuration.
354
354
  */
355
- scalingPolicy?: GroupScalingPolicy;
355
+ scalingPolicy?: GroupScalingPolicy | null;
356
356
  /**
357
357
  * Optional load balancer configuration.
358
358
  */
359
- loadBalancerConfiguration?: GroupLoadBalancerConfiguration;
359
+ loadBalancerConfiguration?: GroupLoadBalancerConfiguration | null;
360
360
  /**
361
361
  * Zone of the Autoscaling Group.
362
362
  */
@@ -366,19 +366,19 @@ export type ListAlertsRequest = {
366
366
  /**
367
367
  * Zone to target. If none is passed will use default zone from the config.
368
368
  */
369
- zone?: Zone;
369
+ zone?: Zone | null;
370
370
  /**
371
371
  *
372
372
  * One-of ('scope'): at most one of 'groupId', 'projectId' could be set.
373
373
  */
374
- groupId?: string;
375
- pageToken?: string;
376
- pageSize?: number;
374
+ groupId?: string | null;
375
+ pageToken?: string | null;
376
+ pageSize?: number | null;
377
377
  /**
378
378
  *
379
379
  * One-of ('scope'): at most one of 'groupId', 'projectId' could be set.
380
380
  */
381
- projectId?: string;
381
+ projectId?: string | null;
382
382
  };
383
383
  export interface ListAlertsResponse {
384
384
  /**
@@ -388,7 +388,7 @@ export interface ListAlertsResponse {
388
388
  /**
389
389
  * Token for the next page of results.
390
390
  */
391
- nextPageToken?: string;
391
+ nextPageToken?: string | null;
392
392
  /**
393
393
  * Total number of alerts.
394
394
  */
@@ -398,31 +398,31 @@ export type ListGroupsRequest = {
398
398
  /**
399
399
  * Zone to target. If none is passed will use default zone from the config.
400
400
  */
401
- zone?: Zone;
401
+ zone?: Zone | null;
402
402
  /**
403
403
  * Order criteria for listing groups.
404
404
  */
405
- orderBy?: ListGroupsRequestOrderBy;
405
+ orderBy?: ListGroupsRequestOrderBy | null;
406
406
  /**
407
407
  * Page size for pagination.
408
408
  */
409
- pageSize?: number;
409
+ pageSize?: number | null;
410
410
  /**
411
411
  * Token for pagination.
412
412
  */
413
- pageToken?: string;
413
+ pageToken?: string | null;
414
414
  /**
415
415
  * Project ID to filter groups.
416
416
  */
417
- projectId?: string;
417
+ projectId?: string | null;
418
418
  /**
419
419
  * Template ID to filter groups.
420
420
  */
421
- templateId?: string;
421
+ templateId?: string | null;
422
422
  /**
423
423
  * Load balancer ID to filter groups.
424
424
  */
425
- loadBalancerId?: string;
425
+ loadBalancerId?: string | null;
426
426
  };
427
427
  export interface ListGroupsResponse {
428
428
  /**
@@ -432,7 +432,7 @@ export interface ListGroupsResponse {
432
432
  /**
433
433
  * Token for the next page of results.
434
434
  */
435
- nextPageToken?: string;
435
+ nextPageToken?: string | null;
436
436
  /**
437
437
  * Total number of groups.
438
438
  */
@@ -442,12 +442,12 @@ export type ListLogsRequest = {
442
442
  /**
443
443
  * Zone to target. If none is passed will use default zone from the config.
444
444
  */
445
- zone?: Zone;
445
+ zone?: Zone | null;
446
446
  groupId: string;
447
- pageToken?: string;
448
- pageSize?: number;
449
- startTime?: Date;
450
- endTime?: Date;
447
+ pageToken?: string | null;
448
+ pageSize?: number | null;
449
+ startTime?: Date | null;
450
+ endTime?: Date | null;
451
451
  };
452
452
  export interface ListLogsResponse {
453
453
  /**
@@ -457,7 +457,7 @@ export interface ListLogsResponse {
457
457
  /**
458
458
  * Token for the next page of results.
459
459
  */
460
- nextPageToken?: string;
460
+ nextPageToken?: string | null;
461
461
  /**
462
462
  * Total number of logs.
463
463
  */
@@ -467,10 +467,10 @@ export type ListServersRequest = {
467
467
  /**
468
468
  * Zone to target. If none is passed will use default zone from the config.
469
469
  */
470
- zone?: Zone;
470
+ zone?: Zone | null;
471
471
  groupId: string;
472
- pageToken?: string;
473
- pageSize?: number;
472
+ pageToken?: string | null;
473
+ pageSize?: number | null;
474
474
  };
475
475
  export interface ListServersResponse {
476
476
  /**
@@ -480,7 +480,7 @@ export interface ListServersResponse {
480
480
  /**
481
481
  * Token for the next page of results.
482
482
  */
483
- nextPageToken?: string;
483
+ nextPageToken?: string | null;
484
484
  /**
485
485
  * Total number of servers.
486
486
  */
@@ -490,14 +490,14 @@ export type RefreshGroupRequest = {
490
490
  /**
491
491
  * Zone to target. If none is passed will use default zone from the config.
492
492
  */
493
- zone?: Zone;
493
+ zone?: Zone | null;
494
494
  groupId: string;
495
495
  };
496
496
  export type UpdateGroupRequest = {
497
497
  /**
498
498
  * Zone to target. If none is passed will use default zone from the config.
499
499
  */
500
- zone?: Zone;
500
+ zone?: Zone | null;
501
501
  /**
502
502
  * ID of the group to update.
503
503
  */
@@ -505,22 +505,22 @@ export type UpdateGroupRequest = {
505
505
  /**
506
506
  * New name for the group.
507
507
  */
508
- name?: string;
508
+ name?: string | null;
509
509
  /**
510
510
  * New tags for the group.
511
511
  */
512
- tags?: string[];
512
+ tags?: string[] | null;
513
513
  /**
514
514
  * New template ID for instances.
515
515
  */
516
- templateId?: string;
516
+ templateId?: string | null;
517
517
  /**
518
518
  * New scaling policy configuration.
519
519
  */
520
- scalingPolicySpec?: ScalingPolicySpec;
520
+ scalingPolicySpec?: ScalingPolicySpec | null;
521
521
  /**
522
522
  * New load balancer configuration.
523
523
  */
524
- loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec;
524
+ loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec | null;
525
525
  };
526
526
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-autoscaling",
3
- "version": "2.18.0",
3
+ "version": "2.19.1",
4
4
  "description": "Scaleway SDK autoscaling",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,14 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@scaleway/random-name": "6.0.2",
36
- "@scaleway/sdk-std": "2.9.5"
36
+ "@scaleway/sdk-std": "2.9.7"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@repo/configs": "^0.1.1",
40
- "@scaleway/sdk-client": "^2.16.0"
40
+ "@scaleway/sdk-client": "^2.18.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@scaleway/sdk-client": "^2.16.0"
43
+ "@scaleway/sdk-client": "^2.18.0"
44
44
  },
45
45
  "scripts": {
46
46
  "package:check": "pnpm publint",