@scaleway/sdk 1.14.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/account/v2/api.gen.js +77 -60
- package/dist/api/applesilicon/v1alpha1/api.gen.js +174 -152
- package/dist/api/baremetal/v1/api.gen.js +434 -378
- package/dist/api/baremetal/v1/api.utils.js +19 -22
- package/dist/api/billing/v2alpha1/api.gen.js +21 -17
- package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
- package/dist/api/container/v1beta1/api.gen.js +384 -337
- package/dist/api/domain/v2beta1/api.gen.js +754 -668
- package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
- package/dist/api/function/v1beta1/api.gen.js +467 -407
- package/dist/api/iam/v1alpha1/api.gen.js +641 -557
- package/dist/api/instance/v1/api.gen.js +803 -677
- package/dist/api/instance/v1/api.utils.js +337 -325
- 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 +27 -4
- package/dist/api/iot/v1/api.gen.js +508 -452
- package/dist/api/ipfs/index.js +2 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
- package/dist/api/k8s/v1/api.gen.js +403 -342
- package/dist/api/k8s/v1/api.utils.js +7 -10
- package/dist/api/k8s/v1/marshalling.gen.js +19 -1
- package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
- package/dist/api/lb/v1/api.gen.js +1501 -1363
- package/dist/api/lb/v1/api.utils.js +71 -75
- package/dist/api/lb/v1/marshalling.gen.js +6 -0
- package/dist/api/marketplace/v1/api.gen.js +35 -32
- package/dist/api/marketplace/v2/api.gen.js +117 -102
- package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
- package/dist/api/rdb/v1/api.gen.js +897 -819
- package/dist/api/redis/v1/api.gen.js +358 -333
- package/dist/api/redis/v1/marshalling.gen.js +1 -0
- package/dist/api/registry/v1/api.gen.js +211 -189
- package/dist/api/secret/v1alpha1/api.gen.js +295 -246
- package/dist/api/secret/v1alpha1/marshalling.gen.js +10 -1
- package/dist/api/tem/v1alpha1/api.gen.js +182 -147
- package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
- package/dist/api/test/v1/api.gen.js +116 -104
- package/dist/api/vpc/v1/api.gen.js +74 -65
- package/dist/api/vpc/v2/api.gen.js +200 -178
- package/dist/api/vpc/v2/marshalling.gen.js +1 -0
- package/dist/api/vpcgw/v1/api.gen.js +575 -501
- package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
- package/dist/api/webhosting/v1alpha1/content.gen.js +1 -1
- package/dist/index.cjs +924 -453
- package/dist/index.d.ts +2152 -1558
- package/dist/index.js +28 -26
- package/dist/internal/logger/console-logger.js +4 -5
- package/dist/scw/constants.js +1 -1
- package/dist/scw/errors/scw-error.js +2 -2
- package/package.json +2 -2
|
@@ -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,
|
|
@@ -618,7 +628,8 @@ const unmarshalGetServerTypesAvailabilityResponse = data => {
|
|
|
618
628
|
throw new TypeError(`Unmarshalling the type 'GetServerTypesAvailabilityResponse' failed as data isn't a dictionary.`);
|
|
619
629
|
}
|
|
620
630
|
return {
|
|
621
|
-
servers: unmarshalMapOfObject(data.servers, unmarshalGetServerTypesAvailabilityResponseAvailability)
|
|
631
|
+
servers: unmarshalMapOfObject(data.servers, unmarshalGetServerTypesAvailabilityResponseAvailability),
|
|
632
|
+
totalCount: data.total_count
|
|
622
633
|
};
|
|
623
634
|
};
|
|
624
635
|
const unmarshalGetSnapshotResponse = data => {
|
|
@@ -968,7 +979,11 @@ const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
|
|
|
968
979
|
const marshalServerIp = (request, defaults) => ({
|
|
969
980
|
address: request.address,
|
|
970
981
|
dynamic: request.dynamic,
|
|
971
|
-
|
|
982
|
+
family: request.family,
|
|
983
|
+
gateway: request.gateway,
|
|
984
|
+
id: request.id,
|
|
985
|
+
netmask: request.netmask,
|
|
986
|
+
provisioning_mode: request.provisioningMode
|
|
972
987
|
});
|
|
973
988
|
const marshalServerIpv6 = (request, defaults) => ({
|
|
974
989
|
address: request.address,
|
|
@@ -1051,6 +1066,7 @@ const marshalCreateImageRequest = (request, defaults) => ({
|
|
|
1051
1066
|
const marshalCreateIpRequest = (request, defaults) => ({
|
|
1052
1067
|
server: request.server,
|
|
1053
1068
|
tags: request.tags,
|
|
1069
|
+
type: request.type ?? 'unknown_iptype',
|
|
1054
1070
|
...resolveOneOf([{
|
|
1055
1071
|
default: defaults.defaultProjectId,
|
|
1056
1072
|
param: 'project',
|
|
@@ -1125,6 +1141,8 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
1125
1141
|
name: request.name || randomName('srv'),
|
|
1126
1142
|
placement_group: request.placementGroup,
|
|
1127
1143
|
public_ip: request.publicIp,
|
|
1144
|
+
public_ips: request.publicIps,
|
|
1145
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
1128
1146
|
security_group: request.securityGroup,
|
|
1129
1147
|
tags: request.tags,
|
|
1130
1148
|
volumes: request.volumes ? Object.entries(request.volumes).reduce((acc, _ref3) => {
|
|
@@ -1286,6 +1304,8 @@ const marshalSetServerRequest = (request, defaults) => ({
|
|
|
1286
1304
|
project: request.project,
|
|
1287
1305
|
protected: request.protected,
|
|
1288
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,
|
|
1289
1309
|
security_group: request.securityGroup ? marshalSecurityGroupSummary(request.securityGroup) : undefined,
|
|
1290
1310
|
state: request.state,
|
|
1291
1311
|
state_detail: request.stateDetail,
|
|
@@ -1314,7 +1334,8 @@ const marshalSetSnapshotRequest = (request, defaults) => ({
|
|
|
1314
1334
|
const marshalUpdateIpRequest = (request, defaults) => ({
|
|
1315
1335
|
reverse: request.reverse,
|
|
1316
1336
|
server: request.server,
|
|
1317
|
-
tags: request.tags
|
|
1337
|
+
tags: request.tags,
|
|
1338
|
+
type: request.type ?? 'unknown_iptype'
|
|
1318
1339
|
});
|
|
1319
1340
|
const marshalUpdatePlacementGroupRequest = (request, defaults) => ({
|
|
1320
1341
|
name: request.name,
|
|
@@ -1337,6 +1358,8 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
1337
1358
|
placement_group: request.placementGroup,
|
|
1338
1359
|
private_nics: request.privateNics ? request.privateNics.map(elt => marshalPrivateNIC(elt)) : undefined,
|
|
1339
1360
|
protected: request.protected,
|
|
1361
|
+
public_ips: request.publicIps ? request.publicIps.map(elt => marshalServerIp(elt)) : undefined,
|
|
1362
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
1340
1363
|
security_group: request.securityGroup ? marshalSecurityGroupTemplate(request.securityGroup) : undefined,
|
|
1341
1364
|
tags: request.tags,
|
|
1342
1365
|
volumes: request.volumes ? Object.entries(request.volumes).reduce((acc, _ref7) => {
|