@scaleway/sdk 2.70.0 → 2.71.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 +3 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
- package/dist/api/baremetal/v1/api.gen.cjs +3 -1
- package/dist/api/baremetal/v1/api.gen.js +3 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
- package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
- package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
- package/dist/api/block/v1/api.gen.cjs +6 -2
- package/dist/api/block/v1/api.gen.js +6 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/block/v1alpha1/api.gen.js +6 -2
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
- package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
- package/dist/api/container/v1beta1/api.gen.cjs +18 -6
- package/dist/api/container/v1beta1/api.gen.js +18 -6
- package/dist/api/dedibox/v1/api.gen.cjs +9 -3
- package/dist/api/dedibox/v1/api.gen.js +9 -3
- package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
- package/dist/api/domain/v2beta1/api.gen.js +3 -1
- package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
- package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/function/v1beta1/api.gen.cjs +18 -6
- package/dist/api/function/v1beta1/api.gen.js +18 -6
- package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +12 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +12 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +24 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +15 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +14 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +15 -0
- package/dist/api/inference/v1/api.gen.cjs +6 -2
- package/dist/api/inference/v1/api.gen.js +6 -2
- package/dist/api/inference/v1/marshalling.gen.cjs +4 -4
- package/dist/api/inference/v1/marshalling.gen.js +4 -4
- package/dist/api/inference/v1/types.gen.d.ts +32 -30
- package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
- package/dist/api/inference/v1beta1/api.gen.js +3 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +0 -1
- package/dist/api/instance/v1/marshalling.gen.js +0 -1
- package/dist/api/instance/v1/types.gen.d.ts +0 -2
- package/dist/api/k8s/v1/api.gen.cjs +3 -1
- package/dist/api/k8s/v1/api.gen.js +3 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/types.gen.d.ts +5 -0
- package/dist/api/lb/v1/types.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
- package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
- package/dist/api/rdb/v1/api.gen.cjs +6 -2
- package/dist/api/rdb/v1/api.gen.js +6 -2
- package/dist/api/redis/v1/api.gen.cjs +3 -1
- package/dist/api/redis/v1/api.gen.js +3 -1
- package/dist/api/registry/v1/api.gen.cjs +9 -3
- package/dist/api/registry/v1/api.gen.js +9 -3
- package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
- package/dist/api/secret/v1beta1/api.gen.js +32 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
- package/dist/api/vpc/v2/api.gen.cjs +33 -0
- package/dist/api/vpc/v2/api.gen.d.ts +17 -1
- package/dist/api/vpc/v2/api.gen.js +34 -1
- package/dist/api/vpc/v2/index.gen.d.ts +1 -1
- package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
- package/dist/api/vpc/v2/marshalling.gen.js +59 -0
- package/dist/api/vpc/v2/types.gen.d.ts +80 -0
- package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
- package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
- package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
- package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
- package/dist/api/vpcgw/v1/api.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
- package/dist/api/vpcgw/v2/api.gen.js +3 -1
- package/dist/api/webhosting/v1/api.gen.cjs +6 -2
- package/dist/api/webhosting/v1/api.gen.js +6 -2
- package/dist/api/webhosting/v1/marshalling.gen.cjs +17 -14
- package/dist/api/webhosting/v1/marshalling.gen.js +17 -14
- package/dist/api/webhosting/v1/types.gen.d.ts +13 -3
- 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
|
@@ -77,8 +77,7 @@ const unmarshalDeploymentQuantization = (data) => {
|
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
|
-
bits: data.bits
|
|
81
|
-
enabled: data.enabled
|
|
80
|
+
bits: data.bits
|
|
82
81
|
};
|
|
83
82
|
};
|
|
84
83
|
const unmarshalDeployment = (data) => {
|
|
@@ -192,8 +191,7 @@ const marshalEndpointPrivateNetworkDetails = (request, defaults) => ({
|
|
|
192
191
|
});
|
|
193
192
|
const marshalEndpointPublicNetworkDetails = (request, defaults) => ({});
|
|
194
193
|
const marshalDeploymentQuantization = (request, defaults) => ({
|
|
195
|
-
bits: request.bits
|
|
196
|
-
enabled: request.enabled
|
|
194
|
+
bits: request.bits
|
|
197
195
|
});
|
|
198
196
|
const marshalEndpointSpec = (request, defaults) => ({
|
|
199
197
|
disable_auth: request.disableAuth,
|
|
@@ -238,7 +236,9 @@ const marshalCreateModelRequest = (request, defaults) => ({
|
|
|
238
236
|
const marshalUpdateDeploymentRequest = (request, defaults) => ({
|
|
239
237
|
max_size: request.maxSize,
|
|
240
238
|
min_size: request.minSize,
|
|
239
|
+
model_id: request.modelId,
|
|
241
240
|
name: request.name,
|
|
241
|
+
quantization: request.quantization !== void 0 ? marshalDeploymentQuantization(request.quantization) : void 0,
|
|
242
242
|
tags: request.tags
|
|
243
243
|
});
|
|
244
244
|
const marshalUpdateEndpointRequest = (request, defaults) => ({
|
|
@@ -27,8 +27,6 @@ export interface ModelSupportedNode {
|
|
|
27
27
|
quantizations: ModelSupportedQuantization[];
|
|
28
28
|
}
|
|
29
29
|
export interface DeploymentQuantization {
|
|
30
|
-
/** Whether to enable quantization for this deployment. */
|
|
31
|
-
enabled: boolean;
|
|
32
30
|
/**
|
|
33
31
|
* The number of bits each model parameter should be quantized to. The
|
|
34
32
|
* quantization method is chosen based on this value.
|
|
@@ -184,7 +182,7 @@ export interface NodeType {
|
|
|
184
182
|
/** Region of the node type. */
|
|
185
183
|
region: ScwRegion;
|
|
186
184
|
}
|
|
187
|
-
export
|
|
185
|
+
export type CreateDeploymentRequest = {
|
|
188
186
|
/**
|
|
189
187
|
* Region to target. If none is passed will use default region from the
|
|
190
188
|
* config.
|
|
@@ -213,8 +211,8 @@ export interface CreateDeploymentRequest {
|
|
|
213
211
|
endpoints: EndpointSpec[];
|
|
214
212
|
/** Quantization settings to apply to this deployment. */
|
|
215
213
|
quantization?: DeploymentQuantization;
|
|
216
|
-
}
|
|
217
|
-
export
|
|
214
|
+
};
|
|
215
|
+
export type CreateEndpointRequest = {
|
|
218
216
|
/**
|
|
219
217
|
* Region to target. If none is passed will use default region from the
|
|
220
218
|
* config.
|
|
@@ -224,8 +222,8 @@ export interface CreateEndpointRequest {
|
|
|
224
222
|
deploymentId: string;
|
|
225
223
|
/** Specification of the endpoint. */
|
|
226
224
|
endpoint: EndpointSpec;
|
|
227
|
-
}
|
|
228
|
-
export
|
|
225
|
+
};
|
|
226
|
+
export type CreateModelRequest = {
|
|
229
227
|
/**
|
|
230
228
|
* Region to target. If none is passed will use default region from the
|
|
231
229
|
* config.
|
|
@@ -237,8 +235,8 @@ export interface CreateModelRequest {
|
|
|
237
235
|
projectId?: string;
|
|
238
236
|
/** Where to import the model from. */
|
|
239
237
|
source: ModelSource;
|
|
240
|
-
}
|
|
241
|
-
export
|
|
238
|
+
};
|
|
239
|
+
export type DeleteDeploymentRequest = {
|
|
242
240
|
/**
|
|
243
241
|
* Region to target. If none is passed will use default region from the
|
|
244
242
|
* config.
|
|
@@ -246,8 +244,8 @@ export interface DeleteDeploymentRequest {
|
|
|
246
244
|
region?: ScwRegion;
|
|
247
245
|
/** ID of the deployment to delete. */
|
|
248
246
|
deploymentId: string;
|
|
249
|
-
}
|
|
250
|
-
export
|
|
247
|
+
};
|
|
248
|
+
export type DeleteEndpointRequest = {
|
|
251
249
|
/**
|
|
252
250
|
* Region to target. If none is passed will use default region from the
|
|
253
251
|
* config.
|
|
@@ -255,8 +253,8 @@ export interface DeleteEndpointRequest {
|
|
|
255
253
|
region?: ScwRegion;
|
|
256
254
|
/** ID of the endpoint to delete. */
|
|
257
255
|
endpointId: string;
|
|
258
|
-
}
|
|
259
|
-
export
|
|
256
|
+
};
|
|
257
|
+
export type DeleteModelRequest = {
|
|
260
258
|
/**
|
|
261
259
|
* Region to target. If none is passed will use default region from the
|
|
262
260
|
* config.
|
|
@@ -264,16 +262,16 @@ export interface DeleteModelRequest {
|
|
|
264
262
|
region?: ScwRegion;
|
|
265
263
|
/** ID of the model to delete. */
|
|
266
264
|
modelId: string;
|
|
267
|
-
}
|
|
268
|
-
export
|
|
265
|
+
};
|
|
266
|
+
export type GetDeploymentCertificateRequest = {
|
|
269
267
|
/**
|
|
270
268
|
* Region to target. If none is passed will use default region from the
|
|
271
269
|
* config.
|
|
272
270
|
*/
|
|
273
271
|
region?: ScwRegion;
|
|
274
272
|
deploymentId: string;
|
|
275
|
-
}
|
|
276
|
-
export
|
|
273
|
+
};
|
|
274
|
+
export type GetDeploymentRequest = {
|
|
277
275
|
/**
|
|
278
276
|
* Region to target. If none is passed will use default region from the
|
|
279
277
|
* config.
|
|
@@ -281,8 +279,8 @@ export interface GetDeploymentRequest {
|
|
|
281
279
|
region?: ScwRegion;
|
|
282
280
|
/** ID of the deployment to get. */
|
|
283
281
|
deploymentId: string;
|
|
284
|
-
}
|
|
285
|
-
export
|
|
282
|
+
};
|
|
283
|
+
export type GetModelRequest = {
|
|
286
284
|
/**
|
|
287
285
|
* Region to target. If none is passed will use default region from the
|
|
288
286
|
* config.
|
|
@@ -290,8 +288,8 @@ export interface GetModelRequest {
|
|
|
290
288
|
region?: ScwRegion;
|
|
291
289
|
/** ID of the model to get. */
|
|
292
290
|
modelId: string;
|
|
293
|
-
}
|
|
294
|
-
export
|
|
291
|
+
};
|
|
292
|
+
export type ListDeploymentsRequest = {
|
|
295
293
|
/**
|
|
296
294
|
* Region to target. If none is passed will use default region from the
|
|
297
295
|
* config.
|
|
@@ -311,14 +309,14 @@ export interface ListDeploymentsRequest {
|
|
|
311
309
|
name?: string;
|
|
312
310
|
/** Filter by tags. */
|
|
313
311
|
tags?: string[];
|
|
314
|
-
}
|
|
312
|
+
};
|
|
315
313
|
export interface ListDeploymentsResponse {
|
|
316
314
|
/** List of deployments on the current page. */
|
|
317
315
|
deployments: Deployment[];
|
|
318
316
|
/** Total number of deployments. */
|
|
319
317
|
totalCount: number;
|
|
320
318
|
}
|
|
321
|
-
export
|
|
319
|
+
export type ListModelsRequest = {
|
|
322
320
|
/**
|
|
323
321
|
* Region to target. If none is passed will use default region from the
|
|
324
322
|
* config.
|
|
@@ -336,14 +334,14 @@ export interface ListModelsRequest {
|
|
|
336
334
|
name?: string;
|
|
337
335
|
/** Filter by tags. */
|
|
338
336
|
tags?: string[];
|
|
339
|
-
}
|
|
337
|
+
};
|
|
340
338
|
export interface ListModelsResponse {
|
|
341
339
|
/** List of models on the current page. */
|
|
342
340
|
models: Model[];
|
|
343
341
|
/** Total number of models. */
|
|
344
342
|
totalCount: number;
|
|
345
343
|
}
|
|
346
|
-
export
|
|
344
|
+
export type ListNodeTypesRequest = {
|
|
347
345
|
/**
|
|
348
346
|
* Region to target. If none is passed will use default region from the
|
|
349
347
|
* config.
|
|
@@ -355,14 +353,14 @@ export interface ListNodeTypesRequest {
|
|
|
355
353
|
pageSize?: number;
|
|
356
354
|
/** Include disabled node types in the response. */
|
|
357
355
|
includeDisabledTypes: boolean;
|
|
358
|
-
}
|
|
356
|
+
};
|
|
359
357
|
export interface ListNodeTypesResponse {
|
|
360
358
|
/** List of node types. */
|
|
361
359
|
nodeTypes: NodeType[];
|
|
362
360
|
/** Total number of node types. */
|
|
363
361
|
totalCount: number;
|
|
364
362
|
}
|
|
365
|
-
export
|
|
363
|
+
export type UpdateDeploymentRequest = {
|
|
366
364
|
/**
|
|
367
365
|
* Region to target. If none is passed will use default region from the
|
|
368
366
|
* config.
|
|
@@ -378,8 +376,12 @@ export interface UpdateDeploymentRequest {
|
|
|
378
376
|
minSize?: number;
|
|
379
377
|
/** Defines the new maximum size of the pool. */
|
|
380
378
|
maxSize?: number;
|
|
381
|
-
|
|
382
|
-
|
|
379
|
+
/** Id of the model to set to the deployment. */
|
|
380
|
+
modelId?: string;
|
|
381
|
+
/** Quantization to use to the deployment. */
|
|
382
|
+
quantization?: DeploymentQuantization;
|
|
383
|
+
};
|
|
384
|
+
export type UpdateEndpointRequest = {
|
|
383
385
|
/**
|
|
384
386
|
* Region to target. If none is passed will use default region from the
|
|
385
387
|
* config.
|
|
@@ -392,4 +394,4 @@ export interface UpdateEndpointRequest {
|
|
|
392
394
|
* this field to true, the authentication will be disabled.
|
|
393
395
|
*/
|
|
394
396
|
disableAuth?: boolean;
|
|
395
|
-
}
|
|
397
|
+
};
|
|
@@ -60,7 +60,9 @@ class API extends api.API {
|
|
|
60
60
|
* @returns A Promise of Deployment
|
|
61
61
|
*/
|
|
62
62
|
waitForDeployment = (request, options) => intervalRetrier.waitForResource(
|
|
63
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
63
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
64
|
+
!content_gen.DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
|
|
65
|
+
)),
|
|
64
66
|
this.getDeployment,
|
|
65
67
|
request,
|
|
66
68
|
options
|
|
@@ -58,7 +58,9 @@ class API extends API$1 {
|
|
|
58
58
|
* @returns A Promise of Deployment
|
|
59
59
|
*/
|
|
60
60
|
waitForDeployment = (request, options) => waitForResource(
|
|
61
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
61
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
62
|
+
!DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
|
|
63
|
+
)),
|
|
62
64
|
this.getDeployment,
|
|
63
65
|
request,
|
|
64
66
|
options
|
|
@@ -856,7 +856,6 @@ const unmarshalServerType = (data) => {
|
|
|
856
856
|
return {
|
|
857
857
|
altNames: data.alt_names,
|
|
858
858
|
arch: data.arch,
|
|
859
|
-
baremetal: data.baremetal,
|
|
860
859
|
blockBandwidth: data.block_bandwidth,
|
|
861
860
|
capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
|
|
862
861
|
endOfService: data.end_of_service,
|
|
@@ -854,7 +854,6 @@ const unmarshalServerType = (data) => {
|
|
|
854
854
|
return {
|
|
855
855
|
altNames: data.alt_names,
|
|
856
856
|
arch: data.arch,
|
|
857
|
-
baremetal: data.baremetal,
|
|
858
857
|
blockBandwidth: data.block_bandwidth,
|
|
859
858
|
capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
|
|
860
859
|
endOfService: data.end_of_service,
|
|
@@ -557,8 +557,6 @@ export interface ServerType {
|
|
|
557
557
|
gpuInfo?: ServerTypeGPUInfo;
|
|
558
558
|
/** CPU architecture. */
|
|
559
559
|
arch: Arch;
|
|
560
|
-
/** True if it is a baremetal Instance. */
|
|
561
|
-
baremetal: boolean;
|
|
562
560
|
/** Network available for the Instance. */
|
|
563
561
|
network?: ServerTypeNetwork;
|
|
564
562
|
/** Capabilities. */
|
|
@@ -83,7 +83,9 @@ class API extends api.API {
|
|
|
83
83
|
* @returns A Promise of Cluster
|
|
84
84
|
*/
|
|
85
85
|
waitForCluster = (request, options) => intervalRetrier.waitForResource(
|
|
86
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
86
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
87
|
+
!content_gen.CLUSTER_TRANSIENT_STATUSES.includes(res.status)
|
|
88
|
+
)),
|
|
87
89
|
this.getCluster,
|
|
88
90
|
request,
|
|
89
91
|
options
|
|
@@ -81,7 +81,9 @@ class API extends API$1 {
|
|
|
81
81
|
* @returns A Promise of Cluster
|
|
82
82
|
*/
|
|
83
83
|
waitForCluster = (request, options) => waitForResource(
|
|
84
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
84
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
85
|
+
!CLUSTER_TRANSIENT_STATUSES.includes(res.status)
|
|
86
|
+
)),
|
|
85
87
|
this.getCluster,
|
|
86
88
|
request,
|
|
87
89
|
options
|
|
@@ -140,6 +140,7 @@ const unmarshalCluster = (data) => {
|
|
|
140
140
|
description: data.description,
|
|
141
141
|
dnsWildcard: data.dns_wildcard,
|
|
142
142
|
featureGates: data.feature_gates,
|
|
143
|
+
iamNodesGroupId: data.iam_nodes_group_id,
|
|
143
144
|
id: data.id,
|
|
144
145
|
name: data.name,
|
|
145
146
|
openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
|
|
@@ -138,6 +138,7 @@ const unmarshalCluster = (data) => {
|
|
|
138
138
|
description: data.description,
|
|
139
139
|
dnsWildcard: data.dns_wildcard,
|
|
140
140
|
featureGates: data.feature_gates,
|
|
141
|
+
iamNodesGroupId: data.iam_nodes_group_id,
|
|
141
142
|
id: data.id,
|
|
142
143
|
name: data.name,
|
|
143
144
|
openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
|
|
@@ -493,6 +493,11 @@ export interface Cluster {
|
|
|
493
493
|
sbsCsiEnabled?: boolean;
|
|
494
494
|
/** @deprecated Defines whether ACL is available on the cluster. */
|
|
495
495
|
aclAvailable?: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* IAM group that nodes are members of (this field might be empty during early
|
|
498
|
+
* stage of cluster creation).
|
|
499
|
+
*/
|
|
500
|
+
iamNodesGroupId: string;
|
|
496
501
|
}
|
|
497
502
|
export interface Node {
|
|
498
503
|
/** Node ID. */
|
|
@@ -35,7 +35,7 @@ export interface SubscriberWebhookConfig {
|
|
|
35
35
|
uri: string;
|
|
36
36
|
}
|
|
37
37
|
export interface HealthCheckHttpConfig {
|
|
38
|
-
/** The HTTP
|
|
38
|
+
/** The HTTP path to use when performing a health check on backend servers. */
|
|
39
39
|
uri: string;
|
|
40
40
|
/** The HTTP method used when performing a health check on backend servers. */
|
|
41
41
|
method: string;
|
|
@@ -51,7 +51,7 @@ export interface HealthCheckHttpConfig {
|
|
|
51
51
|
hostHeader: string;
|
|
52
52
|
}
|
|
53
53
|
export interface HealthCheckHttpsConfig {
|
|
54
|
-
/** The HTTP
|
|
54
|
+
/** The HTTP path to use when performing a health check on backend servers. */
|
|
55
55
|
uri: string;
|
|
56
56
|
/** The HTTP method used when performing a health check on backend servers. */
|
|
57
57
|
method: string;
|
|
@@ -477,7 +477,7 @@ export interface RouteMatch {
|
|
|
477
477
|
*/
|
|
478
478
|
sni?: string;
|
|
479
479
|
/**
|
|
480
|
-
* Value to match in the HTTP Host request header from an incoming
|
|
480
|
+
* Value to match in the HTTP Host request header from an incoming request.
|
|
481
481
|
* This field should be set for routes on HTTP Load Balancers.
|
|
482
482
|
*
|
|
483
483
|
* One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set.
|
|
@@ -113,7 +113,9 @@ class API extends api.API {
|
|
|
113
113
|
* @returns A Promise of Instance
|
|
114
114
|
*/
|
|
115
115
|
waitForInstance = (request, options) => intervalRetrier.waitForResource(
|
|
116
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
116
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
117
|
+
!content_gen.INSTANCE_TRANSIENT_STATUSES.includes(res.status)
|
|
118
|
+
)),
|
|
117
119
|
this.getInstance,
|
|
118
120
|
request,
|
|
119
121
|
options
|
|
@@ -243,7 +245,9 @@ class API extends api.API {
|
|
|
243
245
|
* @returns A Promise of Snapshot
|
|
244
246
|
*/
|
|
245
247
|
waitForSnapshot = (request, options) => intervalRetrier.waitForResource(
|
|
246
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
248
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
249
|
+
!content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
|
|
250
|
+
)),
|
|
247
251
|
this.getSnapshot,
|
|
248
252
|
request,
|
|
249
253
|
options
|
|
@@ -111,7 +111,9 @@ class API extends API$1 {
|
|
|
111
111
|
* @returns A Promise of Instance
|
|
112
112
|
*/
|
|
113
113
|
waitForInstance = (request, options) => waitForResource(
|
|
114
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
114
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
115
|
+
!INSTANCE_TRANSIENT_STATUSES.includes(res.status)
|
|
116
|
+
)),
|
|
115
117
|
this.getInstance,
|
|
116
118
|
request,
|
|
117
119
|
options
|
|
@@ -241,7 +243,9 @@ class API extends API$1 {
|
|
|
241
243
|
* @returns A Promise of Snapshot
|
|
242
244
|
*/
|
|
243
245
|
waitForSnapshot = (request, options) => waitForResource(
|
|
244
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
246
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
247
|
+
!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
|
|
248
|
+
)),
|
|
245
249
|
this.getSnapshot,
|
|
246
250
|
request,
|
|
247
251
|
options
|
|
@@ -230,7 +230,9 @@ class API extends api.API {
|
|
|
230
230
|
* @returns A Promise of Session
|
|
231
231
|
*/
|
|
232
232
|
waitForSession = (request, options) => intervalRetrier.waitForResource(
|
|
233
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
233
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
234
|
+
!content_gen.SESSION_TRANSIENT_STATUSES.includes(res.status)
|
|
235
|
+
)),
|
|
234
236
|
this.getSession,
|
|
235
237
|
request,
|
|
236
238
|
options
|
|
@@ -380,7 +382,9 @@ class API extends api.API {
|
|
|
380
382
|
* @returns A Promise of Process
|
|
381
383
|
*/
|
|
382
384
|
waitForProcess = (request, options) => intervalRetrier.waitForResource(
|
|
383
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
385
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
386
|
+
!content_gen.PROCESS_TRANSIENT_STATUSES.includes(res.status)
|
|
387
|
+
)),
|
|
384
388
|
this.getProcess,
|
|
385
389
|
request,
|
|
386
390
|
options
|
|
@@ -228,7 +228,9 @@ class API extends API$1 {
|
|
|
228
228
|
* @returns A Promise of Session
|
|
229
229
|
*/
|
|
230
230
|
waitForSession = (request, options) => waitForResource(
|
|
231
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
231
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
232
|
+
!SESSION_TRANSIENT_STATUSES.includes(res.status)
|
|
233
|
+
)),
|
|
232
234
|
this.getSession,
|
|
233
235
|
request,
|
|
234
236
|
options
|
|
@@ -378,7 +380,9 @@ class API extends API$1 {
|
|
|
378
380
|
* @returns A Promise of Process
|
|
379
381
|
*/
|
|
380
382
|
waitForProcess = (request, options) => waitForResource(
|
|
381
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
383
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
384
|
+
!PROCESS_TRANSIENT_STATUSES.includes(res.status)
|
|
385
|
+
)),
|
|
382
386
|
this.getProcess,
|
|
383
387
|
request,
|
|
384
388
|
options
|
|
@@ -292,7 +292,9 @@ class API extends api.API {
|
|
|
292
292
|
* @returns A Promise of Instance
|
|
293
293
|
*/
|
|
294
294
|
waitForInstance = (request, options) => intervalRetrier.waitForResource(
|
|
295
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
295
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
296
|
+
!content_gen.INSTANCE_TRANSIENT_STATUSES.includes(res.status)
|
|
297
|
+
)),
|
|
296
298
|
this.getInstance,
|
|
297
299
|
request,
|
|
298
300
|
options
|
|
@@ -1026,7 +1028,9 @@ class API extends api.API {
|
|
|
1026
1028
|
* @returns A Promise of Snapshot
|
|
1027
1029
|
*/
|
|
1028
1030
|
waitForSnapshot = (request, options) => intervalRetrier.waitForResource(
|
|
1029
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
1031
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
1032
|
+
!content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
|
|
1033
|
+
)),
|
|
1030
1034
|
this.getSnapshot,
|
|
1031
1035
|
request,
|
|
1032
1036
|
options
|
|
@@ -290,7 +290,9 @@ class API extends API$1 {
|
|
|
290
290
|
* @returns A Promise of Instance
|
|
291
291
|
*/
|
|
292
292
|
waitForInstance = (request, options) => waitForResource(
|
|
293
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
293
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
294
|
+
!INSTANCE_TRANSIENT_STATUSES.includes(res.status)
|
|
295
|
+
)),
|
|
294
296
|
this.getInstance,
|
|
295
297
|
request,
|
|
296
298
|
options
|
|
@@ -1024,7 +1026,9 @@ class API extends API$1 {
|
|
|
1024
1026
|
* @returns A Promise of Snapshot
|
|
1025
1027
|
*/
|
|
1026
1028
|
waitForSnapshot = (request, options) => waitForResource(
|
|
1027
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
1029
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
1030
|
+
!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
|
|
1031
|
+
)),
|
|
1028
1032
|
this.getSnapshot,
|
|
1029
1033
|
request,
|
|
1030
1034
|
options
|
|
@@ -84,7 +84,9 @@ class API extends api.API {
|
|
|
84
84
|
* @returns A Promise of Cluster
|
|
85
85
|
*/
|
|
86
86
|
waitForCluster = (request, options) => intervalRetrier.waitForResource(
|
|
87
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
87
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
88
|
+
!content_gen.CLUSTER_TRANSIENT_STATUSES.includes(res.status)
|
|
89
|
+
)),
|
|
88
90
|
this.getCluster,
|
|
89
91
|
request,
|
|
90
92
|
options
|
|
@@ -82,7 +82,9 @@ class API extends API$1 {
|
|
|
82
82
|
* @returns A Promise of Cluster
|
|
83
83
|
*/
|
|
84
84
|
waitForCluster = (request, options) => waitForResource(
|
|
85
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
85
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
86
|
+
!CLUSTER_TRANSIENT_STATUSES.includes(res.status)
|
|
87
|
+
)),
|
|
86
88
|
this.getCluster,
|
|
87
89
|
request,
|
|
88
90
|
options
|
|
@@ -70,7 +70,9 @@ class API extends api.API {
|
|
|
70
70
|
* @returns A Promise of Namespace
|
|
71
71
|
*/
|
|
72
72
|
waitForNamespace = (request, options) => intervalRetrier.waitForResource(
|
|
73
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
73
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
74
|
+
!content_gen.NAMESPACE_TRANSIENT_STATUSES.includes(res.status)
|
|
75
|
+
)),
|
|
74
76
|
this.getNamespace,
|
|
75
77
|
request,
|
|
76
78
|
options
|
|
@@ -182,7 +184,9 @@ class API extends api.API {
|
|
|
182
184
|
* @returns A Promise of Image
|
|
183
185
|
*/
|
|
184
186
|
waitForImage = (request, options) => intervalRetrier.waitForResource(
|
|
185
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
187
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
188
|
+
!content_gen.IMAGE_TRANSIENT_STATUSES.includes(res.status)
|
|
189
|
+
)),
|
|
186
190
|
this.getImage,
|
|
187
191
|
request,
|
|
188
192
|
options
|
|
@@ -268,7 +272,9 @@ class API extends api.API {
|
|
|
268
272
|
* @returns A Promise of Tag
|
|
269
273
|
*/
|
|
270
274
|
waitForTag = (request, options) => intervalRetrier.waitForResource(
|
|
271
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
275
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
276
|
+
!content_gen.TAG_TRANSIENT_STATUSES.includes(res.status)
|
|
277
|
+
)),
|
|
272
278
|
this.getTag,
|
|
273
279
|
request,
|
|
274
280
|
options
|
|
@@ -68,7 +68,9 @@ class API extends API$1 {
|
|
|
68
68
|
* @returns A Promise of Namespace
|
|
69
69
|
*/
|
|
70
70
|
waitForNamespace = (request, options) => waitForResource(
|
|
71
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
71
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
72
|
+
!NAMESPACE_TRANSIENT_STATUSES.includes(res.status)
|
|
73
|
+
)),
|
|
72
74
|
this.getNamespace,
|
|
73
75
|
request,
|
|
74
76
|
options
|
|
@@ -180,7 +182,9 @@ class API extends API$1 {
|
|
|
180
182
|
* @returns A Promise of Image
|
|
181
183
|
*/
|
|
182
184
|
waitForImage = (request, options) => waitForResource(
|
|
183
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
185
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
186
|
+
!IMAGE_TRANSIENT_STATUSES.includes(res.status)
|
|
187
|
+
)),
|
|
184
188
|
this.getImage,
|
|
185
189
|
request,
|
|
186
190
|
options
|
|
@@ -266,7 +270,9 @@ class API extends API$1 {
|
|
|
266
270
|
* @returns A Promise of Tag
|
|
267
271
|
*/
|
|
268
272
|
waitForTag = (request, options) => waitForResource(
|
|
269
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
273
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
274
|
+
!TAG_TRANSIENT_STATUSES.includes(res.status)
|
|
275
|
+
)),
|
|
270
276
|
this.getTag,
|
|
271
277
|
request,
|
|
272
278
|
options
|
|
@@ -387,5 +387,37 @@ class API extends api.API {
|
|
|
387
387
|
* @returns A Promise of ListSecretTypesResponse
|
|
388
388
|
*/
|
|
389
389
|
listSecretTypes = (request = {}) => resourcePaginator.enrichForPagination("types", this.pageOfListSecretTypes, request);
|
|
390
|
+
/**
|
|
391
|
+
* Restore a version. Restore a secret's version specified by the `region`,
|
|
392
|
+
* `secret_id` and `revision` parameters.
|
|
393
|
+
*
|
|
394
|
+
* @param request - The request {@link RestoreSecretVersionRequest}
|
|
395
|
+
* @returns A Promise of SecretVersion
|
|
396
|
+
*/
|
|
397
|
+
restoreSecretVersion = (request) => this.client.fetch(
|
|
398
|
+
{
|
|
399
|
+
body: "{}",
|
|
400
|
+
headers: jsonContentHeaders,
|
|
401
|
+
method: "POST",
|
|
402
|
+
path: `/secret-manager/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${marshalling.validatePathParam("secretId", request.secretId)}/versions/${marshalling.validatePathParam("revision", request.revision)}/restore`
|
|
403
|
+
},
|
|
404
|
+
marshalling_gen.unmarshalSecretVersion
|
|
405
|
+
);
|
|
406
|
+
/**
|
|
407
|
+
* Restore a secret. Restore a secret and all its versions scheduled for
|
|
408
|
+
* deletion specified by the `region` and `secret_id` parameters.
|
|
409
|
+
*
|
|
410
|
+
* @param request - The request {@link RestoreSecretRequest}
|
|
411
|
+
* @returns A Promise of Secret
|
|
412
|
+
*/
|
|
413
|
+
restoreSecret = (request) => this.client.fetch(
|
|
414
|
+
{
|
|
415
|
+
body: "{}",
|
|
416
|
+
headers: jsonContentHeaders,
|
|
417
|
+
method: "POST",
|
|
418
|
+
path: `/secret-manager/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${marshalling.validatePathParam("secretId", request.secretId)}/restore`
|
|
419
|
+
},
|
|
420
|
+
marshalling_gen.unmarshalSecret
|
|
421
|
+
);
|
|
390
422
|
}
|
|
391
423
|
exports.API = API;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region as ScwRegion } from '../../../bridge';
|
|
3
|
-
import type { AccessSecretVersionByPathRequest, AccessSecretVersionRequest, AccessSecretVersionResponse, AddSecretOwnerRequest, BrowseSecretsRequest, BrowseSecretsResponse, CreateSecretRequest, CreateSecretVersionRequest, DeleteSecretRequest, DeleteSecretVersionRequest, DisableSecretVersionRequest, EnableSecretVersionRequest, GetSecretRequest, GetSecretVersionRequest, ListSecretTypesRequest, ListSecretTypesResponse, ListSecretVersionsRequest, ListSecretVersionsResponse, ListSecretsRequest, ListSecretsResponse, ListTagsRequest, ListTagsResponse, ProtectSecretRequest, Secret, SecretVersion, UnprotectSecretRequest, UpdateSecretRequest, UpdateSecretVersionRequest } from './types.gen';
|
|
3
|
+
import type { AccessSecretVersionByPathRequest, AccessSecretVersionRequest, AccessSecretVersionResponse, AddSecretOwnerRequest, BrowseSecretsRequest, BrowseSecretsResponse, CreateSecretRequest, CreateSecretVersionRequest, DeleteSecretRequest, DeleteSecretVersionRequest, DisableSecretVersionRequest, EnableSecretVersionRequest, GetSecretRequest, GetSecretVersionRequest, ListSecretTypesRequest, ListSecretTypesResponse, ListSecretVersionsRequest, ListSecretVersionsResponse, ListSecretsRequest, ListSecretsResponse, ListTagsRequest, ListTagsResponse, ProtectSecretRequest, RestoreSecretRequest, RestoreSecretVersionRequest, Secret, SecretVersion, UnprotectSecretRequest, UpdateSecretRequest, UpdateSecretVersionRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Secret Manager API.
|
|
6
6
|
*
|
|
@@ -190,4 +190,20 @@ export declare class API extends ParentAPI {
|
|
|
190
190
|
all: () => Promise<import("./types.gen").SecretType[]>;
|
|
191
191
|
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").SecretType[], void, void>;
|
|
192
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* Restore a version. Restore a secret's version specified by the `region`,
|
|
195
|
+
* `secret_id` and `revision` parameters.
|
|
196
|
+
*
|
|
197
|
+
* @param request - The request {@link RestoreSecretVersionRequest}
|
|
198
|
+
* @returns A Promise of SecretVersion
|
|
199
|
+
*/
|
|
200
|
+
restoreSecretVersion: (request: Readonly<RestoreSecretVersionRequest>) => Promise<SecretVersion>;
|
|
201
|
+
/**
|
|
202
|
+
* Restore a secret. Restore a secret and all its versions scheduled for
|
|
203
|
+
* deletion specified by the `region` and `secret_id` parameters.
|
|
204
|
+
*
|
|
205
|
+
* @param request - The request {@link RestoreSecretRequest}
|
|
206
|
+
* @returns A Promise of Secret
|
|
207
|
+
*/
|
|
208
|
+
restoreSecret: (request: Readonly<RestoreSecretRequest>) => Promise<Secret>;
|
|
193
209
|
}
|