@scaleway/sdk-container 2.5.0 → 2.6.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/index.gen.d.ts +1 -0
- package/dist/index.gen.js +3 -2
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +9 -0
- package/dist/metadata.gen.json +6 -0
- package/dist/metadata2.gen.js +8 -0
- package/dist/v1/api.gen.d.ts +226 -0
- package/dist/v1/api.gen.js +310 -0
- package/dist/v1/content.gen.d.ts +9 -0
- package/dist/v1/content.gen.js +35 -0
- package/dist/v1/index.gen.d.ts +5 -0
- package/dist/v1/index.gen.js +32 -0
- package/dist/v1/marshalling.gen.d.ts +18 -0
- package/dist/v1/marshalling.gen.js +373 -0
- package/dist/v1/metadata.gen.d.ts +103 -0
- package/dist/v1/metadata.gen.js +115 -0
- package/dist/v1/types.gen.d.ts +1109 -0
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1/validation-rules.gen.d.ts +263 -0
- package/dist/v1/validation-rules.gen.js +225 -0
- package/dist/v1beta1/api.gen.d.ts +9 -1
- package/dist/v1beta1/api.gen.js +9 -1
- package/dist/v1beta1/types.gen.d.ts +2 -2
- package/package.json +10 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { CONTAINER_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
+
import { marshalCreateContainerRequest, marshalCreateDomainRequest, marshalCreateNamespaceRequest, marshalCreateTriggerRequest, marshalUpdateContainerRequest, marshalUpdateDomainRequest, marshalUpdateNamespaceRequest, marshalUpdateTriggerRequest, unmarshalContainer, unmarshalDomain, unmarshalListContainersResponse, unmarshalListDomainsResponse, unmarshalListNamespacesResponse, unmarshalListTriggersResponse, unmarshalNamespace, unmarshalTrigger } from "./marshalling.gen.js";
|
|
4
|
+
import { API } from "./api.gen.js";
|
|
5
|
+
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1/index.gen.ts
|
|
7
|
+
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
API: () => API,
|
|
9
|
+
CONTAINER_TRANSIENT_STATUSES: () => CONTAINER_TRANSIENT_STATUSES,
|
|
10
|
+
DOMAIN_TRANSIENT_STATUSES: () => DOMAIN_TRANSIENT_STATUSES,
|
|
11
|
+
NAMESPACE_TRANSIENT_STATUSES: () => NAMESPACE_TRANSIENT_STATUSES,
|
|
12
|
+
TRIGGER_TRANSIENT_STATUSES: () => TRIGGER_TRANSIENT_STATUSES,
|
|
13
|
+
ValidationRules: () => validation_rules_gen_exports,
|
|
14
|
+
marshalCreateContainerRequest: () => marshalCreateContainerRequest,
|
|
15
|
+
marshalCreateDomainRequest: () => marshalCreateDomainRequest,
|
|
16
|
+
marshalCreateNamespaceRequest: () => marshalCreateNamespaceRequest,
|
|
17
|
+
marshalCreateTriggerRequest: () => marshalCreateTriggerRequest,
|
|
18
|
+
marshalUpdateContainerRequest: () => marshalUpdateContainerRequest,
|
|
19
|
+
marshalUpdateDomainRequest: () => marshalUpdateDomainRequest,
|
|
20
|
+
marshalUpdateNamespaceRequest: () => marshalUpdateNamespaceRequest,
|
|
21
|
+
marshalUpdateTriggerRequest: () => marshalUpdateTriggerRequest,
|
|
22
|
+
unmarshalContainer: () => unmarshalContainer,
|
|
23
|
+
unmarshalDomain: () => unmarshalDomain,
|
|
24
|
+
unmarshalListContainersResponse: () => unmarshalListContainersResponse,
|
|
25
|
+
unmarshalListDomainsResponse: () => unmarshalListDomainsResponse,
|
|
26
|
+
unmarshalListNamespacesResponse: () => unmarshalListNamespacesResponse,
|
|
27
|
+
unmarshalListTriggersResponse: () => unmarshalListTriggersResponse,
|
|
28
|
+
unmarshalNamespace: () => unmarshalNamespace,
|
|
29
|
+
unmarshalTrigger: () => unmarshalTrigger
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { API, CONTAINER_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateContainerRequest, marshalCreateDomainRequest, marshalCreateNamespaceRequest, marshalCreateTriggerRequest, marshalUpdateContainerRequest, marshalUpdateDomainRequest, marshalUpdateNamespaceRequest, marshalUpdateTriggerRequest, unmarshalContainer, unmarshalDomain, unmarshalListContainersResponse, unmarshalListDomainsResponse, unmarshalListNamespacesResponse, unmarshalListTriggersResponse, unmarshalNamespace, unmarshalTrigger };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
+
import type { Container, CreateContainerRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTriggerRequest, Domain, ListContainersResponse, ListDomainsResponse, ListNamespacesResponse, ListTriggersResponse, Namespace, Trigger, UpdateContainerRequest, UpdateDomainRequest, UpdateNamespaceRequest, UpdateTriggerRequest } from './types.gen.js';
|
|
3
|
+
export declare const unmarshalContainer: (data: unknown) => Container;
|
|
4
|
+
export declare const unmarshalDomain: (data: unknown) => Domain;
|
|
5
|
+
export declare const unmarshalNamespace: (data: unknown) => Namespace;
|
|
6
|
+
export declare const unmarshalTrigger: (data: unknown) => Trigger;
|
|
7
|
+
export declare const unmarshalListContainersResponse: (data: unknown) => ListContainersResponse;
|
|
8
|
+
export declare const unmarshalListDomainsResponse: (data: unknown) => ListDomainsResponse;
|
|
9
|
+
export declare const unmarshalListNamespacesResponse: (data: unknown) => ListNamespacesResponse;
|
|
10
|
+
export declare const unmarshalListTriggersResponse: (data: unknown) => ListTriggersResponse;
|
|
11
|
+
export declare const marshalCreateContainerRequest: (request: CreateContainerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
12
|
+
export declare const marshalCreateDomainRequest: (request: CreateDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
13
|
+
export declare const marshalCreateNamespaceRequest: (request: CreateNamespaceRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
14
|
+
export declare const marshalCreateTriggerRequest: (request: CreateTriggerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
15
|
+
export declare const marshalUpdateContainerRequest: (request: UpdateContainerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
16
|
+
export declare const marshalUpdateDomainRequest: (request: UpdateDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
17
|
+
export declare const marshalUpdateNamespaceRequest: (request: UpdateNamespaceRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
|
+
export declare const marshalUpdateTriggerRequest: (request: UpdateTriggerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1/marshalling.gen.ts
|
|
3
|
+
var unmarshalContainerProbeHTTPProbe = (data) => {
|
|
4
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerProbeHTTPProbe' failed as data isn't a dictionary.`);
|
|
5
|
+
return { path: data.path };
|
|
6
|
+
};
|
|
7
|
+
var unmarshalContainerProbeTCPProbe = (data) => {
|
|
8
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerProbeTCPProbe' failed as data isn't a dictionary.`);
|
|
9
|
+
return {};
|
|
10
|
+
};
|
|
11
|
+
var unmarshalContainerProbe = (data) => {
|
|
12
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerProbe' failed as data isn't a dictionary.`);
|
|
13
|
+
return {
|
|
14
|
+
failureThreshold: data.failure_threshold,
|
|
15
|
+
http: data.http ? unmarshalContainerProbeHTTPProbe(data.http) : void 0,
|
|
16
|
+
interval: data.interval,
|
|
17
|
+
tcp: data.tcp ? unmarshalContainerProbeTCPProbe(data.tcp) : void 0,
|
|
18
|
+
timeout: data.timeout
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
var unmarshalContainerScalingOption = (data) => {
|
|
22
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContainerScalingOption' failed as data isn't a dictionary.`);
|
|
23
|
+
return {
|
|
24
|
+
concurrentRequestsThreshold: data.concurrent_requests_threshold,
|
|
25
|
+
cpuUsageThreshold: data.cpu_usage_threshold,
|
|
26
|
+
memoryUsageThreshold: data.memory_usage_threshold
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
var unmarshalContainer = (data) => {
|
|
30
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Container' failed as data isn't a dictionary.`);
|
|
31
|
+
return {
|
|
32
|
+
args: data.args,
|
|
33
|
+
command: data.command,
|
|
34
|
+
createdAt: unmarshalDate(data.created_at),
|
|
35
|
+
description: data.description,
|
|
36
|
+
environmentVariables: data.environment_variables,
|
|
37
|
+
errorMessage: data.error_message,
|
|
38
|
+
httpsConnectionsOnly: data.https_connections_only,
|
|
39
|
+
id: data.id,
|
|
40
|
+
image: data.image,
|
|
41
|
+
livenessProbe: data.liveness_probe ? unmarshalContainerProbe(data.liveness_probe) : void 0,
|
|
42
|
+
localStorageLimitBytes: data.local_storage_limit_bytes,
|
|
43
|
+
maxScale: data.max_scale,
|
|
44
|
+
memoryLimitBytes: data.memory_limit_bytes,
|
|
45
|
+
minScale: data.min_scale,
|
|
46
|
+
mvcpuLimit: data.mvcpu_limit,
|
|
47
|
+
name: data.name,
|
|
48
|
+
namespaceId: data.namespace_id,
|
|
49
|
+
port: data.port,
|
|
50
|
+
privacy: data.privacy,
|
|
51
|
+
privateNetworkId: data.private_network_id,
|
|
52
|
+
protocol: data.protocol,
|
|
53
|
+
publicEndpoint: data.public_endpoint,
|
|
54
|
+
region: data.region,
|
|
55
|
+
sandbox: data.sandbox,
|
|
56
|
+
scalingOption: data.scaling_option ? unmarshalContainerScalingOption(data.scaling_option) : void 0,
|
|
57
|
+
secretEnvironmentVariables: data.secret_environment_variables,
|
|
58
|
+
startupProbe: data.startup_probe ? unmarshalContainerProbe(data.startup_probe) : void 0,
|
|
59
|
+
status: data.status,
|
|
60
|
+
tags: data.tags,
|
|
61
|
+
timeout: data.timeout,
|
|
62
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
var unmarshalDomain = (data) => {
|
|
66
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`);
|
|
67
|
+
return {
|
|
68
|
+
containerId: data.container_id,
|
|
69
|
+
createdAt: unmarshalDate(data.created_at),
|
|
70
|
+
errorMessage: data.error_message,
|
|
71
|
+
hostname: data.hostname,
|
|
72
|
+
id: data.id,
|
|
73
|
+
status: data.status,
|
|
74
|
+
tags: data.tags,
|
|
75
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
var unmarshalNamespace = (data) => {
|
|
79
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
|
|
80
|
+
return {
|
|
81
|
+
createdAt: unmarshalDate(data.created_at),
|
|
82
|
+
description: data.description,
|
|
83
|
+
environmentVariables: data.environment_variables,
|
|
84
|
+
errorMessage: data.error_message,
|
|
85
|
+
id: data.id,
|
|
86
|
+
name: data.name,
|
|
87
|
+
organizationId: data.organization_id,
|
|
88
|
+
projectId: data.project_id,
|
|
89
|
+
region: data.region,
|
|
90
|
+
secretEnvironmentVariables: data.secret_environment_variables,
|
|
91
|
+
status: data.status,
|
|
92
|
+
tags: data.tags,
|
|
93
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
var unmarshalTriggerCronConfig = (data) => {
|
|
97
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TriggerCronConfig' failed as data isn't a dictionary.`);
|
|
98
|
+
return {
|
|
99
|
+
body: data.body,
|
|
100
|
+
headers: data.headers,
|
|
101
|
+
schedule: data.schedule,
|
|
102
|
+
timezone: data.timezone
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
var unmarshalTriggerDestinationConfig = (data) => {
|
|
106
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TriggerDestinationConfig' failed as data isn't a dictionary.`);
|
|
107
|
+
return {
|
|
108
|
+
httpMethod: data.http_method,
|
|
109
|
+
httpPath: data.http_path
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
var unmarshalTriggerNATSConfig = (data) => {
|
|
113
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TriggerNATSConfig' failed as data isn't a dictionary.`);
|
|
114
|
+
return {
|
|
115
|
+
serverUrls: data.server_urls,
|
|
116
|
+
subject: data.subject
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
var unmarshalTriggerSQSConfig = (data) => {
|
|
120
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TriggerSQSConfig' failed as data isn't a dictionary.`);
|
|
121
|
+
return {
|
|
122
|
+
accessKeyId: data.access_key_id,
|
|
123
|
+
endpoint: data.endpoint,
|
|
124
|
+
queueUrl: data.queue_url,
|
|
125
|
+
region: data.region
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
var unmarshalTrigger = (data) => {
|
|
129
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Trigger' failed as data isn't a dictionary.`);
|
|
130
|
+
return {
|
|
131
|
+
containerId: data.container_id,
|
|
132
|
+
createdAt: unmarshalDate(data.created_at),
|
|
133
|
+
cronConfig: data.cron_config ? unmarshalTriggerCronConfig(data.cron_config) : void 0,
|
|
134
|
+
description: data.description,
|
|
135
|
+
destinationConfig: data.destination_config ? unmarshalTriggerDestinationConfig(data.destination_config) : void 0,
|
|
136
|
+
errorMessage: data.error_message,
|
|
137
|
+
id: data.id,
|
|
138
|
+
name: data.name,
|
|
139
|
+
natsConfig: data.nats_config ? unmarshalTriggerNATSConfig(data.nats_config) : void 0,
|
|
140
|
+
sourceType: data.source_type,
|
|
141
|
+
sqsConfig: data.sqs_config ? unmarshalTriggerSQSConfig(data.sqs_config) : void 0,
|
|
142
|
+
status: data.status,
|
|
143
|
+
tags: data.tags,
|
|
144
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
var unmarshalListContainersResponse = (data) => {
|
|
148
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListContainersResponse' failed as data isn't a dictionary.`);
|
|
149
|
+
return {
|
|
150
|
+
containers: unmarshalArrayOfObject(data.containers, unmarshalContainer),
|
|
151
|
+
totalCount: data.total_count
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
var unmarshalListDomainsResponse = (data) => {
|
|
155
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`);
|
|
156
|
+
return {
|
|
157
|
+
domains: unmarshalArrayOfObject(data.domains, unmarshalDomain),
|
|
158
|
+
totalCount: data.total_count
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
var unmarshalListNamespacesResponse = (data) => {
|
|
162
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
|
|
163
|
+
return {
|
|
164
|
+
namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace),
|
|
165
|
+
totalCount: data.total_count
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
var unmarshalListTriggersResponse = (data) => {
|
|
169
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTriggersResponse' failed as data isn't a dictionary.`);
|
|
170
|
+
return {
|
|
171
|
+
totalCount: data.total_count,
|
|
172
|
+
triggers: unmarshalArrayOfObject(data.triggers, unmarshalTrigger)
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
var marshalContainerProbeHTTPProbe = (request, defaults) => ({ path: request.path });
|
|
176
|
+
var marshalContainerProbeTCPProbe = (request, defaults) => ({});
|
|
177
|
+
var marshalContainerProbe = (request, defaults) => ({
|
|
178
|
+
failure_threshold: request.failureThreshold,
|
|
179
|
+
interval: request.interval,
|
|
180
|
+
timeout: request.timeout,
|
|
181
|
+
...resolveOneOf([{
|
|
182
|
+
param: "tcp",
|
|
183
|
+
value: request.tcp !== void 0 ? marshalContainerProbeTCPProbe(request.tcp, defaults) : void 0
|
|
184
|
+
}, {
|
|
185
|
+
param: "http",
|
|
186
|
+
value: request.http !== void 0 ? marshalContainerProbeHTTPProbe(request.http, defaults) : void 0
|
|
187
|
+
}])
|
|
188
|
+
});
|
|
189
|
+
var marshalContainerScalingOption = (request, defaults) => ({ ...resolveOneOf([
|
|
190
|
+
{
|
|
191
|
+
param: "concurrent_requests_threshold",
|
|
192
|
+
value: request.concurrentRequestsThreshold
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
param: "cpu_usage_threshold",
|
|
196
|
+
value: request.cpuUsageThreshold
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
param: "memory_usage_threshold",
|
|
200
|
+
value: request.memoryUsageThreshold
|
|
201
|
+
}
|
|
202
|
+
]) });
|
|
203
|
+
var marshalCreateContainerRequest = (request, defaults) => ({
|
|
204
|
+
args: request.args,
|
|
205
|
+
command: request.command,
|
|
206
|
+
description: request.description,
|
|
207
|
+
environment_variables: request.environmentVariables !== void 0 ? request.environmentVariables : void 0,
|
|
208
|
+
https_connections_only: request.httpsConnectionsOnly,
|
|
209
|
+
image: request.image,
|
|
210
|
+
liveness_probe: request.livenessProbe !== void 0 ? marshalContainerProbe(request.livenessProbe, defaults) : void 0,
|
|
211
|
+
local_storage_limit_bytes: request.localStorageLimitBytes,
|
|
212
|
+
max_scale: request.maxScale,
|
|
213
|
+
memory_limit_bytes: request.memoryLimitBytes,
|
|
214
|
+
min_scale: request.minScale,
|
|
215
|
+
mvcpu_limit: request.mvcpuLimit,
|
|
216
|
+
name: request.name,
|
|
217
|
+
namespace_id: request.namespaceId,
|
|
218
|
+
port: request.port,
|
|
219
|
+
privacy: request.privacy,
|
|
220
|
+
private_network_id: request.privateNetworkId,
|
|
221
|
+
protocol: request.protocol,
|
|
222
|
+
sandbox: request.sandbox,
|
|
223
|
+
scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption, defaults) : void 0,
|
|
224
|
+
secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables : void 0,
|
|
225
|
+
startup_probe: request.startupProbe !== void 0 ? marshalContainerProbe(request.startupProbe, defaults) : void 0,
|
|
226
|
+
tags: request.tags,
|
|
227
|
+
timeout: request.timeout
|
|
228
|
+
});
|
|
229
|
+
var marshalCreateDomainRequest = (request, defaults) => ({
|
|
230
|
+
container_id: request.containerId,
|
|
231
|
+
hostname: request.hostname,
|
|
232
|
+
tags: request.tags
|
|
233
|
+
});
|
|
234
|
+
var marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
235
|
+
description: request.description,
|
|
236
|
+
environment_variables: request.environmentVariables !== void 0 ? request.environmentVariables : void 0,
|
|
237
|
+
name: request.name,
|
|
238
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
239
|
+
secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables : void 0,
|
|
240
|
+
tags: request.tags
|
|
241
|
+
});
|
|
242
|
+
var marshalCreateTriggerRequestCronConfig = (request, defaults) => ({
|
|
243
|
+
body: request.body,
|
|
244
|
+
headers: request.headers,
|
|
245
|
+
schedule: request.schedule,
|
|
246
|
+
timezone: request.timezone
|
|
247
|
+
});
|
|
248
|
+
var marshalCreateTriggerRequestDestinationConfig = (request, defaults) => ({
|
|
249
|
+
http_method: request.httpMethod,
|
|
250
|
+
http_path: request.httpPath
|
|
251
|
+
});
|
|
252
|
+
var marshalCreateTriggerRequestNATSConfig = (request, defaults) => ({
|
|
253
|
+
credentials_file_content: request.credentialsFileContent,
|
|
254
|
+
server_urls: request.serverUrls,
|
|
255
|
+
subject: request.subject
|
|
256
|
+
});
|
|
257
|
+
var marshalCreateTriggerRequestSQSConfig = (request, defaults) => ({
|
|
258
|
+
access_key_id: request.accessKeyId,
|
|
259
|
+
endpoint: request.endpoint,
|
|
260
|
+
queue_url: request.queueUrl,
|
|
261
|
+
region: request.region,
|
|
262
|
+
secret_access_key: request.secretAccessKey
|
|
263
|
+
});
|
|
264
|
+
var marshalCreateTriggerRequest = (request, defaults) => ({
|
|
265
|
+
container_id: request.containerId,
|
|
266
|
+
description: request.description,
|
|
267
|
+
destination_config: request.destinationConfig !== void 0 ? marshalCreateTriggerRequestDestinationConfig(request.destinationConfig, defaults) : void 0,
|
|
268
|
+
name: request.name,
|
|
269
|
+
tags: request.tags,
|
|
270
|
+
...resolveOneOf([
|
|
271
|
+
{
|
|
272
|
+
param: "cron_config",
|
|
273
|
+
value: request.cronConfig !== void 0 ? marshalCreateTriggerRequestCronConfig(request.cronConfig, defaults) : void 0
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
param: "sqs_config",
|
|
277
|
+
value: request.sqsConfig !== void 0 ? marshalCreateTriggerRequestSQSConfig(request.sqsConfig, defaults) : void 0
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
param: "nats_config",
|
|
281
|
+
value: request.natsConfig !== void 0 ? marshalCreateTriggerRequestNATSConfig(request.natsConfig, defaults) : void 0
|
|
282
|
+
}
|
|
283
|
+
])
|
|
284
|
+
});
|
|
285
|
+
var marshalUpdateContainerRequestProbeHTTPProbe = (request, defaults) => ({ path: request.path });
|
|
286
|
+
var marshalUpdateContainerRequestProbeTCPProbe = (request, defaults) => ({});
|
|
287
|
+
var marshalUpdateContainerRequestProbe = (request, defaults) => ({
|
|
288
|
+
failure_threshold: request.failureThreshold,
|
|
289
|
+
interval: request.interval,
|
|
290
|
+
timeout: request.timeout,
|
|
291
|
+
...resolveOneOf([{
|
|
292
|
+
param: "http",
|
|
293
|
+
value: request.http !== void 0 ? marshalUpdateContainerRequestProbeHTTPProbe(request.http, defaults) : void 0
|
|
294
|
+
}, {
|
|
295
|
+
param: "tcp",
|
|
296
|
+
value: request.tcp !== void 0 ? marshalUpdateContainerRequestProbeTCPProbe(request.tcp, defaults) : void 0
|
|
297
|
+
}])
|
|
298
|
+
});
|
|
299
|
+
var marshalUpdateContainerRequest = (request, defaults) => ({
|
|
300
|
+
args: request.args,
|
|
301
|
+
command: request.command,
|
|
302
|
+
description: request.description,
|
|
303
|
+
environment_variables: request.environmentVariables,
|
|
304
|
+
https_connection_only: request.httpsConnectionOnly,
|
|
305
|
+
image: request.image,
|
|
306
|
+
liveness_probe: request.livenessProbe !== void 0 ? marshalContainerProbe(request.livenessProbe, defaults) : void 0,
|
|
307
|
+
local_storage_limit_bytes: request.localStorageLimitBytes,
|
|
308
|
+
max_scale: request.maxScale,
|
|
309
|
+
memory_limit_bytes: request.memoryLimitBytes,
|
|
310
|
+
min_scale: request.minScale,
|
|
311
|
+
mvcpu_limit: request.mvcpuLimit,
|
|
312
|
+
port: request.port,
|
|
313
|
+
privacy: request.privacy,
|
|
314
|
+
private_network_id: request.privateNetworkId,
|
|
315
|
+
protocol: request.protocol,
|
|
316
|
+
sandbox: request.sandbox,
|
|
317
|
+
scaling_option: request.scalingOption !== void 0 ? marshalContainerScalingOption(request.scalingOption, defaults) : void 0,
|
|
318
|
+
secret_environment_variables: request.secretEnvironmentVariables,
|
|
319
|
+
startup_probe: request.startupProbe !== void 0 ? marshalUpdateContainerRequestProbe(request.startupProbe, defaults) : void 0,
|
|
320
|
+
tags: request.tags,
|
|
321
|
+
timeout: request.timeout
|
|
322
|
+
});
|
|
323
|
+
var marshalUpdateDomainRequest = (request, defaults) => ({ tags: request.tags });
|
|
324
|
+
var marshalUpdateNamespaceRequest = (request, defaults) => ({
|
|
325
|
+
description: request.description,
|
|
326
|
+
environment_variables: request.environmentVariables,
|
|
327
|
+
secret_environment_variables: request.secretEnvironmentVariables,
|
|
328
|
+
tags: request.tags
|
|
329
|
+
});
|
|
330
|
+
var marshalUpdateTriggerRequestCronConfig = (request, defaults) => ({
|
|
331
|
+
body: request.body,
|
|
332
|
+
headers: request.headers,
|
|
333
|
+
schedule: request.schedule,
|
|
334
|
+
timezone: request.timezone
|
|
335
|
+
});
|
|
336
|
+
var marshalUpdateTriggerRequestDestinationConfig = (request, defaults) => ({
|
|
337
|
+
http_method: request.httpMethod,
|
|
338
|
+
http_path: request.httpPath
|
|
339
|
+
});
|
|
340
|
+
var marshalUpdateTriggerRequestNATSConfig = (request, defaults) => ({
|
|
341
|
+
credentials_file_content: request.credentialsFileContent,
|
|
342
|
+
server_urls: request.serverUrls,
|
|
343
|
+
subject: request.subject
|
|
344
|
+
});
|
|
345
|
+
var marshalUpdateTriggerRequestSQSConfig = (request, defaults) => ({
|
|
346
|
+
access_key_id: request.accessKeyId,
|
|
347
|
+
endpoint: request.endpoint,
|
|
348
|
+
queue_url: request.queueUrl,
|
|
349
|
+
region: request.region,
|
|
350
|
+
secret_access_key: request.secretAccessKey
|
|
351
|
+
});
|
|
352
|
+
var marshalUpdateTriggerRequest = (request, defaults) => ({
|
|
353
|
+
description: request.description,
|
|
354
|
+
destination_config: request.destinationConfig !== void 0 ? marshalUpdateTriggerRequestDestinationConfig(request.destinationConfig, defaults) : void 0,
|
|
355
|
+
name: request.name,
|
|
356
|
+
tags: request.tags,
|
|
357
|
+
...resolveOneOf([
|
|
358
|
+
{
|
|
359
|
+
param: "cron_config",
|
|
360
|
+
value: request.cronConfig !== void 0 ? marshalUpdateTriggerRequestCronConfig(request.cronConfig, defaults) : void 0
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
param: "sqs_config",
|
|
364
|
+
value: request.sqsConfig !== void 0 ? marshalUpdateTriggerRequestSQSConfig(request.sqsConfig, defaults) : void 0
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
param: "nats_config",
|
|
368
|
+
value: request.natsConfig !== void 0 ? marshalUpdateTriggerRequestNATSConfig(request.natsConfig, defaults) : void 0
|
|
369
|
+
}
|
|
370
|
+
])
|
|
371
|
+
});
|
|
372
|
+
//#endregion
|
|
373
|
+
export { marshalCreateContainerRequest, marshalCreateDomainRequest, marshalCreateNamespaceRequest, marshalCreateTriggerRequest, marshalUpdateContainerRequest, marshalUpdateDomainRequest, marshalUpdateNamespaceRequest, marshalUpdateTriggerRequest, unmarshalContainer, unmarshalDomain, unmarshalListContainersResponse, unmarshalListDomainsResponse, unmarshalListNamespacesResponse, unmarshalListTriggersResponse, unmarshalNamespace, unmarshalTrigger };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: "container";
|
|
3
|
+
readonly version: "v1";
|
|
4
|
+
readonly folderName: "containerv1";
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: "API";
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: "getServiceInfo";
|
|
9
|
+
readonly protoName: "GetServiceInfo";
|
|
10
|
+
readonly paramsType: "GetServiceInfoRequest";
|
|
11
|
+
readonly returnType: "ServiceInfo";
|
|
12
|
+
readonly isList: false;
|
|
13
|
+
readonly paginationType: "none";
|
|
14
|
+
readonly isPrivate: false;
|
|
15
|
+
readonly description: "\"";
|
|
16
|
+
}, {
|
|
17
|
+
readonly methodName: "getNamespace";
|
|
18
|
+
readonly protoName: "GetNamespace";
|
|
19
|
+
readonly paramsType: "GetNamespaceRequest";
|
|
20
|
+
readonly returnType: "Namespace";
|
|
21
|
+
readonly isList: false;
|
|
22
|
+
readonly paginationType: "none";
|
|
23
|
+
readonly isPrivate: false;
|
|
24
|
+
readonly description: "\"";
|
|
25
|
+
readonly hasWaiter: true;
|
|
26
|
+
}, {
|
|
27
|
+
readonly methodName: "listNamespaces";
|
|
28
|
+
readonly protoName: "ListNamespaces";
|
|
29
|
+
readonly paramsType: "ListNamespacesRequest";
|
|
30
|
+
readonly returnType: "ListNamespacesResponse";
|
|
31
|
+
readonly isList: true;
|
|
32
|
+
readonly paginationType: "offset";
|
|
33
|
+
readonly pageParamKey: "page";
|
|
34
|
+
readonly listItemType: "Namespace";
|
|
35
|
+
readonly isPrivate: false;
|
|
36
|
+
readonly description: "\"";
|
|
37
|
+
}, {
|
|
38
|
+
readonly methodName: "getContainer";
|
|
39
|
+
readonly protoName: "GetContainer";
|
|
40
|
+
readonly paramsType: "GetContainerRequest";
|
|
41
|
+
readonly returnType: "Container";
|
|
42
|
+
readonly isList: false;
|
|
43
|
+
readonly paginationType: "none";
|
|
44
|
+
readonly isPrivate: false;
|
|
45
|
+
readonly description: "\"";
|
|
46
|
+
readonly hasWaiter: true;
|
|
47
|
+
}, {
|
|
48
|
+
readonly methodName: "listContainers";
|
|
49
|
+
readonly protoName: "ListContainers";
|
|
50
|
+
readonly paramsType: "ListContainersRequest";
|
|
51
|
+
readonly returnType: "ListContainersResponse";
|
|
52
|
+
readonly isList: true;
|
|
53
|
+
readonly paginationType: "offset";
|
|
54
|
+
readonly pageParamKey: "page";
|
|
55
|
+
readonly listItemType: "Container";
|
|
56
|
+
readonly isPrivate: false;
|
|
57
|
+
readonly description: "\"";
|
|
58
|
+
}, {
|
|
59
|
+
readonly methodName: "getDomain";
|
|
60
|
+
readonly protoName: "GetDomain";
|
|
61
|
+
readonly paramsType: "GetDomainRequest";
|
|
62
|
+
readonly returnType: "Domain";
|
|
63
|
+
readonly isList: false;
|
|
64
|
+
readonly paginationType: "none";
|
|
65
|
+
readonly isPrivate: false;
|
|
66
|
+
readonly description: "\"";
|
|
67
|
+
readonly hasWaiter: true;
|
|
68
|
+
}, {
|
|
69
|
+
readonly methodName: "listDomains";
|
|
70
|
+
readonly protoName: "ListDomains";
|
|
71
|
+
readonly paramsType: "ListDomainsRequest";
|
|
72
|
+
readonly returnType: "ListDomainsResponse";
|
|
73
|
+
readonly isList: true;
|
|
74
|
+
readonly paginationType: "offset";
|
|
75
|
+
readonly pageParamKey: "page";
|
|
76
|
+
readonly listItemType: "Domain";
|
|
77
|
+
readonly isPrivate: false;
|
|
78
|
+
readonly description: "\"";
|
|
79
|
+
}, {
|
|
80
|
+
readonly methodName: "getTrigger";
|
|
81
|
+
readonly protoName: "GetTrigger";
|
|
82
|
+
readonly paramsType: "GetTriggerRequest";
|
|
83
|
+
readonly returnType: "Trigger";
|
|
84
|
+
readonly isList: false;
|
|
85
|
+
readonly paginationType: "none";
|
|
86
|
+
readonly isPrivate: false;
|
|
87
|
+
readonly description: "\"";
|
|
88
|
+
readonly hasWaiter: true;
|
|
89
|
+
}, {
|
|
90
|
+
readonly methodName: "listTriggers";
|
|
91
|
+
readonly protoName: "ListTriggers";
|
|
92
|
+
readonly paramsType: "ListTriggersRequest";
|
|
93
|
+
readonly returnType: "ListTriggersResponse";
|
|
94
|
+
readonly isList: true;
|
|
95
|
+
readonly paginationType: "offset";
|
|
96
|
+
readonly pageParamKey: "page";
|
|
97
|
+
readonly listItemType: "Trigger";
|
|
98
|
+
readonly isPrivate: false;
|
|
99
|
+
readonly description: "\"";
|
|
100
|
+
}];
|
|
101
|
+
}];
|
|
102
|
+
};
|
|
103
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
//#region src/v1/metadata.gen.ts
|
|
2
|
+
var queriesMetadata = {
|
|
3
|
+
namespace: "container",
|
|
4
|
+
version: "v1",
|
|
5
|
+
folderName: "containerv1",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "getServiceInfo",
|
|
11
|
+
protoName: "GetServiceInfo",
|
|
12
|
+
paramsType: "GetServiceInfoRequest",
|
|
13
|
+
returnType: "ServiceInfo",
|
|
14
|
+
isList: false,
|
|
15
|
+
paginationType: "none",
|
|
16
|
+
isPrivate: false,
|
|
17
|
+
description: "\""
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
methodName: "getNamespace",
|
|
21
|
+
protoName: "GetNamespace",
|
|
22
|
+
paramsType: "GetNamespaceRequest",
|
|
23
|
+
returnType: "Namespace",
|
|
24
|
+
isList: false,
|
|
25
|
+
paginationType: "none",
|
|
26
|
+
isPrivate: false,
|
|
27
|
+
description: "\"",
|
|
28
|
+
hasWaiter: true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
methodName: "listNamespaces",
|
|
32
|
+
protoName: "ListNamespaces",
|
|
33
|
+
paramsType: "ListNamespacesRequest",
|
|
34
|
+
returnType: "ListNamespacesResponse",
|
|
35
|
+
isList: true,
|
|
36
|
+
paginationType: "offset",
|
|
37
|
+
pageParamKey: "page",
|
|
38
|
+
listItemType: "Namespace",
|
|
39
|
+
isPrivate: false,
|
|
40
|
+
description: "\""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
methodName: "getContainer",
|
|
44
|
+
protoName: "GetContainer",
|
|
45
|
+
paramsType: "GetContainerRequest",
|
|
46
|
+
returnType: "Container",
|
|
47
|
+
isList: false,
|
|
48
|
+
paginationType: "none",
|
|
49
|
+
isPrivate: false,
|
|
50
|
+
description: "\"",
|
|
51
|
+
hasWaiter: true
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
methodName: "listContainers",
|
|
55
|
+
protoName: "ListContainers",
|
|
56
|
+
paramsType: "ListContainersRequest",
|
|
57
|
+
returnType: "ListContainersResponse",
|
|
58
|
+
isList: true,
|
|
59
|
+
paginationType: "offset",
|
|
60
|
+
pageParamKey: "page",
|
|
61
|
+
listItemType: "Container",
|
|
62
|
+
isPrivate: false,
|
|
63
|
+
description: "\""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
methodName: "getDomain",
|
|
67
|
+
protoName: "GetDomain",
|
|
68
|
+
paramsType: "GetDomainRequest",
|
|
69
|
+
returnType: "Domain",
|
|
70
|
+
isList: false,
|
|
71
|
+
paginationType: "none",
|
|
72
|
+
isPrivate: false,
|
|
73
|
+
description: "\"",
|
|
74
|
+
hasWaiter: true
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
methodName: "listDomains",
|
|
78
|
+
protoName: "ListDomains",
|
|
79
|
+
paramsType: "ListDomainsRequest",
|
|
80
|
+
returnType: "ListDomainsResponse",
|
|
81
|
+
isList: true,
|
|
82
|
+
paginationType: "offset",
|
|
83
|
+
pageParamKey: "page",
|
|
84
|
+
listItemType: "Domain",
|
|
85
|
+
isPrivate: false,
|
|
86
|
+
description: "\""
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
methodName: "getTrigger",
|
|
90
|
+
protoName: "GetTrigger",
|
|
91
|
+
paramsType: "GetTriggerRequest",
|
|
92
|
+
returnType: "Trigger",
|
|
93
|
+
isList: false,
|
|
94
|
+
paginationType: "none",
|
|
95
|
+
isPrivate: false,
|
|
96
|
+
description: "\"",
|
|
97
|
+
hasWaiter: true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
methodName: "listTriggers",
|
|
101
|
+
protoName: "ListTriggers",
|
|
102
|
+
paramsType: "ListTriggersRequest",
|
|
103
|
+
returnType: "ListTriggersResponse",
|
|
104
|
+
isList: true,
|
|
105
|
+
paginationType: "offset",
|
|
106
|
+
pageParamKey: "page",
|
|
107
|
+
listItemType: "Trigger",
|
|
108
|
+
isPrivate: false,
|
|
109
|
+
description: "\""
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}]
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
export { queriesMetadata };
|