@scaleway/sdk 2.65.0 → 2.67.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/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
- package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
- package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
- package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
- package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
- package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
- package/dist/api/cockpit/v1/api.gen.cjs +14 -17
- package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
- package/dist/api/cockpit/v1/api.gen.js +15 -18
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
- package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
- package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
- package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
- package/dist/api/container/v1beta1/api.gen.cjs +5 -1
- package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/container/v1beta1/api.gen.js +5 -1
- package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
- package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
- package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
- package/dist/api/function/v1beta1/api.gen.cjs +5 -1
- package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/function/v1beta1/api.gen.js +5 -1
- package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
- package/dist/api/iot/v1/api.gen.d.ts +2 -2
- package/dist/api/iot/v1/types.gen.d.ts +38 -38
- package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
- package/dist/api/k8s/v1/api.gen.cjs +5 -1
- package/dist/api/k8s/v1/api.gen.d.ts +2 -2
- package/dist/api/k8s/v1/api.gen.js +5 -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 +42 -41
- package/dist/api/lb/v1/marshalling.gen.cjs +5 -0
- package/dist/api/lb/v1/marshalling.gen.js +5 -0
- package/dist/api/lb/v1/types.gen.d.ts +25 -0
- package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
- package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
- package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
- package/dist/api/rdb/v1/api.gen.cjs +5 -1
- package/dist/api/rdb/v1/api.gen.d.ts +2 -2
- package/dist/api/rdb/v1/api.gen.js +5 -1
- package/dist/api/rdb/v1/types.gen.d.ts +67 -67
- package/dist/api/redis/v1/api.gen.d.ts +2 -2
- package/dist/api/redis/v1/types.gen.d.ts +28 -28
- package/dist/api/registry/v1/api.gen.cjs +5 -1
- package/dist/api/registry/v1/api.gen.d.ts +2 -2
- package/dist/api/registry/v1/api.gen.js +5 -1
- package/dist/api/registry/v1/types.gen.d.ts +14 -14
- package/dist/api/secret/v1beta1/api.gen.cjs +38 -1
- package/dist/api/secret/v1beta1/api.gen.d.ts +19 -3
- package/dist/api/secret/v1beta1/api.gen.js +38 -1
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +52 -25
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
- package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
- package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +4 -3
- package/dist/api/vpcgw/v1/api.gen.js +6 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
- package/dist/api/vpcgw/v1/types.gen.d.ts +49 -44
- package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
- package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
- package/dist/api/webhosting/v1/marshalling.gen.cjs +7 -3
- package/dist/api/webhosting/v1/marshalling.gen.js +7 -3
- package/dist/api/webhosting/v1/types.gen.d.ts +14 -6
- package/dist/scw/client-settings.cjs +2 -2
- package/dist/scw/client-settings.d.ts +2 -2
- package/dist/scw/client-settings.js +2 -2
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Zone as ScwZone, TimeSeries } from '../../../bridge';
|
|
2
2
|
export type AvailableClusterSettingPropertyType = 'UNKNOWN' | 'BOOLEAN' | 'INT' | 'STRING';
|
|
3
3
|
export type ClusterStatus = 'unknown' | 'ready' | 'provisioning' | 'configuring' | 'deleting' | 'error' | 'autohealing' | 'locked' | 'suspended' | 'initializing';
|
|
4
4
|
export type ListClustersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
@@ -12,7 +12,7 @@ export interface PrivateNetwork {
|
|
|
12
12
|
/** List of IPv4 CIDR notation addresses of the endpoint. */
|
|
13
13
|
serviceIps: string[];
|
|
14
14
|
/** Zone of the Private Network. */
|
|
15
|
-
zone:
|
|
15
|
+
zone: ScwZone;
|
|
16
16
|
/** How your endpoint ips are provisioned. */
|
|
17
17
|
provisioningMode: PrivateNetworkProvisioningMode;
|
|
18
18
|
}
|
|
@@ -120,7 +120,7 @@ export interface ClusterVersion {
|
|
|
120
120
|
/** Redis™ logo url. */
|
|
121
121
|
logoUrl: string;
|
|
122
122
|
/** Zone of the Redis™ Database Instance. */
|
|
123
|
-
zone:
|
|
123
|
+
zone: ScwZone;
|
|
124
124
|
}
|
|
125
125
|
export interface Cluster {
|
|
126
126
|
/** UUID of the Database Instance. */
|
|
@@ -152,7 +152,7 @@ export interface Cluster {
|
|
|
152
152
|
/** Number of nodes of the Database Instance cluster. */
|
|
153
153
|
clusterSize: number;
|
|
154
154
|
/** Zone of the Database Instance. */
|
|
155
|
-
zone:
|
|
155
|
+
zone: ScwZone;
|
|
156
156
|
/** Name of the user associated to the cluster. */
|
|
157
157
|
userName: string;
|
|
158
158
|
/** List of engine versions the Database Instance can upgrade to. */
|
|
@@ -174,11 +174,11 @@ export interface NodeType {
|
|
|
174
174
|
/** Defines whether node type is currently in beta. */
|
|
175
175
|
beta: boolean;
|
|
176
176
|
/** Zone of the node type. */
|
|
177
|
-
zone:
|
|
177
|
+
zone: ScwZone;
|
|
178
178
|
}
|
|
179
179
|
export type AddAclRulesRequest = {
|
|
180
180
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
181
|
-
zone?:
|
|
181
|
+
zone?: ScwZone;
|
|
182
182
|
/** UUID of the Database Instance you want to add ACL rules to. */
|
|
183
183
|
clusterId: string;
|
|
184
184
|
/** ACLs rules to add to the cluster. */
|
|
@@ -192,7 +192,7 @@ export interface AddAclRulesResponse {
|
|
|
192
192
|
}
|
|
193
193
|
export type AddClusterSettingsRequest = {
|
|
194
194
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
195
|
-
zone?:
|
|
195
|
+
zone?: ScwZone;
|
|
196
196
|
/** UUID of the Database Instance you want to add settings to. */
|
|
197
197
|
clusterId: string;
|
|
198
198
|
/** Settings to add to the cluster. */
|
|
@@ -200,7 +200,7 @@ export type AddClusterSettingsRequest = {
|
|
|
200
200
|
};
|
|
201
201
|
export type AddEndpointsRequest = {
|
|
202
202
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
203
|
-
zone?:
|
|
203
|
+
zone?: ScwZone;
|
|
204
204
|
/** UUID of the Database Instance you want to add endpoints to. */
|
|
205
205
|
clusterId: string;
|
|
206
206
|
/** Endpoints to add to the Database Instance. */
|
|
@@ -222,7 +222,7 @@ export interface ClusterSettingsResponse {
|
|
|
222
222
|
}
|
|
223
223
|
export type CreateClusterRequest = {
|
|
224
224
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
225
|
-
zone?:
|
|
225
|
+
zone?: ScwZone;
|
|
226
226
|
/** Project ID in which to create the Database Instance. */
|
|
227
227
|
projectId?: string;
|
|
228
228
|
/** Name of the Database Instance. */
|
|
@@ -254,19 +254,19 @@ export type CreateClusterRequest = {
|
|
|
254
254
|
};
|
|
255
255
|
export type DeleteAclRuleRequest = {
|
|
256
256
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
257
|
-
zone?:
|
|
257
|
+
zone?: ScwZone;
|
|
258
258
|
/** UUID of the ACL rule you want to delete. */
|
|
259
259
|
aclId: string;
|
|
260
260
|
};
|
|
261
261
|
export type DeleteClusterRequest = {
|
|
262
262
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
263
|
-
zone?:
|
|
263
|
+
zone?: ScwZone;
|
|
264
264
|
/** UUID of the Database Instance to delete. */
|
|
265
265
|
clusterId: string;
|
|
266
266
|
};
|
|
267
267
|
export type DeleteClusterSettingRequest = {
|
|
268
268
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
269
|
-
zone?:
|
|
269
|
+
zone?: ScwZone;
|
|
270
270
|
/** UUID of the Database Instance where the settings must be set. */
|
|
271
271
|
clusterId: string;
|
|
272
272
|
/** Setting name to delete. */
|
|
@@ -274,25 +274,25 @@ export type DeleteClusterSettingRequest = {
|
|
|
274
274
|
};
|
|
275
275
|
export type DeleteEndpointRequest = {
|
|
276
276
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
277
|
-
zone?:
|
|
277
|
+
zone?: ScwZone;
|
|
278
278
|
/** UUID of the endpoint you want to delete. */
|
|
279
279
|
endpointId: string;
|
|
280
280
|
};
|
|
281
281
|
export type GetAclRuleRequest = {
|
|
282
282
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
283
|
-
zone?:
|
|
283
|
+
zone?: ScwZone;
|
|
284
284
|
/** UUID of the ACL rule you want to get. */
|
|
285
285
|
aclId: string;
|
|
286
286
|
};
|
|
287
287
|
export type GetClusterCertificateRequest = {
|
|
288
288
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
289
|
-
zone?:
|
|
289
|
+
zone?: ScwZone;
|
|
290
290
|
/** UUID of the cluster. */
|
|
291
291
|
clusterId: string;
|
|
292
292
|
};
|
|
293
293
|
export type GetClusterMetricsRequest = {
|
|
294
294
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
295
|
-
zone?:
|
|
295
|
+
zone?: ScwZone;
|
|
296
296
|
/** UUID of the cluster. */
|
|
297
297
|
clusterId: string;
|
|
298
298
|
/** Start date. */
|
|
@@ -304,19 +304,19 @@ export type GetClusterMetricsRequest = {
|
|
|
304
304
|
};
|
|
305
305
|
export type GetClusterRequest = {
|
|
306
306
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
307
|
-
zone?:
|
|
307
|
+
zone?: ScwZone;
|
|
308
308
|
/** UUID of the cluster. */
|
|
309
309
|
clusterId: string;
|
|
310
310
|
};
|
|
311
311
|
export type GetEndpointRequest = {
|
|
312
312
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
313
|
-
zone?:
|
|
313
|
+
zone?: ScwZone;
|
|
314
314
|
/** UUID of the endpoint you want to get. */
|
|
315
315
|
endpointId: string;
|
|
316
316
|
};
|
|
317
317
|
export type ListClusterVersionsRequest = {
|
|
318
318
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
319
|
-
zone?:
|
|
319
|
+
zone?: ScwZone;
|
|
320
320
|
/** Defines whether or not to include disabled Redis™ engine versions. */
|
|
321
321
|
includeDisabled: boolean;
|
|
322
322
|
/** Defines whether or not to include beta Redis™ engine versions. */
|
|
@@ -336,7 +336,7 @@ export interface ListClusterVersionsResponse {
|
|
|
336
336
|
}
|
|
337
337
|
export type ListClustersRequest = {
|
|
338
338
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
339
|
-
zone?:
|
|
339
|
+
zone?: ScwZone;
|
|
340
340
|
/** Filter by Database Instance tags. */
|
|
341
341
|
tags?: string[];
|
|
342
342
|
/** Filter by Database Instance names. */
|
|
@@ -360,7 +360,7 @@ export interface ListClustersResponse {
|
|
|
360
360
|
}
|
|
361
361
|
export type ListNodeTypesRequest = {
|
|
362
362
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
363
|
-
zone?:
|
|
363
|
+
zone?: ScwZone;
|
|
364
364
|
/** Defines whether or not to include disabled types. */
|
|
365
365
|
includeDisabledTypes: boolean;
|
|
366
366
|
page?: number;
|
|
@@ -374,7 +374,7 @@ export interface ListNodeTypesResponse {
|
|
|
374
374
|
}
|
|
375
375
|
export type MigrateClusterRequest = {
|
|
376
376
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
377
|
-
zone?:
|
|
377
|
+
zone?: ScwZone;
|
|
378
378
|
/** UUID of the Database Instance to update. */
|
|
379
379
|
clusterId: string;
|
|
380
380
|
/**
|
|
@@ -401,13 +401,13 @@ export type MigrateClusterRequest = {
|
|
|
401
401
|
};
|
|
402
402
|
export type RenewClusterCertificateRequest = {
|
|
403
403
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
404
|
-
zone?:
|
|
404
|
+
zone?: ScwZone;
|
|
405
405
|
/** UUID of the cluster. */
|
|
406
406
|
clusterId: string;
|
|
407
407
|
};
|
|
408
408
|
export type SetAclRulesRequest = {
|
|
409
409
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
410
|
-
zone?:
|
|
410
|
+
zone?: ScwZone;
|
|
411
411
|
/** UUID of the Database Instance where the ACL rules have to be set. */
|
|
412
412
|
clusterId: string;
|
|
413
413
|
/** ACLs rules to define for the cluster. */
|
|
@@ -419,7 +419,7 @@ export interface SetAclRulesResponse {
|
|
|
419
419
|
}
|
|
420
420
|
export type SetClusterSettingsRequest = {
|
|
421
421
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
422
|
-
zone?:
|
|
422
|
+
zone?: ScwZone;
|
|
423
423
|
/** UUID of the Database Instance where the settings must be set. */
|
|
424
424
|
clusterId: string;
|
|
425
425
|
/** Settings to define for the Database Instance. */
|
|
@@ -427,7 +427,7 @@ export type SetClusterSettingsRequest = {
|
|
|
427
427
|
};
|
|
428
428
|
export type SetEndpointsRequest = {
|
|
429
429
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
430
|
-
zone?:
|
|
430
|
+
zone?: ScwZone;
|
|
431
431
|
/** UUID of the Database Instance where the endpoints have to be set. */
|
|
432
432
|
clusterId: string;
|
|
433
433
|
/** Endpoints to define for the Database Instance. */
|
|
@@ -439,7 +439,7 @@ export interface SetEndpointsResponse {
|
|
|
439
439
|
}
|
|
440
440
|
export type UpdateClusterRequest = {
|
|
441
441
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
442
|
-
zone?:
|
|
442
|
+
zone?: ScwZone;
|
|
443
443
|
/** UUID of the Database Instance to update. */
|
|
444
444
|
clusterId: string;
|
|
445
445
|
/** Name of the Database Instance. */
|
|
@@ -453,7 +453,7 @@ export type UpdateClusterRequest = {
|
|
|
453
453
|
};
|
|
454
454
|
export type UpdateEndpointRequest = {
|
|
455
455
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
456
|
-
zone?:
|
|
456
|
+
zone?: ScwZone;
|
|
457
457
|
/** UUID of the endpoint you want to get. */
|
|
458
458
|
endpointId: string;
|
|
459
459
|
/**
|
|
@@ -12,7 +12,11 @@ const jsonContentHeaders = {
|
|
|
12
12
|
};
|
|
13
13
|
class API extends api.API {
|
|
14
14
|
/** Lists the available regions of the API. */
|
|
15
|
-
static LOCALITIES = [
|
|
15
|
+
static LOCALITIES = [
|
|
16
|
+
"fr-par",
|
|
17
|
+
"nl-ams",
|
|
18
|
+
"pl-waw"
|
|
19
|
+
];
|
|
16
20
|
pageOfListNamespaces = (request = {}) => this.client.fetch(
|
|
17
21
|
{
|
|
18
22
|
method: "GET",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { Region, WaitForOptions } from '../../../bridge';
|
|
2
|
+
import type { Region as ScwRegion, WaitForOptions } from '../../../bridge';
|
|
3
3
|
import type { CreateNamespaceRequest, DeleteImageRequest, DeleteNamespaceRequest, DeleteTagRequest, GetImageRequest, GetNamespaceRequest, GetTagRequest, Image, ListImagesRequest, ListImagesResponse, ListNamespacesRequest, ListNamespacesResponse, ListTagsRequest, ListTagsResponse, Namespace, Tag, UpdateImageRequest, UpdateNamespaceRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Container Registry API.
|
|
@@ -8,7 +8,7 @@ import type { CreateNamespaceRequest, DeleteImageRequest, DeleteNamespaceRequest
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class API extends ParentAPI {
|
|
10
10
|
/** Lists the available regions of the API. */
|
|
11
|
-
static readonly LOCALITIES:
|
|
11
|
+
static readonly LOCALITIES: ScwRegion[];
|
|
12
12
|
protected pageOfListNamespaces: (request?: Readonly<ListNamespacesRequest>) => Promise<ListNamespacesResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* List namespaces. List all namespaces in a specified region. By default, the
|
|
@@ -10,7 +10,11 @@ const jsonContentHeaders = {
|
|
|
10
10
|
};
|
|
11
11
|
class API extends API$1 {
|
|
12
12
|
/** Lists the available regions of the API. */
|
|
13
|
-
static LOCALITIES = [
|
|
13
|
+
static LOCALITIES = [
|
|
14
|
+
"fr-par",
|
|
15
|
+
"nl-ams",
|
|
16
|
+
"pl-waw"
|
|
17
|
+
];
|
|
14
18
|
pageOfListNamespaces = (request = {}) => this.client.fetch(
|
|
15
19
|
{
|
|
16
20
|
method: "GET",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Region } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
2
|
export type ImageStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked';
|
|
3
3
|
export type ImageVisibility = 'visibility_unknown' | 'inherit' | 'public' | 'private';
|
|
4
4
|
export type ListImagesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
@@ -67,7 +67,7 @@ export interface Namespace {
|
|
|
67
67
|
/** Number of images in the namespace. */
|
|
68
68
|
imageCount: number;
|
|
69
69
|
/** Region the namespace belongs to. */
|
|
70
|
-
region:
|
|
70
|
+
region: ScwRegion;
|
|
71
71
|
}
|
|
72
72
|
export interface Tag {
|
|
73
73
|
/** UUID of the tag. */
|
|
@@ -93,7 +93,7 @@ export type CreateNamespaceRequest = {
|
|
|
93
93
|
* Region to target. If none is passed will use default region from the
|
|
94
94
|
* config.
|
|
95
95
|
*/
|
|
96
|
-
region?:
|
|
96
|
+
region?: ScwRegion;
|
|
97
97
|
/** Name of the namespace. */
|
|
98
98
|
name?: string;
|
|
99
99
|
/** Description of the namespace. */
|
|
@@ -120,7 +120,7 @@ export type DeleteImageRequest = {
|
|
|
120
120
|
* Region to target. If none is passed will use default region from the
|
|
121
121
|
* config.
|
|
122
122
|
*/
|
|
123
|
-
region?:
|
|
123
|
+
region?: ScwRegion;
|
|
124
124
|
/** UUID of the image. */
|
|
125
125
|
imageId: string;
|
|
126
126
|
};
|
|
@@ -129,7 +129,7 @@ export type DeleteNamespaceRequest = {
|
|
|
129
129
|
* Region to target. If none is passed will use default region from the
|
|
130
130
|
* config.
|
|
131
131
|
*/
|
|
132
|
-
region?:
|
|
132
|
+
region?: ScwRegion;
|
|
133
133
|
/** UUID of the namespace. */
|
|
134
134
|
namespaceId: string;
|
|
135
135
|
};
|
|
@@ -138,7 +138,7 @@ export type DeleteTagRequest = {
|
|
|
138
138
|
* Region to target. If none is passed will use default region from the
|
|
139
139
|
* config.
|
|
140
140
|
*/
|
|
141
|
-
region?:
|
|
141
|
+
region?: ScwRegion;
|
|
142
142
|
/** UUID of the tag. */
|
|
143
143
|
tagId: string;
|
|
144
144
|
/**
|
|
@@ -152,7 +152,7 @@ export type GetImageRequest = {
|
|
|
152
152
|
* Region to target. If none is passed will use default region from the
|
|
153
153
|
* config.
|
|
154
154
|
*/
|
|
155
|
-
region?:
|
|
155
|
+
region?: ScwRegion;
|
|
156
156
|
/** UUID of the image. */
|
|
157
157
|
imageId: string;
|
|
158
158
|
};
|
|
@@ -161,7 +161,7 @@ export type GetNamespaceRequest = {
|
|
|
161
161
|
* Region to target. If none is passed will use default region from the
|
|
162
162
|
* config.
|
|
163
163
|
*/
|
|
164
|
-
region?:
|
|
164
|
+
region?: ScwRegion;
|
|
165
165
|
/** UUID of the namespace. */
|
|
166
166
|
namespaceId: string;
|
|
167
167
|
};
|
|
@@ -170,7 +170,7 @@ export type GetTagRequest = {
|
|
|
170
170
|
* Region to target. If none is passed will use default region from the
|
|
171
171
|
* config.
|
|
172
172
|
*/
|
|
173
|
-
region?:
|
|
173
|
+
region?: ScwRegion;
|
|
174
174
|
/** UUID of the tag. */
|
|
175
175
|
tagId: string;
|
|
176
176
|
};
|
|
@@ -179,7 +179,7 @@ export type ListImagesRequest = {
|
|
|
179
179
|
* Region to target. If none is passed will use default region from the
|
|
180
180
|
* config.
|
|
181
181
|
*/
|
|
182
|
-
region?:
|
|
182
|
+
region?: ScwRegion;
|
|
183
183
|
/** A positive integer to choose the page to display. */
|
|
184
184
|
page?: number;
|
|
185
185
|
/**
|
|
@@ -213,7 +213,7 @@ export type ListNamespacesRequest = {
|
|
|
213
213
|
* Region to target. If none is passed will use default region from the
|
|
214
214
|
* config.
|
|
215
215
|
*/
|
|
216
|
-
region?:
|
|
216
|
+
region?: ScwRegion;
|
|
217
217
|
/** A positive integer to choose the page to display. */
|
|
218
218
|
page?: number;
|
|
219
219
|
/**
|
|
@@ -245,7 +245,7 @@ export type ListTagsRequest = {
|
|
|
245
245
|
* Region to target. If none is passed will use default region from the
|
|
246
246
|
* config.
|
|
247
247
|
*/
|
|
248
|
-
region?:
|
|
248
|
+
region?: ScwRegion;
|
|
249
249
|
/** UUID of the image. */
|
|
250
250
|
imageId: string;
|
|
251
251
|
/** A positive integer to choose the page to display. */
|
|
@@ -275,7 +275,7 @@ export type UpdateImageRequest = {
|
|
|
275
275
|
* Region to target. If none is passed will use default region from the
|
|
276
276
|
* config.
|
|
277
277
|
*/
|
|
278
|
-
region?:
|
|
278
|
+
region?: ScwRegion;
|
|
279
279
|
/** ID of the image to update. */
|
|
280
280
|
imageId: string;
|
|
281
281
|
/**
|
|
@@ -290,7 +290,7 @@ export type UpdateNamespaceRequest = {
|
|
|
290
290
|
* Region to target. If none is passed will use default region from the
|
|
291
291
|
* config.
|
|
292
292
|
*/
|
|
293
|
-
region?:
|
|
293
|
+
region?: ScwRegion;
|
|
294
294
|
/** ID of the namespace to update. */
|
|
295
295
|
namespaceId: string;
|
|
296
296
|
/** Namespace description. */
|
|
@@ -10,7 +10,11 @@ const jsonContentHeaders = {
|
|
|
10
10
|
};
|
|
11
11
|
class API extends api.API {
|
|
12
12
|
/** Lists the available regions of the API. */
|
|
13
|
-
static LOCALITIES = [
|
|
13
|
+
static LOCALITIES = [
|
|
14
|
+
"fr-par",
|
|
15
|
+
"nl-ams",
|
|
16
|
+
"pl-waw"
|
|
17
|
+
];
|
|
14
18
|
/**
|
|
15
19
|
* Create a secret. Create a secret in a given region specified by the
|
|
16
20
|
* `region` parameter.
|
|
@@ -88,6 +92,7 @@ class API extends api.API {
|
|
|
88
92
|
],
|
|
89
93
|
["path", request.path],
|
|
90
94
|
["project_id", request.projectId],
|
|
95
|
+
["scheduled_for_deletion", request.scheduledForDeletion],
|
|
91
96
|
["tags", request.tags],
|
|
92
97
|
["type", request.type]
|
|
93
98
|
)
|
|
@@ -382,5 +387,37 @@ class API extends api.API {
|
|
|
382
387
|
* @returns A Promise of ListSecretTypesResponse
|
|
383
388
|
*/
|
|
384
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
|
+
);
|
|
385
422
|
}
|
|
386
423
|
exports.API = API;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { Region } 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';
|
|
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, RestoreSecretRequest, RestoreSecretVersionRequest, Secret, SecretVersion, UnprotectSecretRequest, UpdateSecretRequest, UpdateSecretVersionRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Secret Manager API.
|
|
6
6
|
*
|
|
@@ -10,7 +10,7 @@ import type { AccessSecretVersionByPathRequest, AccessSecretVersionRequest, Acce
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class API extends ParentAPI {
|
|
12
12
|
/** Lists the available regions of the API. */
|
|
13
|
-
static readonly LOCALITIES:
|
|
13
|
+
static readonly LOCALITIES: ScwRegion[];
|
|
14
14
|
/**
|
|
15
15
|
* Create a secret. Create a secret in a given region specified by the
|
|
16
16
|
* `region` parameter.
|
|
@@ -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
|
}
|
|
@@ -8,7 +8,11 @@ const jsonContentHeaders = {
|
|
|
8
8
|
};
|
|
9
9
|
class API extends API$1 {
|
|
10
10
|
/** Lists the available regions of the API. */
|
|
11
|
-
static LOCALITIES = [
|
|
11
|
+
static LOCALITIES = [
|
|
12
|
+
"fr-par",
|
|
13
|
+
"nl-ams",
|
|
14
|
+
"pl-waw"
|
|
15
|
+
];
|
|
12
16
|
/**
|
|
13
17
|
* Create a secret. Create a secret in a given region specified by the
|
|
14
18
|
* `region` parameter.
|
|
@@ -86,6 +90,7 @@ class API extends API$1 {
|
|
|
86
90
|
],
|
|
87
91
|
["path", request.path],
|
|
88
92
|
["project_id", request.projectId],
|
|
93
|
+
["scheduled_for_deletion", request.scheduledForDeletion],
|
|
89
94
|
["tags", request.tags],
|
|
90
95
|
["type", request.type]
|
|
91
96
|
)
|
|
@@ -380,6 +385,38 @@ class API extends API$1 {
|
|
|
380
385
|
* @returns A Promise of ListSecretTypesResponse
|
|
381
386
|
*/
|
|
382
387
|
listSecretTypes = (request = {}) => enrichForPagination("types", this.pageOfListSecretTypes, request);
|
|
388
|
+
/**
|
|
389
|
+
* Restore a version.. Restore a secret's version specified by the `region`,
|
|
390
|
+
* `secret_id` and `revision` parameters.
|
|
391
|
+
*
|
|
392
|
+
* @param request - The request {@link RestoreSecretVersionRequest}
|
|
393
|
+
* @returns A Promise of SecretVersion
|
|
394
|
+
*/
|
|
395
|
+
restoreSecretVersion = (request) => this.client.fetch(
|
|
396
|
+
{
|
|
397
|
+
body: "{}",
|
|
398
|
+
headers: jsonContentHeaders,
|
|
399
|
+
method: "POST",
|
|
400
|
+
path: `/secret-manager/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}/versions/${validatePathParam("revision", request.revision)}/restore`
|
|
401
|
+
},
|
|
402
|
+
unmarshalSecretVersion
|
|
403
|
+
);
|
|
404
|
+
/**
|
|
405
|
+
* Restore a secret.. Restore a secret and all its versions scheduled for
|
|
406
|
+
* deletion specified by the `region` and `secret_id` parameters.
|
|
407
|
+
*
|
|
408
|
+
* @param request - The request {@link RestoreSecretRequest}
|
|
409
|
+
* @returns A Promise of Secret
|
|
410
|
+
*/
|
|
411
|
+
restoreSecret = (request) => this.client.fetch(
|
|
412
|
+
{
|
|
413
|
+
body: "{}",
|
|
414
|
+
headers: jsonContentHeaders,
|
|
415
|
+
method: "POST",
|
|
416
|
+
path: `/secret-manager/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}/restore`
|
|
417
|
+
},
|
|
418
|
+
unmarshalSecret
|
|
419
|
+
);
|
|
383
420
|
}
|
|
384
421
|
export {
|
|
385
422
|
API
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { API } from './api.gen.js';
|
|
2
|
-
export type { AccessSecretVersionByPathRequest, AccessSecretVersionRequest, AccessSecretVersionResponse, AddSecretOwnerRequest, BasicCredentials, BrowseSecretsRequest, BrowseSecretsRequestOrderBy, BrowseSecretsResponse, BrowseSecretsResponseItem, BrowseSecretsResponseItemFolderDetails, BrowseSecretsResponseItemSecretDetails, CreateSecretRequest, CreateSecretVersionRequest, DatabaseCredentials, DeleteSecretRequest, DeleteSecretVersionRequest, DisableSecretVersionRequest, EnableSecretVersionRequest, EphemeralPolicy, EphemeralPolicyAction, EphemeralProperties, GetSecretRequest, GetSecretVersionRequest, ListSecretTypesRequest, ListSecretTypesResponse, ListSecretVersionsRequest, ListSecretVersionsResponse, ListSecretsRequest, ListSecretsRequestOrderBy, ListSecretsResponse, ListTagsRequest, ListTagsResponse, Product, ProtectSecretRequest, SSHKey, Secret, SecretStatus, SecretType, SecretVersion, SecretVersionStatus, UnprotectSecretRequest, UpdateSecretRequest, UpdateSecretVersionRequest, } from './types.gen';
|
|
2
|
+
export type { AccessSecretVersionByPathRequest, AccessSecretVersionRequest, AccessSecretVersionResponse, AddSecretOwnerRequest, BasicCredentials, BrowseSecretsRequest, BrowseSecretsRequestOrderBy, BrowseSecretsResponse, BrowseSecretsResponseItem, BrowseSecretsResponseItemFolderDetails, BrowseSecretsResponseItemSecretDetails, CreateSecretRequest, CreateSecretVersionRequest, DatabaseCredentials, DeleteSecretRequest, DeleteSecretVersionRequest, DisableSecretVersionRequest, EnableSecretVersionRequest, EphemeralPolicy, EphemeralPolicyAction, EphemeralProperties, GetSecretRequest, GetSecretVersionRequest, ListSecretTypesRequest, ListSecretTypesResponse, ListSecretVersionsRequest, ListSecretVersionsResponse, ListSecretsRequest, ListSecretsRequestOrderBy, ListSecretsResponse, ListTagsRequest, ListTagsResponse, Product, ProtectSecretRequest, RestoreSecretRequest, RestoreSecretVersionRequest, SSHKey, Secret, SecretStatus, SecretType, SecretVersion, SecretVersionStatus, UnprotectSecretRequest, UpdateSecretRequest, UpdateSecretVersionRequest, } from './types.gen';
|
|
3
3
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -24,6 +24,7 @@ const unmarshalSecretVersion = (data) => {
|
|
|
24
24
|
return {
|
|
25
25
|
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
26
26
|
deletedAt: marshalling.unmarshalDate(data.deleted_at),
|
|
27
|
+
deletionRequestedAt: marshalling.unmarshalDate(data.deletion_requested_at),
|
|
27
28
|
description: data.description,
|
|
28
29
|
ephemeralProperties: data.ephemeral_properties ? unmarshalEphemeralProperties(data.ephemeral_properties) : void 0,
|
|
29
30
|
latest: data.latest,
|
|
@@ -53,6 +54,7 @@ const unmarshalSecret = (data) => {
|
|
|
53
54
|
}
|
|
54
55
|
return {
|
|
55
56
|
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
57
|
+
deletionRequestedAt: marshalling.unmarshalDate(data.deletion_requested_at),
|
|
56
58
|
description: data.description,
|
|
57
59
|
ephemeralPolicy: data.ephemeral_policy ? unmarshalEphemeralPolicy(data.ephemeral_policy) : void 0,
|
|
58
60
|
id: data.id,
|
|
@@ -22,6 +22,7 @@ const unmarshalSecretVersion = (data) => {
|
|
|
22
22
|
return {
|
|
23
23
|
createdAt: unmarshalDate(data.created_at),
|
|
24
24
|
deletedAt: unmarshalDate(data.deleted_at),
|
|
25
|
+
deletionRequestedAt: unmarshalDate(data.deletion_requested_at),
|
|
25
26
|
description: data.description,
|
|
26
27
|
ephemeralProperties: data.ephemeral_properties ? unmarshalEphemeralProperties(data.ephemeral_properties) : void 0,
|
|
27
28
|
latest: data.latest,
|
|
@@ -51,6 +52,7 @@ const unmarshalSecret = (data) => {
|
|
|
51
52
|
}
|
|
52
53
|
return {
|
|
53
54
|
createdAt: unmarshalDate(data.created_at),
|
|
55
|
+
deletionRequestedAt: unmarshalDate(data.deletion_requested_at),
|
|
54
56
|
description: data.description,
|
|
55
57
|
ephemeralPolicy: data.ephemeral_policy ? unmarshalEphemeralPolicy(data.ephemeral_policy) : void 0,
|
|
56
58
|
id: data.id,
|