@scaleway/sdk-container 1.3.1 → 1.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/v1beta1/api.gen.cjs
CHANGED
|
@@ -72,7 +72,7 @@ class API extends sdkClient.API {
|
|
|
72
72
|
* @param request - The request {@link CreateNamespaceRequest}
|
|
73
73
|
* @returns A Promise of Namespace
|
|
74
74
|
*/
|
|
75
|
-
createNamespace = (request
|
|
75
|
+
createNamespace = (request) => this.client.fetch(
|
|
76
76
|
{
|
|
77
77
|
body: JSON.stringify(
|
|
78
78
|
marshalling_gen.marshalCreateNamespaceRequest(request, this.client.settings)
|
|
@@ -41,7 +41,7 @@ export declare class API extends ParentAPI {
|
|
|
41
41
|
* @param request - The request {@link CreateNamespaceRequest}
|
|
42
42
|
* @returns A Promise of Namespace
|
|
43
43
|
*/
|
|
44
|
-
createNamespace: (request
|
|
44
|
+
createNamespace: (request: Readonly<CreateNamespaceRequest>) => Promise<Namespace>;
|
|
45
45
|
/**
|
|
46
46
|
* Update an existing namespace. Update the space associated with the specified ID.
|
|
47
47
|
*
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -70,7 +70,7 @@ class API extends API$1 {
|
|
|
70
70
|
* @param request - The request {@link CreateNamespaceRequest}
|
|
71
71
|
* @returns A Promise of Namespace
|
|
72
72
|
*/
|
|
73
|
-
createNamespace = (request
|
|
73
|
+
createNamespace = (request) => this.client.fetch(
|
|
74
74
|
{
|
|
75
75
|
body: JSON.stringify(
|
|
76
76
|
marshalCreateNamespaceRequest(request, this.client.settings)
|
|
@@ -63,6 +63,8 @@ const unmarshalContainer = (data) => {
|
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
return {
|
|
66
|
+
args: data.args,
|
|
67
|
+
command: data.command,
|
|
66
68
|
cpuLimit: data.cpu_limit,
|
|
67
69
|
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
68
70
|
description: data.description,
|
|
@@ -81,6 +83,7 @@ const unmarshalContainer = (data) => {
|
|
|
81
83
|
namespaceId: data.namespace_id,
|
|
82
84
|
port: data.port,
|
|
83
85
|
privacy: data.privacy,
|
|
86
|
+
privateNetworkId: data.private_network_id,
|
|
84
87
|
protocol: data.protocol,
|
|
85
88
|
readyAt: sdkClient.unmarshalDate(data.ready_at),
|
|
86
89
|
region: data.region,
|
|
@@ -151,7 +154,8 @@ const unmarshalNamespace = (data) => {
|
|
|
151
154
|
),
|
|
152
155
|
status: data.status,
|
|
153
156
|
tags: data.tags,
|
|
154
|
-
updatedAt: sdkClient.unmarshalDate(data.updated_at)
|
|
157
|
+
updatedAt: sdkClient.unmarshalDate(data.updated_at),
|
|
158
|
+
vpcIntegrationActivated: data.vpc_integration_activated
|
|
155
159
|
};
|
|
156
160
|
};
|
|
157
161
|
const unmarshalToken = (data) => {
|
|
@@ -329,6 +333,8 @@ const marshalSecret = (request, defaults) => ({
|
|
|
329
333
|
value: request.value
|
|
330
334
|
});
|
|
331
335
|
const marshalCreateContainerRequest = (request, defaults) => ({
|
|
336
|
+
args: request.args,
|
|
337
|
+
command: request.command,
|
|
332
338
|
cpu_limit: request.cpuLimit,
|
|
333
339
|
description: request.description,
|
|
334
340
|
environment_variables: request.environmentVariables,
|
|
@@ -343,6 +349,7 @@ const marshalCreateContainerRequest = (request, defaults) => ({
|
|
|
343
349
|
namespace_id: request.namespaceId,
|
|
344
350
|
port: request.port,
|
|
345
351
|
privacy: request.privacy,
|
|
352
|
+
private_network_id: request.privateNetworkId,
|
|
346
353
|
protocol: request.protocol,
|
|
347
354
|
registry_image: request.registryImage,
|
|
348
355
|
sandbox: request.sandbox,
|
|
@@ -364,6 +371,7 @@ const marshalCreateDomainRequest = (request, defaults) => ({
|
|
|
364
371
|
hostname: request.hostname
|
|
365
372
|
});
|
|
366
373
|
const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
374
|
+
activate_vpc_integration: request.activateVpcIntegration,
|
|
367
375
|
description: request.description,
|
|
368
376
|
environment_variables: request.environmentVariables,
|
|
369
377
|
name: request.name || randomName("cns"),
|
|
@@ -424,6 +432,8 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
|
|
|
424
432
|
])
|
|
425
433
|
});
|
|
426
434
|
const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
435
|
+
args: request.args,
|
|
436
|
+
command: request.command,
|
|
427
437
|
cpu_limit: request.cpuLimit,
|
|
428
438
|
description: request.description,
|
|
429
439
|
environment_variables: request.environmentVariables,
|
|
@@ -436,6 +446,7 @@ const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
|
436
446
|
min_scale: request.minScale,
|
|
437
447
|
port: request.port,
|
|
438
448
|
privacy: request.privacy,
|
|
449
|
+
private_network_id: request.privateNetworkId,
|
|
439
450
|
protocol: request.protocol,
|
|
440
451
|
redeploy: request.redeploy,
|
|
441
452
|
registry_image: request.registryImage,
|
|
@@ -61,6 +61,8 @@ const unmarshalContainer = (data) => {
|
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
|
+
args: data.args,
|
|
65
|
+
command: data.command,
|
|
64
66
|
cpuLimit: data.cpu_limit,
|
|
65
67
|
createdAt: unmarshalDate(data.created_at),
|
|
66
68
|
description: data.description,
|
|
@@ -79,6 +81,7 @@ const unmarshalContainer = (data) => {
|
|
|
79
81
|
namespaceId: data.namespace_id,
|
|
80
82
|
port: data.port,
|
|
81
83
|
privacy: data.privacy,
|
|
84
|
+
privateNetworkId: data.private_network_id,
|
|
82
85
|
protocol: data.protocol,
|
|
83
86
|
readyAt: unmarshalDate(data.ready_at),
|
|
84
87
|
region: data.region,
|
|
@@ -149,7 +152,8 @@ const unmarshalNamespace = (data) => {
|
|
|
149
152
|
),
|
|
150
153
|
status: data.status,
|
|
151
154
|
tags: data.tags,
|
|
152
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
155
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
156
|
+
vpcIntegrationActivated: data.vpc_integration_activated
|
|
153
157
|
};
|
|
154
158
|
};
|
|
155
159
|
const unmarshalToken = (data) => {
|
|
@@ -327,6 +331,8 @@ const marshalSecret = (request, defaults) => ({
|
|
|
327
331
|
value: request.value
|
|
328
332
|
});
|
|
329
333
|
const marshalCreateContainerRequest = (request, defaults) => ({
|
|
334
|
+
args: request.args,
|
|
335
|
+
command: request.command,
|
|
330
336
|
cpu_limit: request.cpuLimit,
|
|
331
337
|
description: request.description,
|
|
332
338
|
environment_variables: request.environmentVariables,
|
|
@@ -341,6 +347,7 @@ const marshalCreateContainerRequest = (request, defaults) => ({
|
|
|
341
347
|
namespace_id: request.namespaceId,
|
|
342
348
|
port: request.port,
|
|
343
349
|
privacy: request.privacy,
|
|
350
|
+
private_network_id: request.privateNetworkId,
|
|
344
351
|
protocol: request.protocol,
|
|
345
352
|
registry_image: request.registryImage,
|
|
346
353
|
sandbox: request.sandbox,
|
|
@@ -362,6 +369,7 @@ const marshalCreateDomainRequest = (request, defaults) => ({
|
|
|
362
369
|
hostname: request.hostname
|
|
363
370
|
});
|
|
364
371
|
const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
372
|
+
activate_vpc_integration: request.activateVpcIntegration,
|
|
365
373
|
description: request.description,
|
|
366
374
|
environment_variables: request.environmentVariables,
|
|
367
375
|
name: request.name || randomName("cns"),
|
|
@@ -422,6 +430,8 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
|
|
|
422
430
|
])
|
|
423
431
|
});
|
|
424
432
|
const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
433
|
+
args: request.args,
|
|
434
|
+
command: request.command,
|
|
425
435
|
cpu_limit: request.cpuLimit,
|
|
426
436
|
description: request.description,
|
|
427
437
|
environment_variables: request.environmentVariables,
|
|
@@ -434,6 +444,7 @@ const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
|
434
444
|
min_scale: request.minScale,
|
|
435
445
|
port: request.port,
|
|
436
446
|
privacy: request.privacy,
|
|
447
|
+
private_network_id: request.privateNetworkId,
|
|
437
448
|
protocol: request.protocol,
|
|
438
449
|
redeploy: request.redeploy,
|
|
439
450
|
registry_image: request.registryImage,
|
|
@@ -278,6 +278,15 @@ export interface Container {
|
|
|
278
278
|
* List of tags applied to the Serverless Container.
|
|
279
279
|
*/
|
|
280
280
|
tags: string[];
|
|
281
|
+
privateNetworkId?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
284
|
+
*/
|
|
285
|
+
command: string[];
|
|
286
|
+
/**
|
|
287
|
+
* Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
288
|
+
*/
|
|
289
|
+
args: string[];
|
|
281
290
|
}
|
|
282
291
|
export interface Cron {
|
|
283
292
|
/**
|
|
@@ -392,6 +401,10 @@ export interface Namespace {
|
|
|
392
401
|
* Last update date of the namespace.
|
|
393
402
|
*/
|
|
394
403
|
updatedAt?: Date;
|
|
404
|
+
/**
|
|
405
|
+
* @deprecated
|
|
406
|
+
*/
|
|
407
|
+
vpcIntegrationActivated?: boolean;
|
|
395
408
|
}
|
|
396
409
|
export interface Token {
|
|
397
410
|
/**
|
|
@@ -577,6 +590,15 @@ export type CreateContainerRequest = {
|
|
|
577
590
|
* Tags of the Serverless Container.
|
|
578
591
|
*/
|
|
579
592
|
tags?: string[];
|
|
593
|
+
privateNetworkId?: string;
|
|
594
|
+
/**
|
|
595
|
+
* Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
596
|
+
*/
|
|
597
|
+
command?: string[];
|
|
598
|
+
/**
|
|
599
|
+
* Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
600
|
+
*/
|
|
601
|
+
args?: string[];
|
|
580
602
|
};
|
|
581
603
|
export type CreateCronRequest = {
|
|
582
604
|
/**
|
|
@@ -643,6 +665,7 @@ export type CreateNamespaceRequest = {
|
|
|
643
665
|
* Tags of the Serverless Container Namespace.
|
|
644
666
|
*/
|
|
645
667
|
tags?: string[];
|
|
668
|
+
activateVpcIntegration: boolean;
|
|
646
669
|
};
|
|
647
670
|
export type CreateTokenRequest = {
|
|
648
671
|
/**
|
|
@@ -1145,6 +1168,15 @@ export type UpdateContainerRequest = {
|
|
|
1145
1168
|
* Tags of the Serverless Container.
|
|
1146
1169
|
*/
|
|
1147
1170
|
tags?: string[];
|
|
1171
|
+
privateNetworkId?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
1174
|
+
*/
|
|
1175
|
+
command?: string[];
|
|
1176
|
+
/**
|
|
1177
|
+
* Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
1178
|
+
*/
|
|
1179
|
+
args?: string[];
|
|
1148
1180
|
};
|
|
1149
1181
|
export type UpdateCronRequest = {
|
|
1150
1182
|
/**
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-container",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Scaleway SDK container",
|
|
5
|
-
"
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.1",
|
|
33
|
-
"@scaleway/sdk-std": "1.0.
|
|
33
|
+
"@scaleway/sdk-std": "1.0.4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.2.
|
|
36
|
+
"@scaleway/sdk-client": "^1.2.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.2.
|
|
39
|
+
"@scaleway/sdk-client": "^1.2.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|