@scaleway/sdk-autoscaling 2.3.1 → 2.3.2
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __exportAll = (all, no_symbols) => {
|
|
3
4
|
let target = {};
|
|
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
|
|
|
8
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
10
|
return target;
|
|
10
11
|
};
|
|
12
|
+
//#endregion
|
|
11
13
|
export { __exportAll };
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { marshalCreateInstanceGroupRequest, marshalCreateInstancePolicyRequest, marshalCreateInstanceTemplateRequest, marshalUpdateInstanceGroupRequest, marshalUpdateInstancePolicyRequest, marshalUpdateInstanceTemplateRequest, unmarshalInstanceGroup, unmarshalInstancePolicy, unmarshalInstanceTemplate, unmarshalListInstanceGroupEventsResponse, unmarshalListInstanceGroupsResponse, unmarshalListInstancePoliciesResponse, unmarshalListInstanceTemplatesResponse } from "./marshalling.gen.js";
|
|
2
|
-
import { API, enrichForPagination, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
2
|
+
import { API as API$1, enrichForPagination, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v1alpha1/api.gen.ts
|
|
3
4
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
4
5
|
/**
|
|
5
6
|
* Instance Scaling Groups API.
|
|
6
7
|
*/
|
|
7
|
-
var API
|
|
8
|
+
var API = class extends API$1 {
|
|
8
9
|
/**
|
|
9
10
|
* Get Instance group. Retrieve information about an existing Instance group, specified by its `instance_group_id`. Its full details, including errors, are returned in the response object.
|
|
10
11
|
*
|
|
@@ -183,4 +184,5 @@ var API$1 = class extends API {
|
|
|
183
184
|
*/
|
|
184
185
|
listInstanceGroupEvents = (request) => enrichForPagination("instanceEvents", this.pageOfListInstanceGroupEvents, request);
|
|
185
186
|
};
|
|
186
|
-
|
|
187
|
+
//#endregion
|
|
188
|
+
export { API };
|
|
@@ -2,6 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { marshalCreateInstanceGroupRequest, marshalCreateInstancePolicyRequest, marshalCreateInstanceTemplateRequest, marshalUpdateInstanceGroupRequest, marshalUpdateInstancePolicyRequest, marshalUpdateInstanceTemplateRequest, unmarshalInstanceGroup, unmarshalInstancePolicy, unmarshalInstanceTemplate, unmarshalListInstanceGroupEventsResponse, unmarshalListInstanceGroupsResponse, unmarshalListInstancePoliciesResponse, unmarshalListInstanceTemplatesResponse } from "./marshalling.gen.js";
|
|
3
3
|
import { API } from "./api.gen.js";
|
|
4
4
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
+
//#region src/v1alpha1/index.gen.ts
|
|
5
6
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
6
7
|
API: () => API,
|
|
7
8
|
ValidationRules: () => validation_rules_gen_exports,
|
|
@@ -19,4 +20,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
20
|
unmarshalListInstancePoliciesResponse: () => unmarshalListInstancePoliciesResponse,
|
|
20
21
|
unmarshalListInstanceTemplatesResponse: () => unmarshalListInstanceTemplatesResponse
|
|
21
22
|
});
|
|
22
|
-
|
|
23
|
+
//#endregion
|
|
24
|
+
export { API, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateInstanceGroupRequest, marshalCreateInstancePolicyRequest, marshalCreateInstanceTemplateRequest, marshalUpdateInstanceGroupRequest, marshalUpdateInstancePolicyRequest, marshalUpdateInstanceTemplateRequest, unmarshalInstanceGroup, unmarshalInstancePolicy, unmarshalInstanceTemplate, unmarshalListInstanceGroupEventsResponse, unmarshalListInstanceGroupsResponse, unmarshalListInstancePoliciesResponse, unmarshalListInstanceTemplatesResponse };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1alpha1/marshalling.gen.ts
|
|
2
3
|
var unmarshalCapacity = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Capacity' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
@@ -15,7 +16,7 @@ var unmarshalLoadbalancer = (data) => {
|
|
|
15
16
|
privateNetworkId: data.private_network_id
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
var unmarshalInstanceGroup = (data) => {
|
|
19
20
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstanceGroup' failed as data isn't a dictionary.`);
|
|
20
21
|
return {
|
|
21
22
|
capacity: unmarshalCapacity(data.capacity),
|
|
@@ -43,7 +44,7 @@ var unmarshalMetric = (data) => {
|
|
|
43
44
|
threshold: data.threshold
|
|
44
45
|
};
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
+
var unmarshalInstancePolicy = (data) => {
|
|
47
48
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstancePolicy' failed as data isn't a dictionary.`);
|
|
48
49
|
return {
|
|
49
50
|
action: data.action,
|
|
@@ -80,7 +81,7 @@ var unmarshalVolumeInstanceTemplate = (data) => {
|
|
|
80
81
|
volumeType: data.volume_type
|
|
81
82
|
};
|
|
82
83
|
};
|
|
83
|
-
|
|
84
|
+
var unmarshalInstanceTemplate = (data) => {
|
|
84
85
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstanceTemplate' failed as data isn't a dictionary.`);
|
|
85
86
|
return {
|
|
86
87
|
cloudInit: data.cloud_init,
|
|
@@ -113,28 +114,28 @@ var unmarshalInstanceGroupEvent = (data) => {
|
|
|
113
114
|
source: data.source
|
|
114
115
|
};
|
|
115
116
|
};
|
|
116
|
-
|
|
117
|
+
var unmarshalListInstanceGroupEventsResponse = (data) => {
|
|
117
118
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstanceGroupEventsResponse' failed as data isn't a dictionary.`);
|
|
118
119
|
return {
|
|
119
120
|
instanceEvents: unmarshalArrayOfObject(data.instance_events, unmarshalInstanceGroupEvent),
|
|
120
121
|
totalCount: data.total_count
|
|
121
122
|
};
|
|
122
123
|
};
|
|
123
|
-
|
|
124
|
+
var unmarshalListInstanceGroupsResponse = (data) => {
|
|
124
125
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstanceGroupsResponse' failed as data isn't a dictionary.`);
|
|
125
126
|
return {
|
|
126
127
|
instanceGroups: unmarshalArrayOfObject(data.instance_groups, unmarshalInstanceGroup),
|
|
127
128
|
totalCount: data.total_count
|
|
128
129
|
};
|
|
129
130
|
};
|
|
130
|
-
|
|
131
|
+
var unmarshalListInstancePoliciesResponse = (data) => {
|
|
131
132
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstancePoliciesResponse' failed as data isn't a dictionary.`);
|
|
132
133
|
return {
|
|
133
134
|
policies: unmarshalArrayOfObject(data.policies, unmarshalInstancePolicy),
|
|
134
135
|
totalCount: data.total_count
|
|
135
136
|
};
|
|
136
137
|
};
|
|
137
|
-
|
|
138
|
+
var unmarshalListInstanceTemplatesResponse = (data) => {
|
|
138
139
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstanceTemplatesResponse' failed as data isn't a dictionary.`);
|
|
139
140
|
return {
|
|
140
141
|
instanceTemplates: unmarshalArrayOfObject(data.instance_templates, unmarshalInstanceTemplate),
|
|
@@ -151,7 +152,7 @@ var marshalLoadbalancer = (request, defaults) => ({
|
|
|
151
152
|
id: request.id,
|
|
152
153
|
private_network_id: request.privateNetworkId
|
|
153
154
|
});
|
|
154
|
-
|
|
155
|
+
var marshalCreateInstanceGroupRequest = (request, defaults) => ({
|
|
155
156
|
capacity: marshalCapacity(request.capacity, defaults),
|
|
156
157
|
loadbalancer: marshalLoadbalancer(request.loadbalancer, defaults),
|
|
157
158
|
name: request.name,
|
|
@@ -173,7 +174,7 @@ var marshalMetric = (request, defaults) => ({
|
|
|
173
174
|
value: request.cockpitMetricName
|
|
174
175
|
}])
|
|
175
176
|
});
|
|
176
|
-
|
|
177
|
+
var marshalCreateInstancePolicyRequest = (request, defaults) => ({
|
|
177
178
|
action: request.action,
|
|
178
179
|
instance_group_id: request.instanceGroupId,
|
|
179
180
|
name: request.name,
|
|
@@ -207,7 +208,7 @@ var marshalVolumeInstanceTemplate = (request, defaults) => ({
|
|
|
207
208
|
value: request.perfIops
|
|
208
209
|
}])
|
|
209
210
|
});
|
|
210
|
-
|
|
211
|
+
var marshalCreateInstanceTemplateRequest = (request, defaults) => ({
|
|
211
212
|
cloud_init: request.cloudInit,
|
|
212
213
|
commercial_type: request.commercialType,
|
|
213
214
|
image_id: request.imageId,
|
|
@@ -230,7 +231,7 @@ var marshalUpdateInstanceGroupRequestCapacity = (request, defaults) => ({
|
|
|
230
231
|
min_replicas: request.minReplicas
|
|
231
232
|
});
|
|
232
233
|
var marshalUpdateInstanceGroupRequestLoadbalancer = (request, defaults) => ({ backend_ids: request.backendIds });
|
|
233
|
-
|
|
234
|
+
var marshalUpdateInstanceGroupRequest = (request, defaults) => ({
|
|
234
235
|
capacity: request.capacity !== void 0 ? marshalUpdateInstanceGroupRequestCapacity(request.capacity, defaults) : void 0,
|
|
235
236
|
loadbalancer: request.loadbalancer !== void 0 ? marshalUpdateInstanceGroupRequestLoadbalancer(request.loadbalancer, defaults) : void 0,
|
|
236
237
|
name: request.name,
|
|
@@ -250,7 +251,7 @@ var marshalUpdateInstancePolicyRequestMetric = (request, defaults) => ({
|
|
|
250
251
|
value: request.cockpitMetricName
|
|
251
252
|
}])
|
|
252
253
|
});
|
|
253
|
-
|
|
254
|
+
var marshalUpdateInstancePolicyRequest = (request, defaults) => ({
|
|
254
255
|
action: request.action,
|
|
255
256
|
name: request.name,
|
|
256
257
|
priority: request.priority,
|
|
@@ -261,7 +262,7 @@ const marshalUpdateInstancePolicyRequest = (request, defaults) => ({
|
|
|
261
262
|
value: request.metric !== void 0 ? marshalUpdateInstancePolicyRequestMetric(request.metric, defaults) : void 0
|
|
262
263
|
}])
|
|
263
264
|
});
|
|
264
|
-
|
|
265
|
+
var marshalUpdateInstanceTemplateRequest = (request, defaults) => ({
|
|
265
266
|
cloud_init: request.cloudInit,
|
|
266
267
|
commercial_type: request.commercialType,
|
|
267
268
|
image_id: request.imageId,
|
|
@@ -277,4 +278,5 @@ const marshalUpdateInstanceTemplateRequest = (request, defaults) => ({
|
|
|
277
278
|
[key]: marshalVolumeInstanceTemplate(value, defaults)
|
|
278
279
|
}), {}) : void 0
|
|
279
280
|
});
|
|
281
|
+
//#endregion
|
|
280
282
|
export { marshalCreateInstanceGroupRequest, marshalCreateInstancePolicyRequest, marshalCreateInstanceTemplateRequest, marshalUpdateInstanceGroupRequest, marshalUpdateInstancePolicyRequest, marshalUpdateInstanceTemplateRequest, unmarshalInstanceGroup, unmarshalInstancePolicy, unmarshalInstanceTemplate, unmarshalListInstanceGroupEventsResponse, unmarshalListInstanceGroupsResponse, unmarshalListInstancePoliciesResponse, unmarshalListInstanceTemplatesResponse };
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1alpha1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
Capacity: () => Capacity,
|
|
4
5
|
CreateInstanceGroupRequest: () => CreateInstanceGroupRequest,
|
|
@@ -16,54 +17,54 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
16
17
|
UpdateInstanceTemplateRequest: () => UpdateInstanceTemplateRequest,
|
|
17
18
|
VolumeInstanceTemplate: () => VolumeInstanceTemplate
|
|
18
19
|
});
|
|
19
|
-
|
|
20
|
+
var Capacity = {
|
|
20
21
|
maxReplicas: { greaterThanOrEqual: 2 },
|
|
21
22
|
minReplicas: { greaterThanOrEqual: 1 }
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
+
var CreateInstanceGroupRequest = { name: {
|
|
24
25
|
maxLength: 255,
|
|
25
26
|
minLength: 1
|
|
26
27
|
} };
|
|
27
|
-
|
|
28
|
+
var CreateInstancePolicyRequest = {
|
|
28
29
|
name: {
|
|
29
30
|
maxLength: 255,
|
|
30
31
|
minLength: 1
|
|
31
32
|
},
|
|
32
33
|
value: { greaterThanOrEqual: 1 }
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
var CreateInstanceTemplateRequest = { name: {
|
|
35
36
|
maxLength: 255,
|
|
36
37
|
minLength: 1
|
|
37
38
|
} };
|
|
38
|
-
|
|
39
|
+
var ListInstanceGroupEventsRequest = {
|
|
39
40
|
page: { greaterThanOrEqual: 1 },
|
|
40
41
|
pageSize: {
|
|
41
42
|
greaterThanOrEqual: 1,
|
|
42
43
|
lessThanOrEqual: 1e3
|
|
43
44
|
}
|
|
44
45
|
};
|
|
45
|
-
|
|
46
|
+
var ListInstanceGroupsRequest = {
|
|
46
47
|
page: { greaterThanOrEqual: 1 },
|
|
47
48
|
pageSize: {
|
|
48
49
|
greaterThanOrEqual: 1,
|
|
49
50
|
lessThanOrEqual: 1e3
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
|
-
|
|
53
|
+
var ListInstancePoliciesRequest = {
|
|
53
54
|
page: { greaterThanOrEqual: 1 },
|
|
54
55
|
pageSize: {
|
|
55
56
|
greaterThanOrEqual: 1,
|
|
56
57
|
lessThanOrEqual: 1e3
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
|
-
|
|
60
|
+
var ListInstanceTemplatesRequest = {
|
|
60
61
|
page: { greaterThanOrEqual: 1 },
|
|
61
62
|
pageSize: {
|
|
62
63
|
greaterThanOrEqual: 1,
|
|
63
64
|
lessThanOrEqual: 1e3
|
|
64
65
|
}
|
|
65
66
|
};
|
|
66
|
-
|
|
67
|
+
var Metric = {
|
|
67
68
|
name: {
|
|
68
69
|
maxLength: 255,
|
|
69
70
|
minLength: 1
|
|
@@ -73,22 +74,22 @@ const Metric = {
|
|
|
73
74
|
lessThanOrEqual: 60
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
+
var UpdateInstanceGroupRequest = { name: {
|
|
77
78
|
maxLength: 255,
|
|
78
79
|
minLength: 1
|
|
79
80
|
} };
|
|
80
|
-
|
|
81
|
+
var UpdateInstanceGroupRequestCapacity = {
|
|
81
82
|
maxReplicas: { greaterThanOrEqual: 2 },
|
|
82
83
|
minReplicas: { greaterThanOrEqual: 1 }
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
+
var UpdateInstancePolicyRequest = {
|
|
85
86
|
name: {
|
|
86
87
|
maxLength: 255,
|
|
87
88
|
minLength: 1
|
|
88
89
|
},
|
|
89
90
|
value: { greaterThanOrEqual: 1 }
|
|
90
91
|
};
|
|
91
|
-
|
|
92
|
+
var UpdateInstancePolicyRequestMetric = {
|
|
92
93
|
name: {
|
|
93
94
|
maxLength: 255,
|
|
94
95
|
minLength: 1
|
|
@@ -98,9 +99,10 @@ const UpdateInstancePolicyRequestMetric = {
|
|
|
98
99
|
lessThanOrEqual: 60
|
|
99
100
|
}
|
|
100
101
|
};
|
|
101
|
-
|
|
102
|
+
var UpdateInstanceTemplateRequest = { name: {
|
|
102
103
|
maxLength: 255,
|
|
103
104
|
minLength: 1
|
|
104
105
|
} };
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
var VolumeInstanceTemplate = { name: { minLength: 1 } };
|
|
107
|
+
//#endregion
|
|
108
|
+
export { Capacity, CreateInstanceGroupRequest, CreateInstancePolicyRequest, CreateInstanceTemplateRequest, ListInstanceGroupEventsRequest, ListInstanceGroupsRequest, ListInstancePoliciesRequest, ListInstanceTemplatesRequest, Metric, UpdateInstanceGroupRequest, UpdateInstanceGroupRequestCapacity, UpdateInstancePolicyRequest, UpdateInstancePolicyRequestMetric, UpdateInstanceTemplateRequest, VolumeInstanceTemplate, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-autoscaling",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Scaleway SDK autoscaling",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=20.19.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@scaleway/random-name": "5.1.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
29
|
+
"@scaleway/random-name": "5.1.4",
|
|
30
|
+
"@scaleway/sdk-std": "2.2.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|