@scaleway/sdk-container 2.4.2 → 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.
|
@@ -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
|
@@ -54,7 +54,7 @@ var API = class extends API$1 {
|
|
|
54
54
|
* @param request - The request {@link CreateNamespaceRequest}
|
|
55
55
|
* @returns A Promise of Namespace
|
|
56
56
|
*/
|
|
57
|
-
createNamespace = (request) => this.client.fetch({
|
|
57
|
+
createNamespace = (request = {}) => this.client.fetch({
|
|
58
58
|
body: JSON.stringify(marshalCreateNamespaceRequest(request, this.client.settings)),
|
|
59
59
|
headers: jsonContentHeaders,
|
|
60
60
|
method: "POST",
|
|
@@ -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
|
/**
|