@scaleway/sdk 2.23.0 → 2.24.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/iam/v1alpha1/marshalling.gen.js +3 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -2
- package/dist/api/secret/v1beta1/api.gen.js +14 -0
- package/dist/api/secret/v1beta1/index.gen.js +2 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.js +10 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +1 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
- package/dist/index.cjs +68 -35
- package/dist/index.d.ts +281 -200
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -112,8 +112,11 @@ const unmarshalQuotum = data => {
|
|
|
112
112
|
throw new TypeError(`Unmarshalling the type 'Quotum' failed as data isn't a dictionary.`);
|
|
113
113
|
}
|
|
114
114
|
return {
|
|
115
|
+
description: data.description,
|
|
115
116
|
limit: data.limit,
|
|
116
117
|
name: data.name,
|
|
118
|
+
prettyName: data.pretty_name,
|
|
119
|
+
unit: data.unit,
|
|
117
120
|
unlimited: data.unlimited
|
|
118
121
|
};
|
|
119
122
|
};
|
|
@@ -40,7 +40,7 @@ class API extends API$1 {
|
|
|
40
40
|
pageOfListJobDefinitions = (request = {}) => this.client.fetch({
|
|
41
41
|
method: 'GET',
|
|
42
42
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions`,
|
|
43
|
-
urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
43
|
+
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
44
44
|
}, unmarshalListJobDefinitionsResponse);
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -115,7 +115,7 @@ class API extends API$1 {
|
|
|
115
115
|
pageOfListJobRuns = (request = {}) => this.client.fetch({
|
|
116
116
|
method: 'GET',
|
|
117
117
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs`,
|
|
118
|
-
urlParams: urlParams(['job_definition_id', request.jobDefinitionId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
118
|
+
urlParams: urlParams(['job_definition_id', request.jobDefinitionId], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
119
119
|
}, unmarshalListJobRunsResponse);
|
|
120
120
|
|
|
121
121
|
/**
|
|
@@ -222,6 +222,20 @@ class API extends API$1 {
|
|
|
222
222
|
path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/access`
|
|
223
223
|
}, unmarshalAccessSecretVersionResponse);
|
|
224
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Access a secret's version using the secret's name and path. Access
|
|
227
|
+
* sensitive data in a secret's version specified by the `region`,
|
|
228
|
+
* `secret_name`, `secret_path` and `revision` parameters.
|
|
229
|
+
*
|
|
230
|
+
* @param request - The request {@link AccessSecretVersionByPathRequest}
|
|
231
|
+
* @returns A Promise of AccessSecretVersionResponse
|
|
232
|
+
*/
|
|
233
|
+
accessSecretVersionByPath = request => this.client.fetch({
|
|
234
|
+
method: 'GET',
|
|
235
|
+
path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets-by-path/versions/${validatePathParam('revision', request.revision)}/access`,
|
|
236
|
+
urlParams: urlParams(['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['secret_name', request.secretName], ['secret_path', request.secretPath])
|
|
237
|
+
}, unmarshalAccessSecretVersionResponse);
|
|
238
|
+
|
|
225
239
|
/**
|
|
226
240
|
* Enable a version. Make a specific version accessible. You must specify the
|
|
227
241
|
* `region`, `secret_id` and `revision` parameters.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { API } from './api.gen.js';
|
|
2
|
+
import * as validationRules_gen from './validation-rules.gen.js';
|
|
3
|
+
export { validationRules_gen as ValidationRules };
|
|
2
4
|
|
|
3
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
4
6
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -135,7 +135,7 @@ class API extends API$1 {
|
|
|
135
135
|
/**
|
|
136
136
|
* List your Serverless SQL Database backups. List all Serverless SQL Database
|
|
137
137
|
* backups for a given Scaleway Project or Database. By default, the backups
|
|
138
|
-
* returned in the list are ordered by creation date in
|
|
138
|
+
* returned in the list are ordered by creation date in descending order,
|
|
139
139
|
* though this can be modified via the order_by field.
|
|
140
140
|
*
|
|
141
141
|
* @param request - The request {@link ListDatabaseBackupsRequest}
|
|
@@ -38,6 +38,7 @@ const unmarshalHosting = data => {
|
|
|
38
38
|
offerEndOfLife: data.offer_end_of_life,
|
|
39
39
|
offerId: data.offer_id,
|
|
40
40
|
offerName: data.offer_name,
|
|
41
|
+
oneTimePassword: data.one_time_password,
|
|
41
42
|
options: unmarshalArrayOfObject(data.options, unmarshalHostingOption),
|
|
42
43
|
organizationId: data.organization_id,
|
|
43
44
|
platformGroup: data.platform_group,
|
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v2.
|
|
500
|
+
const version = 'v2.23.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -2322,7 +2322,7 @@ const ProjectApiUpdateProjectRequest = {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
};
|
|
2324
2324
|
|
|
2325
|
-
var validationRules_gen$
|
|
2325
|
+
var validationRules_gen$h = /*#__PURE__*/Object.freeze({
|
|
2326
2326
|
__proto__: null,
|
|
2327
2327
|
ProjectApiCreateProjectRequest: ProjectApiCreateProjectRequest,
|
|
2328
2328
|
ProjectApiListProjectsRequest: ProjectApiListProjectsRequest,
|
|
@@ -2335,7 +2335,7 @@ var validationRules_gen$g = /*#__PURE__*/Object.freeze({
|
|
|
2335
2335
|
var index_gen$w = /*#__PURE__*/Object.freeze({
|
|
2336
2336
|
__proto__: null,
|
|
2337
2337
|
ProjectAPI: ProjectAPI,
|
|
2338
|
-
ValidationRules: validationRules_gen$
|
|
2338
|
+
ValidationRules: validationRules_gen$h
|
|
2339
2339
|
});
|
|
2340
2340
|
|
|
2341
2341
|
var index$A = /*#__PURE__*/Object.freeze({
|
|
@@ -3606,7 +3606,7 @@ const UpdateServerRequest$1 = {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
};
|
|
3608
3608
|
|
|
3609
|
-
var validationRules_gen$
|
|
3609
|
+
var validationRules_gen$g = /*#__PURE__*/Object.freeze({
|
|
3610
3610
|
__proto__: null,
|
|
3611
3611
|
CreateServerRequest: CreateServerRequest,
|
|
3612
3612
|
CreateServerRequestInstall: CreateServerRequestInstall,
|
|
@@ -3627,7 +3627,7 @@ var index$y = /*#__PURE__*/Object.freeze({
|
|
|
3627
3627
|
SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES$1,
|
|
3628
3628
|
SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES,
|
|
3629
3629
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2,
|
|
3630
|
-
ValidationRules: validationRules_gen$
|
|
3630
|
+
ValidationRules: validationRules_gen$g
|
|
3631
3631
|
});
|
|
3632
3632
|
|
|
3633
3633
|
var index$x = /*#__PURE__*/Object.freeze({
|
|
@@ -4453,7 +4453,7 @@ const Reference = {
|
|
|
4453
4453
|
}
|
|
4454
4454
|
};
|
|
4455
4455
|
|
|
4456
|
-
var validationRules_gen$
|
|
4456
|
+
var validationRules_gen$f = /*#__PURE__*/Object.freeze({
|
|
4457
4457
|
__proto__: null,
|
|
4458
4458
|
CreateSnapshotRequest: CreateSnapshotRequest,
|
|
4459
4459
|
CreateVolumeRequest: CreateVolumeRequest,
|
|
@@ -4472,7 +4472,7 @@ var index_gen$s = /*#__PURE__*/Object.freeze({
|
|
|
4472
4472
|
REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
|
|
4473
4473
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$3,
|
|
4474
4474
|
VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES$1,
|
|
4475
|
-
ValidationRules: validationRules_gen$
|
|
4475
|
+
ValidationRules: validationRules_gen$f
|
|
4476
4476
|
});
|
|
4477
4477
|
|
|
4478
4478
|
var index$v = /*#__PURE__*/Object.freeze({
|
|
@@ -5959,7 +5959,7 @@ const UpdateTriggerRequest$1 = {
|
|
|
5959
5959
|
}
|
|
5960
5960
|
};
|
|
5961
5961
|
|
|
5962
|
-
var validationRules_gen$
|
|
5962
|
+
var validationRules_gen$e = /*#__PURE__*/Object.freeze({
|
|
5963
5963
|
__proto__: null,
|
|
5964
5964
|
CreateTriggerRequest: CreateTriggerRequest$1,
|
|
5965
5965
|
CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig$1,
|
|
@@ -5979,7 +5979,7 @@ var index_gen$q = /*#__PURE__*/Object.freeze({
|
|
|
5979
5979
|
NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$2,
|
|
5980
5980
|
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1,
|
|
5981
5981
|
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1,
|
|
5982
|
-
ValidationRules: validationRules_gen$
|
|
5982
|
+
ValidationRules: validationRules_gen$e
|
|
5983
5983
|
});
|
|
5984
5984
|
|
|
5985
5985
|
var index$t = /*#__PURE__*/Object.freeze({
|
|
@@ -8719,7 +8719,7 @@ const UpdateServerTagsRequest = {
|
|
|
8719
8719
|
}
|
|
8720
8720
|
};
|
|
8721
8721
|
|
|
8722
|
-
var validationRules_gen$
|
|
8722
|
+
var validationRules_gen$d = /*#__PURE__*/Object.freeze({
|
|
8723
8723
|
__proto__: null,
|
|
8724
8724
|
AttachFailoverIPToMacAddressRequest: AttachFailoverIPToMacAddressRequest,
|
|
8725
8725
|
AttachFailoverIPsRequest: AttachFailoverIPsRequest,
|
|
@@ -8829,7 +8829,7 @@ var index_gen$p = /*#__PURE__*/Object.freeze({
|
|
|
8829
8829
|
SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES,
|
|
8830
8830
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$1,
|
|
8831
8831
|
SERVICE_PROVISIONING_TRANSIENT_STATUSES: SERVICE_PROVISIONING_TRANSIENT_STATUSES,
|
|
8832
|
-
ValidationRules: validationRules_gen$
|
|
8832
|
+
ValidationRules: validationRules_gen$d
|
|
8833
8833
|
});
|
|
8834
8834
|
|
|
8835
8835
|
var index$s = /*#__PURE__*/Object.freeze({
|
|
@@ -10302,7 +10302,7 @@ const UpdateInstanceRequest$1 = {
|
|
|
10302
10302
|
}
|
|
10303
10303
|
};
|
|
10304
10304
|
|
|
10305
|
-
var validationRules_gen$
|
|
10305
|
+
var validationRules_gen$c = /*#__PURE__*/Object.freeze({
|
|
10306
10306
|
__proto__: null,
|
|
10307
10307
|
UpdateInstanceRequest: UpdateInstanceRequest$1
|
|
10308
10308
|
});
|
|
@@ -10318,7 +10318,7 @@ var index_gen$o = /*#__PURE__*/Object.freeze({
|
|
|
10318
10318
|
MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES$1,
|
|
10319
10319
|
READ_REPLICA_TRANSIENT_STATUSES: READ_REPLICA_TRANSIENT_STATUSES$1,
|
|
10320
10320
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$2,
|
|
10321
|
-
ValidationRules: validationRules_gen$
|
|
10321
|
+
ValidationRules: validationRules_gen$c
|
|
10322
10322
|
});
|
|
10323
10323
|
|
|
10324
10324
|
var index$r = /*#__PURE__*/Object.freeze({
|
|
@@ -12605,7 +12605,7 @@ const ListFlexibleIPsRequest = {
|
|
|
12605
12605
|
}
|
|
12606
12606
|
};
|
|
12607
12607
|
|
|
12608
|
-
var validationRules_gen$
|
|
12608
|
+
var validationRules_gen$b = /*#__PURE__*/Object.freeze({
|
|
12609
12609
|
__proto__: null,
|
|
12610
12610
|
ListFlexibleIPsRequest: ListFlexibleIPsRequest
|
|
12611
12611
|
});
|
|
@@ -12618,7 +12618,7 @@ var index_gen$m = /*#__PURE__*/Object.freeze({
|
|
|
12618
12618
|
API: API$n,
|
|
12619
12619
|
FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
|
|
12620
12620
|
MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
|
|
12621
|
-
ValidationRules: validationRules_gen$
|
|
12621
|
+
ValidationRules: validationRules_gen$b
|
|
12622
12622
|
});
|
|
12623
12623
|
|
|
12624
12624
|
var index$p = /*#__PURE__*/Object.freeze({
|
|
@@ -13551,7 +13551,7 @@ const UpdateTriggerRequest = {
|
|
|
13551
13551
|
}
|
|
13552
13552
|
};
|
|
13553
13553
|
|
|
13554
|
-
var validationRules_gen$
|
|
13554
|
+
var validationRules_gen$a = /*#__PURE__*/Object.freeze({
|
|
13555
13555
|
__proto__: null,
|
|
13556
13556
|
CreateTriggerRequest: CreateTriggerRequest,
|
|
13557
13557
|
CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig,
|
|
@@ -13571,7 +13571,7 @@ var index_gen$l = /*#__PURE__*/Object.freeze({
|
|
|
13571
13571
|
NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$1,
|
|
13572
13572
|
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES,
|
|
13573
13573
|
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES,
|
|
13574
|
-
ValidationRules: validationRules_gen$
|
|
13574
|
+
ValidationRules: validationRules_gen$a
|
|
13575
13575
|
});
|
|
13576
13576
|
|
|
13577
13577
|
var index$o = /*#__PURE__*/Object.freeze({
|
|
@@ -13689,8 +13689,11 @@ const unmarshalQuotum = data => {
|
|
|
13689
13689
|
throw new TypeError(`Unmarshalling the type 'Quotum' failed as data isn't a dictionary.`);
|
|
13690
13690
|
}
|
|
13691
13691
|
return {
|
|
13692
|
+
description: data.description,
|
|
13692
13693
|
limit: data.limit,
|
|
13693
13694
|
name: data.name,
|
|
13695
|
+
prettyName: data.pretty_name,
|
|
13696
|
+
unit: data.unit,
|
|
13694
13697
|
unlimited: data.unlimited
|
|
13695
13698
|
};
|
|
13696
13699
|
};
|
|
@@ -14912,7 +14915,7 @@ const UpdateSSHKeyRequest = {
|
|
|
14912
14915
|
}
|
|
14913
14916
|
};
|
|
14914
14917
|
|
|
14915
|
-
var validationRules_gen$
|
|
14918
|
+
var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
|
|
14916
14919
|
__proto__: null,
|
|
14917
14920
|
CreateAPIKeyRequest: CreateAPIKeyRequest,
|
|
14918
14921
|
CreateApplicationRequest: CreateApplicationRequest,
|
|
@@ -14944,7 +14947,7 @@ var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
|
|
|
14944
14947
|
var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
14945
14948
|
__proto__: null,
|
|
14946
14949
|
API: API$l,
|
|
14947
|
-
ValidationRules: validationRules_gen$
|
|
14950
|
+
ValidationRules: validationRules_gen$9
|
|
14948
14951
|
});
|
|
14949
14952
|
|
|
14950
14953
|
var index$n = /*#__PURE__*/Object.freeze({
|
|
@@ -18723,7 +18726,7 @@ const ListIPsRequest = {
|
|
|
18723
18726
|
}
|
|
18724
18727
|
};
|
|
18725
18728
|
|
|
18726
|
-
var validationRules_gen$
|
|
18729
|
+
var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
|
|
18727
18730
|
__proto__: null,
|
|
18728
18731
|
ListIPsRequest: ListIPsRequest
|
|
18729
18732
|
});
|
|
@@ -18734,7 +18737,7 @@ var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
|
|
|
18734
18737
|
var index_gen$i = /*#__PURE__*/Object.freeze({
|
|
18735
18738
|
__proto__: null,
|
|
18736
18739
|
API: API$i,
|
|
18737
|
-
ValidationRules: validationRules_gen$
|
|
18740
|
+
ValidationRules: validationRules_gen$8
|
|
18738
18741
|
});
|
|
18739
18742
|
|
|
18740
18743
|
var index$j = /*#__PURE__*/Object.freeze({
|
|
@@ -19383,7 +19386,7 @@ let API$g = class API extends API$z {
|
|
|
19383
19386
|
pageOfListJobDefinitions = (request = {}) => this.client.fetch({
|
|
19384
19387
|
method: 'GET',
|
|
19385
19388
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions`,
|
|
19386
|
-
urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
19389
|
+
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
19387
19390
|
}, unmarshalListJobDefinitionsResponse);
|
|
19388
19391
|
|
|
19389
19392
|
/**
|
|
@@ -19458,7 +19461,7 @@ let API$g = class API extends API$z {
|
|
|
19458
19461
|
pageOfListJobRuns = (request = {}) => this.client.fetch({
|
|
19459
19462
|
method: 'GET',
|
|
19460
19463
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs`,
|
|
19461
|
-
urlParams: urlParams(['job_definition_id', request.jobDefinitionId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
19464
|
+
urlParams: urlParams(['job_definition_id', request.jobDefinitionId], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
19462
19465
|
}, unmarshalListJobRunsResponse);
|
|
19463
19466
|
|
|
19464
19467
|
/**
|
|
@@ -19567,7 +19570,7 @@ const UpdateJobDefinitionRequestCronScheduleConfig = {
|
|
|
19567
19570
|
}
|
|
19568
19571
|
};
|
|
19569
19572
|
|
|
19570
|
-
var validationRules_gen$
|
|
19573
|
+
var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
|
|
19571
19574
|
__proto__: null,
|
|
19572
19575
|
CreateJobDefinitionRequest: CreateJobDefinitionRequest,
|
|
19573
19576
|
CreateJobDefinitionRequestCronScheduleConfig: CreateJobDefinitionRequestCronScheduleConfig,
|
|
@@ -19586,7 +19589,7 @@ var index_gen$g = /*#__PURE__*/Object.freeze({
|
|
|
19586
19589
|
__proto__: null,
|
|
19587
19590
|
API: API$g,
|
|
19588
19591
|
JOB_RUN_TRANSIENT_STATUSES: JOB_RUN_TRANSIENT_STATUSES,
|
|
19589
|
-
ValidationRules: validationRules_gen$
|
|
19592
|
+
ValidationRules: validationRules_gen$7
|
|
19590
19593
|
});
|
|
19591
19594
|
|
|
19592
19595
|
var index$h = /*#__PURE__*/Object.freeze({
|
|
@@ -20547,7 +20550,7 @@ const UpdateClusterRequestAutoscalerConfig = {
|
|
|
20547
20550
|
}
|
|
20548
20551
|
};
|
|
20549
20552
|
|
|
20550
|
-
var validationRules_gen$
|
|
20553
|
+
var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
|
|
20551
20554
|
__proto__: null,
|
|
20552
20555
|
CreateClusterRequest: CreateClusterRequest,
|
|
20553
20556
|
CreateClusterRequestAutoscalerConfig: CreateClusterRequestAutoscalerConfig,
|
|
@@ -20569,7 +20572,7 @@ var index$g = /*#__PURE__*/Object.freeze({
|
|
|
20569
20572
|
CLUSTER_TRANSIENT_STATUSES: CLUSTER_TRANSIENT_STATUSES$1,
|
|
20570
20573
|
NODE_TRANSIENT_STATUSES: NODE_TRANSIENT_STATUSES,
|
|
20571
20574
|
POOL_TRANSIENT_STATUSES: POOL_TRANSIENT_STATUSES,
|
|
20572
|
-
ValidationRules: validationRules_gen$
|
|
20575
|
+
ValidationRules: validationRules_gen$6
|
|
20573
20576
|
});
|
|
20574
20577
|
|
|
20575
20578
|
var index$f = /*#__PURE__*/Object.freeze({
|
|
@@ -23715,7 +23718,7 @@ const UpdateDeploymentRequest = {
|
|
|
23715
23718
|
}
|
|
23716
23719
|
};
|
|
23717
23720
|
|
|
23718
|
-
var validationRules_gen$
|
|
23721
|
+
var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
23719
23722
|
__proto__: null,
|
|
23720
23723
|
CreateDeploymentRequest: CreateDeploymentRequest,
|
|
23721
23724
|
ListDeploymentsRequest: ListDeploymentsRequest,
|
|
@@ -23730,7 +23733,7 @@ var index_gen$f = /*#__PURE__*/Object.freeze({
|
|
|
23730
23733
|
__proto__: null,
|
|
23731
23734
|
API: API$d,
|
|
23732
23735
|
DEPLOYMENT_TRANSIENT_STATUSES: DEPLOYMENT_TRANSIENT_STATUSES,
|
|
23733
|
-
ValidationRules: validationRules_gen$
|
|
23736
|
+
ValidationRules: validationRules_gen$5
|
|
23734
23737
|
});
|
|
23735
23738
|
|
|
23736
23739
|
var index$c = /*#__PURE__*/Object.freeze({
|
|
@@ -24635,7 +24638,7 @@ const SqsCredentials = {
|
|
|
24635
24638
|
}
|
|
24636
24639
|
};
|
|
24637
24640
|
|
|
24638
|
-
var validationRules_gen$
|
|
24641
|
+
var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
24639
24642
|
__proto__: null,
|
|
24640
24643
|
NatsAccount: NatsAccount,
|
|
24641
24644
|
NatsApiCreateNatsAccountRequest: NatsApiCreateNatsAccountRequest,
|
|
@@ -24658,7 +24661,7 @@ var index_gen$d = /*#__PURE__*/Object.freeze({
|
|
|
24658
24661
|
NatsAPI: NatsAPI,
|
|
24659
24662
|
SnsAPI: SnsAPI,
|
|
24660
24663
|
SqsAPI: SqsAPI,
|
|
24661
|
-
ValidationRules: validationRules_gen$
|
|
24664
|
+
ValidationRules: validationRules_gen$4
|
|
24662
24665
|
});
|
|
24663
24666
|
|
|
24664
24667
|
var index$a = /*#__PURE__*/Object.freeze({
|
|
@@ -26320,7 +26323,7 @@ const UpdateInstanceRequest = {
|
|
|
26320
26323
|
}
|
|
26321
26324
|
};
|
|
26322
26325
|
|
|
26323
|
-
var validationRules_gen$
|
|
26326
|
+
var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
|
|
26324
26327
|
__proto__: null,
|
|
26325
26328
|
UpdateInstanceRequest: UpdateInstanceRequest
|
|
26326
26329
|
});
|
|
@@ -26337,7 +26340,7 @@ var index_gen$c = /*#__PURE__*/Object.freeze({
|
|
|
26337
26340
|
MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES,
|
|
26338
26341
|
READ_REPLICA_TRANSIENT_STATUSES: READ_REPLICA_TRANSIENT_STATUSES,
|
|
26339
26342
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES,
|
|
26340
|
-
ValidationRules: validationRules_gen$
|
|
26343
|
+
ValidationRules: validationRules_gen$3
|
|
26341
26344
|
});
|
|
26342
26345
|
|
|
26343
26346
|
var index$9 = /*#__PURE__*/Object.freeze({
|
|
@@ -28321,6 +28324,20 @@ let API$7 = class API extends API$z {
|
|
|
28321
28324
|
path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/access`
|
|
28322
28325
|
}, unmarshalAccessSecretVersionResponse);
|
|
28323
28326
|
|
|
28327
|
+
/**
|
|
28328
|
+
* Access a secret's version using the secret's name and path. Access
|
|
28329
|
+
* sensitive data in a secret's version specified by the `region`,
|
|
28330
|
+
* `secret_name`, `secret_path` and `revision` parameters.
|
|
28331
|
+
*
|
|
28332
|
+
* @param request - The request {@link AccessSecretVersionByPathRequest}
|
|
28333
|
+
* @returns A Promise of AccessSecretVersionResponse
|
|
28334
|
+
*/
|
|
28335
|
+
accessSecretVersionByPath = request => this.client.fetch({
|
|
28336
|
+
method: 'GET',
|
|
28337
|
+
path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets-by-path/versions/${validatePathParam('revision', request.revision)}/access`,
|
|
28338
|
+
urlParams: urlParams(['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['secret_name', request.secretName], ['secret_path', request.secretPath])
|
|
28339
|
+
}, unmarshalAccessSecretVersionResponse);
|
|
28340
|
+
|
|
28324
28341
|
/**
|
|
28325
28342
|
* Enable a version. Make a specific version accessible. You must specify the
|
|
28326
28343
|
* `region`, `secret_id` and `revision` parameters.
|
|
@@ -28366,9 +28383,24 @@ let API$7 = class API extends API$z {
|
|
|
28366
28383
|
// This file was automatically generated. DO NOT EDIT.
|
|
28367
28384
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
28368
28385
|
|
|
28386
|
+
const DatabaseCredentials = {
|
|
28387
|
+
port: {
|
|
28388
|
+
pattern: /^[0-9]+$/
|
|
28389
|
+
}
|
|
28390
|
+
};
|
|
28391
|
+
|
|
28392
|
+
var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
|
|
28393
|
+
__proto__: null,
|
|
28394
|
+
DatabaseCredentials: DatabaseCredentials
|
|
28395
|
+
});
|
|
28396
|
+
|
|
28397
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
28398
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
28399
|
+
|
|
28369
28400
|
var index_gen$8 = /*#__PURE__*/Object.freeze({
|
|
28370
28401
|
__proto__: null,
|
|
28371
|
-
API: API$7
|
|
28402
|
+
API: API$7,
|
|
28403
|
+
ValidationRules: validationRules_gen$2
|
|
28372
28404
|
});
|
|
28373
28405
|
|
|
28374
28406
|
var index$6 = /*#__PURE__*/Object.freeze({
|
|
@@ -28586,7 +28618,7 @@ let API$6 = class API extends API$z {
|
|
|
28586
28618
|
/**
|
|
28587
28619
|
* List your Serverless SQL Database backups. List all Serverless SQL Database
|
|
28588
28620
|
* backups for a given Scaleway Project or Database. By default, the backups
|
|
28589
|
-
* returned in the list are ordered by creation date in
|
|
28621
|
+
* returned in the list are ordered by creation date in descending order,
|
|
28590
28622
|
* though this can be modified via the order_by field.
|
|
28591
28623
|
*
|
|
28592
28624
|
* @param request - The request {@link ListDatabaseBackupsRequest}
|
|
@@ -30837,6 +30869,7 @@ const unmarshalHosting = data => {
|
|
|
30837
30869
|
offerEndOfLife: data.offer_end_of_life,
|
|
30838
30870
|
offerId: data.offer_id,
|
|
30839
30871
|
offerName: data.offer_name,
|
|
30872
|
+
oneTimePassword: data.one_time_password,
|
|
30840
30873
|
options: unmarshalArrayOfObject(data.options, unmarshalHostingOption),
|
|
30841
30874
|
organizationId: data.organization_id,
|
|
30842
30875
|
platformGroup: data.platform_group,
|