@scaleway/sdk 1.16.0 → 1.17.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/container/v1beta1/api.gen.js +99 -2
- package/dist/api/container/v1beta1/content.gen.js +4 -1
- package/dist/api/container/v1beta1/index.gen.js +1 -1
- package/dist/api/container/v1beta1/marshalling.gen.js +107 -1
- package/dist/api/instance/v1/marshalling.gen.js +1 -0
- package/dist/api/lb/v1/api.gen.js +72 -49
- package/dist/api/lb/v1/marshalling.gen.js +0 -4
- package/dist/api/marketplace/v2/api.gen.js +1 -1
- package/dist/api/marketplace/v2/marshalling.gen.js +1 -0
- package/dist/api/rdb/v1/index.gen.js +2 -0
- package/dist/api/rdb/v1/marshalling.gen.js +2 -0
- package/dist/api/rdb/v1/validation-rules.gen.js +10 -0
- package/dist/api/secret/v1alpha1/api.gen.js +1 -1
- package/dist/api/secret/v1alpha1/marshalling.gen.js +3 -1
- package/dist/api/vpc/v2/api.gen.js +16 -1
- package/dist/api/vpc/v2/marshalling.gen.js +1 -0
- package/dist/api/vpcgw/v1/api.gen.js +1 -1
- package/dist/index.cjs +254 -23
- package/dist/index.d.ts +393 -110
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -309,7 +309,7 @@ class API extends API$1 {
|
|
|
309
309
|
})();
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* List tags. List all tags associated
|
|
312
|
+
* List tags. List all tags associated with secrets within a given Project.
|
|
313
313
|
*
|
|
314
314
|
* @param request - The request {@link ListTagsRequest}
|
|
315
315
|
* @returns A Promise of ListTagsResponse
|
|
@@ -17,6 +17,7 @@ const unmarshalSecret = data => {
|
|
|
17
17
|
region: data.region,
|
|
18
18
|
status: data.status,
|
|
19
19
|
tags: data.tags,
|
|
20
|
+
type: data.type,
|
|
20
21
|
updatedAt: unmarshalDate(data.updated_at),
|
|
21
22
|
versionCount: data.version_count
|
|
22
23
|
};
|
|
@@ -88,7 +89,8 @@ const marshalCreateSecretRequest = (request, defaults) => ({
|
|
|
88
89
|
description: request.description,
|
|
89
90
|
name: request.name,
|
|
90
91
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
91
|
-
tags: request.tags
|
|
92
|
+
tags: request.tags,
|
|
93
|
+
type: request.type ?? 'unknown_secret_type'
|
|
92
94
|
});
|
|
93
95
|
const marshalCreateSecretVersionRequest = (request, defaults) => ({
|
|
94
96
|
data: request.data,
|
|
@@ -98,7 +98,7 @@ class API extends API$1 {
|
|
|
98
98
|
return _this3.client.fetch({
|
|
99
99
|
method: 'GET',
|
|
100
100
|
path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/private-networks`,
|
|
101
|
-
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId], ['tags', request.tags], ['vpc_id', request.vpcId])
|
|
101
|
+
urlParams: urlParams(['dhcp_enabled', request.dhcpEnabled], ['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId], ['tags', request.tags], ['vpc_id', request.vpcId])
|
|
102
102
|
}, unmarshalListPrivateNetworksResponse);
|
|
103
103
|
};
|
|
104
104
|
})();
|
|
@@ -206,6 +206,21 @@ class API extends API$1 {
|
|
|
206
206
|
};
|
|
207
207
|
})();
|
|
208
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Enable DHCP on a Private Network. Enable DHCP managed on an existing
|
|
211
|
+
* Private Network. Note that you will not be able to deactivate it
|
|
212
|
+
* afterwards.
|
|
213
|
+
*
|
|
214
|
+
* @param request - The request {@link EnableDHCPRequest}
|
|
215
|
+
* @returns A Promise of PrivateNetwork
|
|
216
|
+
*/
|
|
217
|
+
enableDHCP = request => this.client.fetch({
|
|
218
|
+
body: '{}',
|
|
219
|
+
headers: jsonContentHeaders,
|
|
220
|
+
method: 'POST',
|
|
221
|
+
path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/enable-dhcp`
|
|
222
|
+
}, unmarshalPrivateNetwork);
|
|
223
|
+
|
|
209
224
|
/**
|
|
210
225
|
* Set the subnets of a Private Network. Set subnets for an existing Private
|
|
211
226
|
* Network. Note that the method is PUT and not PATCH. Any existing subnets
|
|
@@ -14,7 +14,7 @@ const jsonContentHeaders = {
|
|
|
14
14
|
/** Public Gateways API. */
|
|
15
15
|
class API extends API$1 {
|
|
16
16
|
/** Lists the available zones of the API. */
|
|
17
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
17
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
18
18
|
pageOfListGateways = (() => {
|
|
19
19
|
var _this = this;
|
|
20
20
|
return function (request) {
|
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v1.
|
|
500
|
+
const version = 'v1.16.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -3423,7 +3423,7 @@ const UpdateServerRequest = {
|
|
|
3423
3423
|
}
|
|
3424
3424
|
};
|
|
3425
3425
|
|
|
3426
|
-
var validationRules_gen$
|
|
3426
|
+
var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
3427
3427
|
__proto__: null,
|
|
3428
3428
|
CreateServerRequest: CreateServerRequest,
|
|
3429
3429
|
CreateServerRequestInstall: CreateServerRequestInstall,
|
|
@@ -3444,7 +3444,7 @@ var index$r = /*#__PURE__*/Object.freeze({
|
|
|
3444
3444
|
SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES,
|
|
3445
3445
|
SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES,
|
|
3446
3446
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$1,
|
|
3447
|
-
ValidationRules: validationRules_gen$
|
|
3447
|
+
ValidationRules: validationRules_gen$5
|
|
3448
3448
|
});
|
|
3449
3449
|
|
|
3450
3450
|
var index$q = /*#__PURE__*/Object.freeze({
|
|
@@ -4091,6 +4091,9 @@ const NAMESPACE_TRANSIENT_STATUSES$2 = ['deleting', 'creating', 'pending'];
|
|
|
4091
4091
|
/** Lists transient statutes of the enum {@link TokenStatus}. */
|
|
4092
4092
|
const TOKEN_TRANSIENT_STATUSES$1 = ['deleting', 'creating'];
|
|
4093
4093
|
|
|
4094
|
+
/** Lists transient statutes of the enum {@link TriggerStatus}. */
|
|
4095
|
+
const TRIGGER_TRANSIENT_STATUSES$1 = ['deleting', 'creating', 'pending'];
|
|
4096
|
+
|
|
4094
4097
|
// This file was automatically generated. DO NOT EDIT.
|
|
4095
4098
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4096
4099
|
const unmarshalSecretHashedValue$1 = data => {
|
|
@@ -4102,6 +4105,41 @@ const unmarshalSecretHashedValue$1 = data => {
|
|
|
4102
4105
|
key: data.key
|
|
4103
4106
|
};
|
|
4104
4107
|
};
|
|
4108
|
+
const unmarshalTriggerMnqNatsClientConfig$1 = data => {
|
|
4109
|
+
if (!isJSONObject(data)) {
|
|
4110
|
+
throw new TypeError(`Unmarshalling the type 'TriggerMnqNatsClientConfig' failed as data isn't a dictionary.`);
|
|
4111
|
+
}
|
|
4112
|
+
return {
|
|
4113
|
+
mnqCredentialId: data.mnq_credential_id,
|
|
4114
|
+
mnqNamespaceId: data.mnq_namespace_id,
|
|
4115
|
+
mnqProjectId: data.mnq_project_id,
|
|
4116
|
+
mnqRegion: data.mnq_region,
|
|
4117
|
+
subject: data.subject
|
|
4118
|
+
};
|
|
4119
|
+
};
|
|
4120
|
+
const unmarshalTriggerMnqSqsClientConfig$1 = data => {
|
|
4121
|
+
if (!isJSONObject(data)) {
|
|
4122
|
+
throw new TypeError(`Unmarshalling the type 'TriggerMnqSqsClientConfig' failed as data isn't a dictionary.`);
|
|
4123
|
+
}
|
|
4124
|
+
return {
|
|
4125
|
+
mnqCredentialId: data.mnq_credential_id,
|
|
4126
|
+
mnqNamespaceId: data.mnq_namespace_id,
|
|
4127
|
+
mnqProjectId: data.mnq_project_id,
|
|
4128
|
+
mnqRegion: data.mnq_region,
|
|
4129
|
+
queue: data.queue
|
|
4130
|
+
};
|
|
4131
|
+
};
|
|
4132
|
+
const unmarshalTriggerSqsClientConfig$1 = data => {
|
|
4133
|
+
if (!isJSONObject(data)) {
|
|
4134
|
+
throw new TypeError(`Unmarshalling the type 'TriggerSqsClientConfig' failed as data isn't a dictionary.`);
|
|
4135
|
+
}
|
|
4136
|
+
return {
|
|
4137
|
+
accessKey: data.access_key,
|
|
4138
|
+
endpoint: data.endpoint,
|
|
4139
|
+
queueUrl: data.queue_url,
|
|
4140
|
+
secretKey: data.secret_key
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4105
4143
|
const unmarshalContainer = data => {
|
|
4106
4144
|
if (!isJSONObject(data)) {
|
|
4107
4145
|
throw new TypeError(`Unmarshalling the type 'Container' failed as data isn't a dictionary.`);
|
|
@@ -4203,6 +4241,23 @@ const unmarshalToken$1 = data => {
|
|
|
4203
4241
|
token: data.token
|
|
4204
4242
|
};
|
|
4205
4243
|
};
|
|
4244
|
+
const unmarshalTrigger$1 = data => {
|
|
4245
|
+
if (!isJSONObject(data)) {
|
|
4246
|
+
throw new TypeError(`Unmarshalling the type 'Trigger' failed as data isn't a dictionary.`);
|
|
4247
|
+
}
|
|
4248
|
+
return {
|
|
4249
|
+
containerId: data.container_id,
|
|
4250
|
+
description: data.description,
|
|
4251
|
+
errorMessage: data.error_message,
|
|
4252
|
+
id: data.id,
|
|
4253
|
+
inputType: data.input_type,
|
|
4254
|
+
name: data.name,
|
|
4255
|
+
scwNatsConfig: data.scw_nats_config ? unmarshalTriggerMnqNatsClientConfig$1(data.scw_nats_config) : undefined,
|
|
4256
|
+
scwSqsConfig: data.scw_sqs_config ? unmarshalTriggerMnqSqsClientConfig$1(data.scw_sqs_config) : undefined,
|
|
4257
|
+
sqsConfig: data.sqs_config ? unmarshalTriggerSqsClientConfig$1(data.sqs_config) : undefined,
|
|
4258
|
+
status: data.status
|
|
4259
|
+
};
|
|
4260
|
+
};
|
|
4206
4261
|
const unmarshalListContainersResponse = data => {
|
|
4207
4262
|
if (!isJSONObject(data)) {
|
|
4208
4263
|
throw new TypeError(`Unmarshalling the type 'ListContainersResponse' failed as data isn't a dictionary.`);
|
|
@@ -4257,10 +4312,41 @@ const unmarshalListTokensResponse$1 = data => {
|
|
|
4257
4312
|
totalCount: data.total_count
|
|
4258
4313
|
};
|
|
4259
4314
|
};
|
|
4315
|
+
const unmarshalListTriggersResponse$1 = data => {
|
|
4316
|
+
if (!isJSONObject(data)) {
|
|
4317
|
+
throw new TypeError(`Unmarshalling the type 'ListTriggersResponse' failed as data isn't a dictionary.`);
|
|
4318
|
+
}
|
|
4319
|
+
return {
|
|
4320
|
+
totalCount: data.total_count,
|
|
4321
|
+
triggers: unmarshalArrayOfObject(data.triggers, unmarshalTrigger$1)
|
|
4322
|
+
};
|
|
4323
|
+
};
|
|
4324
|
+
const marshalCreateTriggerRequestMnqNatsClientConfig$1 = (request, defaults) => ({
|
|
4325
|
+
mnq_namespace_id: request.mnqNamespaceId,
|
|
4326
|
+
mnq_project_id: request.mnqProjectId,
|
|
4327
|
+
mnq_region: request.mnqRegion,
|
|
4328
|
+
subject: request.subject
|
|
4329
|
+
});
|
|
4330
|
+
const marshalCreateTriggerRequestMnqSqsClientConfig$1 = (request, defaults) => ({
|
|
4331
|
+
mnq_namespace_id: request.mnqNamespaceId,
|
|
4332
|
+
mnq_project_id: request.mnqProjectId,
|
|
4333
|
+
mnq_region: request.mnqRegion,
|
|
4334
|
+
queue: request.queue
|
|
4335
|
+
});
|
|
4336
|
+
const marshalCreateTriggerRequestSqsClientConfig$1 = (request, defaults) => ({
|
|
4337
|
+
access_key: request.accessKey,
|
|
4338
|
+
endpoint: request.endpoint,
|
|
4339
|
+
queue_url: request.queueUrl,
|
|
4340
|
+
secret_key: request.secretKey
|
|
4341
|
+
});
|
|
4260
4342
|
const marshalSecret$1 = (request, defaults) => ({
|
|
4261
4343
|
key: request.key,
|
|
4262
4344
|
value: request.value
|
|
4263
4345
|
});
|
|
4346
|
+
const marshalUpdateTriggerRequestSqsClientConfig$1 = (request, defaults) => ({
|
|
4347
|
+
access_key: request.accessKey,
|
|
4348
|
+
secret_key: request.secretKey
|
|
4349
|
+
});
|
|
4264
4350
|
const marshalCreateContainerRequest = (request, defaults) => ({
|
|
4265
4351
|
cpu_limit: request.cpuLimit,
|
|
4266
4352
|
description: request.description,
|
|
@@ -4307,6 +4393,21 @@ const marshalCreateTokenRequest$1 = (request, defaults) => ({
|
|
|
4307
4393
|
value: request.namespaceId
|
|
4308
4394
|
}])
|
|
4309
4395
|
});
|
|
4396
|
+
const marshalCreateTriggerRequest$1 = (request, defaults) => ({
|
|
4397
|
+
container_id: request.containerId,
|
|
4398
|
+
description: request.description,
|
|
4399
|
+
name: request.name,
|
|
4400
|
+
...resolveOneOf([{
|
|
4401
|
+
param: 'scw_sqs_config',
|
|
4402
|
+
value: request.scwSqsConfig ? marshalCreateTriggerRequestMnqSqsClientConfig$1(request.scwSqsConfig) : undefined
|
|
4403
|
+
}, {
|
|
4404
|
+
param: 'sqs_config',
|
|
4405
|
+
value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
|
|
4406
|
+
}, {
|
|
4407
|
+
param: 'scw_nats_config',
|
|
4408
|
+
value: request.scwNatsConfig ? marshalCreateTriggerRequestMnqNatsClientConfig$1(request.scwNatsConfig) : undefined
|
|
4409
|
+
}])
|
|
4410
|
+
});
|
|
4310
4411
|
const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
4311
4412
|
cpu_limit: request.cpuLimit,
|
|
4312
4413
|
description: request.description,
|
|
@@ -4335,6 +4436,14 @@ const marshalUpdateNamespaceRequest$3 = (request, defaults) => ({
|
|
|
4335
4436
|
environment_variables: request.environmentVariables,
|
|
4336
4437
|
secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret$1(elt)) : undefined
|
|
4337
4438
|
});
|
|
4439
|
+
const marshalUpdateTriggerRequest$1 = (request, defaults) => ({
|
|
4440
|
+
description: request.description,
|
|
4441
|
+
name: request.name,
|
|
4442
|
+
...resolveOneOf([{
|
|
4443
|
+
param: 'sqs_config',
|
|
4444
|
+
value: request.sqsConfig ? marshalUpdateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
|
|
4445
|
+
}])
|
|
4446
|
+
});
|
|
4338
4447
|
|
|
4339
4448
|
// This file was automatically generated. DO NOT EDIT.
|
|
4340
4449
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -4722,6 +4831,87 @@ let API$m = class API extends API$s {
|
|
|
4722
4831
|
method: 'DELETE',
|
|
4723
4832
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
|
|
4724
4833
|
}, unmarshalToken$1);
|
|
4834
|
+
|
|
4835
|
+
/**
|
|
4836
|
+
* Create a trigger. Create a new trigger for a specified container.
|
|
4837
|
+
*
|
|
4838
|
+
* @param request - The request {@link CreateTriggerRequest}
|
|
4839
|
+
* @returns A Promise of Trigger
|
|
4840
|
+
*/
|
|
4841
|
+
createTrigger = request => this.client.fetch({
|
|
4842
|
+
body: JSON.stringify(marshalCreateTriggerRequest$1(request, this.client.settings)),
|
|
4843
|
+
headers: jsonContentHeaders$k,
|
|
4844
|
+
method: 'POST',
|
|
4845
|
+
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
4846
|
+
}, unmarshalTrigger$1);
|
|
4847
|
+
|
|
4848
|
+
/**
|
|
4849
|
+
* Get a trigger. Get a trigger with a specified ID.
|
|
4850
|
+
*
|
|
4851
|
+
* @param request - The request {@link GetTriggerRequest}
|
|
4852
|
+
* @returns A Promise of Trigger
|
|
4853
|
+
*/
|
|
4854
|
+
getTrigger = request => this.client.fetch({
|
|
4855
|
+
method: 'GET',
|
|
4856
|
+
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
4857
|
+
}, unmarshalTrigger$1);
|
|
4858
|
+
|
|
4859
|
+
/**
|
|
4860
|
+
* Waits for {@link Trigger} to be in a final state.
|
|
4861
|
+
*
|
|
4862
|
+
* @param request - The request {@link GetTriggerRequest}
|
|
4863
|
+
* @param options - The waiting options
|
|
4864
|
+
* @returns A Promise of Trigger
|
|
4865
|
+
*/
|
|
4866
|
+
waitForTrigger = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!TRIGGER_TRANSIENT_STATUSES$1.includes(res.status))), this.getTrigger, request, options);
|
|
4867
|
+
pageOfListTriggers = (request = {}) => this.client.fetch({
|
|
4868
|
+
method: 'GET',
|
|
4869
|
+
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`,
|
|
4870
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
|
|
4871
|
+
default: this.client.settings.defaultProjectId,
|
|
4872
|
+
param: 'project_id',
|
|
4873
|
+
value: request.projectId
|
|
4874
|
+
}, {
|
|
4875
|
+
param: 'container_id',
|
|
4876
|
+
value: request.containerId
|
|
4877
|
+
}, {
|
|
4878
|
+
param: 'namespace_id',
|
|
4879
|
+
value: request.namespaceId
|
|
4880
|
+
}])))
|
|
4881
|
+
}, unmarshalListTriggersResponse$1);
|
|
4882
|
+
|
|
4883
|
+
/**
|
|
4884
|
+
* List all triggers. List all triggers belonging to a specified Organization
|
|
4885
|
+
* or Project.
|
|
4886
|
+
*
|
|
4887
|
+
* @param request - The request {@link ListTriggersRequest}
|
|
4888
|
+
* @returns A Promise of ListTriggersResponse
|
|
4889
|
+
*/
|
|
4890
|
+
listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
|
|
4891
|
+
|
|
4892
|
+
/**
|
|
4893
|
+
* Update a trigger. Update a trigger with a specified ID.
|
|
4894
|
+
*
|
|
4895
|
+
* @param request - The request {@link UpdateTriggerRequest}
|
|
4896
|
+
* @returns A Promise of Trigger
|
|
4897
|
+
*/
|
|
4898
|
+
updateTrigger = request => this.client.fetch({
|
|
4899
|
+
body: JSON.stringify(marshalUpdateTriggerRequest$1(request, this.client.settings)),
|
|
4900
|
+
headers: jsonContentHeaders$k,
|
|
4901
|
+
method: 'PATCH',
|
|
4902
|
+
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
4903
|
+
}, unmarshalTrigger$1);
|
|
4904
|
+
|
|
4905
|
+
/**
|
|
4906
|
+
* Delete a trigger. Delete a trigger with a specified ID.
|
|
4907
|
+
*
|
|
4908
|
+
* @param request - The request {@link DeleteTriggerRequest}
|
|
4909
|
+
* @returns A Promise of Trigger
|
|
4910
|
+
*/
|
|
4911
|
+
deleteTrigger = request => this.client.fetch({
|
|
4912
|
+
method: 'DELETE',
|
|
4913
|
+
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
4914
|
+
}, unmarshalTrigger$1);
|
|
4725
4915
|
};
|
|
4726
4916
|
|
|
4727
4917
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4734,7 +4924,8 @@ var index_gen$j = /*#__PURE__*/Object.freeze({
|
|
|
4734
4924
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
|
|
4735
4925
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
|
|
4736
4926
|
NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$2,
|
|
4737
|
-
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1
|
|
4927
|
+
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1,
|
|
4928
|
+
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1
|
|
4738
4929
|
});
|
|
4739
4930
|
|
|
4740
4931
|
var index$n = /*#__PURE__*/Object.freeze({
|
|
@@ -6993,7 +7184,7 @@ const ListFlexibleIPsRequest = {
|
|
|
6993
7184
|
}
|
|
6994
7185
|
};
|
|
6995
7186
|
|
|
6996
|
-
var validationRules_gen$
|
|
7187
|
+
var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
6997
7188
|
__proto__: null,
|
|
6998
7189
|
ListFlexibleIPsRequest: ListFlexibleIPsRequest
|
|
6999
7190
|
});
|
|
@@ -7006,7 +7197,7 @@ var index_gen$h = /*#__PURE__*/Object.freeze({
|
|
|
7006
7197
|
API: API$k,
|
|
7007
7198
|
FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
|
|
7008
7199
|
MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
|
|
7009
|
-
ValidationRules: validationRules_gen$
|
|
7200
|
+
ValidationRules: validationRules_gen$4
|
|
7010
7201
|
});
|
|
7011
7202
|
|
|
7012
7203
|
var index$l = /*#__PURE__*/Object.freeze({
|
|
@@ -9114,7 +9305,7 @@ const UpdateSSHKeyRequest = {
|
|
|
9114
9305
|
}
|
|
9115
9306
|
};
|
|
9116
9307
|
|
|
9117
|
-
var validationRules_gen$
|
|
9308
|
+
var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
|
|
9118
9309
|
__proto__: null,
|
|
9119
9310
|
CreateAPIKeyRequest: CreateAPIKeyRequest,
|
|
9120
9311
|
CreateApplicationRequest: CreateApplicationRequest,
|
|
@@ -9145,7 +9336,7 @@ var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
|
|
|
9145
9336
|
var index_gen$f = /*#__PURE__*/Object.freeze({
|
|
9146
9337
|
__proto__: null,
|
|
9147
9338
|
API: API$i,
|
|
9148
|
-
ValidationRules: validationRules_gen$
|
|
9339
|
+
ValidationRules: validationRules_gen$3
|
|
9149
9340
|
});
|
|
9150
9341
|
|
|
9151
9342
|
var index$j = /*#__PURE__*/Object.freeze({
|
|
@@ -10238,6 +10429,7 @@ const marshalCreatePlacementGroupRequest = (request, defaults) => ({
|
|
|
10238
10429
|
}])
|
|
10239
10430
|
});
|
|
10240
10431
|
const marshalCreatePrivateNICRequest = (request, defaults) => ({
|
|
10432
|
+
ip_ids: request.ipIds,
|
|
10241
10433
|
private_network_id: request.privateNetworkId,
|
|
10242
10434
|
tags: request.tags
|
|
10243
10435
|
});
|
|
@@ -13908,7 +14100,7 @@ const UpdateClusterRequestAutoscalerConfig = {
|
|
|
13908
14100
|
}
|
|
13909
14101
|
};
|
|
13910
14102
|
|
|
13911
|
-
var validationRules_gen$
|
|
14103
|
+
var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
|
|
13912
14104
|
__proto__: null,
|
|
13913
14105
|
CreateClusterRequest: CreateClusterRequest,
|
|
13914
14106
|
CreateClusterRequestAutoscalerConfig: CreateClusterRequestAutoscalerConfig,
|
|
@@ -13930,7 +14122,7 @@ var index$e = /*#__PURE__*/Object.freeze({
|
|
|
13930
14122
|
CLUSTER_TRANSIENT_STATUSES: CLUSTER_TRANSIENT_STATUSES$1,
|
|
13931
14123
|
NODE_TRANSIENT_STATUSES: NODE_TRANSIENT_STATUSES,
|
|
13932
14124
|
POOL_TRANSIENT_STATUSES: POOL_TRANSIENT_STATUSES,
|
|
13933
|
-
ValidationRules: validationRules_gen$
|
|
14125
|
+
ValidationRules: validationRules_gen$2
|
|
13934
14126
|
});
|
|
13935
14127
|
|
|
13936
14128
|
var index$d = /*#__PURE__*/Object.freeze({
|
|
@@ -14597,7 +14789,6 @@ const marshalCreateFrontendRequest = (request, defaults) => ({
|
|
|
14597
14789
|
timeout_client: request.timeoutClient
|
|
14598
14790
|
});
|
|
14599
14791
|
const marshalCreateIpRequest = (request, defaults) => ({
|
|
14600
|
-
is_ipv6: request.isIpv6,
|
|
14601
14792
|
reverse: request.reverse,
|
|
14602
14793
|
...resolveOneOf([{
|
|
14603
14794
|
default: defaults.defaultProjectId,
|
|
@@ -14613,7 +14804,6 @@ const marshalCreateLbRequest = (request, defaults) => ({
|
|
|
14613
14804
|
assign_flexible_ip: request.assignFlexibleIp,
|
|
14614
14805
|
description: request.description,
|
|
14615
14806
|
ip_id: request.ipId,
|
|
14616
|
-
ip_ids: request.ipIds,
|
|
14617
14807
|
name: request.name || randomName('lb'),
|
|
14618
14808
|
ssl_compatibility_level: request.sslCompatibilityLevel ?? 'ssl_compatibility_level_unknown',
|
|
14619
14809
|
tags: request.tags,
|
|
@@ -14822,7 +15012,6 @@ const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
|
|
|
14822
15012
|
timeout_client: request.timeoutClient
|
|
14823
15013
|
});
|
|
14824
15014
|
const marshalZonedApiCreateIpRequest = (request, defaults) => ({
|
|
14825
|
-
is_ipv6: request.isIpv6,
|
|
14826
15015
|
reverse: request.reverse,
|
|
14827
15016
|
...resolveOneOf([{
|
|
14828
15017
|
default: defaults.defaultProjectId,
|
|
@@ -14838,7 +15027,6 @@ const marshalZonedApiCreateLbRequest = (request, defaults) => ({
|
|
|
14838
15027
|
assign_flexible_ip: request.assignFlexibleIp,
|
|
14839
15028
|
description: request.description,
|
|
14840
15029
|
ip_id: request.ipId,
|
|
14841
|
-
ip_ids: request.ipIds,
|
|
14842
15030
|
name: request.name || randomName('lb'),
|
|
14843
15031
|
ssl_compatibility_level: request.sslCompatibilityLevel ?? 'ssl_compatibility_level_unknown',
|
|
14844
15032
|
tags: request.tags,
|
|
@@ -15103,7 +15291,7 @@ let API$d = class API extends API$s {
|
|
|
15103
15291
|
* @param request - The request {@link CreateIpRequest}
|
|
15104
15292
|
* @returns A Promise of Ip
|
|
15105
15293
|
*/
|
|
15106
|
-
createIp = request => this.client.fetch({
|
|
15294
|
+
createIp = (request = {}) => this.client.fetch({
|
|
15107
15295
|
body: JSON.stringify(marshalCreateIpRequest(request, this.client.settings)),
|
|
15108
15296
|
headers: jsonContentHeaders$b,
|
|
15109
15297
|
method: 'POST',
|
|
@@ -15393,6 +15581,13 @@ let API$d = class API extends API$s {
|
|
|
15393
15581
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
|
|
15394
15582
|
urlParams: urlParams(['backend_id', request.backendId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
15395
15583
|
}, unmarshalListBackendStatsResponse);
|
|
15584
|
+
|
|
15585
|
+
/**
|
|
15586
|
+
* List backend server statistics.
|
|
15587
|
+
*
|
|
15588
|
+
* @param request - The request {@link ListBackendStatsRequest}
|
|
15589
|
+
* @returns A Promise of ListBackendStatsResponse
|
|
15590
|
+
*/
|
|
15396
15591
|
listBackendStats = request => enrichForPagination('backendServersStats', this.pageOfListBackendStats, request);
|
|
15397
15592
|
pageOfListAcls = request => this.client.fetch({
|
|
15398
15593
|
method: 'GET',
|
|
@@ -15669,7 +15864,7 @@ let API$d = class API extends API$s {
|
|
|
15669
15864
|
*/
|
|
15670
15865
|
class ZonedAPI extends API$s {
|
|
15671
15866
|
/** Lists the available zones of the API. */
|
|
15672
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
15867
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
15673
15868
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
15674
15869
|
method: 'GET',
|
|
15675
15870
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs`,
|
|
@@ -15791,7 +15986,7 @@ class ZonedAPI extends API$s {
|
|
|
15791
15986
|
* @param request - The request {@link ZonedApiCreateIpRequest}
|
|
15792
15987
|
* @returns A Promise of Ip
|
|
15793
15988
|
*/
|
|
15794
|
-
createIp = request => this.client.fetch({
|
|
15989
|
+
createIp = (request = {}) => this.client.fetch({
|
|
15795
15990
|
body: JSON.stringify(marshalZonedApiCreateIpRequest(request, this.client.settings)),
|
|
15796
15991
|
headers: jsonContentHeaders$b,
|
|
15797
15992
|
method: 'POST',
|
|
@@ -16727,6 +16922,7 @@ const unmarshalLocalImage = data => {
|
|
|
16727
16922
|
compatibleCommercialTypes: data.compatible_commercial_types,
|
|
16728
16923
|
id: data.id,
|
|
16729
16924
|
label: data.label,
|
|
16925
|
+
type: data.type,
|
|
16730
16926
|
zone: data.zone
|
|
16731
16927
|
};
|
|
16732
16928
|
};
|
|
@@ -16839,7 +17035,7 @@ let API$b = class API extends API$s {
|
|
|
16839
17035
|
pageOfListLocalImages = (request = {}) => this.client.fetch({
|
|
16840
17036
|
method: 'GET',
|
|
16841
17037
|
path: `/marketplace/v2/local-images`,
|
|
16842
|
-
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['zone', request.zone ?? this.client.settings.defaultZone], ...Object.entries(resolveOneOf([{
|
|
17038
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['type', request.type ?? 'unknown_type'], ['zone', request.zone ?? this.client.settings.defaultZone], ...Object.entries(resolveOneOf([{
|
|
16843
17039
|
param: 'image_id',
|
|
16844
17040
|
value: request.imageId
|
|
16845
17041
|
}, {
|
|
@@ -17296,6 +17492,7 @@ const unmarshalBackupSchedule = data => {
|
|
|
17296
17492
|
return {
|
|
17297
17493
|
disabled: data.disabled,
|
|
17298
17494
|
frequency: data.frequency,
|
|
17495
|
+
nextRunAt: unmarshalDate(data.next_run_at),
|
|
17299
17496
|
retention: data.retention
|
|
17300
17497
|
};
|
|
17301
17498
|
};
|
|
@@ -17883,6 +18080,7 @@ const marshalUpdateInstanceRequest = (request, defaults) => ({
|
|
|
17883
18080
|
backup_same_region: request.backupSameRegion,
|
|
17884
18081
|
backup_schedule_frequency: request.backupScheduleFrequency,
|
|
17885
18082
|
backup_schedule_retention: request.backupScheduleRetention,
|
|
18083
|
+
backup_schedule_start_hour: request.backupScheduleStartHour,
|
|
17886
18084
|
is_backup_schedule_disabled: request.isBackupScheduleDisabled,
|
|
17887
18085
|
logs_policy: request.logsPolicy ? marshalLogsPolicy(request.logsPolicy) : undefined,
|
|
17888
18086
|
name: request.name,
|
|
@@ -18804,6 +19002,20 @@ let API$9 = class API extends API$s {
|
|
|
18804
19002
|
// This file was automatically generated. DO NOT EDIT.
|
|
18805
19003
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
18806
19004
|
|
|
19005
|
+
const UpdateInstanceRequest = {
|
|
19006
|
+
backupScheduleStartHour: {
|
|
19007
|
+
lessThanOrEqual: 23
|
|
19008
|
+
}
|
|
19009
|
+
};
|
|
19010
|
+
|
|
19011
|
+
var validationRules_gen$1 = /*#__PURE__*/Object.freeze({
|
|
19012
|
+
__proto__: null,
|
|
19013
|
+
UpdateInstanceRequest: UpdateInstanceRequest
|
|
19014
|
+
});
|
|
19015
|
+
|
|
19016
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
19017
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19018
|
+
|
|
18807
19019
|
var index_gen$9 = /*#__PURE__*/Object.freeze({
|
|
18808
19020
|
__proto__: null,
|
|
18809
19021
|
API: API$9,
|
|
@@ -18812,7 +19024,8 @@ var index_gen$9 = /*#__PURE__*/Object.freeze({
|
|
|
18812
19024
|
INSTANCE_TRANSIENT_STATUSES: INSTANCE_TRANSIENT_STATUSES,
|
|
18813
19025
|
MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES,
|
|
18814
19026
|
READ_REPLICA_TRANSIENT_STATUSES: READ_REPLICA_TRANSIENT_STATUSES,
|
|
18815
|
-
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES
|
|
19027
|
+
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES,
|
|
19028
|
+
ValidationRules: validationRules_gen$1
|
|
18816
19029
|
});
|
|
18817
19030
|
|
|
18818
19031
|
var index$8 = /*#__PURE__*/Object.freeze({
|
|
@@ -19841,6 +20054,7 @@ const unmarshalSecret = data => {
|
|
|
19841
20054
|
region: data.region,
|
|
19842
20055
|
status: data.status,
|
|
19843
20056
|
tags: data.tags,
|
|
20057
|
+
type: data.type,
|
|
19844
20058
|
updatedAt: unmarshalDate(data.updated_at),
|
|
19845
20059
|
versionCount: data.version_count
|
|
19846
20060
|
};
|
|
@@ -19912,7 +20126,8 @@ const marshalCreateSecretRequest = (request, defaults) => ({
|
|
|
19912
20126
|
description: request.description,
|
|
19913
20127
|
name: request.name,
|
|
19914
20128
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
19915
|
-
tags: request.tags
|
|
20129
|
+
tags: request.tags,
|
|
20130
|
+
type: request.type ?? 'unknown_secret_type'
|
|
19916
20131
|
});
|
|
19917
20132
|
const marshalCreateSecretVersionRequest = (request, defaults) => ({
|
|
19918
20133
|
data: request.data,
|
|
@@ -20224,7 +20439,7 @@ let API$6 = class API extends API$s {
|
|
|
20224
20439
|
}, unmarshalListTagsResponse);
|
|
20225
20440
|
|
|
20226
20441
|
/**
|
|
20227
|
-
* List tags. List all tags associated
|
|
20442
|
+
* List tags. List all tags associated with secrets within a given Project.
|
|
20228
20443
|
*
|
|
20229
20444
|
* @param request - The request {@link ListTagsRequest}
|
|
20230
20445
|
* @returns A Promise of ListTagsResponse
|
|
@@ -20993,6 +21208,7 @@ const unmarshalPrivateNetwork = data => {
|
|
|
20993
21208
|
}
|
|
20994
21209
|
return {
|
|
20995
21210
|
createdAt: unmarshalDate(data.created_at),
|
|
21211
|
+
dhcpEnabled: data.dhcp_enabled,
|
|
20996
21212
|
id: data.id,
|
|
20997
21213
|
name: data.name,
|
|
20998
21214
|
organizationId: data.organization_id,
|
|
@@ -21179,7 +21395,7 @@ let API$2 = class API extends API$s {
|
|
|
21179
21395
|
pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
|
|
21180
21396
|
method: 'GET',
|
|
21181
21397
|
path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks`,
|
|
21182
|
-
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId], ['tags', request.tags], ['vpc_id', request.vpcId])
|
|
21398
|
+
urlParams: urlParams(['dhcp_enabled', request.dhcpEnabled], ['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId], ['tags', request.tags], ['vpc_id', request.vpcId])
|
|
21183
21399
|
}, unmarshalListPrivateNetworksResponse);
|
|
21184
21400
|
|
|
21185
21401
|
/**
|
|
@@ -21261,6 +21477,21 @@ let API$2 = class API extends API$s {
|
|
|
21261
21477
|
path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/migrate-zonal`
|
|
21262
21478
|
});
|
|
21263
21479
|
|
|
21480
|
+
/**
|
|
21481
|
+
* Enable DHCP on a Private Network. Enable DHCP managed on an existing
|
|
21482
|
+
* Private Network. Note that you will not be able to deactivate it
|
|
21483
|
+
* afterwards.
|
|
21484
|
+
*
|
|
21485
|
+
* @param request - The request {@link EnableDHCPRequest}
|
|
21486
|
+
* @returns A Promise of PrivateNetwork
|
|
21487
|
+
*/
|
|
21488
|
+
enableDHCP = request => this.client.fetch({
|
|
21489
|
+
body: '{}',
|
|
21490
|
+
headers: jsonContentHeaders$2,
|
|
21491
|
+
method: 'POST',
|
|
21492
|
+
path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/enable-dhcp`
|
|
21493
|
+
}, unmarshalPrivateNetwork);
|
|
21494
|
+
|
|
21264
21495
|
/**
|
|
21265
21496
|
* Set the subnets of a Private Network. Set subnets for an existing Private
|
|
21266
21497
|
* Network. Note that the method is PUT and not PATCH. Any existing subnets
|
|
@@ -21672,7 +21903,7 @@ const jsonContentHeaders$1 = {
|
|
|
21672
21903
|
/** Public Gateways API. */
|
|
21673
21904
|
let API$1 = class API extends API$s {
|
|
21674
21905
|
/** Lists the available zones of the API. */
|
|
21675
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
21906
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
21676
21907
|
pageOfListGateways = (request = {}) => this.client.fetch({
|
|
21677
21908
|
method: 'GET',
|
|
21678
21909
|
path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways`,
|