@scaleway/sdk 1.36.0 → 1.38.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/cockpit/v1beta1/marshalling.gen.js +2 -1
- package/dist/api/container/v1beta1/index.gen.js +2 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/container/v1beta1/validation-rules.gen.js +44 -0
- package/dist/api/function/v1beta1/index.gen.js +2 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +4 -3
- package/dist/api/function/v1beta1/validation-rules.gen.js +44 -0
- package/dist/api/ipam/index.js +2 -0
- package/dist/api/ipam/v1/api.gen.js +113 -0
- package/dist/api/ipam/v1/index.gen.js +6 -0
- package/dist/api/ipam/v1/marshalling.gen.js +77 -0
- package/dist/api/ipam/v1/validation-rules.gen.js +11 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +120 -3
- package/dist/api/ipfs/v1alpha1/content.gen.js +4 -1
- package/dist/api/ipfs/v1alpha1/index.gen.js +2 -2
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +56 -1
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +5 -5
- package/dist/api/tem/v1alpha1/marshalling.gen.js +13 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +10 -0
- package/dist/index.cjs +821 -336
- package/dist/index.d.ts +1662 -941
- package/dist/index.js +30 -28
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,18 @@ import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshall
|
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
5
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
|
+
const unmarshalDomainReputation = data => {
|
|
7
|
+
if (!isJSONObject(data)) {
|
|
8
|
+
throw new TypeError(`Unmarshalling the type 'DomainReputation' failed as data isn't a dictionary.`);
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
previousScore: data.previous_score,
|
|
12
|
+
previousScoredAt: unmarshalDate(data.previous_scored_at),
|
|
13
|
+
score: data.score,
|
|
14
|
+
scoredAt: unmarshalDate(data.scored_at),
|
|
15
|
+
status: data.status
|
|
16
|
+
};
|
|
17
|
+
};
|
|
6
18
|
const unmarshalDomainStatistics = data => {
|
|
7
19
|
if (!isJSONObject(data)) {
|
|
8
20
|
throw new TypeError(`Unmarshalling the type 'DomainStatistics' failed as data isn't a dictionary.`);
|
|
@@ -40,6 +52,7 @@ const unmarshalDomain = data => {
|
|
|
40
52
|
organizationId: data.organization_id,
|
|
41
53
|
projectId: data.project_id,
|
|
42
54
|
region: data.region,
|
|
55
|
+
reputation: data.reputation ? unmarshalDomainReputation(data.reputation) : undefined,
|
|
43
56
|
revokedAt: unmarshalDate(data.revoked_at),
|
|
44
57
|
spfConfig: data.spf_config,
|
|
45
58
|
statistics: data.statistics ? unmarshalDomainStatistics(data.statistics) : undefined,
|
|
@@ -30,6 +30,14 @@ const unmarshalDHCP = data => {
|
|
|
30
30
|
zone: data.zone
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
const unmarshalIpamConfig = data => {
|
|
34
|
+
if (!isJSONObject(data)) {
|
|
35
|
+
throw new TypeError(`Unmarshalling the type 'IpamConfig' failed as data isn't a dictionary.`);
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
pushDefaultRoute: data.push_default_route
|
|
39
|
+
};
|
|
40
|
+
};
|
|
33
41
|
const unmarshalGatewayNetwork = data => {
|
|
34
42
|
if (!isJSONObject(data)) {
|
|
35
43
|
throw new TypeError(`Unmarshalling the type 'GatewayNetwork' failed as data isn't a dictionary.`);
|
|
@@ -42,6 +50,7 @@ const unmarshalGatewayNetwork = data => {
|
|
|
42
50
|
enableMasquerade: data.enable_masquerade,
|
|
43
51
|
gatewayId: data.gateway_id,
|
|
44
52
|
id: data.id,
|
|
53
|
+
ipamConfig: data.ipam_config ? unmarshalIpamConfig(data.ipam_config) : undefined,
|
|
45
54
|
macAddress: data.mac_address,
|
|
46
55
|
privateNetworkId: data.private_network_id,
|
|
47
56
|
status: data.status,
|
|
@@ -104,6 +113,7 @@ const unmarshalGateway = data => {
|
|
|
104
113
|
gatewayNetworks: unmarshalArrayOfObject(data.gateway_networks, unmarshalGatewayNetwork),
|
|
105
114
|
id: data.id,
|
|
106
115
|
ip: data.ip ? unmarshalIP(data.ip) : undefined,
|
|
116
|
+
isLegacy: data.is_legacy,
|
|
107
117
|
name: data.name,
|
|
108
118
|
organizationId: data.organization_id,
|
|
109
119
|
projectId: data.project_id,
|