@scaleway/sdk 2.0.0-alpha.9 → 2.1.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/applesilicon/v1alpha1/marshalling.gen.js +12 -12
- package/dist/api/baremetal/v1/marshalling.gen.js +63 -52
- package/dist/api/billing/v2alpha1/api.gen.js +32 -1
- package/dist/api/billing/v2alpha1/marshalling.gen.js +46 -1
- package/dist/api/block/v1alpha1/api.gen.js +23 -19
- package/dist/api/block/v1alpha1/marshalling.gen.js +47 -40
- package/dist/api/block/v1alpha1/validation-rules.gen.js +11 -1
- package/dist/api/cockpit/v1beta1/api.gen.js +143 -48
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +89 -36
- package/dist/api/container/v1beta1/index.gen.js +2 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +63 -35
- package/dist/api/container/v1beta1/validation-rules.gen.js +44 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.js +117 -61
- package/dist/api/domain/v2beta1/api.gen.js +29 -37
- package/dist/api/domain/v2beta1/index.gen.js +0 -2
- package/dist/api/domain/v2beta1/marshalling.gen.js +408 -194
- package/dist/api/flexibleip/v1alpha1/api.gen.js +6 -14
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +2 -2
- package/dist/api/function/v1beta1/api.gen.js +36 -0
- package/dist/api/function/v1beta1/index.gen.js +2 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +64 -36
- package/dist/api/function/v1beta1/validation-rules.gen.js +44 -0
- package/dist/api/iam/v1alpha1/api.gen.js +54 -44
- package/dist/api/iam/v1alpha1/marshalling.gen.js +69 -34
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +10 -1
- package/dist/api/instance/v1/api.gen.js +1 -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 +414 -205
- package/dist/api/iot/v1/api.gen.js +24 -32
- package/dist/api/iot/v1/marshalling.gen.js +87 -36
- 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 +71 -19
- package/dist/api/jobs/index.js +2 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +111 -0
- package/dist/api/jobs/v1alpha1/content.gen.js +7 -0
- package/dist/api/jobs/v1alpha1/index.gen.js +7 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +84 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +45 -0
- package/dist/api/k8s/v1/marshalling.gen.js +128 -40
- package/dist/api/lb/v1/api.gen.js +1 -1
- package/dist/api/lb/v1/marshalling.gen.js +268 -152
- package/dist/api/marketplace/v1/marshalling.gen.js +11 -11
- package/dist/api/marketplace/v2/api.gen.js +3 -3
- package/dist/api/mnq/index.js +2 -0
- package/dist/api/mnq/v1alpha1/api.gen.js +12 -20
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +19 -14
- package/dist/api/mnq/v1beta1/api.gen.js +529 -0
- package/dist/api/mnq/v1beta1/index.gen.js +6 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.js +212 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +77 -0
- package/dist/api/rdb/v1/marshalling.gen.js +131 -66
- package/dist/api/redis/v1/marshalling.gen.js +51 -27
- package/dist/api/registry/v1/marshalling.gen.js +6 -4
- package/dist/api/secret/v1alpha1/api.gen.js +2 -2
- package/dist/api/secret/v1alpha1/marshalling.gen.js +17 -5
- package/dist/api/std/index.gen.js +1 -0
- package/dist/api/tem/v1alpha1/api.gen.js +8 -2
- package/dist/api/tem/v1alpha1/marshalling.gen.js +35 -13
- package/dist/api/test/v1/marshalling.gen.js +5 -3
- package/dist/api/vpc/v2/marshalling.gen.js +2 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +53 -24
- package/dist/api/webhosting/v1alpha1/api.gen.js +2 -54
- package/dist/api/webhosting/v1alpha1/index.gen.js +1 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +14 -41
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +1 -10
- package/dist/index.cjs +4351 -1833
- package/dist/index.d.ts +6783 -2543
- package/dist/index.js +34 -28
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ const unmarshalHosting = data => {
|
|
|
27
27
|
throw new TypeError(`Unmarshalling the type 'Hosting' failed as data isn't a dictionary.`);
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
|
-
cpanelUrls: unmarshalHostingCpanelUrls(data.cpanel_urls),
|
|
30
|
+
cpanelUrls: data.cpanel_urls ? unmarshalHostingCpanelUrls(data.cpanel_urls) : undefined,
|
|
31
31
|
createdAt: unmarshalDate(data.created_at),
|
|
32
32
|
dnsStatus: data.dns_status,
|
|
33
33
|
domain: data.domain,
|
|
@@ -38,7 +38,7 @@ const unmarshalHosting = data => {
|
|
|
38
38
|
options: unmarshalArrayOfObject(data.options, unmarshalHostingOption),
|
|
39
39
|
organizationId: data.organization_id,
|
|
40
40
|
platformHostname: data.platform_hostname,
|
|
41
|
-
platformNumber: data.platform_number
|
|
41
|
+
platformNumber: data.platform_number,
|
|
42
42
|
projectId: data.project_id,
|
|
43
43
|
region: data.region,
|
|
44
44
|
status: data.status,
|
|
@@ -47,57 +47,37 @@ const unmarshalHosting = data => {
|
|
|
47
47
|
username: data.username
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
const unmarshalNameserver = data => {
|
|
51
|
-
if (!isJSONObject(data)) {
|
|
52
|
-
throw new TypeError(`Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`);
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
hostname: data.hostname,
|
|
56
|
-
isDefault: data.is_default,
|
|
57
|
-
status: data.status
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
50
|
const unmarshalDnsRecord = data => {
|
|
61
51
|
if (!isJSONObject(data)) {
|
|
62
52
|
throw new TypeError(`Unmarshalling the type 'DnsRecord' failed as data isn't a dictionary.`);
|
|
63
53
|
}
|
|
64
54
|
return {
|
|
65
55
|
name: data.name,
|
|
66
|
-
priority: data.priority
|
|
56
|
+
priority: data.priority,
|
|
67
57
|
status: data.status,
|
|
68
58
|
ttl: data.ttl,
|
|
69
59
|
type: data.type,
|
|
70
60
|
value: data.value
|
|
71
61
|
};
|
|
72
62
|
};
|
|
73
|
-
const
|
|
63
|
+
const unmarshalNameserver = data => {
|
|
74
64
|
if (!isJSONObject(data)) {
|
|
75
|
-
throw new TypeError(`Unmarshalling the type '
|
|
65
|
+
throw new TypeError(`Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`);
|
|
76
66
|
}
|
|
77
67
|
return {
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
hostname: data.hostname,
|
|
69
|
+
isDefault: data.is_default,
|
|
80
70
|
status: data.status
|
|
81
71
|
};
|
|
82
72
|
};
|
|
83
|
-
const
|
|
84
|
-
if (!isJSONObject(data)) {
|
|
85
|
-
throw new TypeError(`Unmarshalling the type 'DediboxHosting' failed as data isn't a dictionary.`);
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
dediboxId: data.dedibox_id,
|
|
89
|
-
domain: data.domain,
|
|
90
|
-
offerId: data.offer_id,
|
|
91
|
-
type: data.type
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
const unmarshalListDediboxHostingsResponse = data => {
|
|
73
|
+
const unmarshalDnsRecords = data => {
|
|
95
74
|
if (!isJSONObject(data)) {
|
|
96
|
-
throw new TypeError(`Unmarshalling the type '
|
|
75
|
+
throw new TypeError(`Unmarshalling the type 'DnsRecords' failed as data isn't a dictionary.`);
|
|
97
76
|
}
|
|
98
77
|
return {
|
|
99
|
-
|
|
100
|
-
|
|
78
|
+
nameServers: unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
|
|
79
|
+
records: unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
|
|
80
|
+
status: data.status
|
|
101
81
|
};
|
|
102
82
|
};
|
|
103
83
|
const unmarshalListHostingsResponse = data => {
|
|
@@ -136,7 +116,7 @@ const unmarshalOffer = data => {
|
|
|
136
116
|
endOfLife: data.end_of_life,
|
|
137
117
|
id: data.id,
|
|
138
118
|
price: data.price ? unmarshalMoney(data.price) : undefined,
|
|
139
|
-
product: unmarshalOfferProduct(data.product),
|
|
119
|
+
product: data.product ? unmarshalOfferProduct(data.product) : undefined,
|
|
140
120
|
quotaWarnings: data.quota_warnings
|
|
141
121
|
};
|
|
142
122
|
};
|
|
@@ -156,13 +136,6 @@ const marshalCreateHostingRequest = (request, defaults) => ({
|
|
|
156
136
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
157
137
|
tags: request.tags
|
|
158
138
|
});
|
|
159
|
-
const marshalDediboxApiMigrateDediboxHostingRequest = (request, defaults) => ({
|
|
160
|
-
domain: request.domain,
|
|
161
|
-
email: request.email,
|
|
162
|
-
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
163
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
164
|
-
token: request.token
|
|
165
|
-
});
|
|
166
139
|
const marshalUpdateHostingRequest = (request, defaults) => ({
|
|
167
140
|
email: request.email,
|
|
168
141
|
offer_id: request.offerId,
|
|
@@ -170,4 +143,4 @@ const marshalUpdateHostingRequest = (request, defaults) => ({
|
|
|
170
143
|
tags: request.tags
|
|
171
144
|
});
|
|
172
145
|
|
|
173
|
-
export { marshalCreateHostingRequest,
|
|
146
|
+
export { marshalCreateHostingRequest, marshalUpdateHostingRequest, unmarshalDnsRecords, unmarshalHosting, unmarshalListHostingsResponse, unmarshalListOffersResponse };
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
// This file was automatically generated. DO NOT EDIT.
|
|
2
2
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3
3
|
|
|
4
|
-
const DediboxApiListDediboxHostingsRequest = {
|
|
5
|
-
page: {
|
|
6
|
-
greaterThan: 0
|
|
7
|
-
},
|
|
8
|
-
pageSize: {
|
|
9
|
-
greaterThan: 0,
|
|
10
|
-
lessThanOrEqual: 100
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
4
|
const ListHostingsRequest = {
|
|
14
5
|
page: {
|
|
15
6
|
greaterThan: 0
|
|
@@ -20,4 +11,4 @@ const ListHostingsRequest = {
|
|
|
20
11
|
}
|
|
21
12
|
};
|
|
22
13
|
|
|
23
|
-
export {
|
|
14
|
+
export { ListHostingsRequest };
|