@scaleway/sdk 2.70.0 → 2.71.1
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/README.md +6 -5
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +3 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
- package/dist/api/baremetal/v1/api.gen.cjs +3 -1
- package/dist/api/baremetal/v1/api.gen.js +3 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
- package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
- package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
- package/dist/api/block/v1/api.gen.cjs +6 -2
- package/dist/api/block/v1/api.gen.js +6 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/block/v1alpha1/api.gen.js +6 -2
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
- package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
- package/dist/api/container/v1beta1/api.gen.cjs +18 -6
- package/dist/api/container/v1beta1/api.gen.js +18 -6
- package/dist/api/dedibox/v1/api.gen.cjs +9 -3
- package/dist/api/dedibox/v1/api.gen.js +9 -3
- package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
- package/dist/api/domain/v2beta1/api.gen.js +3 -1
- package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
- package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/function/v1beta1/api.gen.cjs +18 -6
- package/dist/api/function/v1beta1/api.gen.js +18 -6
- package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/api.gen.cjs +8 -14
- package/dist/api/iam/v1alpha1/api.gen.d.ts +8 -14
- package/dist/api/iam/v1alpha1/api.gen.js +8 -14
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +12 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +12 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +25 -1
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +15 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +14 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +15 -0
- package/dist/api/inference/v1/api.gen.cjs +6 -2
- package/dist/api/inference/v1/api.gen.js +6 -2
- package/dist/api/inference/v1/marshalling.gen.cjs +4 -4
- package/dist/api/inference/v1/marshalling.gen.js +4 -4
- package/dist/api/inference/v1/types.gen.d.ts +32 -30
- package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
- package/dist/api/inference/v1beta1/api.gen.js +3 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +0 -1
- package/dist/api/instance/v1/marshalling.gen.js +0 -1
- package/dist/api/instance/v1/types.gen.d.ts +0 -2
- package/dist/api/k8s/v1/api.gen.cjs +3 -1
- package/dist/api/k8s/v1/api.gen.js +3 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/types.gen.d.ts +5 -0
- package/dist/api/lb/v1/types.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
- package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
- package/dist/api/rdb/v1/api.gen.cjs +6 -2
- package/dist/api/rdb/v1/api.gen.js +6 -2
- package/dist/api/redis/v1/api.gen.cjs +3 -1
- package/dist/api/redis/v1/api.gen.js +3 -1
- package/dist/api/registry/v1/api.gen.cjs +9 -3
- package/dist/api/registry/v1/api.gen.js +9 -3
- package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
- package/dist/api/secret/v1beta1/api.gen.js +32 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
- package/dist/api/vpc/v2/api.gen.cjs +33 -0
- package/dist/api/vpc/v2/api.gen.d.ts +17 -1
- package/dist/api/vpc/v2/api.gen.js +34 -1
- package/dist/api/vpc/v2/index.gen.d.ts +1 -1
- package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
- package/dist/api/vpc/v2/marshalling.gen.js +59 -0
- package/dist/api/vpc/v2/types.gen.d.ts +80 -0
- package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
- package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
- package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
- package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
- package/dist/api/vpcgw/v1/api.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
- package/dist/api/vpcgw/v2/api.gen.js +3 -1
- package/dist/api/webhosting/v1/api.gen.cjs +6 -2
- package/dist/api/webhosting/v1/api.gen.js +6 -2
- package/dist/api/webhosting/v1/marshalling.gen.cjs +17 -14
- package/dist/api/webhosting/v1/marshalling.gen.js +17 -14
- package/dist/api/webhosting/v1/types.gen.d.ts +13 -3
- package/dist/package.json.cjs +76 -0
- package/dist/package.json.js +76 -0
- package/dist/scw/constants.cjs +2 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +2 -1
- package/package.json +2 -3
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
|
+
export type AclRuleProtocol = 'ANY' | 'TCP' | 'UDP' | 'ICMP';
|
|
3
|
+
export type Action = 'unknown_action' | 'accept' | 'drop';
|
|
2
4
|
export type ListPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
3
5
|
export type ListSubnetsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
4
6
|
export type ListVPCsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
@@ -66,6 +68,44 @@ export interface Route {
|
|
|
66
68
|
/** Region of the Route. */
|
|
67
69
|
region: ScwRegion;
|
|
68
70
|
}
|
|
71
|
+
export interface AclRule {
|
|
72
|
+
/** Protocol to which this rule applies. */
|
|
73
|
+
protocol: AclRuleProtocol;
|
|
74
|
+
/**
|
|
75
|
+
* Source IP range to which this rule applies (CIDR notation with subnet
|
|
76
|
+
* mask).
|
|
77
|
+
*/
|
|
78
|
+
source: string;
|
|
79
|
+
/**
|
|
80
|
+
* Starting port of the source port range to which this rule applies
|
|
81
|
+
* (inclusive).
|
|
82
|
+
*/
|
|
83
|
+
srcPortLow: number;
|
|
84
|
+
/**
|
|
85
|
+
* Ending port of the source port range to which this rule applies
|
|
86
|
+
* (inclusive).
|
|
87
|
+
*/
|
|
88
|
+
srcPortHigh: number;
|
|
89
|
+
/**
|
|
90
|
+
* Destination IP range to which this rule applies (CIDR notation with subnet
|
|
91
|
+
* mask).
|
|
92
|
+
*/
|
|
93
|
+
destination: string;
|
|
94
|
+
/**
|
|
95
|
+
* Starting port of the destination port range to which this rule applies
|
|
96
|
+
* (inclusive).
|
|
97
|
+
*/
|
|
98
|
+
dstPortLow: number;
|
|
99
|
+
/**
|
|
100
|
+
* Ending port of the destination port range to which this rule applies
|
|
101
|
+
* (inclusive).
|
|
102
|
+
*/
|
|
103
|
+
dstPortHigh: number;
|
|
104
|
+
/** Policy to apply to the packet. */
|
|
105
|
+
action: Action;
|
|
106
|
+
/** Rule description. */
|
|
107
|
+
description?: string;
|
|
108
|
+
}
|
|
69
109
|
export interface VPC {
|
|
70
110
|
/** VPC ID. */
|
|
71
111
|
id: string;
|
|
@@ -214,6 +254,24 @@ export type EnableRoutingRequest = {
|
|
|
214
254
|
/** VPC ID. */
|
|
215
255
|
vpcId: string;
|
|
216
256
|
};
|
|
257
|
+
export type GetAclRequest = {
|
|
258
|
+
/**
|
|
259
|
+
* Region to target. If none is passed will use default region from the
|
|
260
|
+
* config.
|
|
261
|
+
*/
|
|
262
|
+
region?: ScwRegion;
|
|
263
|
+
/** ID of the Network ACL's VPC. */
|
|
264
|
+
vpcId: string;
|
|
265
|
+
/**
|
|
266
|
+
* Defines whether this set of ACL rules is for IPv6 (false = IPv4). Each
|
|
267
|
+
* Network ACL can have rules for only one IP type.
|
|
268
|
+
*/
|
|
269
|
+
isIpv6: boolean;
|
|
270
|
+
};
|
|
271
|
+
export interface GetAclResponse {
|
|
272
|
+
rules: AclRule[];
|
|
273
|
+
defaultPolicy: Action;
|
|
274
|
+
}
|
|
217
275
|
export type GetPrivateNetworkRequest = {
|
|
218
276
|
/**
|
|
219
277
|
* Region to target. If none is passed will use default region from the
|
|
@@ -374,6 +432,28 @@ export interface ListVPCsResponse {
|
|
|
374
432
|
vpcs: VPC[];
|
|
375
433
|
totalCount: number;
|
|
376
434
|
}
|
|
435
|
+
export type SetAclRequest = {
|
|
436
|
+
/**
|
|
437
|
+
* Region to target. If none is passed will use default region from the
|
|
438
|
+
* config.
|
|
439
|
+
*/
|
|
440
|
+
region?: ScwRegion;
|
|
441
|
+
/** ID of the Network ACL's VPC. */
|
|
442
|
+
vpcId: string;
|
|
443
|
+
/** List of Network ACL rules. */
|
|
444
|
+
rules: AclRule[];
|
|
445
|
+
/**
|
|
446
|
+
* Defines whether this set of ACL rules is for IPv6 (false = IPv4). Each
|
|
447
|
+
* Network ACL can have rules for only one IP type.
|
|
448
|
+
*/
|
|
449
|
+
isIpv6: boolean;
|
|
450
|
+
/** Action to take for packets which do not match any rules. */
|
|
451
|
+
defaultPolicy: Action;
|
|
452
|
+
};
|
|
453
|
+
export interface SetAclResponse {
|
|
454
|
+
rules: AclRule[];
|
|
455
|
+
defaultPolicy: Action;
|
|
456
|
+
}
|
|
377
457
|
export type SetSubnetsRequest = {
|
|
378
458
|
/**
|
|
379
459
|
* Region to target. If none is passed will use default region from the
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const AclRule = {
|
|
4
|
+
description: {
|
|
5
|
+
maxLength: 200
|
|
6
|
+
},
|
|
7
|
+
dstPortHigh: {
|
|
8
|
+
lessThanOrEqual: 65536
|
|
9
|
+
},
|
|
10
|
+
dstPortLow: {
|
|
11
|
+
lessThanOrEqual: 65536
|
|
12
|
+
},
|
|
13
|
+
srcPortHigh: {
|
|
14
|
+
lessThanOrEqual: 65536
|
|
15
|
+
},
|
|
16
|
+
srcPortLow: {
|
|
17
|
+
lessThanOrEqual: 65536
|
|
18
|
+
}
|
|
19
|
+
};
|
|
3
20
|
const Route = {
|
|
4
21
|
description: {
|
|
5
22
|
maxLength: 200
|
|
6
23
|
}
|
|
7
24
|
};
|
|
25
|
+
exports.AclRule = AclRule;
|
|
8
26
|
exports.Route = Route;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
export declare const AclRule: {
|
|
2
|
+
description: {
|
|
3
|
+
maxLength: number;
|
|
4
|
+
};
|
|
5
|
+
dstPortHigh: {
|
|
6
|
+
lessThanOrEqual: number;
|
|
7
|
+
};
|
|
8
|
+
dstPortLow: {
|
|
9
|
+
lessThanOrEqual: number;
|
|
10
|
+
};
|
|
11
|
+
srcPortHigh: {
|
|
12
|
+
lessThanOrEqual: number;
|
|
13
|
+
};
|
|
14
|
+
srcPortLow: {
|
|
15
|
+
lessThanOrEqual: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
1
18
|
export declare const Route: {
|
|
2
19
|
description: {
|
|
3
20
|
maxLength: number;
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
const AclRule = {
|
|
2
|
+
description: {
|
|
3
|
+
maxLength: 200
|
|
4
|
+
},
|
|
5
|
+
dstPortHigh: {
|
|
6
|
+
lessThanOrEqual: 65536
|
|
7
|
+
},
|
|
8
|
+
dstPortLow: {
|
|
9
|
+
lessThanOrEqual: 65536
|
|
10
|
+
},
|
|
11
|
+
srcPortHigh: {
|
|
12
|
+
lessThanOrEqual: 65536
|
|
13
|
+
},
|
|
14
|
+
srcPortLow: {
|
|
15
|
+
lessThanOrEqual: 65536
|
|
16
|
+
}
|
|
17
|
+
};
|
|
1
18
|
const Route = {
|
|
2
19
|
description: {
|
|
3
20
|
maxLength: 200
|
|
4
21
|
}
|
|
5
22
|
};
|
|
6
23
|
export {
|
|
24
|
+
AclRule,
|
|
7
25
|
Route
|
|
8
26
|
};
|
|
@@ -76,7 +76,9 @@ class API extends api.API {
|
|
|
76
76
|
* @returns A Promise of Gateway
|
|
77
77
|
*/
|
|
78
78
|
waitForGateway = (request, options) => intervalRetrier.waitForResource(
|
|
79
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
79
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
80
|
+
!content_gen.GATEWAY_TRANSIENT_STATUSES.includes(res.status)
|
|
81
|
+
)),
|
|
80
82
|
this.getGateway,
|
|
81
83
|
request,
|
|
82
84
|
options
|
|
@@ -74,7 +74,9 @@ class API extends API$1 {
|
|
|
74
74
|
* @returns A Promise of Gateway
|
|
75
75
|
*/
|
|
76
76
|
waitForGateway = (request, options) => waitForResource(
|
|
77
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
77
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
78
|
+
!GATEWAY_TRANSIENT_STATUSES.includes(res.status)
|
|
79
|
+
)),
|
|
78
80
|
this.getGateway,
|
|
79
81
|
request,
|
|
80
82
|
options
|
|
@@ -77,7 +77,9 @@ class API extends api.API {
|
|
|
77
77
|
* @returns A Promise of Gateway
|
|
78
78
|
*/
|
|
79
79
|
waitForGateway = (request, options) => intervalRetrier.waitForResource(
|
|
80
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
80
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
81
|
+
!content_gen.GATEWAY_TRANSIENT_STATUSES.includes(res.status)
|
|
82
|
+
)),
|
|
81
83
|
this.getGateway,
|
|
82
84
|
request,
|
|
83
85
|
options
|
|
@@ -75,7 +75,9 @@ class API extends API$1 {
|
|
|
75
75
|
* @returns A Promise of Gateway
|
|
76
76
|
*/
|
|
77
77
|
waitForGateway = (request, options) => waitForResource(
|
|
78
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
78
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
79
|
+
!GATEWAY_TRANSIENT_STATUSES.includes(res.status)
|
|
80
|
+
)),
|
|
79
81
|
this.getGateway,
|
|
80
82
|
request,
|
|
81
83
|
options
|
|
@@ -356,7 +356,9 @@ class DnsAPI extends api.API {
|
|
|
356
356
|
* @returns A Promise of Domain
|
|
357
357
|
*/
|
|
358
358
|
waitForDomain = (request, options) => intervalRetrier.waitForResource(
|
|
359
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
359
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
360
|
+
!content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status)
|
|
361
|
+
)),
|
|
360
362
|
this.getDomain,
|
|
361
363
|
request,
|
|
362
364
|
options
|
|
@@ -472,7 +474,9 @@ class HostingAPI extends api.API {
|
|
|
472
474
|
* @returns A Promise of Hosting
|
|
473
475
|
*/
|
|
474
476
|
waitForHosting = (request, options) => intervalRetrier.waitForResource(
|
|
475
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
477
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
478
|
+
!content_gen.HOSTING_TRANSIENT_STATUSES.includes(res.status)
|
|
479
|
+
)),
|
|
476
480
|
this.getHosting,
|
|
477
481
|
request,
|
|
478
482
|
options
|
|
@@ -354,7 +354,9 @@ class DnsAPI extends API$1 {
|
|
|
354
354
|
* @returns A Promise of Domain
|
|
355
355
|
*/
|
|
356
356
|
waitForDomain = (request, options) => waitForResource(
|
|
357
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
357
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
358
|
+
!DOMAIN_TRANSIENT_STATUSES.includes(res.status)
|
|
359
|
+
)),
|
|
358
360
|
this.getDomain,
|
|
359
361
|
request,
|
|
360
362
|
options
|
|
@@ -470,7 +472,9 @@ class HostingAPI extends API$1 {
|
|
|
470
472
|
* @returns A Promise of Hosting
|
|
471
473
|
*/
|
|
472
474
|
waitForHosting = (request, options) => waitForResource(
|
|
473
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
475
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
476
|
+
!HOSTING_TRANSIENT_STATUSES.includes(res.status)
|
|
477
|
+
)),
|
|
474
478
|
this.getHosting,
|
|
475
479
|
request,
|
|
476
480
|
options
|
|
@@ -57,6 +57,20 @@ const unmarshalCheckUserOwnsDomainResponse = (data) => {
|
|
|
57
57
|
ownsDomain: data.owns_domain
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
+
const unmarshalAutoConfigDomainDns = (data) => {
|
|
61
|
+
if (!json.isJSONObject(data)) {
|
|
62
|
+
throw new TypeError(
|
|
63
|
+
`Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
allRecords: data.all_records,
|
|
68
|
+
mailRecords: data.mail_records,
|
|
69
|
+
nameservers: data.nameservers,
|
|
70
|
+
none: data.none,
|
|
71
|
+
webRecords: data.web_records
|
|
72
|
+
};
|
|
73
|
+
};
|
|
60
74
|
const unmarshalDnsRecord = (data) => {
|
|
61
75
|
if (!json.isJSONObject(data)) {
|
|
62
76
|
throw new TypeError(
|
|
@@ -92,25 +106,13 @@ const unmarshalDnsRecords = (data) => {
|
|
|
92
106
|
);
|
|
93
107
|
}
|
|
94
108
|
return {
|
|
95
|
-
|
|
109
|
+
autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
|
|
110
|
+
dnsConfig: data.dns_config ? data.dns_config : void 0,
|
|
96
111
|
nameServers: marshalling.unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
|
|
97
112
|
records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
|
|
98
113
|
status: data.status
|
|
99
114
|
};
|
|
100
115
|
};
|
|
101
|
-
const unmarshalAutoConfigDomainDns = (data) => {
|
|
102
|
-
if (!json.isJSONObject(data)) {
|
|
103
|
-
throw new TypeError(
|
|
104
|
-
`Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
return {
|
|
108
|
-
allRecords: data.all_records,
|
|
109
|
-
mailRecords: data.mail_records,
|
|
110
|
-
nameservers: data.nameservers,
|
|
111
|
-
webRecords: data.web_records
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
116
|
const unmarshalDomain = (data) => {
|
|
115
117
|
if (!json.isJSONObject(data)) {
|
|
116
118
|
throw new TypeError(
|
|
@@ -468,6 +470,7 @@ const marshalAutoConfigDomainDns = (request, defaults) => ({
|
|
|
468
470
|
all_records: request.allRecords,
|
|
469
471
|
mail_records: request.mailRecords,
|
|
470
472
|
nameservers: request.nameservers,
|
|
473
|
+
none: request.none,
|
|
471
474
|
web_records: request.webRecords
|
|
472
475
|
});
|
|
473
476
|
const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
|
|
@@ -55,6 +55,20 @@ const unmarshalCheckUserOwnsDomainResponse = (data) => {
|
|
|
55
55
|
ownsDomain: data.owns_domain
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
+
const unmarshalAutoConfigDomainDns = (data) => {
|
|
59
|
+
if (!isJSONObject(data)) {
|
|
60
|
+
throw new TypeError(
|
|
61
|
+
`Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
allRecords: data.all_records,
|
|
66
|
+
mailRecords: data.mail_records,
|
|
67
|
+
nameservers: data.nameservers,
|
|
68
|
+
none: data.none,
|
|
69
|
+
webRecords: data.web_records
|
|
70
|
+
};
|
|
71
|
+
};
|
|
58
72
|
const unmarshalDnsRecord = (data) => {
|
|
59
73
|
if (!isJSONObject(data)) {
|
|
60
74
|
throw new TypeError(
|
|
@@ -90,25 +104,13 @@ const unmarshalDnsRecords = (data) => {
|
|
|
90
104
|
);
|
|
91
105
|
}
|
|
92
106
|
return {
|
|
93
|
-
|
|
107
|
+
autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
|
|
108
|
+
dnsConfig: data.dns_config ? data.dns_config : void 0,
|
|
94
109
|
nameServers: unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
|
|
95
110
|
records: unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
|
|
96
111
|
status: data.status
|
|
97
112
|
};
|
|
98
113
|
};
|
|
99
|
-
const unmarshalAutoConfigDomainDns = (data) => {
|
|
100
|
-
if (!isJSONObject(data)) {
|
|
101
|
-
throw new TypeError(
|
|
102
|
-
`Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
return {
|
|
106
|
-
allRecords: data.all_records,
|
|
107
|
-
mailRecords: data.mail_records,
|
|
108
|
-
nameservers: data.nameservers,
|
|
109
|
-
webRecords: data.web_records
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
114
|
const unmarshalDomain = (data) => {
|
|
113
115
|
if (!isJSONObject(data)) {
|
|
114
116
|
throw new TypeError(
|
|
@@ -466,6 +468,7 @@ const marshalAutoConfigDomainDns = (request, defaults) => ({
|
|
|
466
468
|
all_records: request.allRecords,
|
|
467
469
|
mail_records: request.mailRecords,
|
|
468
470
|
nameservers: request.nameservers,
|
|
471
|
+
none: request.none,
|
|
469
472
|
web_records: request.webRecords
|
|
470
473
|
});
|
|
471
474
|
const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
|
|
@@ -70,6 +70,11 @@ export interface AutoConfigDomainDns {
|
|
|
70
70
|
* other fields.
|
|
71
71
|
*/
|
|
72
72
|
allRecords: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* No automatic domain configuration. Users must configure their domain for
|
|
75
|
+
* the Web Hosting to work.
|
|
76
|
+
*/
|
|
77
|
+
none: boolean;
|
|
73
78
|
}
|
|
74
79
|
export interface CreateHostingRequestDomainConfiguration {
|
|
75
80
|
updateNameservers: boolean;
|
|
@@ -494,7 +499,7 @@ export type DnsApiSyncDomainDnsRecordsRequest = {
|
|
|
494
499
|
* use auto_config_domain_dns).
|
|
495
500
|
*/
|
|
496
501
|
updateNameservers?: boolean;
|
|
497
|
-
/** Custom records to synchronize. */
|
|
502
|
+
/** @deprecated Custom records to synchronize. */
|
|
498
503
|
customRecords?: SyncDomainDnsRecordsRequestRecord[];
|
|
499
504
|
/** Whether or not to synchronize each types of records. */
|
|
500
505
|
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
@@ -506,8 +511,13 @@ export interface DnsRecords {
|
|
|
506
511
|
nameServers: Nameserver[];
|
|
507
512
|
/** Status of the records. */
|
|
508
513
|
status: DnsRecordsStatus;
|
|
509
|
-
/**
|
|
510
|
-
|
|
514
|
+
/**
|
|
515
|
+
* @deprecated Records dns auto configuration settings (deprecated, use
|
|
516
|
+
* auto_config_domain_dns).
|
|
517
|
+
*/
|
|
518
|
+
dnsConfig?: DomainDnsAction[];
|
|
519
|
+
/** Whether or not to synchronize each types of records. */
|
|
520
|
+
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
511
521
|
}
|
|
512
522
|
export interface Domain {
|
|
513
523
|
/** Name of the domain. */
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const name = "@scaleway/sdk";
|
|
4
|
+
const version = "2.71.0";
|
|
5
|
+
const license = "Apache-2.0";
|
|
6
|
+
const description = "Scaleway SDK.";
|
|
7
|
+
const keywords = [
|
|
8
|
+
"scaleway",
|
|
9
|
+
"cloud",
|
|
10
|
+
"sdk"
|
|
11
|
+
];
|
|
12
|
+
const main = "dist/index.cjs";
|
|
13
|
+
const module$1 = "dist/index.js";
|
|
14
|
+
const types = "dist/index.d.ts";
|
|
15
|
+
const scripts = {
|
|
16
|
+
typecheck: "tsc --noEmit",
|
|
17
|
+
"type:generate": "tsc --declaration -p tsconfig.build.json",
|
|
18
|
+
build: "vite build --config ../../vite.config.ts && pnpm run type:generate && tsc-alias -p tsconfig.build.json",
|
|
19
|
+
"build:profile": "npx vite-bundle-visualizer -c ../../vite.config.ts"
|
|
20
|
+
};
|
|
21
|
+
const files = [
|
|
22
|
+
"dist"
|
|
23
|
+
];
|
|
24
|
+
const publishConfig = {
|
|
25
|
+
access: "public"
|
|
26
|
+
};
|
|
27
|
+
const repository = {
|
|
28
|
+
type: "git",
|
|
29
|
+
url: "https://github.com/scaleway/scaleway-sdk-js",
|
|
30
|
+
directory: "packages/clients"
|
|
31
|
+
};
|
|
32
|
+
const engines = {
|
|
33
|
+
node: ">=18.0"
|
|
34
|
+
};
|
|
35
|
+
const type = "module";
|
|
36
|
+
const dependencies = {
|
|
37
|
+
"@scaleway/random-name": "5.1.1"
|
|
38
|
+
};
|
|
39
|
+
const bundledDependencies = [
|
|
40
|
+
"@scaleway/random-name"
|
|
41
|
+
];
|
|
42
|
+
const pkg = {
|
|
43
|
+
name,
|
|
44
|
+
version,
|
|
45
|
+
license,
|
|
46
|
+
description,
|
|
47
|
+
keywords,
|
|
48
|
+
main,
|
|
49
|
+
module: module$1,
|
|
50
|
+
types,
|
|
51
|
+
scripts,
|
|
52
|
+
files,
|
|
53
|
+
publishConfig,
|
|
54
|
+
repository,
|
|
55
|
+
engines,
|
|
56
|
+
type,
|
|
57
|
+
dependencies,
|
|
58
|
+
bundledDependencies
|
|
59
|
+
};
|
|
60
|
+
exports.bundledDependencies = bundledDependencies;
|
|
61
|
+
exports.default = pkg;
|
|
62
|
+
exports.dependencies = dependencies;
|
|
63
|
+
exports.description = description;
|
|
64
|
+
exports.engines = engines;
|
|
65
|
+
exports.files = files;
|
|
66
|
+
exports.keywords = keywords;
|
|
67
|
+
exports.license = license;
|
|
68
|
+
exports.main = main;
|
|
69
|
+
exports.module = module$1;
|
|
70
|
+
exports.name = name;
|
|
71
|
+
exports.publishConfig = publishConfig;
|
|
72
|
+
exports.repository = repository;
|
|
73
|
+
exports.scripts = scripts;
|
|
74
|
+
exports.type = type;
|
|
75
|
+
exports.types = types;
|
|
76
|
+
exports.version = version;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const name = "@scaleway/sdk";
|
|
2
|
+
const version = "2.71.0";
|
|
3
|
+
const license = "Apache-2.0";
|
|
4
|
+
const description = "Scaleway SDK.";
|
|
5
|
+
const keywords = [
|
|
6
|
+
"scaleway",
|
|
7
|
+
"cloud",
|
|
8
|
+
"sdk"
|
|
9
|
+
];
|
|
10
|
+
const main = "dist/index.cjs";
|
|
11
|
+
const module = "dist/index.js";
|
|
12
|
+
const types = "dist/index.d.ts";
|
|
13
|
+
const scripts = {
|
|
14
|
+
typecheck: "tsc --noEmit",
|
|
15
|
+
"type:generate": "tsc --declaration -p tsconfig.build.json",
|
|
16
|
+
build: "vite build --config ../../vite.config.ts && pnpm run type:generate && tsc-alias -p tsconfig.build.json",
|
|
17
|
+
"build:profile": "npx vite-bundle-visualizer -c ../../vite.config.ts"
|
|
18
|
+
};
|
|
19
|
+
const files = [
|
|
20
|
+
"dist"
|
|
21
|
+
];
|
|
22
|
+
const publishConfig = {
|
|
23
|
+
access: "public"
|
|
24
|
+
};
|
|
25
|
+
const repository = {
|
|
26
|
+
type: "git",
|
|
27
|
+
url: "https://github.com/scaleway/scaleway-sdk-js",
|
|
28
|
+
directory: "packages/clients"
|
|
29
|
+
};
|
|
30
|
+
const engines = {
|
|
31
|
+
node: ">=18.0"
|
|
32
|
+
};
|
|
33
|
+
const type = "module";
|
|
34
|
+
const dependencies = {
|
|
35
|
+
"@scaleway/random-name": "5.1.1"
|
|
36
|
+
};
|
|
37
|
+
const bundledDependencies = [
|
|
38
|
+
"@scaleway/random-name"
|
|
39
|
+
];
|
|
40
|
+
const pkg = {
|
|
41
|
+
name,
|
|
42
|
+
version,
|
|
43
|
+
license,
|
|
44
|
+
description,
|
|
45
|
+
keywords,
|
|
46
|
+
main,
|
|
47
|
+
module,
|
|
48
|
+
types,
|
|
49
|
+
scripts,
|
|
50
|
+
files,
|
|
51
|
+
publishConfig,
|
|
52
|
+
repository,
|
|
53
|
+
engines,
|
|
54
|
+
type,
|
|
55
|
+
dependencies,
|
|
56
|
+
bundledDependencies
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
bundledDependencies,
|
|
60
|
+
pkg as default,
|
|
61
|
+
dependencies,
|
|
62
|
+
description,
|
|
63
|
+
engines,
|
|
64
|
+
files,
|
|
65
|
+
keywords,
|
|
66
|
+
license,
|
|
67
|
+
main,
|
|
68
|
+
module,
|
|
69
|
+
name,
|
|
70
|
+
publishConfig,
|
|
71
|
+
repository,
|
|
72
|
+
scripts,
|
|
73
|
+
type,
|
|
74
|
+
types,
|
|
75
|
+
version
|
|
76
|
+
};
|
package/dist/scw/constants.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const _package = require("../package.json.cjs");
|
|
4
|
+
const { version } = _package.default;
|
|
4
5
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
5
6
|
exports.userAgent = userAgent;
|
|
6
7
|
exports.version = version;
|
package/dist/scw/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version
|
|
2
|
-
export declare const userAgent
|
|
1
|
+
export declare const version: string;
|
|
2
|
+
export declare const userAgent: string;
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.71.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"module": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"version": "./scripts/update-constants-file.sh",
|
|
16
15
|
"typecheck": "tsc --noEmit",
|
|
17
16
|
"type:generate": "tsc --declaration -p tsconfig.build.json",
|
|
18
17
|
"build": "vite build --config ../../vite.config.ts && pnpm run type:generate && tsc-alias -p tsconfig.build.json",
|
|
@@ -39,5 +38,5 @@
|
|
|
39
38
|
"bundledDependencies": [
|
|
40
39
|
"@scaleway/random-name"
|
|
41
40
|
],
|
|
42
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "3436da6ff6b394f1000688c996f96c2471b2598a"
|
|
43
42
|
}
|