@scaleway/sdk-container 1.4.0 → 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.
|
@@ -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,
|
|
@@ -331,6 +333,8 @@ const marshalSecret = (request, defaults) => ({
|
|
|
331
333
|
value: request.value
|
|
332
334
|
});
|
|
333
335
|
const marshalCreateContainerRequest = (request, defaults) => ({
|
|
336
|
+
args: request.args,
|
|
337
|
+
command: request.command,
|
|
334
338
|
cpu_limit: request.cpuLimit,
|
|
335
339
|
description: request.description,
|
|
336
340
|
environment_variables: request.environmentVariables,
|
|
@@ -428,6 +432,8 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
|
|
|
428
432
|
])
|
|
429
433
|
});
|
|
430
434
|
const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
435
|
+
args: request.args,
|
|
436
|
+
command: request.command,
|
|
431
437
|
cpu_limit: request.cpuLimit,
|
|
432
438
|
description: request.description,
|
|
433
439
|
environment_variables: request.environmentVariables,
|
|
@@ -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,
|
|
@@ -329,6 +331,8 @@ const marshalSecret = (request, defaults) => ({
|
|
|
329
331
|
value: request.value
|
|
330
332
|
});
|
|
331
333
|
const marshalCreateContainerRequest = (request, defaults) => ({
|
|
334
|
+
args: request.args,
|
|
335
|
+
command: request.command,
|
|
332
336
|
cpu_limit: request.cpuLimit,
|
|
333
337
|
description: request.description,
|
|
334
338
|
environment_variables: request.environmentVariables,
|
|
@@ -426,6 +430,8 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
|
|
|
426
430
|
])
|
|
427
431
|
});
|
|
428
432
|
const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
433
|
+
args: request.args,
|
|
434
|
+
command: request.command,
|
|
429
435
|
cpu_limit: request.cpuLimit,
|
|
430
436
|
description: request.description,
|
|
431
437
|
environment_variables: request.environmentVariables,
|
|
@@ -279,6 +279,14 @@ export interface Container {
|
|
|
279
279
|
*/
|
|
280
280
|
tags: string[];
|
|
281
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[];
|
|
282
290
|
}
|
|
283
291
|
export interface Cron {
|
|
284
292
|
/**
|
|
@@ -583,6 +591,14 @@ export type CreateContainerRequest = {
|
|
|
583
591
|
*/
|
|
584
592
|
tags?: string[];
|
|
585
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[];
|
|
586
602
|
};
|
|
587
603
|
export type CreateCronRequest = {
|
|
588
604
|
/**
|
|
@@ -1153,6 +1169,14 @@ export type UpdateContainerRequest = {
|
|
|
1153
1169
|
*/
|
|
1154
1170
|
tags?: string[];
|
|
1155
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[];
|
|
1156
1180
|
};
|
|
1157
1181
|
export type UpdateCronRequest = {
|
|
1158
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",
|