@scaleway/sdk 1.15.0 → 1.16.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/instance/v1/api.gen.js +2 -1
- package/dist/api/instance/v1/content.gen.js +4 -1
- package/dist/api/instance/v1/index.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +25 -3
- package/dist/api/redis/v1/marshalling.gen.js +1 -0
- package/dist/api/secret/v1alpha1/api.gen.js +34 -5
- package/dist/api/secret/v1alpha1/marshalling.gen.js +10 -1
- package/dist/api/vpc/v1/api.gen.js +1 -1
- package/dist/api/webhosting/v1alpha1/content.gen.js +1 -1
- package/dist/index.cjs +63 -13
- package/dist/index.d.ts +112 -18
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ const jsonContentHeaders = {
|
|
|
12
12
|
/** Instance API. */
|
|
13
13
|
class API extends API$1 {
|
|
14
14
|
/** Lists the available zones of the API. */
|
|
15
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
15
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Get availability. Get availability for all Instance types.
|
|
@@ -163,6 +163,7 @@ class API extends API$1 {
|
|
|
163
163
|
* keep the slot on the hypervisor. `reboot`: Stop the instance and restart
|
|
164
164
|
* it. `backup`: Create an image with all the volumes of an Instance.
|
|
165
165
|
* `terminate`: Delete the Instance along with all attached volumes.
|
|
166
|
+
* `enable_routed_ip`: Migrate the Instance to the new network stack.
|
|
166
167
|
*
|
|
167
168
|
* Keep in mind that terminating an Instance will result in the deletion of
|
|
168
169
|
* all attached volumes, including local and block storage. If you want to
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
/** Lists transient statutes of the enum {@link ImageState}. */
|
|
5
5
|
const IMAGE_TRANSIENT_STATUSES = ['creating'];
|
|
6
6
|
|
|
7
|
+
/** Lists transient statutes of the enum {@link IpState}. */
|
|
8
|
+
const IP_TRANSIENT_STATUSES = ['pending'];
|
|
9
|
+
|
|
7
10
|
/** Lists transient statutes of the enum {@link PrivateNICState}. */
|
|
8
11
|
const PRIVATE_NIC_TRANSIENT_STATUSES = ['syncing'];
|
|
9
12
|
|
|
@@ -25,4 +28,4 @@ const VOLUME_SERVER_TRANSIENT_STATUSES = ['snapshotting', 'fetching', 'resizing'
|
|
|
25
28
|
/** Lists transient statutes of the enum {@link VolumeState}. */
|
|
26
29
|
const VOLUME_TRANSIENT_STATUSES = ['snapshotting', 'fetching', 'resizing', 'saving', 'hotsyncing'];
|
|
27
30
|
|
|
28
|
-
export { IMAGE_TRANSIENT_STATUSES, PRIVATE_NIC_TRANSIENT_STATUSES, SECURITY_GROUP_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, TASK_TRANSIENT_STATUSES, VOLUME_SERVER_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES };
|
|
31
|
+
export { IMAGE_TRANSIENT_STATUSES, IP_TRANSIENT_STATUSES, PRIVATE_NIC_TRANSIENT_STATUSES, SECURITY_GROUP_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, TASK_TRANSIENT_STATUSES, VOLUME_SERVER_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { InstanceV1UtilsAPI as API } from './api.utils.js';
|
|
2
|
-
export { IMAGE_TRANSIENT_STATUSES, PRIVATE_NIC_TRANSIENT_STATUSES, SECURITY_GROUP_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, TASK_TRANSIENT_STATUSES, VOLUME_SERVER_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES } from './content.gen.js';
|
|
2
|
+
export { IMAGE_TRANSIENT_STATUSES, IP_TRANSIENT_STATUSES, PRIVATE_NIC_TRANSIENT_STATUSES, SECURITY_GROUP_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, TASK_TRANSIENT_STATUSES, VOLUME_SERVER_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES } from './content.gen.js';
|
|
@@ -148,7 +148,11 @@ const unmarshalServerIp = data => {
|
|
|
148
148
|
return {
|
|
149
149
|
address: data.address,
|
|
150
150
|
dynamic: data.dynamic,
|
|
151
|
-
|
|
151
|
+
family: data.family,
|
|
152
|
+
gateway: data.gateway,
|
|
153
|
+
id: data.id,
|
|
154
|
+
netmask: data.netmask,
|
|
155
|
+
provisioningMode: data.provisioning_mode
|
|
152
156
|
};
|
|
153
157
|
};
|
|
154
158
|
const unmarshalServerIpv6 = data => {
|
|
@@ -293,10 +297,13 @@ const unmarshalIp = data => {
|
|
|
293
297
|
address: data.address,
|
|
294
298
|
id: data.id,
|
|
295
299
|
organization: data.organization,
|
|
300
|
+
prefix: data.prefix,
|
|
296
301
|
project: data.project,
|
|
297
302
|
reverse: data.reverse,
|
|
298
303
|
server: data.server ? unmarshalServerSummary(data.server) : undefined,
|
|
304
|
+
state: data.state,
|
|
299
305
|
tags: data.tags,
|
|
306
|
+
type: data.type,
|
|
300
307
|
zone: data.zone
|
|
301
308
|
};
|
|
302
309
|
};
|
|
@@ -369,6 +376,7 @@ const unmarshalServer = data => {
|
|
|
369
376
|
image: data.image ? unmarshalImage(data.image) : undefined,
|
|
370
377
|
ipv6: data.ipv6 ? unmarshalServerIpv6(data.ipv6) : undefined,
|
|
371
378
|
location: data.location ? unmarshalServerLocation(data.location) : undefined,
|
|
379
|
+
macAddress: data.mac_address,
|
|
372
380
|
maintenances: unmarshalArrayOfObject(data.maintenances, unmarshalServerMaintenance),
|
|
373
381
|
modificationDate: unmarshalDate(data.modification_date),
|
|
374
382
|
name: data.name,
|
|
@@ -379,6 +387,8 @@ const unmarshalServer = data => {
|
|
|
379
387
|
project: data.project,
|
|
380
388
|
protected: data.protected,
|
|
381
389
|
publicIp: data.public_ip ? unmarshalServerIp(data.public_ip) : undefined,
|
|
390
|
+
publicIps: unmarshalArrayOfObject(data.public_ips, unmarshalServerIp),
|
|
391
|
+
routedIpEnabled: data.routed_ip_enabled,
|
|
382
392
|
securityGroup: data.security_group ? unmarshalSecurityGroupSummary(data.security_group) : undefined,
|
|
383
393
|
state: data.state,
|
|
384
394
|
stateDetail: data.state_detail,
|
|
@@ -969,7 +979,11 @@ const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
|
|
|
969
979
|
const marshalServerIp = (request, defaults) => ({
|
|
970
980
|
address: request.address,
|
|
971
981
|
dynamic: request.dynamic,
|
|
972
|
-
|
|
982
|
+
family: request.family,
|
|
983
|
+
gateway: request.gateway,
|
|
984
|
+
id: request.id,
|
|
985
|
+
netmask: request.netmask,
|
|
986
|
+
provisioning_mode: request.provisioningMode
|
|
973
987
|
});
|
|
974
988
|
const marshalServerIpv6 = (request, defaults) => ({
|
|
975
989
|
address: request.address,
|
|
@@ -1052,6 +1066,7 @@ const marshalCreateImageRequest = (request, defaults) => ({
|
|
|
1052
1066
|
const marshalCreateIpRequest = (request, defaults) => ({
|
|
1053
1067
|
server: request.server,
|
|
1054
1068
|
tags: request.tags,
|
|
1069
|
+
type: request.type ?? 'unknown_iptype',
|
|
1055
1070
|
...resolveOneOf([{
|
|
1056
1071
|
default: defaults.defaultProjectId,
|
|
1057
1072
|
param: 'project',
|
|
@@ -1126,6 +1141,8 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
1126
1141
|
name: request.name || randomName('srv'),
|
|
1127
1142
|
placement_group: request.placementGroup,
|
|
1128
1143
|
public_ip: request.publicIp,
|
|
1144
|
+
public_ips: request.publicIps,
|
|
1145
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
1129
1146
|
security_group: request.securityGroup,
|
|
1130
1147
|
tags: request.tags,
|
|
1131
1148
|
volumes: request.volumes ? Object.entries(request.volumes).reduce((acc, _ref3) => {
|
|
@@ -1287,6 +1304,8 @@ const marshalSetServerRequest = (request, defaults) => ({
|
|
|
1287
1304
|
project: request.project,
|
|
1288
1305
|
protected: request.protected,
|
|
1289
1306
|
public_ip: request.publicIp ? marshalServerIp(request.publicIp) : undefined,
|
|
1307
|
+
public_ips: request.publicIps ? request.publicIps.map(elt => marshalServerIp(elt)) : undefined,
|
|
1308
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
1290
1309
|
security_group: request.securityGroup ? marshalSecurityGroupSummary(request.securityGroup) : undefined,
|
|
1291
1310
|
state: request.state,
|
|
1292
1311
|
state_detail: request.stateDetail,
|
|
@@ -1315,7 +1334,8 @@ const marshalSetSnapshotRequest = (request, defaults) => ({
|
|
|
1315
1334
|
const marshalUpdateIpRequest = (request, defaults) => ({
|
|
1316
1335
|
reverse: request.reverse,
|
|
1317
1336
|
server: request.server,
|
|
1318
|
-
tags: request.tags
|
|
1337
|
+
tags: request.tags,
|
|
1338
|
+
type: request.type ?? 'unknown_iptype'
|
|
1319
1339
|
});
|
|
1320
1340
|
const marshalUpdatePlacementGroupRequest = (request, defaults) => ({
|
|
1321
1341
|
name: request.name,
|
|
@@ -1338,6 +1358,8 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
1338
1358
|
placement_group: request.placementGroup,
|
|
1339
1359
|
private_nics: request.privateNics ? request.privateNics.map(elt => marshalPrivateNIC(elt)) : undefined,
|
|
1340
1360
|
protected: request.protected,
|
|
1361
|
+
public_ips: request.publicIps ? request.publicIps.map(elt => marshalServerIp(elt)) : undefined,
|
|
1362
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
1341
1363
|
security_group: request.securityGroup ? marshalSecurityGroupTemplate(request.securityGroup) : undefined,
|
|
1342
1364
|
tags: request.tags,
|
|
1343
1365
|
volumes: request.volumes ? Object.entries(request.volumes).reduce((acc, _ref7) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { API as API$1 } from '../../../scw/api.js';
|
|
2
2
|
import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
|
|
3
3
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
4
|
-
import { marshalCreateSecretRequest, unmarshalSecret, marshalUpdateSecretRequest, unmarshalListSecretsResponse, marshalAddSecretOwnerRequest, marshalCreateSecretVersionRequest, unmarshalSecretVersion, marshalGeneratePasswordRequest, marshalUpdateSecretVersionRequest, unmarshalListSecretVersionsResponse, unmarshalAccessSecretVersionResponse } from './marshalling.gen.js';
|
|
4
|
+
import { marshalCreateSecretRequest, unmarshalSecret, marshalUpdateSecretRequest, unmarshalListSecretsResponse, marshalAddSecretOwnerRequest, marshalCreateSecretVersionRequest, unmarshalSecretVersion, marshalGeneratePasswordRequest, marshalUpdateSecretVersionRequest, unmarshalListSecretVersionsResponse, unmarshalAccessSecretVersionResponse, unmarshalListTagsResponse } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
7
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -33,8 +33,8 @@ class API extends API$1 {
|
|
|
33
33
|
}, unmarshalSecret);
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Get metadata using the secret's
|
|
37
|
-
* specified by the `region` and
|
|
36
|
+
* Get metadata using the secret's ID. Retrieve the metadata of a secret
|
|
37
|
+
* specified by the `region` and `secret_id` parameters.
|
|
38
38
|
*
|
|
39
39
|
* @param request - The request {@link GetSecretRequest}
|
|
40
40
|
* @returns A Promise of Secret
|
|
@@ -45,8 +45,8 @@ class API extends API$1 {
|
|
|
45
45
|
}, unmarshalSecret);
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Get metadata using the secret's
|
|
49
|
-
* specified by the `region
|
|
48
|
+
* Get metadata using the secret's name. Retrieve the metadata of a secret
|
|
49
|
+
* specified by the `region` and `secret_name` parameters.
|
|
50
50
|
*
|
|
51
51
|
* @param request - The request {@link GetSecretByNameRequest}
|
|
52
52
|
* @returns A Promise of Secret
|
|
@@ -294,6 +294,35 @@ class API extends API$1 {
|
|
|
294
294
|
method: 'POST',
|
|
295
295
|
path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/destroy`
|
|
296
296
|
}, unmarshalSecretVersion);
|
|
297
|
+
pageOfListTags = (() => {
|
|
298
|
+
var _this3 = this;
|
|
299
|
+
return function (request) {
|
|
300
|
+
if (request === void 0) {
|
|
301
|
+
request = {};
|
|
302
|
+
}
|
|
303
|
+
return _this3.client.fetch({
|
|
304
|
+
method: 'GET',
|
|
305
|
+
path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/tags`,
|
|
306
|
+
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
307
|
+
}, unmarshalListTagsResponse);
|
|
308
|
+
};
|
|
309
|
+
})();
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* List tags. List all tags associated to secrets in one or several Projects.
|
|
313
|
+
*
|
|
314
|
+
* @param request - The request {@link ListTagsRequest}
|
|
315
|
+
* @returns A Promise of ListTagsResponse
|
|
316
|
+
*/
|
|
317
|
+
listTags = (() => {
|
|
318
|
+
var _this4 = this;
|
|
319
|
+
return function (request) {
|
|
320
|
+
if (request === void 0) {
|
|
321
|
+
request = {};
|
|
322
|
+
}
|
|
323
|
+
return enrichForPagination('tags', _this4.pageOfListTags, request);
|
|
324
|
+
};
|
|
325
|
+
})();
|
|
297
326
|
}
|
|
298
327
|
|
|
299
328
|
export { API };
|
|
@@ -64,6 +64,15 @@ const unmarshalListSecretsResponse = data => {
|
|
|
64
64
|
totalCount: data.total_count
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
+
const unmarshalListTagsResponse = data => {
|
|
68
|
+
if (!isJSONObject(data)) {
|
|
69
|
+
throw new TypeError(`Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary.`);
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
tags: data.tags,
|
|
73
|
+
totalCount: data.total_count
|
|
74
|
+
};
|
|
75
|
+
};
|
|
67
76
|
const marshalPasswordGenerationParams = (request, defaults) => ({
|
|
68
77
|
additional_chars: request.additionalChars,
|
|
69
78
|
length: request.length,
|
|
@@ -109,4 +118,4 @@ const marshalUpdateSecretVersionRequest = (request, defaults) => ({
|
|
|
109
118
|
description: request.description
|
|
110
119
|
});
|
|
111
120
|
|
|
112
|
-
export { marshalAddSecretOwnerRequest, marshalCreateSecretRequest, marshalCreateSecretVersionRequest, marshalGeneratePasswordRequest, marshalUpdateSecretRequest, marshalUpdateSecretVersionRequest, unmarshalAccessSecretVersionResponse, unmarshalListSecretVersionsResponse, unmarshalListSecretsResponse, unmarshalSecret, unmarshalSecretVersion };
|
|
121
|
+
export { marshalAddSecretOwnerRequest, marshalCreateSecretRequest, marshalCreateSecretVersionRequest, marshalGeneratePasswordRequest, marshalUpdateSecretRequest, marshalUpdateSecretVersionRequest, unmarshalAccessSecretVersionResponse, unmarshalListSecretVersionsResponse, unmarshalListSecretsResponse, unmarshalListTagsResponse, unmarshalSecret, unmarshalSecretVersion };
|
|
@@ -12,7 +12,7 @@ const jsonContentHeaders = {
|
|
|
12
12
|
/** VPC API. */
|
|
13
13
|
class API extends API$1 {
|
|
14
14
|
/** Lists the available zones of the API. */
|
|
15
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
15
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
16
16
|
pageOfListPrivateNetworks = (() => {
|
|
17
17
|
var _this = this;
|
|
18
18
|
return function (request) {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3
3
|
|
|
4
4
|
/** Lists transient statutes of the enum {@link HostingStatus}. */
|
|
5
|
-
const HOSTING_TRANSIENT_STATUSES = ['delivering', 'deleting'];
|
|
5
|
+
const HOSTING_TRANSIENT_STATUSES = ['delivering', 'deleting', 'migrating'];
|
|
6
6
|
|
|
7
7
|
export { HOSTING_TRANSIENT_STATUSES };
|
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.15.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -9299,7 +9299,11 @@ const unmarshalServerIp = data => {
|
|
|
9299
9299
|
return {
|
|
9300
9300
|
address: data.address,
|
|
9301
9301
|
dynamic: data.dynamic,
|
|
9302
|
-
|
|
9302
|
+
family: data.family,
|
|
9303
|
+
gateway: data.gateway,
|
|
9304
|
+
id: data.id,
|
|
9305
|
+
netmask: data.netmask,
|
|
9306
|
+
provisioningMode: data.provisioning_mode
|
|
9303
9307
|
};
|
|
9304
9308
|
};
|
|
9305
9309
|
const unmarshalServerIpv6 = data => {
|
|
@@ -9444,10 +9448,13 @@ const unmarshalIp$1 = data => {
|
|
|
9444
9448
|
address: data.address,
|
|
9445
9449
|
id: data.id,
|
|
9446
9450
|
organization: data.organization,
|
|
9451
|
+
prefix: data.prefix,
|
|
9447
9452
|
project: data.project,
|
|
9448
9453
|
reverse: data.reverse,
|
|
9449
9454
|
server: data.server ? unmarshalServerSummary(data.server) : undefined,
|
|
9455
|
+
state: data.state,
|
|
9450
9456
|
tags: data.tags,
|
|
9457
|
+
type: data.type,
|
|
9451
9458
|
zone: data.zone
|
|
9452
9459
|
};
|
|
9453
9460
|
};
|
|
@@ -9520,6 +9527,7 @@ const unmarshalServer = data => {
|
|
|
9520
9527
|
image: data.image ? unmarshalImage$3(data.image) : undefined,
|
|
9521
9528
|
ipv6: data.ipv6 ? unmarshalServerIpv6(data.ipv6) : undefined,
|
|
9522
9529
|
location: data.location ? unmarshalServerLocation(data.location) : undefined,
|
|
9530
|
+
macAddress: data.mac_address,
|
|
9523
9531
|
maintenances: unmarshalArrayOfObject(data.maintenances, unmarshalServerMaintenance),
|
|
9524
9532
|
modificationDate: unmarshalDate(data.modification_date),
|
|
9525
9533
|
name: data.name,
|
|
@@ -9530,6 +9538,8 @@ const unmarshalServer = data => {
|
|
|
9530
9538
|
project: data.project,
|
|
9531
9539
|
protected: data.protected,
|
|
9532
9540
|
publicIp: data.public_ip ? unmarshalServerIp(data.public_ip) : undefined,
|
|
9541
|
+
publicIps: unmarshalArrayOfObject(data.public_ips, unmarshalServerIp),
|
|
9542
|
+
routedIpEnabled: data.routed_ip_enabled,
|
|
9533
9543
|
securityGroup: data.security_group ? unmarshalSecurityGroupSummary(data.security_group) : undefined,
|
|
9534
9544
|
state: data.state,
|
|
9535
9545
|
stateDetail: data.state_detail,
|
|
@@ -10117,7 +10127,11 @@ const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
|
|
|
10117
10127
|
const marshalServerIp = (request, defaults) => ({
|
|
10118
10128
|
address: request.address,
|
|
10119
10129
|
dynamic: request.dynamic,
|
|
10120
|
-
|
|
10130
|
+
family: request.family,
|
|
10131
|
+
gateway: request.gateway,
|
|
10132
|
+
id: request.id,
|
|
10133
|
+
netmask: request.netmask,
|
|
10134
|
+
provisioning_mode: request.provisioningMode
|
|
10121
10135
|
});
|
|
10122
10136
|
const marshalServerIpv6 = (request, defaults) => ({
|
|
10123
10137
|
address: request.address,
|
|
@@ -10197,6 +10211,7 @@ const marshalCreateImageRequest = (request, defaults) => ({
|
|
|
10197
10211
|
const marshalCreateIpRequest$1 = (request, defaults) => ({
|
|
10198
10212
|
server: request.server,
|
|
10199
10213
|
tags: request.tags,
|
|
10214
|
+
type: request.type ?? 'unknown_iptype',
|
|
10200
10215
|
...resolveOneOf([{
|
|
10201
10216
|
default: defaults.defaultProjectId,
|
|
10202
10217
|
param: 'project',
|
|
@@ -10271,6 +10286,8 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
10271
10286
|
name: request.name || randomName('srv'),
|
|
10272
10287
|
placement_group: request.placementGroup,
|
|
10273
10288
|
public_ip: request.publicIp,
|
|
10289
|
+
public_ips: request.publicIps,
|
|
10290
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
10274
10291
|
security_group: request.securityGroup,
|
|
10275
10292
|
tags: request.tags,
|
|
10276
10293
|
volumes: request.volumes ? Object.entries(request.volumes).reduce((acc, [key, value]) => ({
|
|
@@ -10423,6 +10440,8 @@ const marshalSetServerRequest = (request, defaults) => ({
|
|
|
10423
10440
|
project: request.project,
|
|
10424
10441
|
protected: request.protected,
|
|
10425
10442
|
public_ip: request.publicIp ? marshalServerIp(request.publicIp) : undefined,
|
|
10443
|
+
public_ips: request.publicIps ? request.publicIps.map(elt => marshalServerIp(elt)) : undefined,
|
|
10444
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
10426
10445
|
security_group: request.securityGroup ? marshalSecurityGroupSummary(request.securityGroup) : undefined,
|
|
10427
10446
|
state: request.state,
|
|
10428
10447
|
state_detail: request.stateDetail,
|
|
@@ -10448,7 +10467,8 @@ const marshalSetSnapshotRequest = (request, defaults) => ({
|
|
|
10448
10467
|
const marshalUpdateIpRequest$1 = (request, defaults) => ({
|
|
10449
10468
|
reverse: request.reverse,
|
|
10450
10469
|
server: request.server,
|
|
10451
|
-
tags: request.tags
|
|
10470
|
+
tags: request.tags,
|
|
10471
|
+
type: request.type ?? 'unknown_iptype'
|
|
10452
10472
|
});
|
|
10453
10473
|
const marshalUpdatePlacementGroupRequest = (request, defaults) => ({
|
|
10454
10474
|
name: request.name,
|
|
@@ -10471,6 +10491,8 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
10471
10491
|
placement_group: request.placementGroup,
|
|
10472
10492
|
private_nics: request.privateNics ? request.privateNics.map(elt => marshalPrivateNIC(elt)) : undefined,
|
|
10473
10493
|
protected: request.protected,
|
|
10494
|
+
public_ips: request.publicIps ? request.publicIps.map(elt => marshalServerIp(elt)) : undefined,
|
|
10495
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
10474
10496
|
security_group: request.securityGroup ? marshalSecurityGroupTemplate(request.securityGroup) : undefined,
|
|
10475
10497
|
tags: request.tags,
|
|
10476
10498
|
volumes: request.volumes ? Object.entries(request.volumes).reduce((acc, [key, value]) => ({
|
|
@@ -10493,7 +10515,7 @@ const jsonContentHeaders$f = {
|
|
|
10493
10515
|
/** Instance API. */
|
|
10494
10516
|
let API$h = class API extends API$s {
|
|
10495
10517
|
/** Lists the available zones of the API. */
|
|
10496
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
10518
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
10497
10519
|
|
|
10498
10520
|
/**
|
|
10499
10521
|
* Get availability. Get availability for all Instance types.
|
|
@@ -10604,6 +10626,7 @@ let API$h = class API extends API$s {
|
|
|
10604
10626
|
* keep the slot on the hypervisor. `reboot`: Stop the instance and restart
|
|
10605
10627
|
* it. `backup`: Create an image with all the volumes of an Instance.
|
|
10606
10628
|
* `terminate`: Delete the Instance along with all attached volumes.
|
|
10629
|
+
* `enable_routed_ip`: Migrate the Instance to the new network stack.
|
|
10607
10630
|
*
|
|
10608
10631
|
* Keep in mind that terminating an Instance will result in the deletion of
|
|
10609
10632
|
* all attached volumes, including local and block storage. If you want to
|
|
@@ -11244,6 +11267,9 @@ let API$h = class API extends API$s {
|
|
|
11244
11267
|
/** Lists transient statutes of the enum {@link ImageState}. */
|
|
11245
11268
|
const IMAGE_TRANSIENT_STATUSES$1 = ['creating'];
|
|
11246
11269
|
|
|
11270
|
+
/** Lists transient statutes of the enum {@link IpState}. */
|
|
11271
|
+
const IP_TRANSIENT_STATUSES = ['pending'];
|
|
11272
|
+
|
|
11247
11273
|
/** Lists transient statutes of the enum {@link PrivateNICState}. */
|
|
11248
11274
|
const PRIVATE_NIC_TRANSIENT_STATUSES = ['syncing'];
|
|
11249
11275
|
|
|
@@ -11689,6 +11715,7 @@ var index$i = /*#__PURE__*/Object.freeze({
|
|
|
11689
11715
|
__proto__: null,
|
|
11690
11716
|
API: InstanceV1UtilsAPI,
|
|
11691
11717
|
IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES$1,
|
|
11718
|
+
IP_TRANSIENT_STATUSES: IP_TRANSIENT_STATUSES,
|
|
11692
11719
|
PRIVATE_NIC_TRANSIENT_STATUSES: PRIVATE_NIC_TRANSIENT_STATUSES,
|
|
11693
11720
|
SECURITY_GROUP_TRANSIENT_STATUSES: SECURITY_GROUP_TRANSIENT_STATUSES,
|
|
11694
11721
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES,
|
|
@@ -18807,6 +18834,7 @@ const unmarshalPrivateNetwork$2 = data => {
|
|
|
18807
18834
|
}
|
|
18808
18835
|
return {
|
|
18809
18836
|
id: data.id,
|
|
18837
|
+
provisioningMode: data.provisioning_mode,
|
|
18810
18838
|
serviceIps: data.service_ips,
|
|
18811
18839
|
zone: data.zone
|
|
18812
18840
|
};
|
|
@@ -19538,7 +19566,7 @@ const unmarshalListNamespacesResponse = data => {
|
|
|
19538
19566
|
totalCount: data.total_count
|
|
19539
19567
|
};
|
|
19540
19568
|
};
|
|
19541
|
-
const unmarshalListTagsResponse = data => {
|
|
19569
|
+
const unmarshalListTagsResponse$1 = data => {
|
|
19542
19570
|
if (!isJSONObject(data)) {
|
|
19543
19571
|
throw new TypeError(`Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary.`);
|
|
19544
19572
|
}
|
|
@@ -19732,7 +19760,7 @@ let API$7 = class API extends API$s {
|
|
|
19732
19760
|
method: 'GET',
|
|
19733
19761
|
path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}/tags`,
|
|
19734
19762
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
19735
|
-
}, unmarshalListTagsResponse);
|
|
19763
|
+
}, unmarshalListTagsResponse$1);
|
|
19736
19764
|
|
|
19737
19765
|
/**
|
|
19738
19766
|
* List tags. List all tags for a given image, specified by region. By
|
|
@@ -19860,6 +19888,15 @@ const unmarshalListSecretsResponse = data => {
|
|
|
19860
19888
|
totalCount: data.total_count
|
|
19861
19889
|
};
|
|
19862
19890
|
};
|
|
19891
|
+
const unmarshalListTagsResponse = data => {
|
|
19892
|
+
if (!isJSONObject(data)) {
|
|
19893
|
+
throw new TypeError(`Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary.`);
|
|
19894
|
+
}
|
|
19895
|
+
return {
|
|
19896
|
+
tags: data.tags,
|
|
19897
|
+
totalCount: data.total_count
|
|
19898
|
+
};
|
|
19899
|
+
};
|
|
19863
19900
|
const marshalPasswordGenerationParams = (request, defaults) => ({
|
|
19864
19901
|
additional_chars: request.additionalChars,
|
|
19865
19902
|
length: request.length,
|
|
@@ -19935,8 +19972,8 @@ let API$6 = class API extends API$s {
|
|
|
19935
19972
|
}, unmarshalSecret);
|
|
19936
19973
|
|
|
19937
19974
|
/**
|
|
19938
|
-
* Get metadata using the secret's
|
|
19939
|
-
* specified by the `region` and
|
|
19975
|
+
* Get metadata using the secret's ID. Retrieve the metadata of a secret
|
|
19976
|
+
* specified by the `region` and `secret_id` parameters.
|
|
19940
19977
|
*
|
|
19941
19978
|
* @param request - The request {@link GetSecretRequest}
|
|
19942
19979
|
* @returns A Promise of Secret
|
|
@@ -19947,8 +19984,8 @@ let API$6 = class API extends API$s {
|
|
|
19947
19984
|
}, unmarshalSecret);
|
|
19948
19985
|
|
|
19949
19986
|
/**
|
|
19950
|
-
* Get metadata using the secret's
|
|
19951
|
-
* specified by the `region
|
|
19987
|
+
* Get metadata using the secret's name. Retrieve the metadata of a secret
|
|
19988
|
+
* specified by the `region` and `secret_name` parameters.
|
|
19952
19989
|
*
|
|
19953
19990
|
* @param request - The request {@link GetSecretByNameRequest}
|
|
19954
19991
|
* @returns A Promise of Secret
|
|
@@ -20180,6 +20217,19 @@ let API$6 = class API extends API$s {
|
|
|
20180
20217
|
method: 'POST',
|
|
20181
20218
|
path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/destroy`
|
|
20182
20219
|
}, unmarshalSecretVersion);
|
|
20220
|
+
pageOfListTags = (request = {}) => this.client.fetch({
|
|
20221
|
+
method: 'GET',
|
|
20222
|
+
path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tags`,
|
|
20223
|
+
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
20224
|
+
}, unmarshalListTagsResponse);
|
|
20225
|
+
|
|
20226
|
+
/**
|
|
20227
|
+
* List tags. List all tags associated to secrets in one or several Projects.
|
|
20228
|
+
*
|
|
20229
|
+
* @param request - The request {@link ListTagsRequest}
|
|
20230
|
+
* @returns A Promise of ListTagsResponse
|
|
20231
|
+
*/
|
|
20232
|
+
listTags = (request = {}) => enrichForPagination('tags', this.pageOfListTags, request);
|
|
20183
20233
|
};
|
|
20184
20234
|
|
|
20185
20235
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -20845,7 +20895,7 @@ const jsonContentHeaders$3 = {
|
|
|
20845
20895
|
/** VPC API. */
|
|
20846
20896
|
let API$3 = class API extends API$s {
|
|
20847
20897
|
/** Lists the available zones of the API. */
|
|
20848
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
20898
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
20849
20899
|
pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
|
|
20850
20900
|
method: 'GET',
|
|
20851
20901
|
path: `/vpc/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/private-networks`,
|
|
@@ -22181,7 +22231,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
22181
22231
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
22182
22232
|
|
|
22183
22233
|
/** Lists transient statutes of the enum {@link HostingStatus}. */
|
|
22184
|
-
const HOSTING_TRANSIENT_STATUSES = ['delivering', 'deleting'];
|
|
22234
|
+
const HOSTING_TRANSIENT_STATUSES = ['delivering', 'deleting', 'migrating'];
|
|
22185
22235
|
|
|
22186
22236
|
// This file was automatically generated. DO NOT EDIT.
|
|
22187
22237
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
package/dist/index.d.ts
CHANGED
|
@@ -9679,6 +9679,8 @@ declare namespace index$j {
|
|
|
9679
9679
|
type Arch = 'x86_64' | 'arm';
|
|
9680
9680
|
type BootType = 'local' | 'bootscript' | 'rescue';
|
|
9681
9681
|
type ImageState = 'available' | 'creating' | 'error';
|
|
9682
|
+
type IpState = 'unknown_state' | 'detached' | 'attached' | 'pending' | 'error';
|
|
9683
|
+
type IpType = 'unknown_iptype' | 'nat' | 'routed_ipv4' | 'routed_ipv6';
|
|
9682
9684
|
type ListServersRequestOrder = 'creation_date_desc' | 'creation_date_asc' | 'modification_date_desc' | 'modification_date_asc';
|
|
9683
9685
|
type PlacementGroupPolicyMode = 'optional' | 'enforced';
|
|
9684
9686
|
type PlacementGroupPolicyType = 'max_availability' | 'low_latency';
|
|
@@ -9689,6 +9691,8 @@ type SecurityGroupRuleDirection = 'inbound' | 'outbound';
|
|
|
9689
9691
|
type SecurityGroupRuleProtocol = 'TCP' | 'UDP' | 'ICMP' | 'ANY';
|
|
9690
9692
|
type SecurityGroupState = 'available' | 'syncing' | 'syncing_error';
|
|
9691
9693
|
type ServerAction = 'poweron' | 'backup' | 'stop_in_place' | 'poweroff' | 'terminate' | 'reboot';
|
|
9694
|
+
type ServerIpIpFamily = 'inet' | 'inet6';
|
|
9695
|
+
type ServerIpProvisioningMode = 'manual' | 'dhcp' | 'slaac';
|
|
9692
9696
|
type ServerState = 'running' | 'stopped' | 'stopped in place' | 'starting' | 'stopping' | 'locked';
|
|
9693
9697
|
type ServerTypesAvailability = 'available' | 'scarce' | 'shortage';
|
|
9694
9698
|
type SnapshotState = 'available' | 'snapshotting' | 'error' | 'invalid_data' | 'importing' | 'exporting';
|
|
@@ -9852,6 +9856,9 @@ interface Ip$1 {
|
|
|
9852
9856
|
organization: string;
|
|
9853
9857
|
tags: string[];
|
|
9854
9858
|
project: string;
|
|
9859
|
+
type: IpType;
|
|
9860
|
+
state: IpState;
|
|
9861
|
+
prefix: string;
|
|
9855
9862
|
zone: Zone;
|
|
9856
9863
|
}
|
|
9857
9864
|
/** List bootscripts response. */
|
|
@@ -10073,8 +10080,10 @@ interface Server {
|
|
|
10073
10080
|
commercialType: string;
|
|
10074
10081
|
/** Instance creation date. */
|
|
10075
10082
|
creationDate?: Date;
|
|
10076
|
-
/** True if a dynamic
|
|
10083
|
+
/** True if a dynamic IPv4 is required. */
|
|
10077
10084
|
dynamicIpRequired: boolean;
|
|
10085
|
+
/** True to configure the instance so it uses the new routed IP mode. */
|
|
10086
|
+
routedIpEnabled: boolean;
|
|
10078
10087
|
/** True if IPv6 is enabled. */
|
|
10079
10088
|
enableIpv6: boolean;
|
|
10080
10089
|
/** Instance host name. */
|
|
@@ -10087,6 +10096,10 @@ interface Server {
|
|
|
10087
10096
|
privateIp?: string;
|
|
10088
10097
|
/** Information about the public IP. */
|
|
10089
10098
|
publicIp?: ServerIp;
|
|
10099
|
+
/** Information about all the public IPs attached to the server. */
|
|
10100
|
+
publicIps: ServerIp[];
|
|
10101
|
+
/** The server's MAC address. */
|
|
10102
|
+
macAddress: string;
|
|
10090
10103
|
/** Instance modification date. */
|
|
10091
10104
|
modificationDate?: Date;
|
|
10092
10105
|
/** Instance state. */
|
|
@@ -10132,10 +10145,18 @@ interface ServerActionResponse {
|
|
|
10132
10145
|
interface ServerIp {
|
|
10133
10146
|
/** Unique ID of the IP address. */
|
|
10134
10147
|
id: string;
|
|
10135
|
-
/** Instance public
|
|
10148
|
+
/** Instance's public IP-Address. */
|
|
10136
10149
|
address: string;
|
|
10150
|
+
/** Gateway's IP address. */
|
|
10151
|
+
gateway: string;
|
|
10152
|
+
/** CIDR netmask. */
|
|
10153
|
+
netmask: string;
|
|
10154
|
+
/** IP address family (inet or inet6). */
|
|
10155
|
+
family: ServerIpIpFamily;
|
|
10137
10156
|
/** True if the IP address is dynamic. */
|
|
10138
10157
|
dynamic: boolean;
|
|
10158
|
+
/** Information about this address provisioning mode. */
|
|
10159
|
+
provisioningMode: ServerIpProvisioningMode;
|
|
10139
10160
|
}
|
|
10140
10161
|
/** Server. ipv6. */
|
|
10141
10162
|
interface ServerIpv6 {
|
|
@@ -11076,6 +11097,8 @@ type CreateIpRequest$1 = {
|
|
|
11076
11097
|
tags?: string[];
|
|
11077
11098
|
/** UUID of the Instance you want to attach the IP to. */
|
|
11078
11099
|
server?: string;
|
|
11100
|
+
/** IP type to reserve (either 'nat', 'routed_ipv4' or 'routed_ipv6'). */
|
|
11101
|
+
type?: IpType;
|
|
11079
11102
|
};
|
|
11080
11103
|
type GetIpRequest$1 = {
|
|
11081
11104
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
@@ -11090,6 +11113,8 @@ type UpdateIpRequest$1 = {
|
|
|
11090
11113
|
ip: string;
|
|
11091
11114
|
/** Reverse domain name. */
|
|
11092
11115
|
reverse?: string | null;
|
|
11116
|
+
/** Convert a 'nat' IP to a 'routed_ipv4'. */
|
|
11117
|
+
type?: IpType;
|
|
11093
11118
|
/** An array of keywords you want to tag this IP with. */
|
|
11094
11119
|
tags?: string[];
|
|
11095
11120
|
server?: string | null;
|
|
@@ -11198,8 +11223,10 @@ type CreateServerRequest = {
|
|
|
11198
11223
|
zone?: Zone;
|
|
11199
11224
|
/** Instance name. */
|
|
11200
11225
|
name?: string;
|
|
11201
|
-
/** Define if a dynamic
|
|
11226
|
+
/** Define if a dynamic IPv4 is required for the Instance. */
|
|
11202
11227
|
dynamicIpRequired?: boolean;
|
|
11228
|
+
/** If true, configure the Instance so it uses the new routed IP mode. */
|
|
11229
|
+
routedIpEnabled?: boolean;
|
|
11203
11230
|
/** Define the Instance commercial type (i.e. GP1-S). */
|
|
11204
11231
|
commercialType: string;
|
|
11205
11232
|
/** Instance image ID or label. */
|
|
@@ -11208,8 +11235,10 @@ type CreateServerRequest = {
|
|
|
11208
11235
|
volumes?: Record<string, VolumeServerTemplate>;
|
|
11209
11236
|
/** True if IPv6 is enabled on the server. */
|
|
11210
11237
|
enableIpv6: boolean;
|
|
11211
|
-
/** ID of the reserved IP to attach to the
|
|
11238
|
+
/** ID of the reserved IP to attach to the Instance. */
|
|
11212
11239
|
publicIp?: string;
|
|
11240
|
+
/** A list of reserved IP IDs to attach to the Instance. */
|
|
11241
|
+
publicIps?: string[];
|
|
11213
11242
|
/** Boot type to use. */
|
|
11214
11243
|
bootType?: BootType;
|
|
11215
11244
|
/** @deprecated Bootscript ID to use when `boot_type` is set to `bootscript`. */
|
|
@@ -11254,8 +11283,13 @@ type SetServerRequest = {
|
|
|
11254
11283
|
commercialType: string;
|
|
11255
11284
|
/** Instance creation date. */
|
|
11256
11285
|
creationDate?: Date;
|
|
11257
|
-
/** True if a dynamic
|
|
11286
|
+
/** True if a dynamic IPv4 is required. */
|
|
11258
11287
|
dynamicIpRequired: boolean;
|
|
11288
|
+
/**
|
|
11289
|
+
* True to configure the instance so it uses the new routed IP mode (once this
|
|
11290
|
+
* is set to True you cannot set it back to False).
|
|
11291
|
+
*/
|
|
11292
|
+
routedIpEnabled?: boolean;
|
|
11259
11293
|
/** True if IPv6 is enabled. */
|
|
11260
11294
|
enableIpv6: boolean;
|
|
11261
11295
|
/** Instance host name. */
|
|
@@ -11268,6 +11302,8 @@ type SetServerRequest = {
|
|
|
11268
11302
|
privateIp?: string;
|
|
11269
11303
|
/** Information about the public IP. */
|
|
11270
11304
|
publicIp?: ServerIp;
|
|
11305
|
+
/** Information about all the public IPs attached to the server. */
|
|
11306
|
+
publicIps?: ServerIp[];
|
|
11271
11307
|
/** Instance modification date. */
|
|
11272
11308
|
modificationDate?: Date;
|
|
11273
11309
|
/** Instance state. */
|
|
@@ -11312,6 +11348,12 @@ type UpdateServerRequest = {
|
|
|
11312
11348
|
/** @deprecated */
|
|
11313
11349
|
bootscript?: string;
|
|
11314
11350
|
dynamicIpRequired?: boolean;
|
|
11351
|
+
/**
|
|
11352
|
+
* True to configure the instance so it uses the new routed IP mode (once this
|
|
11353
|
+
* is set to True you cannot set it back to False).
|
|
11354
|
+
*/
|
|
11355
|
+
routedIpEnabled?: boolean;
|
|
11356
|
+
publicIps?: ServerIp[];
|
|
11315
11357
|
enableIpv6?: boolean;
|
|
11316
11358
|
protected?: boolean;
|
|
11317
11359
|
securityGroup?: SecurityGroupTemplate;
|
|
@@ -11477,6 +11519,7 @@ declare class API$h extends API$s {
|
|
|
11477
11519
|
* keep the slot on the hypervisor. `reboot`: Stop the instance and restart
|
|
11478
11520
|
* it. `backup`: Create an image with all the volumes of an Instance.
|
|
11479
11521
|
* `terminate`: Delete the Instance along with all attached volumes.
|
|
11522
|
+
* `enable_routed_ip`: Migrate the Instance to the new network stack.
|
|
11480
11523
|
*
|
|
11481
11524
|
* Keep in mind that terminating an Instance will result in the deletion of
|
|
11482
11525
|
* all attached volumes, including local and block storage. If you want to
|
|
@@ -12100,6 +12143,8 @@ declare class InstanceV1UtilsAPI extends API$h {
|
|
|
12100
12143
|
|
|
12101
12144
|
/** Lists transient statutes of the enum {@link ImageState}. */
|
|
12102
12145
|
declare const IMAGE_TRANSIENT_STATUSES$1: ImageState[];
|
|
12146
|
+
/** Lists transient statutes of the enum {@link IpState}. */
|
|
12147
|
+
declare const IP_TRANSIENT_STATUSES: IpState[];
|
|
12103
12148
|
/** Lists transient statutes of the enum {@link PrivateNICState}. */
|
|
12104
12149
|
declare const PRIVATE_NIC_TRANSIENT_STATUSES: PrivateNICState[];
|
|
12105
12150
|
/** Lists transient statutes of the enum {@link SecurityGroupState}. */
|
|
@@ -12170,7 +12215,10 @@ type index$i_GetServerTypesAvailabilityResponseAvailability = GetServerTypesAvai
|
|
|
12170
12215
|
type index$i_GetServerUserDataRequest = GetServerUserDataRequest;
|
|
12171
12216
|
type index$i_GetSnapshotResponse = GetSnapshotResponse;
|
|
12172
12217
|
type index$i_GetVolumeResponse = GetVolumeResponse;
|
|
12218
|
+
declare const index$i_IP_TRANSIENT_STATUSES: typeof IP_TRANSIENT_STATUSES;
|
|
12173
12219
|
type index$i_ImageState = ImageState;
|
|
12220
|
+
type index$i_IpState = IpState;
|
|
12221
|
+
type index$i_IpType = IpType;
|
|
12174
12222
|
type index$i_ListBootscriptsRequest = ListBootscriptsRequest;
|
|
12175
12223
|
type index$i_ListBootscriptsResponse = ListBootscriptsResponse;
|
|
12176
12224
|
type index$i_ListDefaultSecurityGroupRulesRequest = ListDefaultSecurityGroupRulesRequest;
|
|
@@ -12218,6 +12266,8 @@ type index$i_ServerActionRequest = ServerActionRequest;
|
|
|
12218
12266
|
type index$i_ServerActionRequestVolumeBackupTemplate = ServerActionRequestVolumeBackupTemplate;
|
|
12219
12267
|
type index$i_ServerActionResponse = ServerActionResponse;
|
|
12220
12268
|
type index$i_ServerIp = ServerIp;
|
|
12269
|
+
type index$i_ServerIpIpFamily = ServerIpIpFamily;
|
|
12270
|
+
type index$i_ServerIpProvisioningMode = ServerIpProvisioningMode;
|
|
12221
12271
|
type index$i_ServerIpv6 = ServerIpv6;
|
|
12222
12272
|
type index$i_ServerLocation = ServerLocation;
|
|
12223
12273
|
type index$i_ServerMaintenance = ServerMaintenance;
|
|
@@ -12341,9 +12391,12 @@ declare namespace index$i {
|
|
|
12341
12391
|
GetVolumeRequest$1 as GetVolumeRequest,
|
|
12342
12392
|
index$i_GetVolumeResponse as GetVolumeResponse,
|
|
12343
12393
|
IMAGE_TRANSIENT_STATUSES$1 as IMAGE_TRANSIENT_STATUSES,
|
|
12394
|
+
index$i_IP_TRANSIENT_STATUSES as IP_TRANSIENT_STATUSES,
|
|
12344
12395
|
Image$3 as Image,
|
|
12345
12396
|
index$i_ImageState as ImageState,
|
|
12346
12397
|
Ip$1 as Ip,
|
|
12398
|
+
index$i_IpState as IpState,
|
|
12399
|
+
index$i_IpType as IpType,
|
|
12347
12400
|
index$i_ListBootscriptsRequest as ListBootscriptsRequest,
|
|
12348
12401
|
index$i_ListBootscriptsResponse as ListBootscriptsResponse,
|
|
12349
12402
|
index$i_ListDefaultSecurityGroupRulesRequest as ListDefaultSecurityGroupRulesRequest,
|
|
@@ -12399,6 +12452,8 @@ declare namespace index$i {
|
|
|
12399
12452
|
index$i_ServerActionRequestVolumeBackupTemplate as ServerActionRequestVolumeBackupTemplate,
|
|
12400
12453
|
index$i_ServerActionResponse as ServerActionResponse,
|
|
12401
12454
|
index$i_ServerIp as ServerIp,
|
|
12455
|
+
index$i_ServerIpIpFamily as ServerIpIpFamily,
|
|
12456
|
+
index$i_ServerIpProvisioningMode as ServerIpProvisioningMode,
|
|
12402
12457
|
index$i_ServerIpv6 as ServerIpv6,
|
|
12403
12458
|
index$i_ServerLocation as ServerLocation,
|
|
12404
12459
|
index$i_ServerMaintenance as ServerMaintenance,
|
|
@@ -23112,6 +23167,7 @@ type AvailableClusterSettingPropertyType = 'UNKNOWN' | 'BOOLEAN' | 'INT' | 'STRI
|
|
|
23112
23167
|
type ClusterStatus = 'unknown' | 'ready' | 'provisioning' | 'configuring' | 'deleting' | 'error' | 'autohealing' | 'locked' | 'suspended' | 'initializing';
|
|
23113
23168
|
type ListClustersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
23114
23169
|
type NodeTypeStock = 'unknown' | 'low_stock' | 'out_of_stock' | 'available';
|
|
23170
|
+
type PrivateNetworkProvisioningMode = 'static' | 'ipam';
|
|
23115
23171
|
/** Acl rule. */
|
|
23116
23172
|
interface ACLRule {
|
|
23117
23173
|
/** ID of the rule. */
|
|
@@ -23336,6 +23392,8 @@ interface PrivateNetwork$2 {
|
|
|
23336
23392
|
serviceIps: string[];
|
|
23337
23393
|
/** Zone of the Private Network. */
|
|
23338
23394
|
zone: Zone;
|
|
23395
|
+
/** How your endpoint ips are provisioned. */
|
|
23396
|
+
provisioningMode: PrivateNetworkProvisioningMode;
|
|
23339
23397
|
}
|
|
23340
23398
|
interface PublicNetwork {
|
|
23341
23399
|
}
|
|
@@ -23886,6 +23944,7 @@ type index_gen$8_ListNodeTypesResponse = ListNodeTypesResponse;
|
|
|
23886
23944
|
type index_gen$8_MigrateClusterRequest = MigrateClusterRequest;
|
|
23887
23945
|
type index_gen$8_NodeType = NodeType;
|
|
23888
23946
|
type index_gen$8_NodeTypeStock = NodeTypeStock;
|
|
23947
|
+
type index_gen$8_PrivateNetworkProvisioningMode = PrivateNetworkProvisioningMode;
|
|
23889
23948
|
type index_gen$8_PublicNetwork = PublicNetwork;
|
|
23890
23949
|
type index_gen$8_RenewClusterCertificateRequest = RenewClusterCertificateRequest;
|
|
23891
23950
|
type index_gen$8_SetAclRulesRequest = SetAclRulesRequest;
|
|
@@ -23940,6 +23999,7 @@ declare namespace index_gen$8 {
|
|
|
23940
23999
|
index_gen$8_NodeType as NodeType,
|
|
23941
24000
|
index_gen$8_NodeTypeStock as NodeTypeStock,
|
|
23942
24001
|
PrivateNetwork$2 as PrivateNetwork,
|
|
24002
|
+
index_gen$8_PrivateNetworkProvisioningMode as PrivateNetworkProvisioningMode,
|
|
23943
24003
|
index_gen$8_PublicNetwork as PublicNetwork,
|
|
23944
24004
|
index_gen$8_RenewClusterCertificateRequest as RenewClusterCertificateRequest,
|
|
23945
24005
|
index_gen$8_SetAclRulesRequest as SetAclRulesRequest,
|
|
@@ -24012,7 +24072,7 @@ interface ListNamespacesResponse {
|
|
|
24012
24072
|
totalCount: number;
|
|
24013
24073
|
}
|
|
24014
24074
|
/** List tags response. */
|
|
24015
|
-
interface ListTagsResponse {
|
|
24075
|
+
interface ListTagsResponse$1 {
|
|
24016
24076
|
/** Paginated list of tags that match the selected filters. */
|
|
24017
24077
|
tags: Tag[];
|
|
24018
24078
|
/** Total number of tags that match the selected filters. */
|
|
@@ -24217,7 +24277,7 @@ type DeleteImageRequest = {
|
|
|
24217
24277
|
/** UUID of the image. */
|
|
24218
24278
|
imageId: string;
|
|
24219
24279
|
};
|
|
24220
|
-
type ListTagsRequest = {
|
|
24280
|
+
type ListTagsRequest$1 = {
|
|
24221
24281
|
/**
|
|
24222
24282
|
* Region to target. If none is passed will use default region from the
|
|
24223
24283
|
* config.
|
|
@@ -24378,7 +24438,7 @@ declare class API$7 extends API$s {
|
|
|
24378
24438
|
* @returns A Promise of Image
|
|
24379
24439
|
*/
|
|
24380
24440
|
deleteImage: (request: Readonly<DeleteImageRequest>) => Promise<Image>;
|
|
24381
|
-
protected pageOfListTags: (request: Readonly<ListTagsRequest>) => Promise<ListTagsResponse>;
|
|
24441
|
+
protected pageOfListTags: (request: Readonly<ListTagsRequest$1>) => Promise<ListTagsResponse$1>;
|
|
24382
24442
|
/**
|
|
24383
24443
|
* List tags. List all tags for a given image, specified by region. By
|
|
24384
24444
|
* default, the tags listed are ordered by creation date in ascending order.
|
|
@@ -24388,7 +24448,7 @@ declare class API$7 extends API$s {
|
|
|
24388
24448
|
* @param request - The request {@link ListTagsRequest}
|
|
24389
24449
|
* @returns A Promise of ListTagsResponse
|
|
24390
24450
|
*/
|
|
24391
|
-
listTags: (request: Readonly<ListTagsRequest>) => Promise<ListTagsResponse> & {
|
|
24451
|
+
listTags: (request: Readonly<ListTagsRequest$1>) => Promise<ListTagsResponse$1> & {
|
|
24392
24452
|
all: () => Promise<Tag[]>;
|
|
24393
24453
|
[Symbol.asyncIterator]: () => AsyncGenerator<Tag[], void, void>;
|
|
24394
24454
|
};
|
|
@@ -24443,9 +24503,7 @@ type index_gen$7_ListImagesResponse = ListImagesResponse;
|
|
|
24443
24503
|
type index_gen$7_ListNamespacesRequest = ListNamespacesRequest;
|
|
24444
24504
|
type index_gen$7_ListNamespacesRequestOrderBy = ListNamespacesRequestOrderBy;
|
|
24445
24505
|
type index_gen$7_ListNamespacesResponse = ListNamespacesResponse;
|
|
24446
|
-
type index_gen$7_ListTagsRequest = ListTagsRequest;
|
|
24447
24506
|
type index_gen$7_ListTagsRequestOrderBy = ListTagsRequestOrderBy;
|
|
24448
|
-
type index_gen$7_ListTagsResponse = ListTagsResponse;
|
|
24449
24507
|
declare const index_gen$7_NAMESPACE_TRANSIENT_STATUSES: typeof NAMESPACE_TRANSIENT_STATUSES;
|
|
24450
24508
|
type index_gen$7_Namespace = Namespace;
|
|
24451
24509
|
type index_gen$7_NamespaceStatus = NamespaceStatus;
|
|
@@ -24474,9 +24532,9 @@ declare namespace index_gen$7 {
|
|
|
24474
24532
|
index_gen$7_ListNamespacesRequest as ListNamespacesRequest,
|
|
24475
24533
|
index_gen$7_ListNamespacesRequestOrderBy as ListNamespacesRequestOrderBy,
|
|
24476
24534
|
index_gen$7_ListNamespacesResponse as ListNamespacesResponse,
|
|
24477
|
-
|
|
24535
|
+
ListTagsRequest$1 as ListTagsRequest,
|
|
24478
24536
|
index_gen$7_ListTagsRequestOrderBy as ListTagsRequestOrderBy,
|
|
24479
|
-
|
|
24537
|
+
ListTagsResponse$1 as ListTagsResponse,
|
|
24480
24538
|
index_gen$7_NAMESPACE_TRANSIENT_STATUSES as NAMESPACE_TRANSIENT_STATUSES,
|
|
24481
24539
|
index_gen$7_Namespace as Namespace,
|
|
24482
24540
|
index_gen$7_NamespaceStatus as NamespaceStatus,
|
|
@@ -24529,6 +24587,13 @@ interface ListSecretsResponse {
|
|
|
24529
24587
|
/** Count of all secrets matching the requested criteria. */
|
|
24530
24588
|
totalCount: number;
|
|
24531
24589
|
}
|
|
24590
|
+
/** List tags response. */
|
|
24591
|
+
interface ListTagsResponse {
|
|
24592
|
+
/** List of tags. */
|
|
24593
|
+
tags: string[];
|
|
24594
|
+
/** Count of all tags matching the requested criteria. */
|
|
24595
|
+
totalCount: number;
|
|
24596
|
+
}
|
|
24532
24597
|
/** Password generation params. */
|
|
24533
24598
|
interface PasswordGenerationParams {
|
|
24534
24599
|
/** Length of the password to generate (between 1 and 1024). */
|
|
@@ -24921,6 +24986,20 @@ type DestroySecretVersionRequest = {
|
|
|
24921
24986
|
*/
|
|
24922
24987
|
revision: string;
|
|
24923
24988
|
};
|
|
24989
|
+
type ListTagsRequest = {
|
|
24990
|
+
/**
|
|
24991
|
+
* Region to target. If none is passed will use default region from the
|
|
24992
|
+
* config.
|
|
24993
|
+
*/
|
|
24994
|
+
region?: Region;
|
|
24995
|
+
/**
|
|
24996
|
+
* ID of the Project to target. (Optional.) If not specified, Secret Manager
|
|
24997
|
+
* will look for tags in all Projects.
|
|
24998
|
+
*/
|
|
24999
|
+
projectId?: string;
|
|
25000
|
+
page?: number;
|
|
25001
|
+
pageSize?: number;
|
|
25002
|
+
};
|
|
24924
25003
|
|
|
24925
25004
|
/**
|
|
24926
25005
|
* Secret Manager API.
|
|
@@ -24939,16 +25018,16 @@ declare class API$6 extends API$s {
|
|
|
24939
25018
|
*/
|
|
24940
25019
|
createSecret: (request: Readonly<CreateSecretRequest>) => Promise<Secret>;
|
|
24941
25020
|
/**
|
|
24942
|
-
* Get metadata using the secret's
|
|
24943
|
-
* specified by the `region` and
|
|
25021
|
+
* Get metadata using the secret's ID. Retrieve the metadata of a secret
|
|
25022
|
+
* specified by the `region` and `secret_id` parameters.
|
|
24944
25023
|
*
|
|
24945
25024
|
* @param request - The request {@link GetSecretRequest}
|
|
24946
25025
|
* @returns A Promise of Secret
|
|
24947
25026
|
*/
|
|
24948
25027
|
getSecret: (request: Readonly<GetSecretRequest>) => Promise<Secret>;
|
|
24949
25028
|
/**
|
|
24950
|
-
* Get metadata using the secret's
|
|
24951
|
-
* specified by the `region
|
|
25029
|
+
* Get metadata using the secret's name. Retrieve the metadata of a secret
|
|
25030
|
+
* specified by the `region` and `secret_name` parameters.
|
|
24952
25031
|
*
|
|
24953
25032
|
* @param request - The request {@link GetSecretByNameRequest}
|
|
24954
25033
|
* @returns A Promise of Secret
|
|
@@ -25100,6 +25179,17 @@ declare class API$6 extends API$s {
|
|
|
25100
25179
|
* @returns A Promise of SecretVersion
|
|
25101
25180
|
*/
|
|
25102
25181
|
destroySecretVersion: (request: Readonly<DestroySecretVersionRequest>) => Promise<SecretVersion>;
|
|
25182
|
+
protected pageOfListTags: (request?: Readonly<ListTagsRequest>) => Promise<ListTagsResponse>;
|
|
25183
|
+
/**
|
|
25184
|
+
* List tags. List all tags associated to secrets in one or several Projects.
|
|
25185
|
+
*
|
|
25186
|
+
* @param request - The request {@link ListTagsRequest}
|
|
25187
|
+
* @returns A Promise of ListTagsResponse
|
|
25188
|
+
*/
|
|
25189
|
+
listTags: (request?: Readonly<ListTagsRequest>) => Promise<ListTagsResponse> & {
|
|
25190
|
+
all: () => Promise<string[]>;
|
|
25191
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<string[], void, void>;
|
|
25192
|
+
};
|
|
25103
25193
|
}
|
|
25104
25194
|
|
|
25105
25195
|
type index_gen$6_AccessSecretVersionByNameRequest = AccessSecretVersionByNameRequest;
|
|
@@ -25123,6 +25213,8 @@ type index_gen$6_ListSecretVersionsResponse = ListSecretVersionsResponse;
|
|
|
25123
25213
|
type index_gen$6_ListSecretsRequest = ListSecretsRequest;
|
|
25124
25214
|
type index_gen$6_ListSecretsRequestOrderBy = ListSecretsRequestOrderBy;
|
|
25125
25215
|
type index_gen$6_ListSecretsResponse = ListSecretsResponse;
|
|
25216
|
+
type index_gen$6_ListTagsRequest = ListTagsRequest;
|
|
25217
|
+
type index_gen$6_ListTagsResponse = ListTagsResponse;
|
|
25126
25218
|
type index_gen$6_PasswordGenerationParams = PasswordGenerationParams;
|
|
25127
25219
|
type index_gen$6_Product = Product;
|
|
25128
25220
|
type index_gen$6_Secret = Secret;
|
|
@@ -25155,6 +25247,8 @@ declare namespace index_gen$6 {
|
|
|
25155
25247
|
index_gen$6_ListSecretsRequest as ListSecretsRequest,
|
|
25156
25248
|
index_gen$6_ListSecretsRequestOrderBy as ListSecretsRequestOrderBy,
|
|
25157
25249
|
index_gen$6_ListSecretsResponse as ListSecretsResponse,
|
|
25250
|
+
index_gen$6_ListTagsRequest as ListTagsRequest,
|
|
25251
|
+
index_gen$6_ListTagsResponse as ListTagsResponse,
|
|
25158
25252
|
index_gen$6_PasswordGenerationParams as PasswordGenerationParams,
|
|
25159
25253
|
index_gen$6_Product as Product,
|
|
25160
25254
|
index_gen$6_Secret as Secret,
|
|
@@ -27997,7 +28091,7 @@ type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
|
27997
28091
|
type DnsRecordType = 'unknown_type' | 'a' | 'cname' | 'mx' | 'txt' | 'ns' | 'aaaa';
|
|
27998
28092
|
type DnsRecordsStatus = 'unknown' | 'valid' | 'invalid';
|
|
27999
28093
|
type HostingDnsStatus = 'unknown_dns_status' | 'valid' | 'invalid';
|
|
28000
|
-
type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked';
|
|
28094
|
+
type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
|
|
28001
28095
|
type ListHostingsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
28002
28096
|
type ListOffersRequestOrderBy = 'price_asc';
|
|
28003
28097
|
type NameserverStatus = 'unknown_status' | 'valid' | 'invalid';
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "9cdaa1dc18ca1582ed16a74056e642fca7af94c4"
|
|
39
39
|
}
|