@scaleway/sdk-autoscaling 2.5.4 → 2.6.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.
@@ -3,3 +3,4 @@
3
3
  * PLEASE DO NOT EDIT HERE
4
4
  */
5
5
  export * as Autoscalingv1alpha1 from './v1alpha1/index.gen.js';
6
+ export * as Autoscalingv1alpha2 from './v1alpha2/index.gen.js';
package/dist/index.gen.js CHANGED
@@ -1,2 +1,3 @@
1
1
  import { index_gen_exports } from "./v1alpha1/index.gen.js";
2
- export { index_gen_exports as Autoscalingv1alpha1 };
2
+ import { index_gen_exports as index_gen_exports$1 } from "./v1alpha2/index.gen.js";
3
+ export { index_gen_exports as Autoscalingv1alpha1, index_gen_exports$1 as Autoscalingv1alpha2 };
@@ -6,7 +6,7 @@ export declare const pkgMetadata: {
6
6
  readonly name: "@scaleway/sdk-autoscaling";
7
7
  readonly namespace: "autoscaling";
8
8
  readonly displayName: "Autoscaling";
9
- readonly versions: readonly ["v1alpha1"];
9
+ readonly versions: readonly ["v1alpha1", "v1alpha2"];
10
10
  };
11
11
  export type Metadata = typeof pkgMetadata;
12
12
  export default pkgMetadata;
@@ -7,7 +7,7 @@ const pkgMetadata = {
7
7
  name: "@scaleway/sdk-autoscaling",
8
8
  namespace: "autoscaling",
9
9
  displayName: "Autoscaling",
10
- versions: ["v1alpha1"]
10
+ versions: ["v1alpha1", "v1alpha2"]
11
11
  };
12
12
  //#endregion
13
13
  export { pkgMetadata as default, pkgMetadata };
@@ -0,0 +1,79 @@
1
+ import { API as ParentAPI } from '@scaleway/sdk-client';
2
+ import type { WaitForOptions, ApiLocality } from '@scaleway/sdk-client';
3
+ import type { CreateGroupRequest, DeleteGroupRequest, GetGroupRequest, Group, ListAlertsRequest, ListAlertsResponse, ListGroupsRequest, ListGroupsResponse, ListLogsRequest, ListLogsResponse, ListServersRequest, ListServersResponse, UpdateGroupRequest } from './types.gen.js';
4
+ /**
5
+ * Autoscaling Groups API.
6
+
7
+ Instances Autoscaling Groups management API.
8
+ */
9
+ export declare class API extends ParentAPI {
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static readonly LOCALITY: ApiLocality;
15
+ /**
16
+ * List autoscaling groups. List all autoscaling groups in a project.
17
+ *
18
+ * @param request - The request {@link ListGroupsRequest}
19
+ * @returns A Promise of ListGroupsResponse
20
+ */
21
+ listGroups: (request?: Readonly<ListGroupsRequest>) => Promise<ListGroupsResponse>;
22
+ /**
23
+ * Get an autoscaling group. Get details of a specified autoscaling group including its configuration, current size, and status.
24
+ *
25
+ * @param request - The request {@link GetGroupRequest}
26
+ * @returns A Promise of Group
27
+ */
28
+ getGroup: (request: Readonly<GetGroupRequest>) => Promise<Group>;
29
+ /**
30
+ * Waits for {@link Group} to be in a final state.
31
+ *
32
+ * @param request - The request {@link GetGroupRequest}
33
+ * @param options - The waiting options
34
+ * @returns A Promise of Group
35
+ */
36
+ waitForGroup: (request: Readonly<GetGroupRequest>, options?: Readonly<WaitForOptions<Group>>) => Promise<Group>;
37
+ /**
38
+ * Create an autoscaling group. Create a new autoscaling group with the specified configuration including template, scaling policy, and optional load balancer settings.
39
+ *
40
+ * @param request - The request {@link CreateGroupRequest}
41
+ * @returns A Promise of Group
42
+ */
43
+ createGroup: (request: Readonly<CreateGroupRequest>) => Promise<Group>;
44
+ /**
45
+ * Update an autoscaling group. Update the configuration of a specified autoscaling group including name, tags, template, scaling policy, and load balancer settings.
46
+ *
47
+ * @param request - The request {@link UpdateGroupRequest}
48
+ * @returns A Promise of Group
49
+ */
50
+ updateGroup: (request: Readonly<UpdateGroupRequest>) => Promise<Group>;
51
+ /**
52
+ * Delete an autoscaling group. Delete a specified autoscaling group and all its associated resources.
53
+ *
54
+ * @param request - The request {@link DeleteGroupRequest}
55
+ * @returns A Promise of Group
56
+ */
57
+ deleteGroup: (request: Readonly<DeleteGroupRequest>) => Promise<Group>;
58
+ /**
59
+ * List group logs. List logs for a specified autoscaling group to view scaling events and activities.
60
+ *
61
+ * @param request - The request {@link ListLogsRequest}
62
+ * @returns A Promise of ListLogsResponse
63
+ */
64
+ listLogs: (request: Readonly<ListLogsRequest>) => Promise<ListLogsResponse>;
65
+ /**
66
+ * List group servers. List all Instances belonging to a specified autoscaling group.
67
+ *
68
+ * @param request - The request {@link ListServersRequest}
69
+ * @returns A Promise of ListServersResponse
70
+ */
71
+ listServers: (request: Readonly<ListServersRequest>) => Promise<ListServersResponse>;
72
+ /**
73
+ * List group alerts. List active and historical alerts for a specified autoscaling group.
74
+ *
75
+ * @param request - The request {@link ListAlertsRequest}
76
+ * @returns A Promise of ListAlertsResponse
77
+ */
78
+ listAlerts: (request?: Readonly<ListAlertsRequest>) => Promise<ListAlertsResponse>;
79
+ }
@@ -0,0 +1,68 @@
1
+ import { GROUP_GROUP_TRANSIENT_STATUSES } from "./content.gen.js";
2
+ import { marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse } from "./marshalling.gen.js";
3
+ import { API as API$1, resolveOneOf, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
+ //#region src/v1alpha2/api.gen.ts
5
+ const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
6
+ /**
7
+ * Autoscaling Groups API.
8
+
9
+ Instances Autoscaling Groups management API.
10
+ */
11
+ var API = class extends API$1 {
12
+ constructor(..._args) {
13
+ super(..._args);
14
+ this.listGroups = (request = {}) => this.client.fetch({
15
+ method: "GET",
16
+ path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups`,
17
+ urlParams: urlParams(["load_balancer_id", request.loadBalancerId], ["order_by", request.orderBy], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["project_id", request.projectId ?? this.client.settings.defaultProjectId], ["template_id", request.templateId])
18
+ }, unmarshalListGroupsResponse);
19
+ this.getGroup = (request) => this.client.fetch({
20
+ method: "GET",
21
+ path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}`
22
+ }, unmarshalGroup);
23
+ this.waitForGroup = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!GROUP_GROUP_TRANSIENT_STATUSES.includes(res.status))), this.getGroup, request, options);
24
+ this.createGroup = (request) => this.client.fetch({
25
+ body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
26
+ headers: jsonContentHeaders,
27
+ method: "POST",
28
+ path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups`
29
+ }, unmarshalGroup);
30
+ this.updateGroup = (request) => this.client.fetch({
31
+ body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
32
+ headers: jsonContentHeaders,
33
+ method: "PATCH",
34
+ path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}`
35
+ }, unmarshalGroup);
36
+ this.deleteGroup = (request) => this.client.fetch({
37
+ method: "DELETE",
38
+ path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}`
39
+ }, unmarshalGroup);
40
+ this.listLogs = (request) => this.client.fetch({
41
+ method: "GET",
42
+ path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/logs`,
43
+ urlParams: urlParams(["end_time", request.endTime], ["group_id", request.groupId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["start_time", request.startTime])
44
+ }, unmarshalListLogsResponse);
45
+ this.listServers = (request) => this.client.fetch({
46
+ method: "GET",
47
+ path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`,
48
+ urlParams: urlParams(["group_id", request.groupId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken])
49
+ }, unmarshalListServersResponse);
50
+ this.listAlerts = (request = {}) => this.client.fetch({
51
+ method: "GET",
52
+ path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/alerts`,
53
+ urlParams: urlParams(["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ...Object.entries(resolveOneOf([{
54
+ param: "group_id",
55
+ value: request.groupId
56
+ }, {
57
+ default: this.client.settings.defaultProjectId,
58
+ param: "project_id",
59
+ value: request.projectId
60
+ }])))
61
+ }, unmarshalListAlertsResponse);
62
+ }
63
+ static {
64
+ this.LOCALITY = toApiLocality({ zones: ["fr-par-1"] });
65
+ }
66
+ };
67
+ //#endregion
68
+ export { API };
@@ -0,0 +1,3 @@
1
+ import type { GroupGroupStatus } from './types.gen.js';
2
+ /** Lists transient statutes of the enum {@link GroupGroupStatus}. */
3
+ export declare const GROUP_GROUP_TRANSIENT_STATUSES: GroupGroupStatus[];
@@ -0,0 +1,11 @@
1
+ //#region src/v1alpha2/content.gen.ts
2
+ /** Lists transient statutes of the enum {@link GroupGroupStatus}. */
3
+ const GROUP_GROUP_TRANSIENT_STATUSES = [
4
+ "scaling_out",
5
+ "scaling_in",
6
+ "refreshing",
7
+ "healing",
8
+ "deleting"
9
+ ];
10
+ //#endregion
11
+ export { GROUP_GROUP_TRANSIENT_STATUSES };
@@ -0,0 +1,5 @@
1
+ export { API, } from './api.gen.js';
2
+ export * from './content.gen.js';
3
+ export * from './marshalling.gen.js';
4
+ export type { Alert, AlertAlertType, CreateGroupRequest, DeleteGroupRequest, GetGroupRequest, Group, GroupGroupStatus, GroupLoadBalancerConfiguration, GroupLoadBalancerConfigurationAutoHealing, GroupLoadBalancerConfigurationBackend, GroupLoadBalancerConfigurationBackendAddressFamily, GroupScalingPolicy, GroupScalingPolicyScalingPolicyCpuTarget, GroupScalingPolicyScalingPolicyFixedSize, GroupScalingPolicyScalingPolicyMemoryTarget, GroupSummary, ListAlertsRequest, ListAlertsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListLogsRequest, ListLogsResponse, ListServersRequest, ListServersResponse, LoadBalancerConfigurationSpec, LoadBalancerConfigurationSpecAutoHealing, LoadBalancerConfigurationSpecBackend, Log, LogLogLevel, ScalingPolicySpec, Server, UpdateGroupRequest, } from './types.gen.js';
5
+ export * as ValidationRules from './validation-rules.gen.js';
@@ -0,0 +1,20 @@
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { GROUP_GROUP_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse } from "./marshalling.gen.js";
4
+ import { API } from "./api.gen.js";
5
+ import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ //#region src/v1alpha2/index.gen.ts
7
+ var index_gen_exports = /* @__PURE__ */ __exportAll({
8
+ API: () => API,
9
+ GROUP_GROUP_TRANSIENT_STATUSES: () => GROUP_GROUP_TRANSIENT_STATUSES,
10
+ ValidationRules: () => validation_rules_gen_exports,
11
+ marshalCreateGroupRequest: () => marshalCreateGroupRequest,
12
+ marshalUpdateGroupRequest: () => marshalUpdateGroupRequest,
13
+ unmarshalGroup: () => unmarshalGroup,
14
+ unmarshalListAlertsResponse: () => unmarshalListAlertsResponse,
15
+ unmarshalListGroupsResponse: () => unmarshalListGroupsResponse,
16
+ unmarshalListLogsResponse: () => unmarshalListLogsResponse,
17
+ unmarshalListServersResponse: () => unmarshalListServersResponse
18
+ });
19
+ //#endregion
20
+ export { API, GROUP_GROUP_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse };
@@ -0,0 +1,9 @@
1
+ import type { DefaultValues } from '@scaleway/sdk-client';
2
+ import type { Group, ListAlertsResponse, ListGroupsResponse, ListLogsResponse, ListServersResponse, CreateGroupRequest, UpdateGroupRequest } from './types.gen.js';
3
+ export declare const unmarshalGroup: (data: unknown) => Group;
4
+ export declare const unmarshalListAlertsResponse: (data: unknown) => ListAlertsResponse;
5
+ export declare const unmarshalListGroupsResponse: (data: unknown) => ListGroupsResponse;
6
+ export declare const unmarshalListLogsResponse: (data: unknown) => ListLogsResponse;
7
+ export declare const unmarshalListServersResponse: (data: unknown) => ListServersResponse;
8
+ export declare const marshalCreateGroupRequest: (request: CreateGroupRequest, defaults: DefaultValues) => Record<string, unknown>;
9
+ export declare const marshalUpdateGroupRequest: (request: UpdateGroupRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -0,0 +1,197 @@
1
+ import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
+ //#region src/v1alpha2/marshalling.gen.ts
3
+ const unmarshalGroupLoadBalancerConfigurationAutoHealing = (data) => {
4
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupLoadBalancerConfigurationAutoHealing' failed as data isn't a dictionary.`);
5
+ return {
6
+ enabled: data.enabled,
7
+ gracePeriod: data.grace_period
8
+ };
9
+ };
10
+ const unmarshalGroupLoadBalancerConfigurationBackend = (data) => {
11
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupLoadBalancerConfigurationBackend' failed as data isn't a dictionary.`);
12
+ return {
13
+ addressFamily: data.address_family,
14
+ backendId: data.backend_id,
15
+ privateNetworkId: data.private_network_id
16
+ };
17
+ };
18
+ const unmarshalGroupScalingPolicyScalingPolicyCpuTarget = (data) => {
19
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupScalingPolicyScalingPolicyCpuTarget' failed as data isn't a dictionary.`);
20
+ return { targetAvgPercent: data.target_avg_percent };
21
+ };
22
+ const unmarshalGroupScalingPolicyScalingPolicyFixedSize = (data) => {
23
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupScalingPolicyScalingPolicyFixedSize' failed as data isn't a dictionary.`);
24
+ return { size: data.size };
25
+ };
26
+ const unmarshalGroupScalingPolicyScalingPolicyMemoryTarget = (data) => {
27
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupScalingPolicyScalingPolicyMemoryTarget' failed as data isn't a dictionary.`);
28
+ return { targetAvgPercent: data.target_avg_percent };
29
+ };
30
+ const unmarshalAlert = (data) => {
31
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Alert' failed as data isn't a dictionary.`);
32
+ return {
33
+ closedAt: unmarshalDate(data.closed_at),
34
+ failingQuotas: data.failing_quotas,
35
+ groupId: data.group_id,
36
+ openedAt: unmarshalDate(data.opened_at),
37
+ type: data.type
38
+ };
39
+ };
40
+ const unmarshalGroupLoadBalancerConfiguration = (data) => {
41
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupLoadBalancerConfiguration' failed as data isn't a dictionary.`);
42
+ return {
43
+ autoHealing: data.auto_healing ? unmarshalGroupLoadBalancerConfigurationAutoHealing(data.auto_healing) : void 0,
44
+ backends: unmarshalArrayOfObject(data.backends, unmarshalGroupLoadBalancerConfigurationBackend),
45
+ loadBalancerId: data.load_balancer_id
46
+ };
47
+ };
48
+ const unmarshalGroupScalingPolicy = (data) => {
49
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupScalingPolicy' failed as data isn't a dictionary.`);
50
+ return {
51
+ cpuTarget: data.cpu_target ? unmarshalGroupScalingPolicyScalingPolicyCpuTarget(data.cpu_target) : void 0,
52
+ fixedSize: data.fixed_size ? unmarshalGroupScalingPolicyScalingPolicyFixedSize(data.fixed_size) : void 0,
53
+ maximumSize: data.maximum_size,
54
+ memoryTarget: data.memory_target ? unmarshalGroupScalingPolicyScalingPolicyMemoryTarget(data.memory_target) : void 0,
55
+ minimumSize: data.minimum_size,
56
+ scaleInCooldown: data.scale_in_cooldown,
57
+ scaleInStep: data.scale_in_step,
58
+ scaleOutCooldown: data.scale_out_cooldown,
59
+ scaleOutStep: data.scale_out_step
60
+ };
61
+ };
62
+ const unmarshalGroup = (data) => {
63
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Group' failed as data isn't a dictionary.`);
64
+ return {
65
+ createdAt: unmarshalDate(data.created_at),
66
+ currentSize: data.current_size,
67
+ id: data.id,
68
+ lastScaleInAt: unmarshalDate(data.last_scale_in_at),
69
+ lastScaleOutAt: unmarshalDate(data.last_scale_out_at),
70
+ loadBalancerConfiguration: data.load_balancer_configuration ? unmarshalGroupLoadBalancerConfiguration(data.load_balancer_configuration) : void 0,
71
+ name: data.name,
72
+ openAlerts: unmarshalArrayOfObject(data.open_alerts, unmarshalAlert),
73
+ projectId: data.project_id,
74
+ scalingPolicy: data.scaling_policy ? unmarshalGroupScalingPolicy(data.scaling_policy) : void 0,
75
+ status: data.status,
76
+ tags: data.tags,
77
+ targetSize: data.target_size,
78
+ templateId: data.template_id,
79
+ updatedAt: unmarshalDate(data.updated_at)
80
+ };
81
+ };
82
+ const unmarshalListAlertsResponse = (data) => {
83
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAlertsResponse' failed as data isn't a dictionary.`);
84
+ return {
85
+ alerts: unmarshalArrayOfObject(data.alerts, unmarshalAlert),
86
+ nextPageToken: data.next_page_token,
87
+ totalCount: data.total_count
88
+ };
89
+ };
90
+ const unmarshalGroupSummary = (data) => {
91
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GroupSummary' failed as data isn't a dictionary.`);
92
+ return {
93
+ createdAt: unmarshalDate(data.created_at),
94
+ currentSize: data.current_size,
95
+ id: data.id,
96
+ latestOpenAlert: data.latest_open_alert ? unmarshalAlert(data.latest_open_alert) : void 0,
97
+ loadBalancerId: data.load_balancer_id,
98
+ name: data.name,
99
+ projectId: data.project_id,
100
+ status: data.status,
101
+ tags: data.tags,
102
+ templateId: data.template_id,
103
+ updatedAt: unmarshalDate(data.updated_at)
104
+ };
105
+ };
106
+ const unmarshalListGroupsResponse = (data) => {
107
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListGroupsResponse' failed as data isn't a dictionary.`);
108
+ return {
109
+ groupSummaries: unmarshalArrayOfObject(data.group_summaries, unmarshalGroupSummary),
110
+ nextPageToken: data.next_page_token,
111
+ totalCount: data.total_count
112
+ };
113
+ };
114
+ const unmarshalLog = (data) => {
115
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
116
+ return {
117
+ level: data.level,
118
+ message: data.message,
119
+ timestamp: unmarshalDate(data.timestamp)
120
+ };
121
+ };
122
+ const unmarshalListLogsResponse = (data) => {
123
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
124
+ return {
125
+ logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
126
+ nextPageToken: data.next_page_token,
127
+ totalCount: data.total_count
128
+ };
129
+ };
130
+ const unmarshalServer = (data) => {
131
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
132
+ return { serverId: data.server_id };
133
+ };
134
+ const unmarshalListServersResponse = (data) => {
135
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
136
+ return {
137
+ nextPageToken: data.next_page_token,
138
+ servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
139
+ totalCount: data.total_count
140
+ };
141
+ };
142
+ const marshalLoadBalancerConfigurationSpecAutoHealing = (request, defaults) => ({
143
+ enabled: request.enabled,
144
+ grace_period: request.gracePeriod
145
+ });
146
+ const marshalLoadBalancerConfigurationSpecBackend = (request, defaults) => ({
147
+ address_family: request.addressFamily,
148
+ backend_id: request.backendId,
149
+ private_network_id: request.privateNetworkId
150
+ });
151
+ const marshalGroupScalingPolicyScalingPolicyCpuTarget = (request, defaults) => ({ target_avg_percent: request.targetAvgPercent });
152
+ const marshalGroupScalingPolicyScalingPolicyFixedSize = (request, defaults) => ({ size: request.size });
153
+ const marshalGroupScalingPolicyScalingPolicyMemoryTarget = (request, defaults) => ({ target_avg_percent: request.targetAvgPercent });
154
+ const marshalLoadBalancerConfigurationSpec = (request, defaults) => ({
155
+ auto_healing: request.autoHealing !== void 0 ? marshalLoadBalancerConfigurationSpecAutoHealing(request.autoHealing, defaults) : void 0,
156
+ backends: request.backends.map((elt) => marshalLoadBalancerConfigurationSpecBackend(elt, defaults)),
157
+ load_balancer_id: request.loadBalancerId
158
+ });
159
+ const marshalScalingPolicySpec = (request, defaults) => ({
160
+ maximum_size: request.maximumSize,
161
+ minimum_size: request.minimumSize,
162
+ scale_in_cooldown: request.scaleInCooldown,
163
+ scale_in_step: request.scaleInStep,
164
+ scale_out_cooldown: request.scaleOutCooldown,
165
+ scale_out_step: request.scaleOutStep,
166
+ ...resolveOneOf([
167
+ {
168
+ param: "fixed_size",
169
+ value: request.fixedSize !== void 0 ? marshalGroupScalingPolicyScalingPolicyFixedSize(request.fixedSize, defaults) : void 0
170
+ },
171
+ {
172
+ param: "cpu_target",
173
+ value: request.cpuTarget !== void 0 ? marshalGroupScalingPolicyScalingPolicyCpuTarget(request.cpuTarget, defaults) : void 0
174
+ },
175
+ {
176
+ param: "memory_target",
177
+ value: request.memoryTarget !== void 0 ? marshalGroupScalingPolicyScalingPolicyMemoryTarget(request.memoryTarget, defaults) : void 0
178
+ }
179
+ ])
180
+ });
181
+ const marshalCreateGroupRequest = (request, defaults) => ({
182
+ load_balancer_configuration_spec: request.loadBalancerConfigurationSpec !== void 0 ? marshalLoadBalancerConfigurationSpec(request.loadBalancerConfigurationSpec, defaults) : void 0,
183
+ name: request.name,
184
+ project_id: request.projectId ?? defaults.defaultProjectId,
185
+ scaling_policy_spec: request.scalingPolicySpec !== void 0 ? marshalScalingPolicySpec(request.scalingPolicySpec, defaults) : void 0,
186
+ tags: request.tags,
187
+ template_id: request.templateId
188
+ });
189
+ const marshalUpdateGroupRequest = (request, defaults) => ({
190
+ load_balancer_configuration_spec: request.loadBalancerConfigurationSpec !== void 0 ? marshalLoadBalancerConfigurationSpec(request.loadBalancerConfigurationSpec, defaults) : void 0,
191
+ name: request.name,
192
+ scaling_policy_spec: request.scalingPolicySpec !== void 0 ? marshalScalingPolicySpec(request.scalingPolicySpec, defaults) : void 0,
193
+ tags: request.tags,
194
+ template_id: request.templateId
195
+ });
196
+ //#endregion
197
+ export { marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse };
@@ -0,0 +1,68 @@
1
+ export declare const queriesMetadata: {
2
+ readonly namespace: 'autoscaling';
3
+ readonly version: 'v1alpha2';
4
+ readonly folderName: 'autoscalingv1alpha2';
5
+ readonly services: readonly [{
6
+ readonly apiClass: 'API';
7
+ readonly methods: readonly [{
8
+ readonly methodName: 'listGroups';
9
+ readonly protoName: 'ListGroups';
10
+ readonly paramsType: 'ListGroupsRequest';
11
+ readonly returnType: 'ListGroupsResponse';
12
+ readonly isList: true;
13
+ readonly paginationType: 'cursor';
14
+ readonly pageParamKey: 'pageToken';
15
+ readonly listItemType: 'GroupSummary';
16
+ readonly nextPageField: 'nextPageToken';
17
+ readonly isPrivate: false;
18
+ readonly description: '"';
19
+ }, {
20
+ readonly methodName: 'getGroup';
21
+ readonly protoName: 'GetGroup';
22
+ readonly paramsType: 'GetGroupRequest';
23
+ readonly returnType: 'Group';
24
+ readonly isList: false;
25
+ readonly paginationType: 'none';
26
+ readonly isPrivate: false;
27
+ readonly description: '"';
28
+ readonly hasWaiter: true;
29
+ }, {
30
+ readonly methodName: 'listLogs';
31
+ readonly protoName: 'ListLogs';
32
+ readonly paramsType: 'ListLogsRequest';
33
+ readonly returnType: 'ListLogsResponse';
34
+ readonly isList: true;
35
+ readonly paginationType: 'cursor';
36
+ readonly pageParamKey: 'pageToken';
37
+ readonly listItemType: 'Log';
38
+ readonly nextPageField: 'nextPageToken';
39
+ readonly isPrivate: false;
40
+ readonly description: '"';
41
+ }, {
42
+ readonly methodName: 'listServers';
43
+ readonly protoName: 'ListServers';
44
+ readonly paramsType: 'ListServersRequest';
45
+ readonly returnType: 'ListServersResponse';
46
+ readonly isList: true;
47
+ readonly paginationType: 'cursor';
48
+ readonly pageParamKey: 'pageToken';
49
+ readonly listItemType: 'Server';
50
+ readonly nextPageField: 'nextPageToken';
51
+ readonly isPrivate: false;
52
+ readonly description: '"';
53
+ }, {
54
+ readonly methodName: 'listAlerts';
55
+ readonly protoName: 'ListAlerts';
56
+ readonly paramsType: 'ListAlertsRequest';
57
+ readonly returnType: 'ListAlertsResponse';
58
+ readonly isList: true;
59
+ readonly paginationType: 'cursor';
60
+ readonly pageParamKey: 'pageToken';
61
+ readonly listItemType: 'Alert';
62
+ readonly nextPageField: 'nextPageToken';
63
+ readonly isPrivate: false;
64
+ readonly description: '"';
65
+ }];
66
+ }];
67
+ };
68
+ export type QueriesMetadata = typeof queriesMetadata;
@@ -0,0 +1,76 @@
1
+ //#region src/v1alpha2/metadata.gen.ts
2
+ const queriesMetadata = {
3
+ namespace: "autoscaling",
4
+ version: "v1alpha2",
5
+ folderName: "autoscalingv1alpha2",
6
+ services: [{
7
+ apiClass: "API",
8
+ methods: [
9
+ {
10
+ methodName: "listGroups",
11
+ protoName: "ListGroups",
12
+ paramsType: "ListGroupsRequest",
13
+ returnType: "ListGroupsResponse",
14
+ isList: true,
15
+ paginationType: "cursor",
16
+ pageParamKey: "pageToken",
17
+ listItemType: "GroupSummary",
18
+ nextPageField: "nextPageToken",
19
+ isPrivate: false,
20
+ description: "\""
21
+ },
22
+ {
23
+ methodName: "getGroup",
24
+ protoName: "GetGroup",
25
+ paramsType: "GetGroupRequest",
26
+ returnType: "Group",
27
+ isList: false,
28
+ paginationType: "none",
29
+ isPrivate: false,
30
+ description: "\"",
31
+ hasWaiter: true
32
+ },
33
+ {
34
+ methodName: "listLogs",
35
+ protoName: "ListLogs",
36
+ paramsType: "ListLogsRequest",
37
+ returnType: "ListLogsResponse",
38
+ isList: true,
39
+ paginationType: "cursor",
40
+ pageParamKey: "pageToken",
41
+ listItemType: "Log",
42
+ nextPageField: "nextPageToken",
43
+ isPrivate: false,
44
+ description: "\""
45
+ },
46
+ {
47
+ methodName: "listServers",
48
+ protoName: "ListServers",
49
+ paramsType: "ListServersRequest",
50
+ returnType: "ListServersResponse",
51
+ isList: true,
52
+ paginationType: "cursor",
53
+ pageParamKey: "pageToken",
54
+ listItemType: "Server",
55
+ nextPageField: "nextPageToken",
56
+ isPrivate: false,
57
+ description: "\""
58
+ },
59
+ {
60
+ methodName: "listAlerts",
61
+ protoName: "ListAlerts",
62
+ paramsType: "ListAlertsRequest",
63
+ returnType: "ListAlertsResponse",
64
+ isList: true,
65
+ paginationType: "cursor",
66
+ pageParamKey: "pageToken",
67
+ listItemType: "Alert",
68
+ nextPageField: "nextPageToken",
69
+ isPrivate: false,
70
+ description: "\""
71
+ }
72
+ ]
73
+ }]
74
+ };
75
+ //#endregion
76
+ export { queriesMetadata };
@@ -0,0 +1,488 @@
1
+ import type { Zone as ScwZone } from '@scaleway/sdk-client';
2
+ export type AlertAlertType = 'unknown_alert_type' | 'quotas_exceeded' | 'out_of_stock' | 'invalid_template' | 'load_balancer_misconfigured' | 'template_not_found' | 'invalid_instance' | 'template_permissions_denied' | 'load_balancer_not_found' | 'load_balancer_permissions_denied' | 'backend_not_found';
3
+ export type GroupGroupStatus = 'unknown_group_status' | 'active' | 'scaling_out' | 'scaling_in' | 'refreshing' | 'healing' | 'scaling_failure' | 'deleting';
4
+ export type GroupLoadBalancerConfigurationBackendAddressFamily = 'unknown_address_family' | 'ipv4' | 'ipv6';
5
+ export type ListGroupsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
6
+ export type LogLogLevel = 'unknown_log_level' | 'info' | 'warning' | 'error';
7
+ export interface LoadBalancerConfigurationSpecAutoHealing {
8
+ /**
9
+ * Whether auto-healing is enabled.
10
+ */
11
+ enabled?: boolean;
12
+ /**
13
+ * Grace period for health checks.
14
+ */
15
+ gracePeriod?: string;
16
+ }
17
+ export interface LoadBalancerConfigurationSpecBackend {
18
+ /**
19
+ * ID of the load balancer backend.
20
+ */
21
+ backendId: string;
22
+ /**
23
+ * IP address family (IPv4 or IPv6).
24
+ */
25
+ addressFamily: GroupLoadBalancerConfigurationBackendAddressFamily;
26
+ /**
27
+ * Optional private network ID.
28
+ */
29
+ privateNetworkId?: string;
30
+ }
31
+ export interface GroupScalingPolicyScalingPolicyCpuTarget {
32
+ targetAvgPercent: number;
33
+ }
34
+ export interface GroupScalingPolicyScalingPolicyFixedSize {
35
+ size: number;
36
+ }
37
+ export interface GroupScalingPolicyScalingPolicyMemoryTarget {
38
+ targetAvgPercent: number;
39
+ }
40
+ export interface GroupLoadBalancerConfigurationAutoHealing {
41
+ enabled: boolean;
42
+ gracePeriod?: string;
43
+ }
44
+ export interface GroupLoadBalancerConfigurationBackend {
45
+ backendId: string;
46
+ addressFamily: GroupLoadBalancerConfigurationBackendAddressFamily;
47
+ privateNetworkId?: string;
48
+ }
49
+ export interface Alert {
50
+ /**
51
+ * Type of alert.
52
+ */
53
+ type: AlertAlertType;
54
+ /**
55
+ * Timestamp when the alert was opened.
56
+ */
57
+ openedAt?: Date;
58
+ /**
59
+ * Optional timestamp when the alert was closed.
60
+ */
61
+ closedAt?: Date;
62
+ /**
63
+ * ID of the group.
64
+ */
65
+ groupId: string;
66
+ /**
67
+ * List of quota names that are exceeded (for quotas_exceeded alerts).
68
+ */
69
+ failingQuotas: string[];
70
+ }
71
+ export interface LoadBalancerConfigurationSpec {
72
+ /**
73
+ * ID of the load balancer (set to empty to disable).
74
+ */
75
+ loadBalancerId?: string;
76
+ /**
77
+ * List of load balancer backend configurations.
78
+ */
79
+ backends: LoadBalancerConfigurationSpecBackend[];
80
+ /**
81
+ * Auto-healing configuration.
82
+ */
83
+ autoHealing?: LoadBalancerConfigurationSpecAutoHealing;
84
+ }
85
+ export interface ScalingPolicySpec {
86
+ /**
87
+ * Minimum number of instances in the group.
88
+ */
89
+ minimumSize?: number;
90
+ /**
91
+ * Maximum number of instances in the group.
92
+ */
93
+ maximumSize?: number;
94
+ /**
95
+ * Cooldown period after a scale out event.
96
+ */
97
+ scaleOutCooldown?: string;
98
+ /**
99
+ * Cooldown period after a scale in event.
100
+ */
101
+ scaleInCooldown?: string;
102
+ /**
103
+ * Number of instances to remove in a single scale in event.
104
+ */
105
+ scaleInStep?: number;
106
+ /**
107
+ * Number of instances to add in a single scale out event.
108
+ */
109
+ scaleOutStep?: number;
110
+ /**
111
+ * Fixed size scaling policy configuration.
112
+ *
113
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
114
+ */
115
+ fixedSize?: GroupScalingPolicyScalingPolicyFixedSize;
116
+ /**
117
+ * CPU target scaling policy configuration.
118
+ *
119
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
120
+ */
121
+ cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget;
122
+ /**
123
+ * Memory target scaling policy configuration.
124
+ *
125
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
126
+ */
127
+ memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget;
128
+ }
129
+ export interface GroupLoadBalancerConfiguration {
130
+ loadBalancerId: string;
131
+ backends: GroupLoadBalancerConfigurationBackend[];
132
+ autoHealing?: GroupLoadBalancerConfigurationAutoHealing;
133
+ }
134
+ export interface GroupScalingPolicy {
135
+ minimumSize: number;
136
+ maximumSize: number;
137
+ scaleOutCooldown?: string;
138
+ scaleInCooldown?: string;
139
+ scaleInStep: number;
140
+ scaleOutStep: number;
141
+ /**
142
+ *
143
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
144
+ */
145
+ fixedSize?: GroupScalingPolicyScalingPolicyFixedSize;
146
+ /**
147
+ *
148
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
149
+ */
150
+ cpuTarget?: GroupScalingPolicyScalingPolicyCpuTarget;
151
+ /**
152
+ *
153
+ * One-of ('target'): at most one of 'fixedSize', 'cpuTarget', 'memoryTarget' could be set.
154
+ */
155
+ memoryTarget?: GroupScalingPolicyScalingPolicyMemoryTarget;
156
+ }
157
+ export interface GroupSummary {
158
+ /**
159
+ * Project ID owning this group.
160
+ */
161
+ projectId: string;
162
+ /**
163
+ * Unique identifier of the autoscaling group.
164
+ */
165
+ id: string;
166
+ /**
167
+ * Name of the autoscaling group.
168
+ */
169
+ name: string;
170
+ /**
171
+ * Tags associated with the group.
172
+ */
173
+ tags: string[];
174
+ /**
175
+ * Current status of the autoscaling group.
176
+ */
177
+ status: GroupGroupStatus;
178
+ /**
179
+ * Creation timestamp of the group.
180
+ */
181
+ createdAt?: Date;
182
+ /**
183
+ * Last update timestamp of the group.
184
+ */
185
+ updatedAt?: Date;
186
+ /**
187
+ * The Instance template ID used to create instances in this group.
188
+ */
189
+ templateId: string;
190
+ /**
191
+ * Optional load balancer ID.
192
+ */
193
+ loadBalancerId?: string;
194
+ /**
195
+ * Current number of instances in the group.
196
+ */
197
+ currentSize: number;
198
+ /**
199
+ * Most recent active alert if any.
200
+ */
201
+ latestOpenAlert?: Alert;
202
+ }
203
+ export interface Log {
204
+ /**
205
+ * Timestamp of the log entry.
206
+ */
207
+ timestamp?: Date;
208
+ /**
209
+ * Log level (info, warning, error).
210
+ */
211
+ level: LogLogLevel;
212
+ /**
213
+ * Log message content.
214
+ */
215
+ message: string;
216
+ }
217
+ export interface Server {
218
+ /**
219
+ * ID of the instance server.
220
+ */
221
+ serverId: string;
222
+ }
223
+ export type CreateGroupRequest = {
224
+ /**
225
+ * Zone to target. If none is passed will use default zone from the config.
226
+ */
227
+ zone?: ScwZone;
228
+ /**
229
+ * Project ID to create the group in.
230
+ */
231
+ projectId?: string;
232
+ /**
233
+ * Name of the autoscaling group.
234
+ */
235
+ name: string;
236
+ /**
237
+ * Tags associated with the group.
238
+ */
239
+ tags?: string[];
240
+ /**
241
+ * Template ID for instances in this group.
242
+ */
243
+ templateId: string;
244
+ /**
245
+ * Scaling policy configuration.
246
+ */
247
+ scalingPolicySpec?: ScalingPolicySpec;
248
+ /**
249
+ * Optional load balancer configuration.
250
+ */
251
+ loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec;
252
+ };
253
+ export type DeleteGroupRequest = {
254
+ /**
255
+ * Zone to target. If none is passed will use default zone from the config.
256
+ */
257
+ zone?: ScwZone;
258
+ /**
259
+ * ID of the group to delete.
260
+ */
261
+ groupId: string;
262
+ };
263
+ export type GetGroupRequest = {
264
+ /**
265
+ * Zone to target. If none is passed will use default zone from the config.
266
+ */
267
+ zone?: ScwZone;
268
+ /**
269
+ * ID of the group to get.
270
+ */
271
+ groupId: string;
272
+ };
273
+ export interface Group {
274
+ /**
275
+ * Unique identifier of the autoscaling group.
276
+ */
277
+ id: string;
278
+ /**
279
+ * Project ID owning this group.
280
+ */
281
+ projectId: string;
282
+ /**
283
+ * Name of the autoscaling group.
284
+ */
285
+ name: string;
286
+ /**
287
+ * Tags associated with the group.
288
+ */
289
+ tags: string[];
290
+ /**
291
+ * Creation timestamp of the group.
292
+ */
293
+ createdAt?: Date;
294
+ /**
295
+ * Last update timestamp of the group.
296
+ */
297
+ updatedAt?: Date;
298
+ /**
299
+ * Current status of the autoscaling group.
300
+ */
301
+ status: GroupGroupStatus;
302
+ /**
303
+ * List of active alerts on the group.
304
+ */
305
+ openAlerts: Alert[];
306
+ /**
307
+ * Current number of instances in the group.
308
+ */
309
+ currentSize: number;
310
+ /**
311
+ * Target number of instances the group is scaling to.
312
+ */
313
+ targetSize: number;
314
+ /**
315
+ * Timestamp of the last scale out event.
316
+ */
317
+ lastScaleOutAt?: Date;
318
+ /**
319
+ * Timestamp of the last scale in event.
320
+ */
321
+ lastScaleInAt?: Date;
322
+ /**
323
+ * The Instance template ID used to create instances in this group.
324
+ */
325
+ templateId: string;
326
+ /**
327
+ * Scaling policy configuration.
328
+ */
329
+ scalingPolicy?: GroupScalingPolicy;
330
+ /**
331
+ * Optional load balancer configuration.
332
+ */
333
+ loadBalancerConfiguration?: GroupLoadBalancerConfiguration;
334
+ }
335
+ export type ListAlertsRequest = {
336
+ /**
337
+ * Zone to target. If none is passed will use default zone from the config.
338
+ */
339
+ zone?: ScwZone;
340
+ /**
341
+ *
342
+ * One-of ('scope'): at most one of 'groupId', 'projectId' could be set.
343
+ */
344
+ groupId?: string;
345
+ pageToken?: string;
346
+ pageSize?: number;
347
+ /**
348
+ *
349
+ * One-of ('scope'): at most one of 'groupId', 'projectId' could be set.
350
+ */
351
+ projectId?: string;
352
+ };
353
+ export interface ListAlertsResponse {
354
+ /**
355
+ * List of alerts.
356
+ */
357
+ alerts: Alert[];
358
+ /**
359
+ * Token for the next page of results.
360
+ */
361
+ nextPageToken?: string;
362
+ /**
363
+ * Total number of alerts.
364
+ */
365
+ totalCount: number;
366
+ }
367
+ export type ListGroupsRequest = {
368
+ /**
369
+ * Zone to target. If none is passed will use default zone from the config.
370
+ */
371
+ zone?: ScwZone;
372
+ /**
373
+ * Order criteria for listing groups.
374
+ */
375
+ orderBy?: ListGroupsRequestOrderBy;
376
+ /**
377
+ * Page size for pagination.
378
+ */
379
+ pageSize?: number;
380
+ /**
381
+ * Token for pagination.
382
+ */
383
+ pageToken?: string;
384
+ /**
385
+ * Project ID to filter groups.
386
+ */
387
+ projectId?: string;
388
+ /**
389
+ * Template ID to filter groups.
390
+ */
391
+ templateId?: string;
392
+ /**
393
+ * Load balancer ID to filter groups.
394
+ */
395
+ loadBalancerId?: string;
396
+ };
397
+ export interface ListGroupsResponse {
398
+ /**
399
+ * List of group summaries.
400
+ */
401
+ groupSummaries: GroupSummary[];
402
+ /**
403
+ * Token for the next page of results.
404
+ */
405
+ nextPageToken?: string;
406
+ /**
407
+ * Total number of groups.
408
+ */
409
+ totalCount: number;
410
+ }
411
+ export type ListLogsRequest = {
412
+ /**
413
+ * Zone to target. If none is passed will use default zone from the config.
414
+ */
415
+ zone?: ScwZone;
416
+ groupId: string;
417
+ pageToken?: string;
418
+ pageSize?: number;
419
+ startTime?: Date;
420
+ endTime?: Date;
421
+ };
422
+ export interface ListLogsResponse {
423
+ /**
424
+ * List of log entries.
425
+ */
426
+ logs: Log[];
427
+ /**
428
+ * Token for the next page of results.
429
+ */
430
+ nextPageToken?: string;
431
+ /**
432
+ * Total number of logs.
433
+ */
434
+ totalCount: number;
435
+ }
436
+ export type ListServersRequest = {
437
+ /**
438
+ * Zone to target. If none is passed will use default zone from the config.
439
+ */
440
+ zone?: ScwZone;
441
+ groupId: string;
442
+ pageToken?: string;
443
+ pageSize?: number;
444
+ };
445
+ export interface ListServersResponse {
446
+ /**
447
+ * List of servers.
448
+ */
449
+ servers: Server[];
450
+ /**
451
+ * Token for the next page of results.
452
+ */
453
+ nextPageToken?: string;
454
+ /**
455
+ * Total number of servers.
456
+ */
457
+ totalCount: number;
458
+ }
459
+ export type UpdateGroupRequest = {
460
+ /**
461
+ * Zone to target. If none is passed will use default zone from the config.
462
+ */
463
+ zone?: ScwZone;
464
+ /**
465
+ * ID of the group to update.
466
+ */
467
+ groupId: string;
468
+ /**
469
+ * New name for the group.
470
+ */
471
+ name?: string;
472
+ /**
473
+ * New tags for the group.
474
+ */
475
+ tags?: string[];
476
+ /**
477
+ * New template ID for instances.
478
+ */
479
+ templateId?: string;
480
+ /**
481
+ * New scaling policy configuration.
482
+ */
483
+ scalingPolicySpec?: ScalingPolicySpec;
484
+ /**
485
+ * New load balancer configuration.
486
+ */
487
+ loadBalancerConfigurationSpec?: LoadBalancerConfigurationSpec;
488
+ };
File without changes
@@ -0,0 +1,36 @@
1
+ export declare const GroupScalingPolicyScalingPolicyCpuTarget: {
2
+ targetAvgPercent: {
3
+ greaterThanOrEqual: number;
4
+ lessThanOrEqual: number;
5
+ };
6
+ };
7
+ export declare const GroupScalingPolicyScalingPolicyMemoryTarget: {
8
+ targetAvgPercent: {
9
+ greaterThanOrEqual: number;
10
+ lessThanOrEqual: number;
11
+ };
12
+ };
13
+ export declare const ListAlertsRequest: {
14
+ pageSize: {
15
+ greaterThanOrEqual: number;
16
+ lessThanOrEqual: number;
17
+ };
18
+ };
19
+ export declare const ListGroupsRequest: {
20
+ pageSize: {
21
+ greaterThanOrEqual: number;
22
+ lessThanOrEqual: number;
23
+ };
24
+ };
25
+ export declare const ListLogsRequest: {
26
+ pageSize: {
27
+ greaterThanOrEqual: number;
28
+ lessThanOrEqual: number;
29
+ };
30
+ };
31
+ export declare const ListServersRequest: {
32
+ pageSize: {
33
+ greaterThanOrEqual: number;
34
+ lessThanOrEqual: number;
35
+ };
36
+ };
@@ -0,0 +1,36 @@
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v1alpha2/validation-rules.gen.ts
3
+ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
4
+ GroupScalingPolicyScalingPolicyCpuTarget: () => GroupScalingPolicyScalingPolicyCpuTarget,
5
+ GroupScalingPolicyScalingPolicyMemoryTarget: () => GroupScalingPolicyScalingPolicyMemoryTarget,
6
+ ListAlertsRequest: () => ListAlertsRequest,
7
+ ListGroupsRequest: () => ListGroupsRequest,
8
+ ListLogsRequest: () => ListLogsRequest,
9
+ ListServersRequest: () => ListServersRequest
10
+ });
11
+ const GroupScalingPolicyScalingPolicyCpuTarget = { targetAvgPercent: {
12
+ greaterThanOrEqual: 0,
13
+ lessThanOrEqual: 100
14
+ } };
15
+ const GroupScalingPolicyScalingPolicyMemoryTarget = { targetAvgPercent: {
16
+ greaterThanOrEqual: 0,
17
+ lessThanOrEqual: 100
18
+ } };
19
+ const ListAlertsRequest = { pageSize: {
20
+ greaterThanOrEqual: 0,
21
+ lessThanOrEqual: 100
22
+ } };
23
+ const ListGroupsRequest = { pageSize: {
24
+ greaterThanOrEqual: 0,
25
+ lessThanOrEqual: 100
26
+ } };
27
+ const ListLogsRequest = { pageSize: {
28
+ greaterThanOrEqual: 0,
29
+ lessThanOrEqual: 100
30
+ } };
31
+ const ListServersRequest = { pageSize: {
32
+ greaterThanOrEqual: 0,
33
+ lessThanOrEqual: 100
34
+ } };
35
+ //#endregion
36
+ export { GroupScalingPolicyScalingPolicyCpuTarget, GroupScalingPolicyScalingPolicyMemoryTarget, ListAlertsRequest, ListGroupsRequest, ListLogsRequest, ListServersRequest, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-autoscaling",
3
- "version": "2.5.4",
3
+ "version": "2.6.1",
4
4
  "description": "Scaleway SDK autoscaling",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {