@scaleway/sdk 2.65.0 → 2.66.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/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/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 +5 -1
- package/dist/api/secret/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/secret/v1beta1/api.gen.js +5 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +22 -22
- 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.d.ts +2 -2
- package/dist/api/vpcgw/v1/types.gen.d.ts +44 -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/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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { Region } from '../../../bridge';
|
|
2
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
3
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';
|
|
4
4
|
/**
|
|
5
5
|
* Secret Manager API.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Region } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
2
|
export type BrowseSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
3
3
|
export type EphemeralPolicyAction = 'unknown_action' | 'delete' | 'disable';
|
|
4
4
|
export type ListSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
@@ -118,14 +118,14 @@ export interface Secret {
|
|
|
118
118
|
/** List of Scaleway resources that can access and manage the secret. */
|
|
119
119
|
usedBy: Product[];
|
|
120
120
|
/** Region of the secret. */
|
|
121
|
-
region:
|
|
121
|
+
region: ScwRegion;
|
|
122
122
|
}
|
|
123
123
|
export type AccessSecretVersionByPathRequest = {
|
|
124
124
|
/**
|
|
125
125
|
* Region to target. If none is passed will use default region from the
|
|
126
126
|
* config.
|
|
127
127
|
*/
|
|
128
|
-
region?:
|
|
128
|
+
region?: ScwRegion;
|
|
129
129
|
/**
|
|
130
130
|
* The first version of the secret is numbered 1, and all subsequent revisions
|
|
131
131
|
* augment by 1. Value can be either:
|
|
@@ -147,7 +147,7 @@ export type AccessSecretVersionRequest = {
|
|
|
147
147
|
* Region to target. If none is passed will use default region from the
|
|
148
148
|
* config.
|
|
149
149
|
*/
|
|
150
|
-
region?:
|
|
150
|
+
region?: ScwRegion;
|
|
151
151
|
/** ID of the secret. */
|
|
152
152
|
secretId: string;
|
|
153
153
|
/**
|
|
@@ -183,7 +183,7 @@ export type AddSecretOwnerRequest = {
|
|
|
183
183
|
* Region to target. If none is passed will use default region from the
|
|
184
184
|
* config.
|
|
185
185
|
*/
|
|
186
|
-
region?:
|
|
186
|
+
region?: ScwRegion;
|
|
187
187
|
/** ID of the secret. */
|
|
188
188
|
secretId: string;
|
|
189
189
|
/** See `Product` enum for description of values. */
|
|
@@ -200,7 +200,7 @@ export type BrowseSecretsRequest = {
|
|
|
200
200
|
* Region to target. If none is passed will use default region from the
|
|
201
201
|
* config.
|
|
202
202
|
*/
|
|
203
|
-
region?:
|
|
203
|
+
region?: ScwRegion;
|
|
204
204
|
/** Filter by Project ID (optional). */
|
|
205
205
|
projectId?: string;
|
|
206
206
|
orderBy?: BrowseSecretsRequestOrderBy;
|
|
@@ -226,7 +226,7 @@ export type CreateSecretRequest = {
|
|
|
226
226
|
* Region to target. If none is passed will use default region from the
|
|
227
227
|
* config.
|
|
228
228
|
*/
|
|
229
|
-
region?:
|
|
229
|
+
region?: ScwRegion;
|
|
230
230
|
/** ID of the Project containing the secret. */
|
|
231
231
|
projectId?: string;
|
|
232
232
|
/** Name of the secret. */
|
|
@@ -258,7 +258,7 @@ export type CreateSecretVersionRequest = {
|
|
|
258
258
|
* Region to target. If none is passed will use default region from the
|
|
259
259
|
* config.
|
|
260
260
|
*/
|
|
261
|
-
region?:
|
|
261
|
+
region?: ScwRegion;
|
|
262
262
|
/** ID of the secret. */
|
|
263
263
|
secretId: string;
|
|
264
264
|
/** The base64-encoded secret payload of the version. */
|
|
@@ -297,7 +297,7 @@ export type DeleteSecretRequest = {
|
|
|
297
297
|
* Region to target. If none is passed will use default region from the
|
|
298
298
|
* config.
|
|
299
299
|
*/
|
|
300
|
-
region?:
|
|
300
|
+
region?: ScwRegion;
|
|
301
301
|
/** ID of the secret. */
|
|
302
302
|
secretId: string;
|
|
303
303
|
};
|
|
@@ -306,7 +306,7 @@ export type DeleteSecretVersionRequest = {
|
|
|
306
306
|
* Region to target. If none is passed will use default region from the
|
|
307
307
|
* config.
|
|
308
308
|
*/
|
|
309
|
-
region?:
|
|
309
|
+
region?: ScwRegion;
|
|
310
310
|
/** ID of the secret. */
|
|
311
311
|
secretId: string;
|
|
312
312
|
/**
|
|
@@ -324,7 +324,7 @@ export type DisableSecretVersionRequest = {
|
|
|
324
324
|
* Region to target. If none is passed will use default region from the
|
|
325
325
|
* config.
|
|
326
326
|
*/
|
|
327
|
-
region?:
|
|
327
|
+
region?: ScwRegion;
|
|
328
328
|
/** ID of the secret. */
|
|
329
329
|
secretId: string;
|
|
330
330
|
/**
|
|
@@ -342,7 +342,7 @@ export type EnableSecretVersionRequest = {
|
|
|
342
342
|
* Region to target. If none is passed will use default region from the
|
|
343
343
|
* config.
|
|
344
344
|
*/
|
|
345
|
-
region?:
|
|
345
|
+
region?: ScwRegion;
|
|
346
346
|
/** ID of the secret. */
|
|
347
347
|
secretId: string;
|
|
348
348
|
/**
|
|
@@ -360,7 +360,7 @@ export type GetSecretRequest = {
|
|
|
360
360
|
* Region to target. If none is passed will use default region from the
|
|
361
361
|
* config.
|
|
362
362
|
*/
|
|
363
|
-
region?:
|
|
363
|
+
region?: ScwRegion;
|
|
364
364
|
/** ID of the secret. */
|
|
365
365
|
secretId: string;
|
|
366
366
|
};
|
|
@@ -369,7 +369,7 @@ export type GetSecretVersionRequest = {
|
|
|
369
369
|
* Region to target. If none is passed will use default region from the
|
|
370
370
|
* config.
|
|
371
371
|
*/
|
|
372
|
-
region?:
|
|
372
|
+
region?: ScwRegion;
|
|
373
373
|
/** ID of the secret. */
|
|
374
374
|
secretId: string;
|
|
375
375
|
/**
|
|
@@ -387,7 +387,7 @@ export type ListSecretTypesRequest = {
|
|
|
387
387
|
* Region to target. If none is passed will use default region from the
|
|
388
388
|
* config.
|
|
389
389
|
*/
|
|
390
|
-
region?:
|
|
390
|
+
region?: ScwRegion;
|
|
391
391
|
/** ID of the Project to target. */
|
|
392
392
|
projectId?: string;
|
|
393
393
|
page?: number;
|
|
@@ -404,7 +404,7 @@ export type ListSecretVersionsRequest = {
|
|
|
404
404
|
* Region to target. If none is passed will use default region from the
|
|
405
405
|
* config.
|
|
406
406
|
*/
|
|
407
|
-
region?:
|
|
407
|
+
region?: ScwRegion;
|
|
408
408
|
/** ID of the secret. */
|
|
409
409
|
secretId: string;
|
|
410
410
|
page?: number;
|
|
@@ -423,7 +423,7 @@ export type ListSecretsRequest = {
|
|
|
423
423
|
* Region to target. If none is passed will use default region from the
|
|
424
424
|
* config.
|
|
425
425
|
*/
|
|
426
|
-
region?:
|
|
426
|
+
region?: ScwRegion;
|
|
427
427
|
/** Filter by Organization ID (optional). */
|
|
428
428
|
organizationId?: string;
|
|
429
429
|
/** Filter by Project ID (optional). */
|
|
@@ -453,7 +453,7 @@ export type ListTagsRequest = {
|
|
|
453
453
|
* Region to target. If none is passed will use default region from the
|
|
454
454
|
* config.
|
|
455
455
|
*/
|
|
456
|
-
region?:
|
|
456
|
+
region?: ScwRegion;
|
|
457
457
|
/** ID of the Project to target. */
|
|
458
458
|
projectId?: string;
|
|
459
459
|
page?: number;
|
|
@@ -470,7 +470,7 @@ export type ProtectSecretRequest = {
|
|
|
470
470
|
* Region to target. If none is passed will use default region from the
|
|
471
471
|
* config.
|
|
472
472
|
*/
|
|
473
|
-
region?:
|
|
473
|
+
region?: ScwRegion;
|
|
474
474
|
/** ID of the secret to enable secret protection for. */
|
|
475
475
|
secretId: string;
|
|
476
476
|
};
|
|
@@ -483,7 +483,7 @@ export type UnprotectSecretRequest = {
|
|
|
483
483
|
* Region to target. If none is passed will use default region from the
|
|
484
484
|
* config.
|
|
485
485
|
*/
|
|
486
|
-
region?:
|
|
486
|
+
region?: ScwRegion;
|
|
487
487
|
/** ID of the secret to disable secret protection for. */
|
|
488
488
|
secretId: string;
|
|
489
489
|
};
|
|
@@ -492,7 +492,7 @@ export type UpdateSecretRequest = {
|
|
|
492
492
|
* Region to target. If none is passed will use default region from the
|
|
493
493
|
* config.
|
|
494
494
|
*/
|
|
495
|
-
region?:
|
|
495
|
+
region?: ScwRegion;
|
|
496
496
|
/** ID of the secret. */
|
|
497
497
|
secretId: string;
|
|
498
498
|
/** Secret's updated name (optional). */
|
|
@@ -514,7 +514,7 @@ export type UpdateSecretVersionRequest = {
|
|
|
514
514
|
* Region to target. If none is passed will use default region from the
|
|
515
515
|
* config.
|
|
516
516
|
*/
|
|
517
|
-
region?:
|
|
517
|
+
region?: ScwRegion;
|
|
518
518
|
/** ID of the secret. */
|
|
519
519
|
secretId: string;
|
|
520
520
|
/**
|
|
@@ -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 { CreateDatabaseRequest, Database, DatabaseBackup, DeleteDatabaseRequest, ExportDatabaseBackupRequest, GetDatabaseBackupRequest, GetDatabaseRequest, ListDatabaseBackupsRequest, ListDatabaseBackupsResponse, ListDatabasesRequest, ListDatabasesResponse, RestoreDatabaseFromBackupRequest, UpdateDatabaseRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Serverless SQL Databases API.
|
|
@@ -8,7 +8,7 @@ import type { CreateDatabaseRequest, Database, DatabaseBackup, DeleteDatabaseReq
|
|
|
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
|
/**
|
|
13
13
|
* Create a new Serverless SQL Database. You must provide the following
|
|
14
14
|
* parameters: `organization_id`, `project_id`, `name`, `cpu_min`, `cpu_max`.
|