@scaleway/sdk-container 1.5.0 → 1.5.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.
- package/dist/v1beta1/api.gen.cjs +7 -6
- package/dist/v1beta1/api.gen.d.ts +6 -3
- package/dist/v1beta1/api.gen.js +8 -7
- package/dist/v1beta1/marshalling.gen.js +1 -1
- package/dist/v1beta1/types.gen.d.ts +27 -1
- package/dist/v1beta1/validation-rules.gen.cjs +6 -0
- package/dist/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/v1beta1/validation-rules.gen.js +6 -0
- package/package.json +4 -4
package/dist/v1beta1/api.gen.cjs
CHANGED
|
@@ -7,12 +7,13 @@ const jsonContentHeaders = {
|
|
|
7
7
|
"Content-Type": "application/json; charset=utf-8"
|
|
8
8
|
};
|
|
9
9
|
class API extends sdkClient.API {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
15
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
16
|
+
});
|
|
16
17
|
pageOfListNamespaces = (request = {}) => this.client.fetch(
|
|
17
18
|
{
|
|
18
19
|
method: "GET",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
3
|
import type { Container, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, Cron, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersResponse, ListCronsRequest, ListCronsResponse, ListDomainsRequest, ListDomainsResponse, ListNamespacesRequest, ListNamespacesResponse, ListTokensRequest, ListTokensResponse, ListTriggersRequest, ListTriggersResponse, Namespace, Token, Trigger, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Serverless Containers API.
|
|
@@ -7,8 +7,11 @@ import type { Container, CreateContainerRequest, CreateCronRequest, CreateDomain
|
|
|
7
7
|
This API allows you to manage your Serverless Containers.
|
|
8
8
|
*/
|
|
9
9
|
export declare class API extends ParentAPI {
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static readonly LOCALITY: ApiLocality;
|
|
12
15
|
protected pageOfListNamespaces: (request?: Readonly<ListNamespacesRequest>) => Promise<ListNamespacesResponse>;
|
|
13
16
|
/**
|
|
14
17
|
* List all your namespaces. List all namespaces in a specified region.
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { API as API$1, urlParams, validatePathParam, enrichForPagination, waitForResource, resolveOneOf } from "@scaleway/sdk-client";
|
|
1
|
+
import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource, resolveOneOf } from "@scaleway/sdk-client";
|
|
2
2
|
import { NAMESPACE_TRANSIENT_STATUSES, CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListContainersResponse, unmarshalContainer, marshalCreateContainerRequest, marshalUpdateContainerRequest, unmarshalListCronsResponse, unmarshalCron, marshalCreateCronRequest, marshalUpdateCronRequest, unmarshalListDomainsResponse, unmarshalDomain, marshalCreateDomainRequest, marshalCreateTokenRequest, unmarshalToken, unmarshalListTokensResponse, marshalCreateTriggerRequest, unmarshalTrigger, unmarshalListTriggersResponse, marshalUpdateTriggerRequest } from "./marshalling.gen.js";
|
|
4
4
|
const jsonContentHeaders = {
|
|
5
5
|
"Content-Type": "application/json; charset=utf-8"
|
|
6
6
|
};
|
|
7
7
|
class API extends API$1 {
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Locality of this API.
|
|
10
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
11
|
+
*/
|
|
12
|
+
static LOCALITY = toApiLocality({
|
|
13
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
14
|
+
});
|
|
14
15
|
pageOfListNamespaces = (request = {}) => this.client.fetch(
|
|
15
16
|
{
|
|
16
17
|
method: "GET",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import randomName from "@scaleway/random-name";
|
|
2
|
-
import { resolveOneOf, isJSONObject,
|
|
2
|
+
import { resolveOneOf, isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
3
3
|
const unmarshalContainerHealthCheckSpecHTTPProbe = (data) => {
|
|
4
4
|
if (!isJSONObject(data)) {
|
|
5
5
|
throw new TypeError(
|
|
@@ -278,6 +278,9 @@ export interface Container {
|
|
|
278
278
|
* List of tags applied to the Serverless Container.
|
|
279
279
|
*/
|
|
280
280
|
tags: string[];
|
|
281
|
+
/**
|
|
282
|
+
* When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
|
|
283
|
+
*/
|
|
281
284
|
privateNetworkId?: string;
|
|
282
285
|
/**
|
|
283
286
|
* 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.
|
|
@@ -402,7 +405,8 @@ export interface Namespace {
|
|
|
402
405
|
*/
|
|
403
406
|
updatedAt?: Date;
|
|
404
407
|
/**
|
|
405
|
-
* @deprecated
|
|
408
|
+
* @deprecated When activated, containers in the namespace can be connected to a Private Network.
|
|
409
|
+
Note that activating the VPC integration can only be done when creating a new namespace.
|
|
406
410
|
*/
|
|
407
411
|
vpcIntegrationActivated?: boolean;
|
|
408
412
|
}
|
|
@@ -590,6 +594,11 @@ export type CreateContainerRequest = {
|
|
|
590
594
|
* Tags of the Serverless Container.
|
|
591
595
|
*/
|
|
592
596
|
tags?: string[];
|
|
597
|
+
/**
|
|
598
|
+
* When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
|
|
599
|
+
|
|
600
|
+
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
|
|
601
|
+
*/
|
|
593
602
|
privateNetworkId?: string;
|
|
594
603
|
/**
|
|
595
604
|
* 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.
|
|
@@ -665,6 +674,9 @@ export type CreateNamespaceRequest = {
|
|
|
665
674
|
* Tags of the Serverless Container Namespace.
|
|
666
675
|
*/
|
|
667
676
|
tags?: string[];
|
|
677
|
+
/**
|
|
678
|
+
* When activated, containers in the namespace can be connected to a Private Network.
|
|
679
|
+
*/
|
|
668
680
|
activateVpcIntegration: boolean;
|
|
669
681
|
};
|
|
670
682
|
export type CreateTokenRequest = {
|
|
@@ -1136,8 +1148,17 @@ export type UpdateContainerRequest = {
|
|
|
1136
1148
|
* @deprecated Number of maximum concurrent executions of the container.
|
|
1137
1149
|
*/
|
|
1138
1150
|
maxConcurrency?: number;
|
|
1151
|
+
/**
|
|
1152
|
+
* Protocol the container uses.
|
|
1153
|
+
*/
|
|
1139
1154
|
protocol?: ContainerProtocol;
|
|
1155
|
+
/**
|
|
1156
|
+
* Port the container listens on.
|
|
1157
|
+
*/
|
|
1140
1158
|
port?: number;
|
|
1159
|
+
/**
|
|
1160
|
+
* Secret environment variables of the container.
|
|
1161
|
+
*/
|
|
1141
1162
|
secretEnvironmentVariables?: Secret[];
|
|
1142
1163
|
/**
|
|
1143
1164
|
* Possible values:
|
|
@@ -1168,6 +1189,11 @@ export type UpdateContainerRequest = {
|
|
|
1168
1189
|
* Tags of the Serverless Container.
|
|
1169
1190
|
*/
|
|
1170
1191
|
tags?: string[];
|
|
1192
|
+
/**
|
|
1193
|
+
* When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
|
|
1194
|
+
|
|
1195
|
+
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
|
|
1196
|
+
*/
|
|
1171
1197
|
privateNetworkId?: string;
|
|
1172
1198
|
/**
|
|
1173
1199
|
* 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.
|
|
@@ -43,6 +43,11 @@ const CreateTriggerRequestMnqSqsClientConfig = {
|
|
|
43
43
|
minLength: 1
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
const UpdateContainerRequest = {
|
|
47
|
+
privateNetworkId: {
|
|
48
|
+
ignoreEmpty: true
|
|
49
|
+
}
|
|
50
|
+
};
|
|
46
51
|
const UpdateTriggerRequest = {
|
|
47
52
|
description: {
|
|
48
53
|
maxLength: 255
|
|
@@ -58,4 +63,5 @@ exports.ContainerScalingOption = ContainerScalingOption;
|
|
|
58
63
|
exports.CreateTriggerRequest = CreateTriggerRequest;
|
|
59
64
|
exports.CreateTriggerRequestMnqNatsClientConfig = CreateTriggerRequestMnqNatsClientConfig;
|
|
60
65
|
exports.CreateTriggerRequestMnqSqsClientConfig = CreateTriggerRequestMnqSqsClientConfig;
|
|
66
|
+
exports.UpdateContainerRequest = UpdateContainerRequest;
|
|
61
67
|
exports.UpdateTriggerRequest = UpdateTriggerRequest;
|
|
@@ -41,6 +41,11 @@ export declare const CreateTriggerRequestMnqSqsClientConfig: {
|
|
|
41
41
|
minLength: number;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
+
export declare const UpdateContainerRequest: {
|
|
45
|
+
privateNetworkId: {
|
|
46
|
+
ignoreEmpty: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
44
49
|
export declare const UpdateTriggerRequest: {
|
|
45
50
|
description: {
|
|
46
51
|
maxLength: number;
|
|
@@ -41,6 +41,11 @@ const CreateTriggerRequestMnqSqsClientConfig = {
|
|
|
41
41
|
minLength: 1
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
+
const UpdateContainerRequest = {
|
|
45
|
+
privateNetworkId: {
|
|
46
|
+
ignoreEmpty: true
|
|
47
|
+
}
|
|
48
|
+
};
|
|
44
49
|
const UpdateTriggerRequest = {
|
|
45
50
|
description: {
|
|
46
51
|
maxLength: 255
|
|
@@ -57,5 +62,6 @@ export {
|
|
|
57
62
|
CreateTriggerRequest,
|
|
58
63
|
CreateTriggerRequestMnqNatsClientConfig,
|
|
59
64
|
CreateTriggerRequestMnqSqsClientConfig,
|
|
65
|
+
UpdateContainerRequest,
|
|
60
66
|
UpdateTriggerRequest
|
|
61
67
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-container",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Scaleway SDK container",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -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.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|