@scaleway/sdk 2.52.1 → 2.54.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/api/applesilicon/v1alpha1/api.gen.cjs +21 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +3 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +22 -1
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +47 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +48 -1
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +33 -0
- package/dist/api/block/v1alpha1/api.gen.cjs +2 -1
- package/dist/api/block/v1alpha1/api.gen.js +2 -1
- package/dist/api/block/v1alpha1/types.gen.d.ts +5 -0
- package/dist/api/cockpit/v1/api.gen.cjs +21 -2
- package/dist/api/cockpit/v1/api.gen.d.ts +16 -3
- package/dist/api/cockpit/v1/api.gen.js +22 -3
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -1
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +29 -1
- package/dist/api/cockpit/v1/types.gen.d.ts +29 -1
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +11 -0
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +11 -0
- package/dist/api/cockpit/v1/validation-rules.gen.js +11 -0
- package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/container/v1beta1/marshalling.gen.cjs +70 -6
- package/dist/api/container/v1beta1/marshalling.gen.js +71 -7
- package/dist/api/container/v1beta1/types.gen.d.ts +74 -2
- package/dist/api/container/v1beta1/validation-rules.gen.cjs +14 -0
- package/dist/api/container/v1beta1/validation-rules.gen.d.ts +12 -0
- package/dist/api/container/v1beta1/validation-rules.gen.js +14 -0
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +4 -4
- package/dist/api/function/v1beta1/marshalling.gen.cjs +12 -4
- package/dist/api/function/v1beta1/marshalling.gen.js +13 -5
- package/dist/api/function/v1beta1/types.gen.d.ts +16 -0
- package/dist/api/iam/v1alpha1/api.gen.cjs +37 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +22 -1
- package/dist/api/iam/v1alpha1/api.gen.js +37 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/types.gen.d.ts +12 -0
- package/dist/api/inference/v1beta1/types.gen.d.ts +3 -3
- package/dist/api/instance/v1/api.gen.cjs +2 -2
- package/dist/api/instance/v1/api.gen.d.ts +2 -2
- package/dist/api/instance/v1/api.gen.js +2 -2
- package/dist/api/instance/v1/types.gen.d.ts +2 -2
- package/dist/api/iot/v1/api.gen.cjs +4 -3
- package/dist/api/iot/v1/api.gen.d.ts +4 -3
- package/dist/api/iot/v1/api.gen.js +4 -3
- package/dist/api/iot/v1/types.gen.d.ts +6 -6
- package/dist/api/ipam/v1/types.gen.d.ts +1 -1
- package/dist/api/jobs/v1alpha1/api.gen.cjs +29 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +29 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +29 -0
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +38 -6
- package/dist/api/k8s/v1/api.gen.cjs +65 -1
- package/dist/api/k8s/v1/api.gen.d.ts +32 -1
- package/dist/api/k8s/v1/api.gen.js +66 -2
- package/dist/api/k8s/v1/index.gen.d.ts +1 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +62 -0
- package/dist/api/k8s/v1/marshalling.gen.d.ts +6 -1
- package/dist/api/k8s/v1/marshalling.gen.js +62 -0
- package/dist/api/k8s/v1/types.gen.d.ts +93 -1
- package/dist/api/k8s/v1/validation-rules.gen.cjs +6 -0
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +5 -0
- package/dist/api/k8s/v1/validation-rules.gen.js +6 -0
- package/dist/api/lb/v1/types.gen.d.ts +15 -10
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +23 -16
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +10 -1
- package/dist/api/mongodb/v1alpha1/api.gen.js +24 -17
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +5 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/mongodb/v1alpha1/marshalling.gen.js +5 -0
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +13 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +12 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +11 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +12 -0
- package/dist/api/rdb/v1/marshalling.gen.cjs +2 -1
- package/dist/api/rdb/v1/marshalling.gen.js +2 -1
- package/dist/api/rdb/v1/types.gen.d.ts +22 -13
- package/dist/api/webhosting/v1/api.gen.cjs +2 -8
- package/dist/api/webhosting/v1/api.gen.js +2 -8
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -16,12 +16,50 @@ export type NamespaceStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'lock
|
|
|
16
16
|
export type TokenStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'creating';
|
|
17
17
|
export type TriggerInputType = 'unknown_input_type' | 'sqs' | 'scw_sqs' | 'nats' | 'scw_nats';
|
|
18
18
|
export type TriggerStatus = 'unknown_status' | 'ready' | 'deleting' | 'error' | 'creating' | 'pending';
|
|
19
|
+
export interface ContainerHealthCheckSpecHTTPProbe {
|
|
20
|
+
/** Path to use for the HTTP health check. */
|
|
21
|
+
path: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ContainerHealthCheckSpecTCPProbe {
|
|
24
|
+
}
|
|
25
|
+
export interface ContainerHealthCheckSpec {
|
|
26
|
+
/**
|
|
27
|
+
* HTTP health check configuration.
|
|
28
|
+
*
|
|
29
|
+
* One-of ('probe'): at most one of 'http', 'tcp' could be set.
|
|
30
|
+
*/
|
|
31
|
+
http?: ContainerHealthCheckSpecHTTPProbe;
|
|
32
|
+
/**
|
|
33
|
+
* TCP health check configuration.
|
|
34
|
+
*
|
|
35
|
+
* One-of ('probe'): at most one of 'http', 'tcp' could be set.
|
|
36
|
+
*/
|
|
37
|
+
tcp?: ContainerHealthCheckSpecTCPProbe;
|
|
38
|
+
/**
|
|
39
|
+
* During a deployment, if a newly created container fails to pass the health
|
|
40
|
+
* check, the deployment is aborted. As a result, lowering this value can help
|
|
41
|
+
* to reduce the time it takes to detect a failed deployment.
|
|
42
|
+
*/
|
|
43
|
+
failureThreshold: number;
|
|
44
|
+
/** Period between health checks. */
|
|
45
|
+
interval?: string;
|
|
46
|
+
}
|
|
19
47
|
export interface ContainerScalingOption {
|
|
20
48
|
/**
|
|
21
|
-
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold'
|
|
22
|
-
* be set.
|
|
49
|
+
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
|
|
50
|
+
* 'cpuUsageThreshold', 'memoryUsageThreshold' could be set.
|
|
23
51
|
*/
|
|
24
52
|
concurrentRequestsThreshold?: number;
|
|
53
|
+
/**
|
|
54
|
+
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
|
|
55
|
+
* 'cpuUsageThreshold', 'memoryUsageThreshold' could be set.
|
|
56
|
+
*/
|
|
57
|
+
cpuUsageThreshold?: number;
|
|
58
|
+
/**
|
|
59
|
+
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
|
|
60
|
+
* 'cpuUsageThreshold', 'memoryUsageThreshold' could be set.
|
|
61
|
+
*/
|
|
62
|
+
memoryUsageThreshold?: number;
|
|
25
63
|
}
|
|
26
64
|
export interface SecretHashedValue {
|
|
27
65
|
key: string;
|
|
@@ -148,8 +186,20 @@ export interface Container {
|
|
|
148
186
|
*
|
|
149
187
|
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
|
|
150
188
|
* requests being processed per container instance.
|
|
189
|
+
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
|
|
190
|
+
* instance.
|
|
191
|
+
* - Memory_usage_threshold: Scale depending on the memory usage of a container
|
|
192
|
+
* instance.
|
|
151
193
|
*/
|
|
152
194
|
scalingOption?: ContainerScalingOption;
|
|
195
|
+
/** Health check configuration of the container. */
|
|
196
|
+
healthCheck?: ContainerHealthCheckSpec;
|
|
197
|
+
/** Creation date of the container. */
|
|
198
|
+
createdAt?: Date;
|
|
199
|
+
/** Last update date of the container. */
|
|
200
|
+
updatedAt?: Date;
|
|
201
|
+
/** Last date when the container was successfully deployed and set to ready. */
|
|
202
|
+
readyAt?: Date;
|
|
153
203
|
/** Region in which the container will be deployed. */
|
|
154
204
|
region: Region;
|
|
155
205
|
}
|
|
@@ -206,6 +256,12 @@ export interface Namespace {
|
|
|
206
256
|
secretEnvironmentVariables: SecretHashedValue[];
|
|
207
257
|
/** Region in which the namespace will be created. */
|
|
208
258
|
region: Region;
|
|
259
|
+
/** [ALPHA] List of tags applied to the Serverless Container Namespace. */
|
|
260
|
+
tags: string[];
|
|
261
|
+
/** Creation date of the namespace. */
|
|
262
|
+
createdAt?: Date;
|
|
263
|
+
/** Last update date of the namespace. */
|
|
264
|
+
updatedAt?: Date;
|
|
209
265
|
}
|
|
210
266
|
export interface Token {
|
|
211
267
|
/** UUID of the token. */
|
|
@@ -330,8 +386,14 @@ export type CreateContainerRequest = {
|
|
|
330
386
|
*
|
|
331
387
|
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
|
|
332
388
|
* requests being processed per container instance.
|
|
389
|
+
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
|
|
390
|
+
* instance.
|
|
391
|
+
* - Memory_usage_threshold: Scale depending on the memory usage of a container
|
|
392
|
+
* instance.
|
|
333
393
|
*/
|
|
334
394
|
scalingOption?: ContainerScalingOption;
|
|
395
|
+
/** Health check configuration of the container. */
|
|
396
|
+
healthCheck?: ContainerHealthCheckSpec;
|
|
335
397
|
};
|
|
336
398
|
export type CreateCronRequest = {
|
|
337
399
|
/**
|
|
@@ -375,6 +437,8 @@ export type CreateNamespaceRequest = {
|
|
|
375
437
|
description?: string;
|
|
376
438
|
/** Secret environment variables of the namespace to create. */
|
|
377
439
|
secretEnvironmentVariables?: Secret[];
|
|
440
|
+
/** [ALPHA] Tags of the Serverless Container Namespace. */
|
|
441
|
+
tags?: string[];
|
|
378
442
|
};
|
|
379
443
|
export type CreateTokenRequest = {
|
|
380
444
|
/**
|
|
@@ -758,8 +822,14 @@ export type UpdateContainerRequest = {
|
|
|
758
822
|
*
|
|
759
823
|
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
|
|
760
824
|
* requests being processed per container instance.
|
|
825
|
+
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
|
|
826
|
+
* instance.
|
|
827
|
+
* - Memory_usage_threshold: Scale depending on the memory usage of a container
|
|
828
|
+
* instance.
|
|
761
829
|
*/
|
|
762
830
|
scalingOption?: ContainerScalingOption;
|
|
831
|
+
/** Health check configuration of the container. */
|
|
832
|
+
healthCheck?: ContainerHealthCheckSpec;
|
|
763
833
|
};
|
|
764
834
|
export type UpdateCronRequest = {
|
|
765
835
|
/**
|
|
@@ -792,6 +862,8 @@ export type UpdateNamespaceRequest = {
|
|
|
792
862
|
description?: string;
|
|
793
863
|
/** Secret environment variables of the namespace to update. */
|
|
794
864
|
secretEnvironmentVariables?: Secret[];
|
|
865
|
+
/** [ALPHA] Tags of the Serverless Container Namespace. */
|
|
866
|
+
tags?: string[];
|
|
795
867
|
};
|
|
796
868
|
export type UpdateTriggerRequest = {
|
|
797
869
|
/**
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ContainerHealthCheckSpec = {
|
|
4
|
+
failureThreshold: {
|
|
5
|
+
greaterThanOrEqual: 3,
|
|
6
|
+
lessThanOrEqual: 50
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
const ContainerHealthCheckSpecHTTPProbe = {
|
|
10
|
+
path: {
|
|
11
|
+
maxLength: 100,
|
|
12
|
+
minLength: 1
|
|
13
|
+
}
|
|
14
|
+
};
|
|
3
15
|
const ContainerScalingOption = {};
|
|
4
16
|
const CreateTriggerRequest = {
|
|
5
17
|
description: {
|
|
@@ -40,6 +52,8 @@ const UpdateTriggerRequest = {
|
|
|
40
52
|
minLength: 1
|
|
41
53
|
}
|
|
42
54
|
};
|
|
55
|
+
exports.ContainerHealthCheckSpec = ContainerHealthCheckSpec;
|
|
56
|
+
exports.ContainerHealthCheckSpecHTTPProbe = ContainerHealthCheckSpecHTTPProbe;
|
|
43
57
|
exports.ContainerScalingOption = ContainerScalingOption;
|
|
44
58
|
exports.CreateTriggerRequest = CreateTriggerRequest;
|
|
45
59
|
exports.CreateTriggerRequestMnqNatsClientConfig = CreateTriggerRequestMnqNatsClientConfig;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
export declare const ContainerHealthCheckSpec: {
|
|
2
|
+
failureThreshold: {
|
|
3
|
+
greaterThanOrEqual: number;
|
|
4
|
+
lessThanOrEqual: number;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const ContainerHealthCheckSpecHTTPProbe: {
|
|
8
|
+
path: {
|
|
9
|
+
maxLength: number;
|
|
10
|
+
minLength: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
1
13
|
export declare const ContainerScalingOption: {};
|
|
2
14
|
export declare const CreateTriggerRequest: {
|
|
3
15
|
description: {
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
const ContainerHealthCheckSpec = {
|
|
2
|
+
failureThreshold: {
|
|
3
|
+
greaterThanOrEqual: 3,
|
|
4
|
+
lessThanOrEqual: 50
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
const ContainerHealthCheckSpecHTTPProbe = {
|
|
8
|
+
path: {
|
|
9
|
+
maxLength: 100,
|
|
10
|
+
minLength: 1
|
|
11
|
+
}
|
|
12
|
+
};
|
|
1
13
|
const ContainerScalingOption = {};
|
|
2
14
|
const CreateTriggerRequest = {
|
|
3
15
|
description: {
|
|
@@ -39,6 +51,8 @@ const UpdateTriggerRequest = {
|
|
|
39
51
|
}
|
|
40
52
|
};
|
|
41
53
|
export {
|
|
54
|
+
ContainerHealthCheckSpec,
|
|
55
|
+
ContainerHealthCheckSpecHTTPProbe,
|
|
42
56
|
ContainerScalingOption,
|
|
43
57
|
CreateTriggerRequest,
|
|
44
58
|
CreateTriggerRequestMnqNatsClientConfig,
|
|
@@ -433,13 +433,13 @@ export interface GetBillingResponse {
|
|
|
433
433
|
*/
|
|
434
434
|
extraPipelinesCost?: Money;
|
|
435
435
|
/**
|
|
436
|
-
* Total amount of data egressed from the cache
|
|
437
|
-
* active subscription plan.
|
|
436
|
+
* Total amount of data egressed from the cache in gigabytes from the
|
|
437
|
+
* beginning of the month, included in the active subscription plan.
|
|
438
438
|
*/
|
|
439
439
|
currentPlanCacheUsage: number;
|
|
440
440
|
/**
|
|
441
|
-
* Total amount of data egressed from cache
|
|
442
|
-
* active subscription plan.
|
|
441
|
+
* Total amount of extra data egressed from cache in gigabytes from the
|
|
442
|
+
* beginning of the month, not included in the active subscription plan.
|
|
443
443
|
*/
|
|
444
444
|
extraCacheUsage: number;
|
|
445
445
|
/**
|
|
@@ -54,6 +54,7 @@ const unmarshalFunction = (data) => {
|
|
|
54
54
|
return {
|
|
55
55
|
buildMessage: data.build_message,
|
|
56
56
|
cpuLimit: data.cpu_limit,
|
|
57
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
57
58
|
description: data.description,
|
|
58
59
|
domainName: data.domain_name,
|
|
59
60
|
environmentVariables: data.environment_variables,
|
|
@@ -67,6 +68,7 @@ const unmarshalFunction = (data) => {
|
|
|
67
68
|
name: data.name,
|
|
68
69
|
namespaceId: data.namespace_id,
|
|
69
70
|
privacy: data.privacy,
|
|
71
|
+
readyAt: marshalling.unmarshalDate(data.ready_at),
|
|
70
72
|
region: data.region,
|
|
71
73
|
runtime: data.runtime,
|
|
72
74
|
runtimeMessage: data.runtime_message,
|
|
@@ -76,7 +78,8 @@ const unmarshalFunction = (data) => {
|
|
|
76
78
|
unmarshalSecretHashedValue
|
|
77
79
|
),
|
|
78
80
|
status: data.status,
|
|
79
|
-
timeout: data.timeout
|
|
81
|
+
timeout: data.timeout,
|
|
82
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
80
83
|
};
|
|
81
84
|
};
|
|
82
85
|
const unmarshalNamespace = (data) => {
|
|
@@ -86,6 +89,7 @@ const unmarshalNamespace = (data) => {
|
|
|
86
89
|
);
|
|
87
90
|
}
|
|
88
91
|
return {
|
|
92
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
89
93
|
description: data.description,
|
|
90
94
|
environmentVariables: data.environment_variables,
|
|
91
95
|
errorMessage: data.error_message,
|
|
@@ -100,7 +104,9 @@ const unmarshalNamespace = (data) => {
|
|
|
100
104
|
data.secret_environment_variables,
|
|
101
105
|
unmarshalSecretHashedValue
|
|
102
106
|
),
|
|
103
|
-
status: data.status
|
|
107
|
+
status: data.status,
|
|
108
|
+
tags: data.tags,
|
|
109
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
104
110
|
};
|
|
105
111
|
};
|
|
106
112
|
const unmarshalToken = (data) => {
|
|
@@ -336,7 +342,8 @@ const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
|
336
342
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
337
343
|
secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
|
|
338
344
|
(elt) => marshalSecret(elt)
|
|
339
|
-
) : void 0
|
|
345
|
+
) : void 0,
|
|
346
|
+
tags: request.tags
|
|
340
347
|
});
|
|
341
348
|
const marshalCreateTokenRequest = (request, defaults) => ({
|
|
342
349
|
description: request.description,
|
|
@@ -416,7 +423,8 @@ const marshalUpdateNamespaceRequest = (request, defaults) => ({
|
|
|
416
423
|
environment_variables: request.environmentVariables,
|
|
417
424
|
secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
|
|
418
425
|
(elt) => marshalSecret(elt)
|
|
419
|
-
) : void 0
|
|
426
|
+
) : void 0,
|
|
427
|
+
tags: request.tags
|
|
420
428
|
});
|
|
421
429
|
const marshalUpdateTriggerRequestSqsClientConfig = (request, defaults) => ({
|
|
422
430
|
access_key: request.accessKey,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import randomName from "@scaleway/random-name";
|
|
2
2
|
import { isJSONObject } from "../../../helpers/json.js";
|
|
3
|
-
import {
|
|
3
|
+
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from "../../../helpers/marshalling.js";
|
|
4
4
|
import "../../../vendor/base64/index.js";
|
|
5
5
|
const unmarshalCron = (data) => {
|
|
6
6
|
if (!isJSONObject(data)) {
|
|
@@ -52,6 +52,7 @@ const unmarshalFunction = (data) => {
|
|
|
52
52
|
return {
|
|
53
53
|
buildMessage: data.build_message,
|
|
54
54
|
cpuLimit: data.cpu_limit,
|
|
55
|
+
createdAt: unmarshalDate(data.created_at),
|
|
55
56
|
description: data.description,
|
|
56
57
|
domainName: data.domain_name,
|
|
57
58
|
environmentVariables: data.environment_variables,
|
|
@@ -65,6 +66,7 @@ const unmarshalFunction = (data) => {
|
|
|
65
66
|
name: data.name,
|
|
66
67
|
namespaceId: data.namespace_id,
|
|
67
68
|
privacy: data.privacy,
|
|
69
|
+
readyAt: unmarshalDate(data.ready_at),
|
|
68
70
|
region: data.region,
|
|
69
71
|
runtime: data.runtime,
|
|
70
72
|
runtimeMessage: data.runtime_message,
|
|
@@ -74,7 +76,8 @@ const unmarshalFunction = (data) => {
|
|
|
74
76
|
unmarshalSecretHashedValue
|
|
75
77
|
),
|
|
76
78
|
status: data.status,
|
|
77
|
-
timeout: data.timeout
|
|
79
|
+
timeout: data.timeout,
|
|
80
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
78
81
|
};
|
|
79
82
|
};
|
|
80
83
|
const unmarshalNamespace = (data) => {
|
|
@@ -84,6 +87,7 @@ const unmarshalNamespace = (data) => {
|
|
|
84
87
|
);
|
|
85
88
|
}
|
|
86
89
|
return {
|
|
90
|
+
createdAt: unmarshalDate(data.created_at),
|
|
87
91
|
description: data.description,
|
|
88
92
|
environmentVariables: data.environment_variables,
|
|
89
93
|
errorMessage: data.error_message,
|
|
@@ -98,7 +102,9 @@ const unmarshalNamespace = (data) => {
|
|
|
98
102
|
data.secret_environment_variables,
|
|
99
103
|
unmarshalSecretHashedValue
|
|
100
104
|
),
|
|
101
|
-
status: data.status
|
|
105
|
+
status: data.status,
|
|
106
|
+
tags: data.tags,
|
|
107
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
102
108
|
};
|
|
103
109
|
};
|
|
104
110
|
const unmarshalToken = (data) => {
|
|
@@ -334,7 +340,8 @@ const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
|
334
340
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
335
341
|
secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
|
|
336
342
|
(elt) => marshalSecret(elt)
|
|
337
|
-
) : void 0
|
|
343
|
+
) : void 0,
|
|
344
|
+
tags: request.tags
|
|
338
345
|
});
|
|
339
346
|
const marshalCreateTokenRequest = (request, defaults) => ({
|
|
340
347
|
description: request.description,
|
|
@@ -414,7 +421,8 @@ const marshalUpdateNamespaceRequest = (request, defaults) => ({
|
|
|
414
421
|
environment_variables: request.environmentVariables,
|
|
415
422
|
secret_environment_variables: request.secretEnvironmentVariables !== void 0 ? request.secretEnvironmentVariables.map(
|
|
416
423
|
(elt) => marshalSecret(elt)
|
|
417
|
-
) : void 0
|
|
424
|
+
) : void 0,
|
|
425
|
+
tags: request.tags
|
|
418
426
|
});
|
|
419
427
|
const marshalUpdateTriggerRequestSqsClientConfig = (request, defaults) => ({
|
|
420
428
|
access_key: request.accessKey,
|
|
@@ -173,6 +173,12 @@ export interface Function {
|
|
|
173
173
|
runtimeMessage: string;
|
|
174
174
|
/** Execution environment of the function. */
|
|
175
175
|
sandbox: FunctionSandbox;
|
|
176
|
+
/** Creation date of the function. */
|
|
177
|
+
createdAt?: Date;
|
|
178
|
+
/** Last update date of the function. */
|
|
179
|
+
updatedAt?: Date;
|
|
180
|
+
/** Last date when the function was successfully deployed and set to ready. */
|
|
181
|
+
readyAt?: Date;
|
|
176
182
|
}
|
|
177
183
|
export interface Namespace {
|
|
178
184
|
/** UUID of the namespace. */
|
|
@@ -199,6 +205,12 @@ export interface Namespace {
|
|
|
199
205
|
secretEnvironmentVariables: SecretHashedValue[];
|
|
200
206
|
/** Region in which the namespace is located. */
|
|
201
207
|
region: Region;
|
|
208
|
+
/** [ALPHA] List of tags applied to the Serverless Function Namespace. */
|
|
209
|
+
tags: string[];
|
|
210
|
+
/** Creation date of the namespace. */
|
|
211
|
+
createdAt?: Date;
|
|
212
|
+
/** Last update date of the namespace. */
|
|
213
|
+
updatedAt?: Date;
|
|
202
214
|
}
|
|
203
215
|
export interface Token {
|
|
204
216
|
/** UUID of the token. */
|
|
@@ -348,6 +360,8 @@ export type CreateNamespaceRequest = {
|
|
|
348
360
|
description?: string;
|
|
349
361
|
/** Secret environment variables of the namespace. */
|
|
350
362
|
secretEnvironmentVariables?: Secret[];
|
|
363
|
+
/** [ALPHA] Tags of the Serverless Function Namespace. */
|
|
364
|
+
tags?: string[];
|
|
351
365
|
};
|
|
352
366
|
export type CreateTokenRequest = {
|
|
353
367
|
/**
|
|
@@ -786,6 +800,8 @@ export type UpdateNamespaceRequest = {
|
|
|
786
800
|
description?: string;
|
|
787
801
|
/** Secret environment variables of the namespace. */
|
|
788
802
|
secretEnvironmentVariables?: Secret[];
|
|
803
|
+
/** [ALPHA] Tags of the Serverless Function Namespace. */
|
|
804
|
+
tags?: string[];
|
|
789
805
|
};
|
|
790
806
|
export type UpdateTriggerRequest = {
|
|
791
807
|
/**
|
|
@@ -196,6 +196,12 @@ class API extends api.API {
|
|
|
196
196
|
},
|
|
197
197
|
marshalling_gen.unmarshalUser
|
|
198
198
|
);
|
|
199
|
+
/**
|
|
200
|
+
* Update an user's password.
|
|
201
|
+
*
|
|
202
|
+
* @param request - The request {@link UpdateUserPasswordRequest}
|
|
203
|
+
* @returns A Promise of User
|
|
204
|
+
*/
|
|
199
205
|
updateUserPassword = (request) => this.client.fetch(
|
|
200
206
|
{
|
|
201
207
|
body: JSON.stringify(
|
|
@@ -207,6 +213,37 @@ class API extends api.API {
|
|
|
207
213
|
},
|
|
208
214
|
marshalling_gen.unmarshalUser
|
|
209
215
|
);
|
|
216
|
+
/**
|
|
217
|
+
* Lock a user. Lock a user. Note that a locked user cannot log in or use API
|
|
218
|
+
* keys until the locked status is removed.
|
|
219
|
+
*
|
|
220
|
+
* @param request - The request {@link LockUserRequest}
|
|
221
|
+
* @returns A Promise of User
|
|
222
|
+
*/
|
|
223
|
+
lockUser = (request) => this.client.fetch(
|
|
224
|
+
{
|
|
225
|
+
body: "{}",
|
|
226
|
+
headers: jsonContentHeaders,
|
|
227
|
+
method: "POST",
|
|
228
|
+
path: `/iam/v1alpha1/users/${marshalling.validatePathParam("userId", request.userId)}/lock`
|
|
229
|
+
},
|
|
230
|
+
marshalling_gen.unmarshalUser
|
|
231
|
+
);
|
|
232
|
+
/**
|
|
233
|
+
* Unlock a user.
|
|
234
|
+
*
|
|
235
|
+
* @param request - The request {@link UnlockUserRequest}
|
|
236
|
+
* @returns A Promise of User
|
|
237
|
+
*/
|
|
238
|
+
unlockUser = (request) => this.client.fetch(
|
|
239
|
+
{
|
|
240
|
+
body: "{}",
|
|
241
|
+
headers: jsonContentHeaders,
|
|
242
|
+
method: "POST",
|
|
243
|
+
path: `/iam/v1alpha1/users/${marshalling.validatePathParam("userId", request.userId)}/unlock`
|
|
244
|
+
},
|
|
245
|
+
marshalling_gen.unmarshalUser
|
|
246
|
+
);
|
|
210
247
|
pageOfListApplications = (request = {}) => this.client.fetch(
|
|
211
248
|
{
|
|
212
249
|
method: "GET",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
|
|
2
|
+
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, LockUserRequest, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
|
|
3
3
|
/**
|
|
4
4
|
* IAM API.
|
|
5
5
|
*
|
|
@@ -103,7 +103,28 @@ export declare class API extends ParentAPI {
|
|
|
103
103
|
* @returns A Promise of User
|
|
104
104
|
*/
|
|
105
105
|
createUser: (request?: Readonly<CreateUserRequest>) => Promise<User>;
|
|
106
|
+
/**
|
|
107
|
+
* Update an user's password.
|
|
108
|
+
*
|
|
109
|
+
* @param request - The request {@link UpdateUserPasswordRequest}
|
|
110
|
+
* @returns A Promise of User
|
|
111
|
+
*/
|
|
106
112
|
updateUserPassword: (request: Readonly<UpdateUserPasswordRequest>) => Promise<User>;
|
|
113
|
+
/**
|
|
114
|
+
* Lock a user. Lock a user. Note that a locked user cannot log in or use API
|
|
115
|
+
* keys until the locked status is removed.
|
|
116
|
+
*
|
|
117
|
+
* @param request - The request {@link LockUserRequest}
|
|
118
|
+
* @returns A Promise of User
|
|
119
|
+
*/
|
|
120
|
+
lockUser: (request: Readonly<LockUserRequest>) => Promise<User>;
|
|
121
|
+
/**
|
|
122
|
+
* Unlock a user.
|
|
123
|
+
*
|
|
124
|
+
* @param request - The request {@link UnlockUserRequest}
|
|
125
|
+
* @returns A Promise of User
|
|
126
|
+
*/
|
|
127
|
+
unlockUser: (request: Readonly<UnlockUserRequest>) => Promise<User>;
|
|
107
128
|
protected pageOfListApplications: (request?: Readonly<ListApplicationsRequest>) => Promise<ListApplicationsResponse>;
|
|
108
129
|
/**
|
|
109
130
|
* List applications of an Organization. List the applications of an
|
|
@@ -194,6 +194,12 @@ class API extends API$1 {
|
|
|
194
194
|
},
|
|
195
195
|
unmarshalUser
|
|
196
196
|
);
|
|
197
|
+
/**
|
|
198
|
+
* Update an user's password.
|
|
199
|
+
*
|
|
200
|
+
* @param request - The request {@link UpdateUserPasswordRequest}
|
|
201
|
+
* @returns A Promise of User
|
|
202
|
+
*/
|
|
197
203
|
updateUserPassword = (request) => this.client.fetch(
|
|
198
204
|
{
|
|
199
205
|
body: JSON.stringify(
|
|
@@ -205,6 +211,37 @@ class API extends API$1 {
|
|
|
205
211
|
},
|
|
206
212
|
unmarshalUser
|
|
207
213
|
);
|
|
214
|
+
/**
|
|
215
|
+
* Lock a user. Lock a user. Note that a locked user cannot log in or use API
|
|
216
|
+
* keys until the locked status is removed.
|
|
217
|
+
*
|
|
218
|
+
* @param request - The request {@link LockUserRequest}
|
|
219
|
+
* @returns A Promise of User
|
|
220
|
+
*/
|
|
221
|
+
lockUser = (request) => this.client.fetch(
|
|
222
|
+
{
|
|
223
|
+
body: "{}",
|
|
224
|
+
headers: jsonContentHeaders,
|
|
225
|
+
method: "POST",
|
|
226
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/lock`
|
|
227
|
+
},
|
|
228
|
+
unmarshalUser
|
|
229
|
+
);
|
|
230
|
+
/**
|
|
231
|
+
* Unlock a user.
|
|
232
|
+
*
|
|
233
|
+
* @param request - The request {@link UnlockUserRequest}
|
|
234
|
+
* @returns A Promise of User
|
|
235
|
+
*/
|
|
236
|
+
unlockUser = (request) => this.client.fetch(
|
|
237
|
+
{
|
|
238
|
+
body: "{}",
|
|
239
|
+
headers: jsonContentHeaders,
|
|
240
|
+
method: "POST",
|
|
241
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/unlock`
|
|
242
|
+
},
|
|
243
|
+
unmarshalUser
|
|
244
|
+
);
|
|
208
245
|
pageOfListApplications = (request = {}) => this.client.fetch(
|
|
209
246
|
{
|
|
210
247
|
method: "GET",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
|
-
export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
|
|
2
|
+
export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LockUserRequest, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
|
|
3
3
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -817,6 +817,9 @@ export interface ListUsersResponse {
|
|
|
817
817
|
/** Total count of users. */
|
|
818
818
|
totalCount: number;
|
|
819
819
|
}
|
|
820
|
+
export type LockUserRequest = {
|
|
821
|
+
userId: string;
|
|
822
|
+
};
|
|
820
823
|
export type RemoveGroupMemberRequest = {
|
|
821
824
|
/** ID of the group. */
|
|
822
825
|
groupId: string;
|
|
@@ -848,6 +851,9 @@ export interface SetRulesResponse {
|
|
|
848
851
|
/** Rules of the policy. */
|
|
849
852
|
rules: Rule[];
|
|
850
853
|
}
|
|
854
|
+
export type UnlockUserRequest = {
|
|
855
|
+
userId: string;
|
|
856
|
+
};
|
|
851
857
|
export type UpdateAPIKeyRequest = {
|
|
852
858
|
/** Access key to update. */
|
|
853
859
|
accessKey: string;
|
|
@@ -925,8 +931,14 @@ export type UpdateSSHKeyRequest = {
|
|
|
925
931
|
disabled?: boolean;
|
|
926
932
|
};
|
|
927
933
|
export type UpdateUserPasswordRequest = {
|
|
934
|
+
/** ID of the user to update. */
|
|
928
935
|
userId: string;
|
|
936
|
+
/** The new password. */
|
|
929
937
|
password: string;
|
|
938
|
+
/**
|
|
939
|
+
* Whether or not to send an email alerting the user their password has
|
|
940
|
+
* changed.
|
|
941
|
+
*/
|
|
930
942
|
sendEmail: boolean;
|
|
931
943
|
};
|
|
932
944
|
export type UpdateUserRequest = {
|
|
@@ -131,7 +131,7 @@ export interface Model {
|
|
|
131
131
|
tags: string[];
|
|
132
132
|
/** Purpose of the model. */
|
|
133
133
|
description: string;
|
|
134
|
-
/** Defines whether the model has an end user
|
|
134
|
+
/** Defines whether the model has an end user license agreement. */
|
|
135
135
|
hasEula: boolean;
|
|
136
136
|
/** Creation date of the model. */
|
|
137
137
|
createdAt?: Date;
|
|
@@ -140,7 +140,7 @@ export interface Model {
|
|
|
140
140
|
/** Region of the model. */
|
|
141
141
|
region: Region;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Object Storage URL pointing to the model source weight.
|
|
144
144
|
*
|
|
145
145
|
* One-of ('source'): at most one of 's3Model' could be set.
|
|
146
146
|
*/
|
|
@@ -260,7 +260,7 @@ export type DeleteEndpointRequest = {
|
|
|
260
260
|
endpointId: string;
|
|
261
261
|
};
|
|
262
262
|
export interface Eula {
|
|
263
|
-
/** Content of the end user
|
|
263
|
+
/** Content of the end user license agreement. */
|
|
264
264
|
content: string;
|
|
265
265
|
}
|
|
266
266
|
export type GetDeploymentCertificateRequest = {
|
|
@@ -443,8 +443,8 @@ class API extends api.API {
|
|
|
443
443
|
path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${marshalling.validatePathParam("snapshotId", request.snapshotId)}`
|
|
444
444
|
});
|
|
445
445
|
/**
|
|
446
|
-
* Export a snapshot. Export a snapshot to a specified
|
|
447
|
-
* region.
|
|
446
|
+
* Export a snapshot. Export a snapshot to a specified Object Storage bucket
|
|
447
|
+
* in the same region.
|
|
448
448
|
*
|
|
449
449
|
* @param request - The request {@link ExportSnapshotRequest}
|
|
450
450
|
* @returns A Promise of ExportSnapshotResponse
|
|
@@ -185,8 +185,8 @@ export declare class API extends ParentAPI {
|
|
|
185
185
|
*/
|
|
186
186
|
deleteSnapshot: (request: Readonly<DeleteSnapshotRequest>) => Promise<void>;
|
|
187
187
|
/**
|
|
188
|
-
* Export a snapshot. Export a snapshot to a specified
|
|
189
|
-
* region.
|
|
188
|
+
* Export a snapshot. Export a snapshot to a specified Object Storage bucket
|
|
189
|
+
* in the same region.
|
|
190
190
|
*
|
|
191
191
|
* @param request - The request {@link ExportSnapshotRequest}
|
|
192
192
|
* @returns A Promise of ExportSnapshotResponse
|
|
@@ -441,8 +441,8 @@ class API extends API$1 {
|
|
|
441
441
|
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
|
|
442
442
|
});
|
|
443
443
|
/**
|
|
444
|
-
* Export a snapshot. Export a snapshot to a specified
|
|
445
|
-
* region.
|
|
444
|
+
* Export a snapshot. Export a snapshot to a specified Object Storage bucket
|
|
445
|
+
* in the same region.
|
|
446
446
|
*
|
|
447
447
|
* @param request - The request {@link ExportSnapshotRequest}
|
|
448
448
|
* @returns A Promise of ExportSnapshotResponse
|
|
@@ -1048,9 +1048,9 @@ export type ExportSnapshotRequest = {
|
|
|
1048
1048
|
zone?: Zone;
|
|
1049
1049
|
/** Snapshot ID. */
|
|
1050
1050
|
snapshotId: string;
|
|
1051
|
-
/**
|
|
1051
|
+
/** Object Storage bucket name. */
|
|
1052
1052
|
bucket: string;
|
|
1053
|
-
/**
|
|
1053
|
+
/** Object key. */
|
|
1054
1054
|
key: string;
|
|
1055
1055
|
};
|
|
1056
1056
|
export interface ExportSnapshotResponse {
|