@scaleway/sdk-container 2.4.1 → 2.5.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.
- package/dist/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1beta1/api.gen.d.ts +1 -1
- package/dist/v1beta1/api.gen.js +6 -4
- package/dist/v1beta1/content.gen.js +8 -6
- package/dist/v1beta1/index.gen.js +3 -1
- package/dist/v1beta1/marshalling.gen.js +24 -22
- package/dist/v1beta1/metadata.gen.d.ts +136 -0
- package/dist/v1beta1/metadata.gen.js +151 -0
- package/dist/v1beta1/types.gen.d.ts +3 -3
- package/dist/v1beta1/types.gen.js +0 -0
- package/dist/v1beta1/validation-rules.gen.js +12 -10
- package/package.json +5 -5
|
@@ -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 };
|
|
@@ -44,7 +44,7 @@ export declare class API extends ParentAPI {
|
|
|
44
44
|
* @param request - The request {@link CreateNamespaceRequest}
|
|
45
45
|
* @returns A Promise of Namespace
|
|
46
46
|
*/
|
|
47
|
-
createNamespace: (request
|
|
47
|
+
createNamespace: (request?: Readonly<CreateNamespaceRequest>) => Promise<Namespace>;
|
|
48
48
|
/**
|
|
49
49
|
* Update an existing namespace. Update the space associated with the specified ID.
|
|
50
50
|
*
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalCreateContainerRequest, marshalCreateCronRequest, marshalCreateDomainRequest, marshalCreateNamespaceRequest, marshalCreateTokenRequest, marshalCreateTriggerRequest, marshalUpdateContainerRequest, marshalUpdateCronRequest, marshalUpdateNamespaceRequest, marshalUpdateTriggerRequest, unmarshalContainer, unmarshalCron, unmarshalDomain, unmarshalListContainersResponse, unmarshalListCronsResponse, unmarshalListDomainsResponse, unmarshalListNamespacesResponse, unmarshalListTokensResponse, unmarshalListTriggersResponse, unmarshalNamespace, unmarshalToken, unmarshalTrigger } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, resolveOneOf, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
3
|
+
import { API as API$1, enrichForPagination, resolveOneOf, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1beta1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* Serverless Containers API.
|
|
7
8
|
|
|
8
9
|
This API allows you to manage your Serverless Containers.
|
|
9
10
|
*/
|
|
10
|
-
var API
|
|
11
|
+
var API = class extends API$1 {
|
|
11
12
|
/**
|
|
12
13
|
* Locality of this API.
|
|
13
14
|
* type ∈ {'zone','region','global','unspecified'}
|
|
@@ -53,7 +54,7 @@ var API$1 = class extends API {
|
|
|
53
54
|
* @param request - The request {@link CreateNamespaceRequest}
|
|
54
55
|
* @returns A Promise of Namespace
|
|
55
56
|
*/
|
|
56
|
-
createNamespace = (request) => this.client.fetch({
|
|
57
|
+
createNamespace = (request = {}) => this.client.fetch({
|
|
57
58
|
body: JSON.stringify(marshalCreateNamespaceRequest(request, this.client.settings)),
|
|
58
59
|
headers: jsonContentHeaders,
|
|
59
60
|
method: "POST",
|
|
@@ -408,4 +409,5 @@ var API$1 = class extends API {
|
|
|
408
409
|
path: `/containers/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam("triggerId", request.triggerId)}`
|
|
409
410
|
}, unmarshalTrigger);
|
|
410
411
|
};
|
|
411
|
-
|
|
412
|
+
//#endregion
|
|
413
|
+
export { API };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
//#region src/v1beta1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link ContainerStatus}. */
|
|
2
|
-
|
|
3
|
+
var CONTAINER_TRANSIENT_STATUSES = [
|
|
3
4
|
"deleting",
|
|
4
5
|
"creating",
|
|
5
6
|
"pending",
|
|
@@ -7,7 +8,7 @@ const CONTAINER_TRANSIENT_STATUSES = [
|
|
|
7
8
|
"upgrading"
|
|
8
9
|
];
|
|
9
10
|
/** Lists transient statutes of the enum {@link CronStatus}. */
|
|
10
|
-
|
|
11
|
+
var CRON_TRANSIENT_STATUSES = [
|
|
11
12
|
"deleting",
|
|
12
13
|
"creating",
|
|
13
14
|
"pending",
|
|
@@ -16,7 +17,7 @@ const CRON_TRANSIENT_STATUSES = [
|
|
|
16
17
|
"rebalancing"
|
|
17
18
|
];
|
|
18
19
|
/** Lists transient statutes of the enum {@link DomainStatus}. */
|
|
19
|
-
|
|
20
|
+
var DOMAIN_TRANSIENT_STATUSES = [
|
|
20
21
|
"deleting",
|
|
21
22
|
"creating",
|
|
22
23
|
"pending",
|
|
@@ -24,7 +25,7 @@ const DOMAIN_TRANSIENT_STATUSES = [
|
|
|
24
25
|
"upgrading"
|
|
25
26
|
];
|
|
26
27
|
/** Lists transient statutes of the enum {@link NamespaceStatus}. */
|
|
27
|
-
|
|
28
|
+
var NAMESPACE_TRANSIENT_STATUSES = [
|
|
28
29
|
"deleting",
|
|
29
30
|
"creating",
|
|
30
31
|
"pending",
|
|
@@ -32,13 +33,14 @@ const NAMESPACE_TRANSIENT_STATUSES = [
|
|
|
32
33
|
"upgrading"
|
|
33
34
|
];
|
|
34
35
|
/** Lists transient statutes of the enum {@link TokenStatus}. */
|
|
35
|
-
|
|
36
|
+
var TOKEN_TRANSIENT_STATUSES = ["deleting", "creating"];
|
|
36
37
|
/** Lists transient statutes of the enum {@link TriggerStatus}. */
|
|
37
|
-
|
|
38
|
+
var TRIGGER_TRANSIENT_STATUSES = [
|
|
38
39
|
"deleting",
|
|
39
40
|
"creating",
|
|
40
41
|
"pending",
|
|
41
42
|
"locking",
|
|
42
43
|
"upgrading"
|
|
43
44
|
];
|
|
45
|
+
//#endregion
|
|
44
46
|
export { CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES };
|
|
@@ -3,6 +3,7 @@ import { CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT
|
|
|
3
3
|
import { marshalCreateContainerRequest, marshalCreateCronRequest, marshalCreateDomainRequest, marshalCreateNamespaceRequest, marshalCreateTokenRequest, marshalCreateTriggerRequest, marshalUpdateContainerRequest, marshalUpdateCronRequest, marshalUpdateNamespaceRequest, marshalUpdateTriggerRequest, unmarshalContainer, unmarshalCron, unmarshalDomain, unmarshalListContainersResponse, unmarshalListCronsResponse, unmarshalListDomainsResponse, unmarshalListNamespacesResponse, unmarshalListTokensResponse, unmarshalListTriggersResponse, unmarshalNamespace, unmarshalToken, unmarshalTrigger } from "./marshalling.gen.js";
|
|
4
4
|
import { API } from "./api.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1beta1/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
API: () => API,
|
|
8
9
|
CONTAINER_TRANSIENT_STATUSES: () => CONTAINER_TRANSIENT_STATUSES,
|
|
@@ -35,4 +36,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
35
36
|
unmarshalToken: () => unmarshalToken,
|
|
36
37
|
unmarshalTrigger: () => unmarshalTrigger
|
|
37
38
|
});
|
|
38
|
-
|
|
39
|
+
//#endregion
|
|
40
|
+
export { API, CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateContainerRequest, marshalCreateCronRequest, marshalCreateDomainRequest, marshalCreateNamespaceRequest, marshalCreateTokenRequest, marshalCreateTriggerRequest, marshalUpdateContainerRequest, marshalUpdateCronRequest, marshalUpdateNamespaceRequest, marshalUpdateTriggerRequest, unmarshalContainer, unmarshalCron, unmarshalDomain, unmarshalListContainersResponse, unmarshalListCronsResponse, unmarshalListDomainsResponse, unmarshalListNamespacesResponse, unmarshalListTokensResponse, unmarshalListTriggersResponse, unmarshalNamespace, unmarshalToken, unmarshalTrigger };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
|
+
//#region src/v1beta1/marshalling.gen.ts
|
|
3
4
|
var unmarshalContainerHealthCheckSpecHTTPProbe = (data) => {
|
|
4
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerHealthCheckSpecHTTPProbe' failed as data isn't a dictionary.`);
|
|
5
6
|
return { path: data.path };
|
|
@@ -32,7 +33,7 @@ var unmarshalSecretHashedValue = (data) => {
|
|
|
32
33
|
key: data.key
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
var unmarshalContainer = (data) => {
|
|
36
37
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Container' failed as data isn't a dictionary.`);
|
|
37
38
|
return {
|
|
38
39
|
args: data.args,
|
|
@@ -69,7 +70,7 @@ const unmarshalContainer = (data) => {
|
|
|
69
70
|
updatedAt: unmarshalDate(data.updated_at)
|
|
70
71
|
};
|
|
71
72
|
};
|
|
72
|
-
|
|
73
|
+
var unmarshalCron = (data) => {
|
|
73
74
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Cron' failed as data isn't a dictionary.`);
|
|
74
75
|
return {
|
|
75
76
|
args: data.args,
|
|
@@ -80,7 +81,7 @@ const unmarshalCron = (data) => {
|
|
|
80
81
|
status: data.status
|
|
81
82
|
};
|
|
82
83
|
};
|
|
83
|
-
|
|
84
|
+
var unmarshalDomain = (data) => {
|
|
84
85
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`);
|
|
85
86
|
return {
|
|
86
87
|
containerId: data.container_id,
|
|
@@ -91,7 +92,7 @@ const unmarshalDomain = (data) => {
|
|
|
91
92
|
url: data.url
|
|
92
93
|
};
|
|
93
94
|
};
|
|
94
|
-
|
|
95
|
+
var unmarshalNamespace = (data) => {
|
|
95
96
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
|
|
96
97
|
return {
|
|
97
98
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -112,7 +113,7 @@ const unmarshalNamespace = (data) => {
|
|
|
112
113
|
vpcIntegrationActivated: data.vpc_integration_activated
|
|
113
114
|
};
|
|
114
115
|
};
|
|
115
|
-
|
|
116
|
+
var unmarshalToken = (data) => {
|
|
116
117
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Token' failed as data isn't a dictionary.`);
|
|
117
118
|
return {
|
|
118
119
|
containerId: data.container_id,
|
|
@@ -153,7 +154,7 @@ var unmarshalTriggerSqsClientConfig = (data) => {
|
|
|
153
154
|
secretKey: data.secret_key
|
|
154
155
|
};
|
|
155
156
|
};
|
|
156
|
-
|
|
157
|
+
var unmarshalTrigger = (data) => {
|
|
157
158
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Trigger' failed as data isn't a dictionary.`);
|
|
158
159
|
return {
|
|
159
160
|
containerId: data.container_id,
|
|
@@ -168,42 +169,42 @@ const unmarshalTrigger = (data) => {
|
|
|
168
169
|
status: data.status
|
|
169
170
|
};
|
|
170
171
|
};
|
|
171
|
-
|
|
172
|
+
var unmarshalListContainersResponse = (data) => {
|
|
172
173
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListContainersResponse' failed as data isn't a dictionary.`);
|
|
173
174
|
return {
|
|
174
175
|
containers: unmarshalArrayOfObject(data.containers, unmarshalContainer),
|
|
175
176
|
totalCount: data.total_count
|
|
176
177
|
};
|
|
177
178
|
};
|
|
178
|
-
|
|
179
|
+
var unmarshalListCronsResponse = (data) => {
|
|
179
180
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCronsResponse' failed as data isn't a dictionary.`);
|
|
180
181
|
return {
|
|
181
182
|
crons: unmarshalArrayOfObject(data.crons, unmarshalCron),
|
|
182
183
|
totalCount: data.total_count
|
|
183
184
|
};
|
|
184
185
|
};
|
|
185
|
-
|
|
186
|
+
var unmarshalListDomainsResponse = (data) => {
|
|
186
187
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`);
|
|
187
188
|
return {
|
|
188
189
|
domains: unmarshalArrayOfObject(data.domains, unmarshalDomain),
|
|
189
190
|
totalCount: data.total_count
|
|
190
191
|
};
|
|
191
192
|
};
|
|
192
|
-
|
|
193
|
+
var unmarshalListNamespacesResponse = (data) => {
|
|
193
194
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
|
|
194
195
|
return {
|
|
195
196
|
namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace),
|
|
196
197
|
totalCount: data.total_count
|
|
197
198
|
};
|
|
198
199
|
};
|
|
199
|
-
|
|
200
|
+
var unmarshalListTokensResponse = (data) => {
|
|
200
201
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTokensResponse' failed as data isn't a dictionary.`);
|
|
201
202
|
return {
|
|
202
203
|
tokens: unmarshalArrayOfObject(data.tokens, unmarshalToken),
|
|
203
204
|
totalCount: data.total_count
|
|
204
205
|
};
|
|
205
206
|
};
|
|
206
|
-
|
|
207
|
+
var unmarshalListTriggersResponse = (data) => {
|
|
207
208
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTriggersResponse' failed as data isn't a dictionary.`);
|
|
208
209
|
return {
|
|
209
210
|
totalCount: data.total_count,
|
|
@@ -241,7 +242,7 @@ var marshalSecret = (request, defaults) => ({
|
|
|
241
242
|
key: request.key,
|
|
242
243
|
value: request.value
|
|
243
244
|
});
|
|
244
|
-
|
|
245
|
+
var marshalCreateContainerRequest = (request, defaults) => ({
|
|
245
246
|
args: request.args,
|
|
246
247
|
command: request.command,
|
|
247
248
|
cpu_limit: request.cpuLimit,
|
|
@@ -267,17 +268,17 @@ const marshalCreateContainerRequest = (request, defaults) => ({
|
|
|
267
268
|
tags: request.tags,
|
|
268
269
|
timeout: request.timeout
|
|
269
270
|
});
|
|
270
|
-
|
|
271
|
+
var marshalCreateCronRequest = (request, defaults) => ({
|
|
271
272
|
args: request.args,
|
|
272
273
|
container_id: request.containerId,
|
|
273
274
|
name: request.name,
|
|
274
275
|
schedule: request.schedule
|
|
275
276
|
});
|
|
276
|
-
|
|
277
|
+
var marshalCreateDomainRequest = (request, defaults) => ({
|
|
277
278
|
container_id: request.containerId,
|
|
278
279
|
hostname: request.hostname
|
|
279
280
|
});
|
|
280
|
-
|
|
281
|
+
var marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
281
282
|
activate_vpc_integration: request.activateVpcIntegration,
|
|
282
283
|
description: request.description,
|
|
283
284
|
environment_variables: request.environmentVariables,
|
|
@@ -286,7 +287,7 @@ const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
|
286
287
|
secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map((elt) => marshalSecret(elt, defaults)) : void 0,
|
|
287
288
|
tags: request.tags
|
|
288
289
|
});
|
|
289
|
-
|
|
290
|
+
var marshalCreateTokenRequest = (request, defaults) => ({
|
|
290
291
|
description: request.description,
|
|
291
292
|
expires_at: request.expiresAt,
|
|
292
293
|
...resolveOneOf([{
|
|
@@ -314,7 +315,7 @@ var marshalCreateTriggerRequestSqsClientConfig = (request, defaults) => ({
|
|
|
314
315
|
queue_url: request.queueUrl,
|
|
315
316
|
secret_key: request.secretKey
|
|
316
317
|
});
|
|
317
|
-
|
|
318
|
+
var marshalCreateTriggerRequest = (request, defaults) => ({
|
|
318
319
|
container_id: request.containerId,
|
|
319
320
|
description: request.description,
|
|
320
321
|
name: request.name,
|
|
@@ -333,7 +334,7 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
|
|
|
333
334
|
}
|
|
334
335
|
])
|
|
335
336
|
});
|
|
336
|
-
|
|
337
|
+
var marshalUpdateContainerRequest = (request, defaults) => ({
|
|
337
338
|
args: request.args,
|
|
338
339
|
command: request.command,
|
|
339
340
|
cpu_limit: request.cpuLimit,
|
|
@@ -358,13 +359,13 @@ const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
|
358
359
|
tags: request.tags,
|
|
359
360
|
timeout: request.timeout
|
|
360
361
|
});
|
|
361
|
-
|
|
362
|
+
var marshalUpdateCronRequest = (request, defaults) => ({
|
|
362
363
|
args: request.args,
|
|
363
364
|
container_id: request.containerId,
|
|
364
365
|
name: request.name,
|
|
365
366
|
schedule: request.schedule
|
|
366
367
|
});
|
|
367
|
-
|
|
368
|
+
var marshalUpdateNamespaceRequest = (request, defaults) => ({
|
|
368
369
|
description: request.description,
|
|
369
370
|
environment_variables: request.environmentVariables,
|
|
370
371
|
secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map((elt) => marshalSecret(elt, defaults)) : void 0,
|
|
@@ -374,7 +375,7 @@ var marshalUpdateTriggerRequestSqsClientConfig = (request, defaults) => ({
|
|
|
374
375
|
access_key: request.accessKey,
|
|
375
376
|
secret_key: request.secretKey
|
|
376
377
|
});
|
|
377
|
-
|
|
378
|
+
var marshalUpdateTriggerRequest = (request, defaults) => ({
|
|
378
379
|
description: request.description,
|
|
379
380
|
name: request.name,
|
|
380
381
|
...resolveOneOf([{
|
|
@@ -382,4 +383,5 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
|
|
|
382
383
|
value: request.sqsConfig !== void 0 ? marshalUpdateTriggerRequestSqsClientConfig(request.sqsConfig, defaults) : void 0
|
|
383
384
|
}])
|
|
384
385
|
});
|
|
386
|
+
//#endregion
|
|
385
387
|
export { marshalCreateContainerRequest, marshalCreateCronRequest, marshalCreateDomainRequest, marshalCreateNamespaceRequest, marshalCreateTokenRequest, marshalCreateTriggerRequest, marshalUpdateContainerRequest, marshalUpdateCronRequest, marshalUpdateNamespaceRequest, marshalUpdateTriggerRequest, unmarshalContainer, unmarshalCron, unmarshalDomain, unmarshalListContainersResponse, unmarshalListCronsResponse, unmarshalListDomainsResponse, unmarshalListNamespacesResponse, unmarshalListTokensResponse, unmarshalListTriggersResponse, unmarshalNamespace, unmarshalToken, unmarshalTrigger };
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: "container";
|
|
3
|
+
readonly version: "v1beta1";
|
|
4
|
+
readonly folderName: "containerv1beta1";
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: "API";
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: "listNamespaces";
|
|
9
|
+
readonly protoName: "ListNamespaces";
|
|
10
|
+
readonly paramsType: "ListNamespacesRequest";
|
|
11
|
+
readonly returnType: "ListNamespacesResponse";
|
|
12
|
+
readonly isList: true;
|
|
13
|
+
readonly paginationType: "offset";
|
|
14
|
+
readonly pageParamKey: "page";
|
|
15
|
+
readonly listItemType: "Namespace";
|
|
16
|
+
readonly isPrivate: false;
|
|
17
|
+
readonly description: "\"";
|
|
18
|
+
}, {
|
|
19
|
+
readonly methodName: "getNamespace";
|
|
20
|
+
readonly protoName: "GetNamespace";
|
|
21
|
+
readonly paramsType: "GetNamespaceRequest";
|
|
22
|
+
readonly returnType: "Namespace";
|
|
23
|
+
readonly isList: false;
|
|
24
|
+
readonly paginationType: "none";
|
|
25
|
+
readonly isPrivate: false;
|
|
26
|
+
readonly description: "\"";
|
|
27
|
+
readonly hasWaiter: true;
|
|
28
|
+
}, {
|
|
29
|
+
readonly methodName: "listContainers";
|
|
30
|
+
readonly protoName: "ListContainers";
|
|
31
|
+
readonly paramsType: "ListContainersRequest";
|
|
32
|
+
readonly returnType: "ListContainersResponse";
|
|
33
|
+
readonly isList: true;
|
|
34
|
+
readonly paginationType: "offset";
|
|
35
|
+
readonly pageParamKey: "page";
|
|
36
|
+
readonly listItemType: "Container";
|
|
37
|
+
readonly isPrivate: false;
|
|
38
|
+
readonly description: "\"";
|
|
39
|
+
}, {
|
|
40
|
+
readonly methodName: "getContainer";
|
|
41
|
+
readonly protoName: "GetContainer";
|
|
42
|
+
readonly paramsType: "GetContainerRequest";
|
|
43
|
+
readonly returnType: "Container";
|
|
44
|
+
readonly isList: false;
|
|
45
|
+
readonly paginationType: "none";
|
|
46
|
+
readonly isPrivate: false;
|
|
47
|
+
readonly description: "\"";
|
|
48
|
+
readonly hasWaiter: true;
|
|
49
|
+
}, {
|
|
50
|
+
readonly methodName: "listCrons";
|
|
51
|
+
readonly protoName: "ListCrons";
|
|
52
|
+
readonly paramsType: "ListCronsRequest";
|
|
53
|
+
readonly returnType: "ListCronsResponse";
|
|
54
|
+
readonly isList: true;
|
|
55
|
+
readonly paginationType: "offset";
|
|
56
|
+
readonly pageParamKey: "page";
|
|
57
|
+
readonly listItemType: "Cron";
|
|
58
|
+
readonly isPrivate: false;
|
|
59
|
+
readonly description: "\"";
|
|
60
|
+
}, {
|
|
61
|
+
readonly methodName: "getCron";
|
|
62
|
+
readonly protoName: "GetCron";
|
|
63
|
+
readonly paramsType: "GetCronRequest";
|
|
64
|
+
readonly returnType: "Cron";
|
|
65
|
+
readonly isList: false;
|
|
66
|
+
readonly paginationType: "none";
|
|
67
|
+
readonly isPrivate: false;
|
|
68
|
+
readonly description: "\"";
|
|
69
|
+
readonly hasWaiter: true;
|
|
70
|
+
}, {
|
|
71
|
+
readonly methodName: "listDomains";
|
|
72
|
+
readonly protoName: "ListDomains";
|
|
73
|
+
readonly paramsType: "ListDomainsRequest";
|
|
74
|
+
readonly returnType: "ListDomainsResponse";
|
|
75
|
+
readonly isList: true;
|
|
76
|
+
readonly paginationType: "offset";
|
|
77
|
+
readonly pageParamKey: "page";
|
|
78
|
+
readonly listItemType: "Domain";
|
|
79
|
+
readonly isPrivate: false;
|
|
80
|
+
readonly description: "\"";
|
|
81
|
+
}, {
|
|
82
|
+
readonly methodName: "getDomain";
|
|
83
|
+
readonly protoName: "GetDomain";
|
|
84
|
+
readonly paramsType: "GetDomainRequest";
|
|
85
|
+
readonly returnType: "Domain";
|
|
86
|
+
readonly isList: false;
|
|
87
|
+
readonly paginationType: "none";
|
|
88
|
+
readonly isPrivate: false;
|
|
89
|
+
readonly description: "\"";
|
|
90
|
+
readonly hasWaiter: true;
|
|
91
|
+
}, {
|
|
92
|
+
readonly methodName: "getToken";
|
|
93
|
+
readonly protoName: "GetToken";
|
|
94
|
+
readonly paramsType: "GetTokenRequest";
|
|
95
|
+
readonly returnType: "Token";
|
|
96
|
+
readonly isList: false;
|
|
97
|
+
readonly paginationType: "none";
|
|
98
|
+
readonly isPrivate: false;
|
|
99
|
+
readonly description: "\"";
|
|
100
|
+
readonly hasWaiter: true;
|
|
101
|
+
}, {
|
|
102
|
+
readonly methodName: "listTokens";
|
|
103
|
+
readonly protoName: "ListTokens";
|
|
104
|
+
readonly paramsType: "ListTokensRequest";
|
|
105
|
+
readonly returnType: "ListTokensResponse";
|
|
106
|
+
readonly isList: true;
|
|
107
|
+
readonly paginationType: "offset";
|
|
108
|
+
readonly pageParamKey: "page";
|
|
109
|
+
readonly listItemType: "Token";
|
|
110
|
+
readonly isPrivate: false;
|
|
111
|
+
readonly description: "\"";
|
|
112
|
+
}, {
|
|
113
|
+
readonly methodName: "getTrigger";
|
|
114
|
+
readonly protoName: "GetTrigger";
|
|
115
|
+
readonly paramsType: "GetTriggerRequest";
|
|
116
|
+
readonly returnType: "Trigger";
|
|
117
|
+
readonly isList: false;
|
|
118
|
+
readonly paginationType: "none";
|
|
119
|
+
readonly isPrivate: false;
|
|
120
|
+
readonly description: "\"";
|
|
121
|
+
readonly hasWaiter: true;
|
|
122
|
+
}, {
|
|
123
|
+
readonly methodName: "listTriggers";
|
|
124
|
+
readonly protoName: "ListTriggers";
|
|
125
|
+
readonly paramsType: "ListTriggersRequest";
|
|
126
|
+
readonly returnType: "ListTriggersResponse";
|
|
127
|
+
readonly isList: true;
|
|
128
|
+
readonly paginationType: "offset";
|
|
129
|
+
readonly pageParamKey: "page";
|
|
130
|
+
readonly listItemType: "Trigger";
|
|
131
|
+
readonly isPrivate: false;
|
|
132
|
+
readonly description: "\"";
|
|
133
|
+
}];
|
|
134
|
+
}];
|
|
135
|
+
};
|
|
136
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
//#region src/v1beta1/metadata.gen.ts
|
|
2
|
+
var queriesMetadata = {
|
|
3
|
+
namespace: "container",
|
|
4
|
+
version: "v1beta1",
|
|
5
|
+
folderName: "containerv1beta1",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "listNamespaces",
|
|
11
|
+
protoName: "ListNamespaces",
|
|
12
|
+
paramsType: "ListNamespacesRequest",
|
|
13
|
+
returnType: "ListNamespacesResponse",
|
|
14
|
+
isList: true,
|
|
15
|
+
paginationType: "offset",
|
|
16
|
+
pageParamKey: "page",
|
|
17
|
+
listItemType: "Namespace",
|
|
18
|
+
isPrivate: false,
|
|
19
|
+
description: "\""
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
methodName: "getNamespace",
|
|
23
|
+
protoName: "GetNamespace",
|
|
24
|
+
paramsType: "GetNamespaceRequest",
|
|
25
|
+
returnType: "Namespace",
|
|
26
|
+
isList: false,
|
|
27
|
+
paginationType: "none",
|
|
28
|
+
isPrivate: false,
|
|
29
|
+
description: "\"",
|
|
30
|
+
hasWaiter: true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
methodName: "listContainers",
|
|
34
|
+
protoName: "ListContainers",
|
|
35
|
+
paramsType: "ListContainersRequest",
|
|
36
|
+
returnType: "ListContainersResponse",
|
|
37
|
+
isList: true,
|
|
38
|
+
paginationType: "offset",
|
|
39
|
+
pageParamKey: "page",
|
|
40
|
+
listItemType: "Container",
|
|
41
|
+
isPrivate: false,
|
|
42
|
+
description: "\""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
methodName: "getContainer",
|
|
46
|
+
protoName: "GetContainer",
|
|
47
|
+
paramsType: "GetContainerRequest",
|
|
48
|
+
returnType: "Container",
|
|
49
|
+
isList: false,
|
|
50
|
+
paginationType: "none",
|
|
51
|
+
isPrivate: false,
|
|
52
|
+
description: "\"",
|
|
53
|
+
hasWaiter: true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
methodName: "listCrons",
|
|
57
|
+
protoName: "ListCrons",
|
|
58
|
+
paramsType: "ListCronsRequest",
|
|
59
|
+
returnType: "ListCronsResponse",
|
|
60
|
+
isList: true,
|
|
61
|
+
paginationType: "offset",
|
|
62
|
+
pageParamKey: "page",
|
|
63
|
+
listItemType: "Cron",
|
|
64
|
+
isPrivate: false,
|
|
65
|
+
description: "\""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
methodName: "getCron",
|
|
69
|
+
protoName: "GetCron",
|
|
70
|
+
paramsType: "GetCronRequest",
|
|
71
|
+
returnType: "Cron",
|
|
72
|
+
isList: false,
|
|
73
|
+
paginationType: "none",
|
|
74
|
+
isPrivate: false,
|
|
75
|
+
description: "\"",
|
|
76
|
+
hasWaiter: true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
methodName: "listDomains",
|
|
80
|
+
protoName: "ListDomains",
|
|
81
|
+
paramsType: "ListDomainsRequest",
|
|
82
|
+
returnType: "ListDomainsResponse",
|
|
83
|
+
isList: true,
|
|
84
|
+
paginationType: "offset",
|
|
85
|
+
pageParamKey: "page",
|
|
86
|
+
listItemType: "Domain",
|
|
87
|
+
isPrivate: false,
|
|
88
|
+
description: "\""
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
methodName: "getDomain",
|
|
92
|
+
protoName: "GetDomain",
|
|
93
|
+
paramsType: "GetDomainRequest",
|
|
94
|
+
returnType: "Domain",
|
|
95
|
+
isList: false,
|
|
96
|
+
paginationType: "none",
|
|
97
|
+
isPrivate: false,
|
|
98
|
+
description: "\"",
|
|
99
|
+
hasWaiter: true
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
methodName: "getToken",
|
|
103
|
+
protoName: "GetToken",
|
|
104
|
+
paramsType: "GetTokenRequest",
|
|
105
|
+
returnType: "Token",
|
|
106
|
+
isList: false,
|
|
107
|
+
paginationType: "none",
|
|
108
|
+
isPrivate: false,
|
|
109
|
+
description: "\"",
|
|
110
|
+
hasWaiter: true
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
methodName: "listTokens",
|
|
114
|
+
protoName: "ListTokens",
|
|
115
|
+
paramsType: "ListTokensRequest",
|
|
116
|
+
returnType: "ListTokensResponse",
|
|
117
|
+
isList: true,
|
|
118
|
+
paginationType: "offset",
|
|
119
|
+
pageParamKey: "page",
|
|
120
|
+
listItemType: "Token",
|
|
121
|
+
isPrivate: false,
|
|
122
|
+
description: "\""
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
methodName: "getTrigger",
|
|
126
|
+
protoName: "GetTrigger",
|
|
127
|
+
paramsType: "GetTriggerRequest",
|
|
128
|
+
returnType: "Trigger",
|
|
129
|
+
isList: false,
|
|
130
|
+
paginationType: "none",
|
|
131
|
+
isPrivate: false,
|
|
132
|
+
description: "\"",
|
|
133
|
+
hasWaiter: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
methodName: "listTriggers",
|
|
137
|
+
protoName: "ListTriggers",
|
|
138
|
+
paramsType: "ListTriggersRequest",
|
|
139
|
+
returnType: "ListTriggersResponse",
|
|
140
|
+
isList: true,
|
|
141
|
+
paginationType: "offset",
|
|
142
|
+
pageParamKey: "page",
|
|
143
|
+
listItemType: "Trigger",
|
|
144
|
+
isPrivate: false,
|
|
145
|
+
description: "\""
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}]
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
export { queriesMetadata };
|
|
@@ -407,7 +407,7 @@ export interface Namespace {
|
|
|
407
407
|
/**
|
|
408
408
|
* @deprecated The value of this field doesn't matter anymore, and will be removed in a near future.
|
|
409
409
|
*/
|
|
410
|
-
vpcIntegrationActivated
|
|
410
|
+
vpcIntegrationActivated?: boolean;
|
|
411
411
|
}
|
|
412
412
|
export interface Token {
|
|
413
413
|
/**
|
|
@@ -433,7 +433,7 @@ export interface Token {
|
|
|
433
433
|
/**
|
|
434
434
|
* @deprecated Public key of the token.
|
|
435
435
|
*/
|
|
436
|
-
publicKey
|
|
436
|
+
publicKey?: string;
|
|
437
437
|
/**
|
|
438
438
|
* Status of the token.
|
|
439
439
|
*/
|
|
@@ -674,7 +674,7 @@ export type CreateNamespaceRequest = {
|
|
|
674
674
|
/**
|
|
675
675
|
* @deprecated Setting this field to true doesn't matter anymore. It will be removed in a near future.
|
|
676
676
|
*/
|
|
677
|
-
activateVpcIntegration
|
|
677
|
+
activateVpcIntegration?: boolean;
|
|
678
678
|
};
|
|
679
679
|
export type CreateTokenRequest = {
|
|
680
680
|
/**
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1beta1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
ContainerHealthCheckSpec: () => ContainerHealthCheckSpec,
|
|
4
5
|
ContainerHealthCheckSpecHTTPProbe: () => ContainerHealthCheckSpecHTTPProbe,
|
|
@@ -10,24 +11,24 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
11
|
UpdateContainerRequest: () => UpdateContainerRequest,
|
|
11
12
|
UpdateTriggerRequest: () => UpdateTriggerRequest
|
|
12
13
|
});
|
|
13
|
-
|
|
14
|
+
var ContainerHealthCheckSpec = { failureThreshold: {
|
|
14
15
|
greaterThanOrEqual: 3,
|
|
15
16
|
lessThanOrEqual: 50
|
|
16
17
|
} };
|
|
17
|
-
|
|
18
|
+
var ContainerHealthCheckSpecHTTPProbe = { path: {
|
|
18
19
|
maxLength: 100,
|
|
19
20
|
minLength: 1
|
|
20
21
|
} };
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
var ContainerScalingOption = {};
|
|
23
|
+
var CreateContainerRequest = { privateNetworkId: { ignoreEmpty: true } };
|
|
24
|
+
var CreateTriggerRequest = {
|
|
24
25
|
description: { maxLength: 255 },
|
|
25
26
|
name: {
|
|
26
27
|
maxLength: 50,
|
|
27
28
|
minLength: 1
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
var CreateTriggerRequestMnqNatsClientConfig = {
|
|
31
32
|
mnqRegion: {
|
|
32
33
|
maxLength: 20,
|
|
33
34
|
minLength: 1
|
|
@@ -38,7 +39,7 @@ const CreateTriggerRequestMnqNatsClientConfig = {
|
|
|
38
39
|
pattern: /^[^\s]+$/
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
var CreateTriggerRequestMnqSqsClientConfig = {
|
|
42
43
|
mnqRegion: {
|
|
43
44
|
maxLength: 20,
|
|
44
45
|
minLength: 1
|
|
@@ -48,12 +49,13 @@ const CreateTriggerRequestMnqSqsClientConfig = {
|
|
|
48
49
|
minLength: 1
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
var UpdateContainerRequest = { privateNetworkId: { ignoreEmpty: true } };
|
|
53
|
+
var UpdateTriggerRequest = {
|
|
53
54
|
description: { maxLength: 255 },
|
|
54
55
|
name: {
|
|
55
56
|
maxLength: 50,
|
|
56
57
|
minLength: 1
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
|
-
|
|
60
|
+
//#endregion
|
|
61
|
+
export { ContainerHealthCheckSpec, ContainerHealthCheckSpecHTTPProbe, ContainerScalingOption, CreateContainerRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, UpdateContainerRequest, UpdateTriggerRequest, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-container",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Scaleway SDK container",
|
|
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",
|