@scaleway/sdk-dedibox 2.3.0 → 2.3.2
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/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1/api.gen.js +11 -9
- package/dist/v1/content.gen.js +11 -9
- package/dist/v1/index.gen.js +3 -1
- package/dist/v1/marshalling.gen.js +83 -81
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1/validation-rules.gen.js +88 -86
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __exportAll = (all, no_symbols) => {
|
|
3
4
|
let target = {};
|
|
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
|
|
|
8
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
10
|
return target;
|
|
10
11
|
};
|
|
12
|
+
//#endregion
|
|
11
13
|
export { __exportAll };
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { BMC_ACCESS_TRANSIENT_STATUSES, RPN_SAN_TRANSIENT_STATUSES, RPN_V2_GROUP_TRANSIENT_STATUSES, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalAttachFailoverIPToMacAddressRequest, marshalAttachFailoverIPsRequest, marshalCreateFailoverIPsRequest, marshalCreateServerRequest, marshalDetachFailoverIPsRequest, marshalIPv6BlockApiCreateIPv6BlockRequest, marshalIPv6BlockApiCreateIPv6BlockSubnetRequest, marshalIPv6BlockApiUpdateIPv6BlockRequest, marshalInstallServerRequest, marshalRpnSanApiAddIpRequest, marshalRpnSanApiCreateRpnSanRequest, marshalRpnSanApiRemoveIpRequest, marshalRpnV1ApiAddRpnGroupMembersRequest, marshalRpnV1ApiCreateRpnGroupRequest, marshalRpnV1ApiDeleteRpnGroupMembersRequest, marshalRpnV1ApiLeaveRpnGroupRequest, marshalRpnV1ApiRpnGroupInviteRequest, marshalRpnV1ApiUpdateRpnGroupNameRequest, marshalRpnV2ApiAddRpnV2MembersRequest, marshalRpnV2ApiCreateRpnV2GroupRequest, marshalRpnV2ApiDeleteRpnV2MembersRequest, marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest, marshalRpnV2ApiUpdateRpnV2GroupNameRequest, marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest, marshalStartBMCAccessRequest, marshalStartRescueRequest, marshalSubscribeServerOptionRequest, marshalSubscribeStorageOptionsRequest, marshalUpdateRaidRequest, marshalUpdateReverseRequest, marshalUpdateServerBackupRequest, marshalUpdateServerRequest, marshalUpdateServerTagsRequest, unmarshalBMCAccess, unmarshalBackup, unmarshalCanOrderResponse, unmarshalCreateFailoverIPsResponse, unmarshalFailoverIP, unmarshalGetIPv6BlockQuotasResponse, unmarshalGetRemainingQuotaResponse, unmarshalGetRpnStatusResponse, unmarshalIP, unmarshalIPv6Block, unmarshalInvoice, unmarshalListFailoverIPsResponse, unmarshalListIPv6BlockSubnetsAvailableResponse, unmarshalListIPv6BlocksResponse, unmarshalListInvoicesResponse, unmarshalListIpsResponse, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListRefundsResponse, unmarshalListRpnCapableSanServersResponse, unmarshalListRpnCapableServersResponse, unmarshalListRpnGroupMembersResponse, unmarshalListRpnGroupsResponse, unmarshalListRpnInvitesResponse, unmarshalListRpnSansResponse, unmarshalListRpnServerCapabilitiesResponse, unmarshalListRpnV2CapableResourcesResponse, unmarshalListRpnV2GroupLogsResponse, unmarshalListRpnV2GroupsResponse, unmarshalListRpnV2MembersResponse, unmarshalListServerDisksResponse, unmarshalListServerEventsResponse, unmarshalListServersResponse, unmarshalListServicesResponse, unmarshalListSubscribableServerOptionsResponse, unmarshalOS, unmarshalOffer, unmarshalRaid, unmarshalRefund, unmarshalRescue, unmarshalRpnGroup, unmarshalRpnSan, unmarshalRpnV2Group, unmarshalServer, unmarshalServerDefaultPartitioning, unmarshalServerInstall, unmarshalService, unmarshalSubscribeStorageOptionsResponse } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
3
|
+
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* Dedibox Phoenix API.
|
|
7
8
|
*/
|
|
8
|
-
var API
|
|
9
|
+
var API = class extends API$1 {
|
|
9
10
|
/**
|
|
10
11
|
* Locality of this API.
|
|
11
12
|
* type ∈ {'zone','region','global','unspecified'}
|
|
@@ -527,7 +528,7 @@ var API$1 = class extends API {
|
|
|
527
528
|
/**
|
|
528
529
|
* Dedibox Phoenix Billing API.
|
|
529
530
|
*/
|
|
530
|
-
var BillingAPI = class extends API {
|
|
531
|
+
var BillingAPI = class extends API$1 {
|
|
531
532
|
pageOfListInvoices = (request = {}) => this.client.fetch({
|
|
532
533
|
method: "GET",
|
|
533
534
|
path: `/dedibox/v1/invoices`,
|
|
@@ -569,7 +570,7 @@ var BillingAPI = class extends API {
|
|
|
569
570
|
/**
|
|
570
571
|
* Dedibox Phoenix IPv6 Block API.
|
|
571
572
|
*/
|
|
572
|
-
var IPv6BlockAPI = class extends API {
|
|
573
|
+
var IPv6BlockAPI = class extends API$1 {
|
|
573
574
|
/**
|
|
574
575
|
* Get IPv6 block quota. Get IPv6 block quota with the given project ID.
|
|
575
576
|
/48 one per organization.
|
|
@@ -668,7 +669,7 @@ var IPv6BlockAPI = class extends API {
|
|
|
668
669
|
/**
|
|
669
670
|
* Dedibox Phoenix RPN API.
|
|
670
671
|
*/
|
|
671
|
-
var RpnAPI = class extends API {
|
|
672
|
+
var RpnAPI = class extends API$1 {
|
|
672
673
|
pageOfListRpnServerCapabilities = (request = {}) => this.client.fetch({
|
|
673
674
|
method: "GET",
|
|
674
675
|
path: `/dedibox/v1/rpn/server-capabilities`,
|
|
@@ -684,7 +685,7 @@ var RpnAPI = class extends API {
|
|
|
684
685
|
/**
|
|
685
686
|
* Dedibox Phoenix RPN SAN API.
|
|
686
687
|
*/
|
|
687
|
-
var RpnSanAPI = class extends API {
|
|
688
|
+
var RpnSanAPI = class extends API$1 {
|
|
688
689
|
pageOfListRpnSans = (request = {}) => this.client.fetch({
|
|
689
690
|
method: "GET",
|
|
690
691
|
path: `/dedibox/v1/rpn-sans`,
|
|
@@ -739,7 +740,7 @@ var RpnSanAPI = class extends API {
|
|
|
739
740
|
/**
|
|
740
741
|
* Dedibox Phoenix RPN v1 API.
|
|
741
742
|
*/
|
|
742
|
-
var RpnV1API = class extends API {
|
|
743
|
+
var RpnV1API = class extends API$1 {
|
|
743
744
|
pageOfListRpnGroups = (request = {}) => this.client.fetch({
|
|
744
745
|
method: "GET",
|
|
745
746
|
path: `/dedibox/v1/rpnv1/groups`,
|
|
@@ -826,7 +827,7 @@ var RpnV1API = class extends API {
|
|
|
826
827
|
/**
|
|
827
828
|
* Dedibox Phoenix RPN v2 API.
|
|
828
829
|
*/
|
|
829
|
-
var RpnV2API = class extends API {
|
|
830
|
+
var RpnV2API = class extends API$1 {
|
|
830
831
|
pageOfListRpnV2Groups = (request = {}) => this.client.fetch({
|
|
831
832
|
method: "GET",
|
|
832
833
|
path: `/dedibox/v1/rpnv2/groups`,
|
|
@@ -910,4 +911,5 @@ var RpnV2API = class extends API {
|
|
|
910
911
|
path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/disable-compatibility`
|
|
911
912
|
});
|
|
912
913
|
};
|
|
913
|
-
|
|
914
|
+
//#endregion
|
|
915
|
+
export { API, BillingAPI, IPv6BlockAPI, RpnAPI, RpnSanAPI, RpnV1API, RpnV2API };
|
package/dist/v1/content.gen.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
//#region src/v1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link BMCAccessStatus}. */
|
|
2
|
-
|
|
3
|
+
var BMC_ACCESS_TRANSIENT_STATUSES = ["creating", "deleting"];
|
|
3
4
|
/** Lists transient statutes of the enum {@link IPv6BlockDelegationStatus}. */
|
|
4
|
-
|
|
5
|
+
var I_PV6_BLOCK_DELEGATION_TRANSIENT_STATUSES = ["updating"];
|
|
5
6
|
/** Lists transient statutes of the enum {@link RpnGroupMemberStatus}. */
|
|
6
|
-
|
|
7
|
+
var RPN_GROUP_MEMBER_TRANSIENT_STATUSES = ["creating", "deleting"];
|
|
7
8
|
/** Lists transient statutes of the enum {@link RpnSanStatus}. */
|
|
8
|
-
|
|
9
|
+
var RPN_SAN_TRANSIENT_STATUSES = ["creating", "deleting"];
|
|
9
10
|
/** Lists transient statutes of the enum {@link RpnV2GroupStatus}. */
|
|
10
|
-
|
|
11
|
+
var RPN_V2_GROUP_TRANSIENT_STATUSES = [
|
|
11
12
|
"creating",
|
|
12
13
|
"updating",
|
|
13
14
|
"deleting"
|
|
14
15
|
];
|
|
15
16
|
/** Lists transient statutes of the enum {@link RpnV2MemberStatus}. */
|
|
16
|
-
|
|
17
|
+
var RPN_V2_MEMBER_TRANSIENT_STATUSES = [
|
|
17
18
|
"creating",
|
|
18
19
|
"updating",
|
|
19
20
|
"deleting"
|
|
20
21
|
];
|
|
21
22
|
/** Lists transient statutes of the enum {@link ServerInstallStatus}. */
|
|
22
|
-
|
|
23
|
+
var SERVER_INSTALL_TRANSIENT_STATUSES = [
|
|
23
24
|
"booting",
|
|
24
25
|
"setting_up_raid",
|
|
25
26
|
"partitioning",
|
|
@@ -30,7 +31,8 @@ const SERVER_INSTALL_TRANSIENT_STATUSES = [
|
|
|
30
31
|
"rebooting"
|
|
31
32
|
];
|
|
32
33
|
/** Lists transient statutes of the enum {@link ServerStatus}. */
|
|
33
|
-
|
|
34
|
+
var SERVER_TRANSIENT_STATUSES = ["delivering", "installing"];
|
|
34
35
|
/** Lists transient statutes of the enum {@link ServiceProvisioningStatus}. */
|
|
35
|
-
|
|
36
|
+
var SERVICE_PROVISIONING_TRANSIENT_STATUSES = ["delivering", "expiring"];
|
|
37
|
+
//#endregion
|
|
36
38
|
export { BMC_ACCESS_TRANSIENT_STATUSES, I_PV6_BLOCK_DELEGATION_TRANSIENT_STATUSES, RPN_GROUP_MEMBER_TRANSIENT_STATUSES, RPN_SAN_TRANSIENT_STATUSES, RPN_V2_GROUP_TRANSIENT_STATUSES, RPN_V2_MEMBER_TRANSIENT_STATUSES, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, SERVICE_PROVISIONING_TRANSIENT_STATUSES };
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -3,6 +3,7 @@ import { BMC_ACCESS_TRANSIENT_STATUSES, I_PV6_BLOCK_DELEGATION_TRANSIENT_STATUSE
|
|
|
3
3
|
import { marshalAttachFailoverIPToMacAddressRequest, marshalAttachFailoverIPsRequest, marshalCreateFailoverIPsRequest, marshalCreateServerRequest, marshalDetachFailoverIPsRequest, marshalIPv6BlockApiCreateIPv6BlockRequest, marshalIPv6BlockApiCreateIPv6BlockSubnetRequest, marshalIPv6BlockApiUpdateIPv6BlockRequest, marshalInstallServerRequest, marshalRpnSanApiAddIpRequest, marshalRpnSanApiCreateRpnSanRequest, marshalRpnSanApiRemoveIpRequest, marshalRpnV1ApiAddRpnGroupMembersRequest, marshalRpnV1ApiCreateRpnGroupRequest, marshalRpnV1ApiDeleteRpnGroupMembersRequest, marshalRpnV1ApiLeaveRpnGroupRequest, marshalRpnV1ApiRpnGroupInviteRequest, marshalRpnV1ApiUpdateRpnGroupNameRequest, marshalRpnV2ApiAddRpnV2MembersRequest, marshalRpnV2ApiCreateRpnV2GroupRequest, marshalRpnV2ApiDeleteRpnV2MembersRequest, marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest, marshalRpnV2ApiUpdateRpnV2GroupNameRequest, marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest, marshalStartBMCAccessRequest, marshalStartRescueRequest, marshalSubscribeServerOptionRequest, marshalSubscribeStorageOptionsRequest, marshalUpdateRaidRequest, marshalUpdateReverseRequest, marshalUpdateServerBackupRequest, marshalUpdateServerRequest, marshalUpdateServerTagsRequest, unmarshalBMCAccess, unmarshalBackup, unmarshalCanOrderResponse, unmarshalCreateFailoverIPsResponse, unmarshalFailoverIP, unmarshalGetIPv6BlockQuotasResponse, unmarshalGetRemainingQuotaResponse, unmarshalGetRpnStatusResponse, unmarshalIP, unmarshalIPv6Block, unmarshalInvoice, unmarshalListFailoverIPsResponse, unmarshalListIPv6BlockSubnetsAvailableResponse, unmarshalListIPv6BlocksResponse, unmarshalListInvoicesResponse, unmarshalListIpsResponse, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListRefundsResponse, unmarshalListRpnCapableSanServersResponse, unmarshalListRpnCapableServersResponse, unmarshalListRpnGroupMembersResponse, unmarshalListRpnGroupsResponse, unmarshalListRpnInvitesResponse, unmarshalListRpnSansResponse, unmarshalListRpnServerCapabilitiesResponse, unmarshalListRpnV2CapableResourcesResponse, unmarshalListRpnV2GroupLogsResponse, unmarshalListRpnV2GroupsResponse, unmarshalListRpnV2MembersResponse, unmarshalListServerDisksResponse, unmarshalListServerEventsResponse, unmarshalListServersResponse, unmarshalListServicesResponse, unmarshalListSubscribableServerOptionsResponse, unmarshalOS, unmarshalOffer, unmarshalRaid, unmarshalRefund, unmarshalRescue, unmarshalRpnGroup, unmarshalRpnSan, unmarshalRpnV2Group, unmarshalServer, unmarshalServerDefaultPartitioning, unmarshalServerInstall, unmarshalService, unmarshalSubscribeStorageOptionsResponse } from "./marshalling.gen.js";
|
|
4
4
|
import { API, BillingAPI, IPv6BlockAPI, RpnAPI, RpnSanAPI, RpnV1API, RpnV2API } from "./api.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
API: () => API,
|
|
8
9
|
BMC_ACCESS_TRANSIENT_STATUSES: () => BMC_ACCESS_TRANSIENT_STATUSES,
|
|
@@ -103,4 +104,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
103
104
|
unmarshalService: () => unmarshalService,
|
|
104
105
|
unmarshalSubscribeStorageOptionsResponse: () => unmarshalSubscribeStorageOptionsResponse
|
|
105
106
|
});
|
|
106
|
-
|
|
107
|
+
//#endregion
|
|
108
|
+
export { API, BMC_ACCESS_TRANSIENT_STATUSES, BillingAPI, IPv6BlockAPI, I_PV6_BLOCK_DELEGATION_TRANSIENT_STATUSES, RPN_GROUP_MEMBER_TRANSIENT_STATUSES, RPN_SAN_TRANSIENT_STATUSES, RPN_V2_GROUP_TRANSIENT_STATUSES, RPN_V2_MEMBER_TRANSIENT_STATUSES, RpnAPI, RpnSanAPI, RpnV1API, RpnV2API, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, SERVICE_PROVISIONING_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAttachFailoverIPToMacAddressRequest, marshalAttachFailoverIPsRequest, marshalCreateFailoverIPsRequest, marshalCreateServerRequest, marshalDetachFailoverIPsRequest, marshalIPv6BlockApiCreateIPv6BlockRequest, marshalIPv6BlockApiCreateIPv6BlockSubnetRequest, marshalIPv6BlockApiUpdateIPv6BlockRequest, marshalInstallServerRequest, marshalRpnSanApiAddIpRequest, marshalRpnSanApiCreateRpnSanRequest, marshalRpnSanApiRemoveIpRequest, marshalRpnV1ApiAddRpnGroupMembersRequest, marshalRpnV1ApiCreateRpnGroupRequest, marshalRpnV1ApiDeleteRpnGroupMembersRequest, marshalRpnV1ApiLeaveRpnGroupRequest, marshalRpnV1ApiRpnGroupInviteRequest, marshalRpnV1ApiUpdateRpnGroupNameRequest, marshalRpnV2ApiAddRpnV2MembersRequest, marshalRpnV2ApiCreateRpnV2GroupRequest, marshalRpnV2ApiDeleteRpnV2MembersRequest, marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest, marshalRpnV2ApiUpdateRpnV2GroupNameRequest, marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest, marshalStartBMCAccessRequest, marshalStartRescueRequest, marshalSubscribeServerOptionRequest, marshalSubscribeStorageOptionsRequest, marshalUpdateRaidRequest, marshalUpdateReverseRequest, marshalUpdateServerBackupRequest, marshalUpdateServerRequest, marshalUpdateServerTagsRequest, unmarshalBMCAccess, unmarshalBackup, unmarshalCanOrderResponse, unmarshalCreateFailoverIPsResponse, unmarshalFailoverIP, unmarshalGetIPv6BlockQuotasResponse, unmarshalGetRemainingQuotaResponse, unmarshalGetRpnStatusResponse, unmarshalIP, unmarshalIPv6Block, unmarshalInvoice, unmarshalListFailoverIPsResponse, unmarshalListIPv6BlockSubnetsAvailableResponse, unmarshalListIPv6BlocksResponse, unmarshalListInvoicesResponse, unmarshalListIpsResponse, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListRefundsResponse, unmarshalListRpnCapableSanServersResponse, unmarshalListRpnCapableServersResponse, unmarshalListRpnGroupMembersResponse, unmarshalListRpnGroupsResponse, unmarshalListRpnInvitesResponse, unmarshalListRpnSansResponse, unmarshalListRpnServerCapabilitiesResponse, unmarshalListRpnV2CapableResourcesResponse, unmarshalListRpnV2GroupLogsResponse, unmarshalListRpnV2GroupsResponse, unmarshalListRpnV2MembersResponse, unmarshalListServerDisksResponse, unmarshalListServerEventsResponse, unmarshalListServersResponse, unmarshalListServicesResponse, unmarshalListSubscribableServerOptionsResponse, unmarshalOS, unmarshalOffer, unmarshalRaid, unmarshalRefund, unmarshalRescue, unmarshalRpnGroup, unmarshalRpnSan, unmarshalRpnV2Group, unmarshalServer, unmarshalServerDefaultPartitioning, unmarshalServerInstall, unmarshalService, unmarshalSubscribeStorageOptionsResponse };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
|
-
|
|
2
|
+
//#region src/v1/marshalling.gen.ts
|
|
3
|
+
var unmarshalIP = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
5
6
|
address: data.address,
|
|
@@ -130,7 +131,7 @@ var unmarshalOfferStorageInfo = (data) => {
|
|
|
130
131
|
size: data.size
|
|
131
132
|
};
|
|
132
133
|
};
|
|
133
|
-
|
|
134
|
+
var unmarshalOffer = (data) => {
|
|
134
135
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
|
|
135
136
|
return {
|
|
136
137
|
antidosInfo: data.antidos_info ? unmarshalOfferAntiDosInfo(data.antidos_info) : void 0,
|
|
@@ -152,7 +153,7 @@ const unmarshalOffer = (data) => {
|
|
|
152
153
|
usbStorageInfo: data.usb_storage_info ? unmarshalOfferStorageInfo(data.usb_storage_info) : void 0
|
|
153
154
|
};
|
|
154
155
|
};
|
|
155
|
-
|
|
156
|
+
var unmarshalOS = (data) => {
|
|
156
157
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OS' failed as data isn't a dictionary.`);
|
|
157
158
|
return {
|
|
158
159
|
allowCustomPartitioning: data.allow_custom_partitioning,
|
|
@@ -178,7 +179,7 @@ const unmarshalOS = (data) => {
|
|
|
178
179
|
version: data.version
|
|
179
180
|
};
|
|
180
181
|
};
|
|
181
|
-
|
|
182
|
+
var unmarshalRpnSan = (data) => {
|
|
182
183
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RpnSan' failed as data isn't a dictionary.`);
|
|
183
184
|
return {
|
|
184
185
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -201,7 +202,7 @@ const unmarshalRpnSan = (data) => {
|
|
|
201
202
|
terminatedAt: unmarshalDate(data.terminated_at)
|
|
202
203
|
};
|
|
203
204
|
};
|
|
204
|
-
|
|
205
|
+
var unmarshalRpnGroup = (data) => {
|
|
205
206
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RpnGroup' failed as data isn't a dictionary.`);
|
|
206
207
|
return {
|
|
207
208
|
active: data.active,
|
|
@@ -250,7 +251,7 @@ var unmarshalServiceLevel = (data) => {
|
|
|
250
251
|
offerId: data.offer_id
|
|
251
252
|
};
|
|
252
253
|
};
|
|
253
|
-
|
|
254
|
+
var unmarshalServer = (data) => {
|
|
254
255
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
|
|
255
256
|
return {
|
|
256
257
|
abuseContact: data.abuse_contact,
|
|
@@ -287,7 +288,7 @@ var unmarshalRpnV2GroupSubnet = (data) => {
|
|
|
287
288
|
cidr: data.cidr
|
|
288
289
|
};
|
|
289
290
|
};
|
|
290
|
-
|
|
291
|
+
var unmarshalRpnV2Group = (data) => {
|
|
291
292
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RpnV2Group' failed as data isn't a dictionary.`);
|
|
292
293
|
return {
|
|
293
294
|
compatibleRpnv1: data.compatible_rpnv1,
|
|
@@ -304,7 +305,7 @@ const unmarshalRpnV2Group = (data) => {
|
|
|
304
305
|
type: data.type
|
|
305
306
|
};
|
|
306
307
|
};
|
|
307
|
-
|
|
308
|
+
var unmarshalService = (data) => {
|
|
308
309
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Service' failed as data isn't a dictionary.`);
|
|
309
310
|
return {
|
|
310
311
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -330,7 +331,7 @@ var unmarshalFailoverBlock = (data) => {
|
|
|
330
331
|
netmask: data.netmask
|
|
331
332
|
};
|
|
332
333
|
};
|
|
333
|
-
|
|
334
|
+
var unmarshalFailoverIP = (data) => {
|
|
334
335
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'FailoverIP' failed as data isn't a dictionary.`);
|
|
335
336
|
return {
|
|
336
337
|
address: data.address,
|
|
@@ -348,7 +349,7 @@ const unmarshalFailoverIP = (data) => {
|
|
|
348
349
|
type: data.type
|
|
349
350
|
};
|
|
350
351
|
};
|
|
351
|
-
|
|
352
|
+
var unmarshalIPv6Block = (data) => {
|
|
352
353
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'IPv6Block' failed as data isn't a dictionary.`);
|
|
353
354
|
return {
|
|
354
355
|
address: data.address,
|
|
@@ -360,7 +361,7 @@ const unmarshalIPv6Block = (data) => {
|
|
|
360
361
|
subnets: unmarshalArrayOfObject(data.subnets, unmarshalIPv6Block)
|
|
361
362
|
};
|
|
362
363
|
};
|
|
363
|
-
|
|
364
|
+
var unmarshalBMCAccess = (data) => {
|
|
364
365
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`);
|
|
365
366
|
return {
|
|
366
367
|
expiresAt: unmarshalDate(data.expires_at),
|
|
@@ -370,7 +371,7 @@ const unmarshalBMCAccess = (data) => {
|
|
|
370
371
|
url: data.url
|
|
371
372
|
};
|
|
372
373
|
};
|
|
373
|
-
|
|
374
|
+
var unmarshalBackup = (data) => {
|
|
374
375
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Backup' failed as data isn't a dictionary.`);
|
|
375
376
|
return {
|
|
376
377
|
aclEnabled: data.acl_enabled,
|
|
@@ -385,7 +386,7 @@ const unmarshalBackup = (data) => {
|
|
|
385
386
|
status: data.status
|
|
386
387
|
};
|
|
387
388
|
};
|
|
388
|
-
|
|
389
|
+
var unmarshalCanOrderResponse = (data) => {
|
|
389
390
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CanOrderResponse' failed as data isn't a dictionary.`);
|
|
390
391
|
return {
|
|
391
392
|
billingOk: data.billing_ok,
|
|
@@ -398,7 +399,7 @@ const unmarshalCanOrderResponse = (data) => {
|
|
|
398
399
|
userConfirmed: data.user_confirmed
|
|
399
400
|
};
|
|
400
401
|
};
|
|
401
|
-
|
|
402
|
+
var unmarshalCreateFailoverIPsResponse = (data) => {
|
|
402
403
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateFailoverIPsResponse' failed as data isn't a dictionary.`);
|
|
403
404
|
return {
|
|
404
405
|
services: unmarshalArrayOfObject(data.services, unmarshalService),
|
|
@@ -412,14 +413,14 @@ var unmarshalGetIPv6BlockQuotasResponseQuota = (data) => {
|
|
|
412
413
|
quota: data.quota
|
|
413
414
|
};
|
|
414
415
|
};
|
|
415
|
-
|
|
416
|
+
var unmarshalGetIPv6BlockQuotasResponse = (data) => {
|
|
416
417
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetIPv6BlockQuotasResponse' failed as data isn't a dictionary.`);
|
|
417
418
|
return {
|
|
418
419
|
quotas: unmarshalArrayOfObject(data.quotas, unmarshalGetIPv6BlockQuotasResponseQuota),
|
|
419
420
|
totalCount: data.total_count
|
|
420
421
|
};
|
|
421
422
|
};
|
|
422
|
-
|
|
423
|
+
var unmarshalGetRemainingQuotaResponse = (data) => {
|
|
423
424
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetRemainingQuotaResponse' failed as data isn't a dictionary.`);
|
|
424
425
|
return {
|
|
425
426
|
failoverBlockQuota: data.failover_block_quota,
|
|
@@ -428,14 +429,14 @@ const unmarshalGetRemainingQuotaResponse = (data) => {
|
|
|
428
429
|
failoverIpRemainingQuota: data.failover_ip_remaining_quota
|
|
429
430
|
};
|
|
430
431
|
};
|
|
431
|
-
|
|
432
|
+
var unmarshalGetRpnStatusResponse = (data) => {
|
|
432
433
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetRpnStatusResponse' failed as data isn't a dictionary.`);
|
|
433
434
|
return {
|
|
434
435
|
operationsLeft: data.operations_left,
|
|
435
436
|
status: data.status
|
|
436
437
|
};
|
|
437
438
|
};
|
|
438
|
-
|
|
439
|
+
var unmarshalInvoice = (data) => {
|
|
439
440
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
|
|
440
441
|
return {
|
|
441
442
|
content: data.content,
|
|
@@ -449,7 +450,7 @@ const unmarshalInvoice = (data) => {
|
|
|
449
450
|
transactionId: data.transaction_id
|
|
450
451
|
};
|
|
451
452
|
};
|
|
452
|
-
|
|
453
|
+
var unmarshalListFailoverIPsResponse = (data) => {
|
|
453
454
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFailoverIPsResponse' failed as data isn't a dictionary.`);
|
|
454
455
|
return {
|
|
455
456
|
failoverIps: unmarshalArrayOfObject(data.failover_ips, unmarshalFailoverIP),
|
|
@@ -463,14 +464,14 @@ var unmarshalListIPv6BlockSubnetsAvailableResponseSubnet = (data) => {
|
|
|
463
464
|
cidr: data.cidr
|
|
464
465
|
};
|
|
465
466
|
};
|
|
466
|
-
|
|
467
|
+
var unmarshalListIPv6BlockSubnetsAvailableResponse = (data) => {
|
|
467
468
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponse' failed as data isn't a dictionary.`);
|
|
468
469
|
return {
|
|
469
470
|
subnetAvailables: unmarshalArrayOfObject(data.subnet_availables, unmarshalListIPv6BlockSubnetsAvailableResponseSubnet),
|
|
470
471
|
totalCount: data.total_count
|
|
471
472
|
};
|
|
472
473
|
};
|
|
473
|
-
|
|
474
|
+
var unmarshalListIPv6BlocksResponse = (data) => {
|
|
474
475
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIPv6BlocksResponse' failed as data isn't a dictionary.`);
|
|
475
476
|
return {
|
|
476
477
|
ipv6Blocks: unmarshalArrayOfObject(data.ipv6_blocks, unmarshalIPv6Block),
|
|
@@ -490,7 +491,7 @@ var unmarshalInvoiceSummary = (data) => {
|
|
|
490
491
|
transactionId: data.transaction_id
|
|
491
492
|
};
|
|
492
493
|
};
|
|
493
|
-
|
|
494
|
+
var unmarshalListInvoicesResponse = (data) => {
|
|
494
495
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
|
|
495
496
|
return {
|
|
496
497
|
invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoiceSummary),
|
|
@@ -521,21 +522,21 @@ var unmarshalRpnSanIp = (data) => {
|
|
|
521
522
|
type: data.type
|
|
522
523
|
};
|
|
523
524
|
};
|
|
524
|
-
|
|
525
|
+
var unmarshalListIpsResponse = (data) => {
|
|
525
526
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`);
|
|
526
527
|
return {
|
|
527
528
|
ips: unmarshalArrayOfObject(data.ips, unmarshalRpnSanIp),
|
|
528
529
|
totalCount: data.total_count
|
|
529
530
|
};
|
|
530
531
|
};
|
|
531
|
-
|
|
532
|
+
var unmarshalListOSResponse = (data) => {
|
|
532
533
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
|
|
533
534
|
return {
|
|
534
535
|
os: unmarshalArrayOfObject(data.os, unmarshalOS),
|
|
535
536
|
totalCount: data.total_count
|
|
536
537
|
};
|
|
537
538
|
};
|
|
538
|
-
|
|
539
|
+
var unmarshalListOffersResponse = (data) => {
|
|
539
540
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
|
|
540
541
|
return {
|
|
541
542
|
offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
|
|
@@ -554,7 +555,7 @@ var unmarshalRefundSummary = (data) => {
|
|
|
554
555
|
totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : void 0
|
|
555
556
|
};
|
|
556
557
|
};
|
|
557
|
-
|
|
558
|
+
var unmarshalListRefundsResponse = (data) => {
|
|
558
559
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRefundsResponse' failed as data isn't a dictionary.`);
|
|
559
560
|
return {
|
|
560
561
|
refunds: unmarshalArrayOfObject(data.refunds, unmarshalRefundSummary),
|
|
@@ -571,14 +572,14 @@ var unmarshalRpnSanServer = (data) => {
|
|
|
571
572
|
zone: data.zone
|
|
572
573
|
};
|
|
573
574
|
};
|
|
574
|
-
|
|
575
|
+
var unmarshalListRpnCapableSanServersResponse = (data) => {
|
|
575
576
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnCapableSanServersResponse' failed as data isn't a dictionary.`);
|
|
576
577
|
return {
|
|
577
578
|
sanServers: unmarshalArrayOfObject(data.san_servers, unmarshalRpnSanServer),
|
|
578
579
|
totalCount: data.total_count
|
|
579
580
|
};
|
|
580
581
|
};
|
|
581
|
-
|
|
582
|
+
var unmarshalListRpnCapableServersResponse = (data) => {
|
|
582
583
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnCapableServersResponse' failed as data isn't a dictionary.`);
|
|
583
584
|
return {
|
|
584
585
|
servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
|
|
@@ -599,21 +600,21 @@ var unmarshalRpnGroupMember = (data) => {
|
|
|
599
600
|
status: data.status
|
|
600
601
|
};
|
|
601
602
|
};
|
|
602
|
-
|
|
603
|
+
var unmarshalListRpnGroupMembersResponse = (data) => {
|
|
603
604
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnGroupMembersResponse' failed as data isn't a dictionary.`);
|
|
604
605
|
return {
|
|
605
606
|
members: unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
|
|
606
607
|
totalCount: data.total_count
|
|
607
608
|
};
|
|
608
609
|
};
|
|
609
|
-
|
|
610
|
+
var unmarshalListRpnGroupsResponse = (data) => {
|
|
610
611
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnGroupsResponse' failed as data isn't a dictionary.`);
|
|
611
612
|
return {
|
|
612
613
|
rpnGroups: unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnGroup),
|
|
613
614
|
totalCount: data.total_count
|
|
614
615
|
};
|
|
615
616
|
};
|
|
616
|
-
|
|
617
|
+
var unmarshalListRpnInvitesResponse = (data) => {
|
|
617
618
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnInvitesResponse' failed as data isn't a dictionary.`);
|
|
618
619
|
return {
|
|
619
620
|
members: unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
|
|
@@ -641,7 +642,7 @@ var unmarshalRpnSanSummary = (data) => {
|
|
|
641
642
|
terminatedAt: unmarshalDate(data.terminated_at)
|
|
642
643
|
};
|
|
643
644
|
};
|
|
644
|
-
|
|
645
|
+
var unmarshalListRpnSansResponse = (data) => {
|
|
645
646
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnSansResponse' failed as data isn't a dictionary.`);
|
|
646
647
|
return {
|
|
647
648
|
rpnSans: unmarshalArrayOfObject(data.rpn_sans, unmarshalRpnSanSummary),
|
|
@@ -664,14 +665,14 @@ var unmarshalRpnServerCapability = (data) => {
|
|
|
664
665
|
zone: data.zone
|
|
665
666
|
};
|
|
666
667
|
};
|
|
667
|
-
|
|
668
|
+
var unmarshalListRpnServerCapabilitiesResponse = (data) => {
|
|
668
669
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnServerCapabilitiesResponse' failed as data isn't a dictionary.`);
|
|
669
670
|
return {
|
|
670
671
|
servers: unmarshalArrayOfObject(data.servers, unmarshalRpnServerCapability),
|
|
671
672
|
totalCount: data.total_count
|
|
672
673
|
};
|
|
673
674
|
};
|
|
674
|
-
|
|
675
|
+
var unmarshalListRpnV2CapableResourcesResponse = (data) => {
|
|
675
676
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnV2CapableResourcesResponse' failed as data isn't a dictionary.`);
|
|
676
677
|
return {
|
|
677
678
|
servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
|
|
@@ -701,21 +702,21 @@ var unmarshalLog = (data) => {
|
|
|
701
702
|
status: data.status
|
|
702
703
|
};
|
|
703
704
|
};
|
|
704
|
-
|
|
705
|
+
var unmarshalListRpnV2GroupLogsResponse = (data) => {
|
|
705
706
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnV2GroupLogsResponse' failed as data isn't a dictionary.`);
|
|
706
707
|
return {
|
|
707
708
|
logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
|
|
708
709
|
totalCount: data.total_count
|
|
709
710
|
};
|
|
710
711
|
};
|
|
711
|
-
|
|
712
|
+
var unmarshalListRpnV2GroupsResponse = (data) => {
|
|
712
713
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnV2GroupsResponse' failed as data isn't a dictionary.`);
|
|
713
714
|
return {
|
|
714
715
|
rpnGroups: unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnV2Group),
|
|
715
716
|
totalCount: data.total_count
|
|
716
717
|
};
|
|
717
718
|
};
|
|
718
|
-
|
|
719
|
+
var unmarshalListRpnV2MembersResponse = (data) => {
|
|
719
720
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRpnV2MembersResponse' failed as data isn't a dictionary.`);
|
|
720
721
|
return {
|
|
721
722
|
members: unmarshalArrayOfObject(data.members, unmarshalRpnV2Member),
|
|
@@ -732,7 +733,7 @@ var unmarshalServerDisk = (data) => {
|
|
|
732
733
|
type: data.type
|
|
733
734
|
};
|
|
734
735
|
};
|
|
735
|
-
|
|
736
|
+
var unmarshalListServerDisksResponse = (data) => {
|
|
736
737
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServerDisksResponse' failed as data isn't a dictionary.`);
|
|
737
738
|
return {
|
|
738
739
|
disks: unmarshalArrayOfObject(data.disks, unmarshalServerDisk),
|
|
@@ -747,7 +748,7 @@ var unmarshalServerEvent = (data) => {
|
|
|
747
748
|
eventId: data.event_id
|
|
748
749
|
};
|
|
749
750
|
};
|
|
750
|
-
|
|
751
|
+
var unmarshalListServerEventsResponse = (data) => {
|
|
751
752
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServerEventsResponse' failed as data isn't a dictionary.`);
|
|
752
753
|
return {
|
|
753
754
|
events: unmarshalArrayOfObject(data.events, unmarshalServerEvent),
|
|
@@ -778,21 +779,21 @@ var unmarshalServerSummary = (data) => {
|
|
|
778
779
|
zone: data.zone
|
|
779
780
|
};
|
|
780
781
|
};
|
|
781
|
-
|
|
782
|
+
var unmarshalListServersResponse = (data) => {
|
|
782
783
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
|
|
783
784
|
return {
|
|
784
785
|
servers: unmarshalArrayOfObject(data.servers, unmarshalServerSummary),
|
|
785
786
|
totalCount: data.total_count
|
|
786
787
|
};
|
|
787
788
|
};
|
|
788
|
-
|
|
789
|
+
var unmarshalListServicesResponse = (data) => {
|
|
789
790
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServicesResponse' failed as data isn't a dictionary.`);
|
|
790
791
|
return {
|
|
791
792
|
services: unmarshalArrayOfObject(data.services, unmarshalService),
|
|
792
793
|
totalCount: data.total_count
|
|
793
794
|
};
|
|
794
795
|
};
|
|
795
|
-
|
|
796
|
+
var unmarshalListSubscribableServerOptionsResponse = (data) => {
|
|
796
797
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSubscribableServerOptionsResponse' failed as data isn't a dictionary.`);
|
|
797
798
|
return {
|
|
798
799
|
serverOptions: unmarshalArrayOfObject(data.server_options, unmarshalOffer),
|
|
@@ -806,11 +807,11 @@ var unmarshalRaidArray = (data) => {
|
|
|
806
807
|
raidLevel: data.raid_level
|
|
807
808
|
};
|
|
808
809
|
};
|
|
809
|
-
|
|
810
|
+
var unmarshalRaid = (data) => {
|
|
810
811
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Raid' failed as data isn't a dictionary.`);
|
|
811
812
|
return { raidArrays: unmarshalArrayOfObject(data.raid_arrays, unmarshalRaidArray) };
|
|
812
813
|
};
|
|
813
|
-
|
|
814
|
+
var unmarshalRefund = (data) => {
|
|
814
815
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Refund' failed as data isn't a dictionary.`);
|
|
815
816
|
return {
|
|
816
817
|
content: data.content,
|
|
@@ -823,7 +824,7 @@ const unmarshalRefund = (data) => {
|
|
|
823
824
|
totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : void 0
|
|
824
825
|
};
|
|
825
826
|
};
|
|
826
|
-
|
|
827
|
+
var unmarshalRescue = (data) => {
|
|
827
828
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Rescue' failed as data isn't a dictionary.`);
|
|
828
829
|
return {
|
|
829
830
|
login: data.login,
|
|
@@ -843,11 +844,11 @@ var unmarshalPartition = (data) => {
|
|
|
843
844
|
type: data.type
|
|
844
845
|
};
|
|
845
846
|
};
|
|
846
|
-
|
|
847
|
+
var unmarshalServerDefaultPartitioning = (data) => {
|
|
847
848
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerDefaultPartitioning' failed as data isn't a dictionary.`);
|
|
848
849
|
return { partitions: unmarshalArrayOfObject(data.partitions, unmarshalPartition) };
|
|
849
850
|
};
|
|
850
|
-
|
|
851
|
+
var unmarshalServerInstall = (data) => {
|
|
851
852
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`);
|
|
852
853
|
return {
|
|
853
854
|
hostname: data.hostname,
|
|
@@ -859,36 +860,36 @@ const unmarshalServerInstall = (data) => {
|
|
|
859
860
|
userLogin: data.user_login
|
|
860
861
|
};
|
|
861
862
|
};
|
|
862
|
-
|
|
863
|
+
var unmarshalSubscribeStorageOptionsResponse = (data) => {
|
|
863
864
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SubscribeStorageOptionsResponse' failed as data isn't a dictionary.`);
|
|
864
865
|
return { services: unmarshalArrayOfObject(data.services, unmarshalService) };
|
|
865
866
|
};
|
|
866
|
-
|
|
867
|
+
var marshalAttachFailoverIPToMacAddressRequest = (request, defaults) => ({
|
|
867
868
|
mac: request.mac,
|
|
868
869
|
type: request.type
|
|
869
870
|
});
|
|
870
|
-
|
|
871
|
+
var marshalAttachFailoverIPsRequest = (request, defaults) => ({
|
|
871
872
|
fips_ids: request.fipsIds,
|
|
872
873
|
server_id: request.serverId
|
|
873
874
|
});
|
|
874
|
-
|
|
875
|
+
var marshalCreateFailoverIPsRequest = (request, defaults) => ({
|
|
875
876
|
offer_id: request.offerId,
|
|
876
877
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
877
878
|
quantity: request.quantity
|
|
878
879
|
});
|
|
879
|
-
|
|
880
|
+
var marshalCreateServerRequest = (request, defaults) => ({
|
|
880
881
|
datacenter_name: request.datacenterName,
|
|
881
882
|
offer_id: request.offerId,
|
|
882
883
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
883
884
|
server_option_ids: request.serverOptionIds
|
|
884
885
|
});
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
886
|
+
var marshalDetachFailoverIPsRequest = (request, defaults) => ({ fips_ids: request.fipsIds });
|
|
887
|
+
var marshalIPv6BlockApiCreateIPv6BlockRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
|
|
888
|
+
var marshalIPv6BlockApiCreateIPv6BlockSubnetRequest = (request, defaults) => ({
|
|
888
889
|
address: request.address,
|
|
889
890
|
cidr: request.cidr
|
|
890
891
|
});
|
|
891
|
-
|
|
892
|
+
var marshalIPv6BlockApiUpdateIPv6BlockRequest = (request, defaults) => ({ nameservers: request.nameservers });
|
|
892
893
|
var marshalInstallPartition = (request, defaults) => ({
|
|
893
894
|
capacity: request.capacity,
|
|
894
895
|
connectors: request.connectors,
|
|
@@ -896,7 +897,7 @@ var marshalInstallPartition = (request, defaults) => ({
|
|
|
896
897
|
mount_point: request.mountPoint,
|
|
897
898
|
raid_level: request.raidLevel
|
|
898
899
|
});
|
|
899
|
-
|
|
900
|
+
var marshalInstallServerRequest = (request, defaults) => ({
|
|
900
901
|
hostname: request.hostname,
|
|
901
902
|
ip_id: request.ipId,
|
|
902
903
|
license_offer_id: request.licenseOfferId,
|
|
@@ -908,61 +909,62 @@ const marshalInstallServerRequest = (request, defaults) => ({
|
|
|
908
909
|
user_login: request.userLogin,
|
|
909
910
|
user_password: request.userPassword
|
|
910
911
|
});
|
|
911
|
-
|
|
912
|
-
|
|
912
|
+
var marshalRpnSanApiAddIpRequest = (request, defaults) => ({ ip_ids: request.ipIds });
|
|
913
|
+
var marshalRpnSanApiCreateRpnSanRequest = (request, defaults) => ({
|
|
913
914
|
offer_id: request.offerId,
|
|
914
915
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
915
916
|
});
|
|
916
|
-
|
|
917
|
-
|
|
917
|
+
var marshalRpnSanApiRemoveIpRequest = (request, defaults) => ({ ip_ids: request.ipIds });
|
|
918
|
+
var marshalRpnV1ApiAddRpnGroupMembersRequest = (request, defaults) => ({
|
|
918
919
|
san_server_ids: request.sanServerIds,
|
|
919
920
|
server_ids: request.serverIds
|
|
920
921
|
});
|
|
921
|
-
|
|
922
|
+
var marshalRpnV1ApiCreateRpnGroupRequest = (request, defaults) => ({
|
|
922
923
|
name: request.name,
|
|
923
924
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
924
925
|
san_server_ids: request.sanServerIds,
|
|
925
926
|
server_ids: request.serverIds
|
|
926
927
|
});
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
928
|
+
var marshalRpnV1ApiDeleteRpnGroupMembersRequest = (request, defaults) => ({ member_ids: request.memberIds });
|
|
929
|
+
var marshalRpnV1ApiLeaveRpnGroupRequest = (request, defaults) => ({ member_ids: request.memberIds });
|
|
930
|
+
var marshalRpnV1ApiRpnGroupInviteRequest = (request, defaults) => ({
|
|
930
931
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
931
932
|
server_ids: request.serverIds
|
|
932
933
|
});
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
934
|
+
var marshalRpnV1ApiUpdateRpnGroupNameRequest = (request, defaults) => ({ name: request.name });
|
|
935
|
+
var marshalRpnV2ApiAddRpnV2MembersRequest = (request, defaults) => ({ servers: request.servers });
|
|
936
|
+
var marshalRpnV2ApiCreateRpnV2GroupRequest = (request, defaults) => ({
|
|
936
937
|
name: request.name,
|
|
937
938
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
938
939
|
servers: request.servers,
|
|
939
940
|
type: request.type
|
|
940
941
|
});
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
942
|
+
var marshalRpnV2ApiDeleteRpnV2MembersRequest = (request, defaults) => ({ member_ids: request.memberIds });
|
|
943
|
+
var marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest = (request, defaults) => ({ rpnv1_group_id: request.rpnv1GroupId });
|
|
944
|
+
var marshalRpnV2ApiUpdateRpnV2GroupNameRequest = (request, defaults) => ({ name: request.name });
|
|
945
|
+
var marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest = (request, defaults) => ({
|
|
945
946
|
member_ids: request.memberIds,
|
|
946
947
|
vlan: request.vlan
|
|
947
948
|
});
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
949
|
+
var marshalStartBMCAccessRequest = (request, defaults) => ({ ip: request.ip });
|
|
950
|
+
var marshalStartRescueRequest = (request, defaults) => ({ os_id: request.osId });
|
|
951
|
+
var marshalSubscribeServerOptionRequest = (request, defaults) => ({ option_id: request.optionId });
|
|
952
|
+
var marshalSubscribeStorageOptionsRequest = (request, defaults) => ({ options_ids: request.optionsIds });
|
|
952
953
|
var marshalUpdatableRaidArray = (request, defaults) => ({
|
|
953
954
|
disk_ids: request.diskIds,
|
|
954
955
|
raid_level: request.raidLevel
|
|
955
956
|
});
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
957
|
+
var marshalUpdateRaidRequest = (request, defaults) => ({ raid_arrays: request.raidArrays.map((elt) => marshalUpdatableRaidArray(elt, defaults)) });
|
|
958
|
+
var marshalUpdateReverseRequest = (request, defaults) => ({ reverse: request.reverse });
|
|
959
|
+
var marshalUpdateServerBackupRequest = (request, defaults) => ({
|
|
959
960
|
acl_enabled: request.aclEnabled,
|
|
960
961
|
autologin: request.autologin,
|
|
961
962
|
password: request.password
|
|
962
963
|
});
|
|
963
|
-
|
|
964
|
+
var marshalUpdateServerRequest = (request, defaults) => ({
|
|
964
965
|
enable_ipv6: request.enableIpv6,
|
|
965
966
|
hostname: request.hostname
|
|
966
967
|
});
|
|
967
|
-
|
|
968
|
+
var marshalUpdateServerTagsRequest = (request, defaults) => ({ tags: request.tags });
|
|
969
|
+
//#endregion
|
|
968
970
|
export { marshalAttachFailoverIPToMacAddressRequest, marshalAttachFailoverIPsRequest, marshalCreateFailoverIPsRequest, marshalCreateServerRequest, marshalDetachFailoverIPsRequest, marshalIPv6BlockApiCreateIPv6BlockRequest, marshalIPv6BlockApiCreateIPv6BlockSubnetRequest, marshalIPv6BlockApiUpdateIPv6BlockRequest, marshalInstallServerRequest, marshalRpnSanApiAddIpRequest, marshalRpnSanApiCreateRpnSanRequest, marshalRpnSanApiRemoveIpRequest, marshalRpnV1ApiAddRpnGroupMembersRequest, marshalRpnV1ApiCreateRpnGroupRequest, marshalRpnV1ApiDeleteRpnGroupMembersRequest, marshalRpnV1ApiLeaveRpnGroupRequest, marshalRpnV1ApiRpnGroupInviteRequest, marshalRpnV1ApiUpdateRpnGroupNameRequest, marshalRpnV2ApiAddRpnV2MembersRequest, marshalRpnV2ApiCreateRpnV2GroupRequest, marshalRpnV2ApiDeleteRpnV2MembersRequest, marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest, marshalRpnV2ApiUpdateRpnV2GroupNameRequest, marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest, marshalStartBMCAccessRequest, marshalStartRescueRequest, marshalSubscribeServerOptionRequest, marshalSubscribeStorageOptionsRequest, marshalUpdateRaidRequest, marshalUpdateReverseRequest, marshalUpdateServerBackupRequest, marshalUpdateServerRequest, marshalUpdateServerTagsRequest, unmarshalBMCAccess, unmarshalBackup, unmarshalCanOrderResponse, unmarshalCreateFailoverIPsResponse, unmarshalFailoverIP, unmarshalGetIPv6BlockQuotasResponse, unmarshalGetRemainingQuotaResponse, unmarshalGetRpnStatusResponse, unmarshalIP, unmarshalIPv6Block, unmarshalInvoice, unmarshalListFailoverIPsResponse, unmarshalListIPv6BlockSubnetsAvailableResponse, unmarshalListIPv6BlocksResponse, unmarshalListInvoicesResponse, unmarshalListIpsResponse, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListRefundsResponse, unmarshalListRpnCapableSanServersResponse, unmarshalListRpnCapableServersResponse, unmarshalListRpnGroupMembersResponse, unmarshalListRpnGroupsResponse, unmarshalListRpnInvitesResponse, unmarshalListRpnSansResponse, unmarshalListRpnServerCapabilitiesResponse, unmarshalListRpnV2CapableResourcesResponse, unmarshalListRpnV2GroupLogsResponse, unmarshalListRpnV2GroupsResponse, unmarshalListRpnV2MembersResponse, unmarshalListServerDisksResponse, unmarshalListServerEventsResponse, unmarshalListServersResponse, unmarshalListServicesResponse, unmarshalListSubscribableServerOptionsResponse, unmarshalOS, unmarshalOffer, unmarshalRaid, unmarshalRefund, unmarshalRescue, unmarshalRpnGroup, unmarshalRpnSan, unmarshalRpnV2Group, unmarshalServer, unmarshalServerDefaultPartitioning, unmarshalServerInstall, unmarshalService, unmarshalSubscribeStorageOptionsResponse };
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
AttachFailoverIPToMacAddressRequest: () => AttachFailoverIPToMacAddressRequest,
|
|
4
5
|
AttachFailoverIPsRequest: () => AttachFailoverIPsRequest,
|
|
@@ -86,62 +87,62 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
86
87
|
UpdateServerRequest: () => UpdateServerRequest,
|
|
87
88
|
UpdateServerTagsRequest: () => UpdateServerTagsRequest
|
|
88
89
|
});
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
var AttachFailoverIPToMacAddressRequest = { ipId: { greaterThan: 0 } };
|
|
91
|
+
var AttachFailoverIPsRequest = { serverId: { greaterThan: 0 } };
|
|
92
|
+
var BillingApiDownloadInvoiceRequest = { invoiceId: { greaterThan: 0 } };
|
|
93
|
+
var BillingApiDownloadRefundRequest = { refundId: { greaterThan: 0 } };
|
|
94
|
+
var BillingApiGetInvoiceRequest = { invoiceId: { greaterThan: 0 } };
|
|
95
|
+
var BillingApiGetRefundRequest = { refundId: { greaterThan: 0 } };
|
|
96
|
+
var BillingApiListInvoicesRequest = {
|
|
96
97
|
page: { greaterThan: 0 },
|
|
97
98
|
pageSize: {
|
|
98
99
|
greaterThan: 0,
|
|
99
100
|
lessThanOrEqual: 100
|
|
100
101
|
}
|
|
101
102
|
};
|
|
102
|
-
|
|
103
|
+
var BillingApiListRefundsRequest = {
|
|
103
104
|
page: { greaterThan: 0 },
|
|
104
105
|
pageSize: {
|
|
105
106
|
greaterThan: 0,
|
|
106
107
|
lessThanOrEqual: 100
|
|
107
108
|
}
|
|
108
109
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
var CancelServerInstallRequest = { serverId: { greaterThan: 0 } };
|
|
111
|
+
var DeleteFailoverIPRequest = { ipId: { greaterThan: 0 } };
|
|
112
|
+
var DeleteServerRequest = { serverId: { greaterThan: 0 } };
|
|
113
|
+
var DeleteServiceRequest = { serviceId: { greaterThan: 0 } };
|
|
114
|
+
var DetachFailoverIPFromMacAddressRequest = { ipId: { greaterThan: 0 } };
|
|
115
|
+
var GetBMCAccessRequest = { serverId: { greaterThan: 0 } };
|
|
116
|
+
var GetFailoverIPRequest = { ipId: { greaterThan: 0 } };
|
|
117
|
+
var GetOSRequest = {
|
|
117
118
|
osId: { greaterThan: 0 },
|
|
118
119
|
serverId: { greaterThan: 0 }
|
|
119
120
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
121
|
+
var GetOfferRequest = { offerId: { greaterThan: 0 } };
|
|
122
|
+
var GetOrderedServiceRequest = { orderedServiceId: { greaterThan: 0 } };
|
|
123
|
+
var GetRaidRequest = { serverId: { greaterThan: 0 } };
|
|
124
|
+
var GetRescueRequest = { serverId: { greaterThan: 0 } };
|
|
125
|
+
var GetServerBackupRequest = { serverId: { greaterThan: 0 } };
|
|
126
|
+
var GetServerInstallRequest = { serverId: { greaterThan: 0 } };
|
|
127
|
+
var GetServerRequest = { serverId: { greaterThan: 0 } };
|
|
128
|
+
var GetServiceRequest = { serviceId: { greaterThan: 0 } };
|
|
129
|
+
var IPv6Block = { id: { greaterThan: 0 } };
|
|
130
|
+
var IPv6BlockApiCreateIPv6BlockSubnetRequest = { blockId: { greaterThan: 0 } };
|
|
131
|
+
var IPv6BlockApiDeleteIPv6BlockRequest = { blockId: { greaterThan: 0 } };
|
|
132
|
+
var IPv6BlockApiListIPv6BlockSubnetsAvailableRequest = { blockId: { greaterThan: 0 } };
|
|
133
|
+
var IPv6BlockApiUpdateIPv6BlockRequest = { blockId: { greaterThan: 0 } };
|
|
134
|
+
var InstallServerRequest = {
|
|
134
135
|
osId: { greaterThan: 0 },
|
|
135
136
|
serverId: { greaterThan: 0 }
|
|
136
137
|
};
|
|
137
|
-
|
|
138
|
+
var ListFailoverIPsRequest = {
|
|
138
139
|
page: { greaterThan: 0 },
|
|
139
140
|
pageSize: {
|
|
140
141
|
greaterThan: 0,
|
|
141
142
|
lessThanOrEqual: 100
|
|
142
143
|
}
|
|
143
144
|
};
|
|
144
|
-
|
|
145
|
+
var ListOSRequest = {
|
|
145
146
|
page: { greaterThan: 0 },
|
|
146
147
|
pageSize: {
|
|
147
148
|
greaterThan: 0,
|
|
@@ -149,14 +150,14 @@ const ListOSRequest = {
|
|
|
149
150
|
},
|
|
150
151
|
serverId: { greaterThan: 0 }
|
|
151
152
|
};
|
|
152
|
-
|
|
153
|
+
var ListOffersRequest = {
|
|
153
154
|
page: { greaterThan: 0 },
|
|
154
155
|
pageSize: {
|
|
155
156
|
greaterThan: 0,
|
|
156
157
|
lessThanOrEqual: 100
|
|
157
158
|
}
|
|
158
159
|
};
|
|
159
|
-
|
|
160
|
+
var ListServerDisksRequest = {
|
|
160
161
|
page: { greaterThan: 0 },
|
|
161
162
|
pageSize: {
|
|
162
163
|
greaterThan: 0,
|
|
@@ -164,7 +165,7 @@ const ListServerDisksRequest = {
|
|
|
164
165
|
},
|
|
165
166
|
serverId: { greaterThan: 0 }
|
|
166
167
|
};
|
|
167
|
-
|
|
168
|
+
var ListServerEventsRequest = {
|
|
168
169
|
page: { greaterThan: 0 },
|
|
169
170
|
pageSize: {
|
|
170
171
|
greaterThan: 0,
|
|
@@ -172,21 +173,21 @@ const ListServerEventsRequest = {
|
|
|
172
173
|
},
|
|
173
174
|
serverId: { greaterThan: 0 }
|
|
174
175
|
};
|
|
175
|
-
|
|
176
|
+
var ListServersRequest = {
|
|
176
177
|
page: { greaterThan: 0 },
|
|
177
178
|
pageSize: {
|
|
178
179
|
greaterThan: 0,
|
|
179
180
|
lessThanOrEqual: 100
|
|
180
181
|
}
|
|
181
182
|
};
|
|
182
|
-
|
|
183
|
+
var ListServicesRequest = {
|
|
183
184
|
page: { greaterThan: 0 },
|
|
184
185
|
pageSize: {
|
|
185
186
|
greaterThan: 0,
|
|
186
187
|
lessThanOrEqual: 100
|
|
187
188
|
}
|
|
188
189
|
};
|
|
189
|
-
|
|
190
|
+
var ListSubscribableServerOptionsRequest = {
|
|
190
191
|
page: { greaterThan: 0 },
|
|
191
192
|
pageSize: {
|
|
192
193
|
greaterThan: 0,
|
|
@@ -194,48 +195,48 @@ const ListSubscribableServerOptionsRequest = {
|
|
|
194
195
|
},
|
|
195
196
|
serverId: { greaterThan: 0 }
|
|
196
197
|
};
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
var RebootServerRequest = { serverId: { greaterThan: 0 } };
|
|
199
|
+
var RpnApiListRpnServerCapabilitiesRequest = {
|
|
199
200
|
page: { greaterThan: 0 },
|
|
200
201
|
pageSize: {
|
|
201
202
|
greaterThan: 0,
|
|
202
203
|
lessThanOrEqual: 100
|
|
203
204
|
}
|
|
204
205
|
};
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
var RpnSanApiAddIpRequest = { rpnSanId: { greaterThan: 0 } };
|
|
207
|
+
var RpnSanApiDeleteRpnSanRequest = { rpnSanId: { greaterThan: 0 } };
|
|
208
|
+
var RpnSanApiGetRpnSanRequest = { rpnSanId: { greaterThan: 0 } };
|
|
209
|
+
var RpnSanApiListAvailableIpsRequest = { rpnSanId: { greaterThan: 0 } };
|
|
210
|
+
var RpnSanApiListIpsRequest = { rpnSanId: { greaterThan: 0 } };
|
|
211
|
+
var RpnSanApiListRpnSansRequest = {
|
|
211
212
|
page: { greaterThan: 0 },
|
|
212
213
|
pageSize: {
|
|
213
214
|
greaterThan: 0,
|
|
214
215
|
lessThanOrEqual: 100
|
|
215
216
|
}
|
|
216
217
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
218
|
+
var RpnSanApiRemoveIpRequest = { rpnSanId: { greaterThan: 0 } };
|
|
219
|
+
var RpnV1ApiAcceptRpnInviteRequest = { memberId: { greaterThan: 0 } };
|
|
220
|
+
var RpnV1ApiAddRpnGroupMembersRequest = { groupId: { greaterThan: 0 } };
|
|
221
|
+
var RpnV1ApiDeleteRpnGroupMembersRequest = { groupId: { greaterThan: 0 } };
|
|
222
|
+
var RpnV1ApiDeleteRpnGroupRequest = { groupId: { greaterThan: 0 } };
|
|
223
|
+
var RpnV1ApiGetRpnGroupRequest = { groupId: { greaterThan: 0 } };
|
|
224
|
+
var RpnV1ApiLeaveRpnGroupRequest = { groupId: { greaterThan: 0 } };
|
|
225
|
+
var RpnV1ApiListRpnCapableSanServersRequest = {
|
|
225
226
|
page: { greaterThan: 0 },
|
|
226
227
|
pageSize: {
|
|
227
228
|
greaterThan: 0,
|
|
228
229
|
lessThanOrEqual: 100
|
|
229
230
|
}
|
|
230
231
|
};
|
|
231
|
-
|
|
232
|
+
var RpnV1ApiListRpnCapableServersRequest = {
|
|
232
233
|
page: { greaterThan: 0 },
|
|
233
234
|
pageSize: {
|
|
234
235
|
greaterThan: 0,
|
|
235
236
|
lessThanOrEqual: 100
|
|
236
237
|
}
|
|
237
238
|
};
|
|
238
|
-
|
|
239
|
+
var RpnV1ApiListRpnGroupMembersRequest = {
|
|
239
240
|
groupId: { greaterThan: 0 },
|
|
240
241
|
page: { greaterThan: 0 },
|
|
241
242
|
pageSize: {
|
|
@@ -243,37 +244,37 @@ const RpnV1ApiListRpnGroupMembersRequest = {
|
|
|
243
244
|
lessThanOrEqual: 100
|
|
244
245
|
}
|
|
245
246
|
};
|
|
246
|
-
|
|
247
|
+
var RpnV1ApiListRpnGroupsRequest = {
|
|
247
248
|
page: { greaterThan: 0 },
|
|
248
249
|
pageSize: {
|
|
249
250
|
greaterThan: 0,
|
|
250
251
|
lessThanOrEqual: 100
|
|
251
252
|
}
|
|
252
253
|
};
|
|
253
|
-
|
|
254
|
+
var RpnV1ApiListRpnInvitesRequest = {
|
|
254
255
|
page: { greaterThan: 0 },
|
|
255
256
|
pageSize: {
|
|
256
257
|
greaterThan: 0,
|
|
257
258
|
lessThanOrEqual: 100
|
|
258
259
|
}
|
|
259
260
|
};
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
261
|
+
var RpnV1ApiRefuseRpnInviteRequest = { memberId: { greaterThan: 0 } };
|
|
262
|
+
var RpnV1ApiRpnGroupInviteRequest = { groupId: { greaterThan: 0 } };
|
|
263
|
+
var RpnV1ApiUpdateRpnGroupNameRequest = { groupId: { greaterThan: 0 } };
|
|
264
|
+
var RpnV2ApiAddRpnV2MembersRequest = { groupId: { greaterThan: 0 } };
|
|
265
|
+
var RpnV2ApiDeleteRpnV2GroupRequest = { groupId: { greaterThan: 0 } };
|
|
266
|
+
var RpnV2ApiDeleteRpnV2MembersRequest = { groupId: { greaterThan: 0 } };
|
|
267
|
+
var RpnV2ApiDisableRpnV2GroupCompatibilityRequest = { groupId: { greaterThan: 0 } };
|
|
268
|
+
var RpnV2ApiEnableRpnV2GroupCompatibilityRequest = { groupId: { greaterThan: 0 } };
|
|
269
|
+
var RpnV2ApiGetRpnV2GroupRequest = { groupId: { greaterThan: 0 } };
|
|
270
|
+
var RpnV2ApiListRpnV2CapableResourcesRequest = {
|
|
270
271
|
page: { greaterThan: 0 },
|
|
271
272
|
pageSize: {
|
|
272
273
|
greaterThan: 0,
|
|
273
274
|
lessThanOrEqual: 100
|
|
274
275
|
}
|
|
275
276
|
};
|
|
276
|
-
|
|
277
|
+
var RpnV2ApiListRpnV2GroupLogsRequest = {
|
|
277
278
|
groupId: { greaterThan: 0 },
|
|
278
279
|
page: { greaterThan: 0 },
|
|
279
280
|
pageSize: {
|
|
@@ -281,14 +282,14 @@ const RpnV2ApiListRpnV2GroupLogsRequest = {
|
|
|
281
282
|
lessThanOrEqual: 100
|
|
282
283
|
}
|
|
283
284
|
};
|
|
284
|
-
|
|
285
|
+
var RpnV2ApiListRpnV2GroupsRequest = {
|
|
285
286
|
page: { greaterThan: 0 },
|
|
286
287
|
pageSize: {
|
|
287
288
|
greaterThan: 0,
|
|
288
289
|
lessThanOrEqual: 100
|
|
289
290
|
}
|
|
290
291
|
};
|
|
291
|
-
|
|
292
|
+
var RpnV2ApiListRpnV2MembersRequest = {
|
|
292
293
|
groupId: { greaterThan: 0 },
|
|
293
294
|
page: { greaterThan: 0 },
|
|
294
295
|
pageSize: {
|
|
@@ -296,21 +297,22 @@ const RpnV2ApiListRpnV2MembersRequest = {
|
|
|
296
297
|
lessThanOrEqual: 100
|
|
297
298
|
}
|
|
298
299
|
};
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
300
|
+
var RpnV2ApiUpdateRpnV2GroupNameRequest = { groupId: { greaterThan: 0 } };
|
|
301
|
+
var RpnV2ApiUpdateRpnV2VlanForMembersRequest = { groupId: { greaterThan: 0 } };
|
|
302
|
+
var StartRescueRequest = { serverId: { greaterThan: 0 } };
|
|
303
|
+
var StartServerRequest = { serverId: { greaterThan: 0 } };
|
|
304
|
+
var StopBMCAccessRequest = { serverId: { greaterThan: 0 } };
|
|
305
|
+
var StopRescueRequest = { serverId: { greaterThan: 0 } };
|
|
306
|
+
var StopServerRequest = { serverId: { greaterThan: 0 } };
|
|
307
|
+
var SubscribeServerOptionRequest = {
|
|
307
308
|
optionId: { greaterThan: 0 },
|
|
308
309
|
serverId: { greaterThan: 0 }
|
|
309
310
|
};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
311
|
+
var SubscribeStorageOptionsRequest = { serverId: { greaterThan: 0 } };
|
|
312
|
+
var UpdateRaidRequest = { serverId: { greaterThan: 0 } };
|
|
313
|
+
var UpdateReverseRequest = { ipId: { greaterThan: 0 } };
|
|
314
|
+
var UpdateServerBackupRequest = { serverId: { greaterThan: 0 } };
|
|
315
|
+
var UpdateServerRequest = { serverId: { greaterThan: 0 } };
|
|
316
|
+
var UpdateServerTagsRequest = { serverId: { greaterThan: 0 } };
|
|
317
|
+
//#endregion
|
|
318
|
+
export { AttachFailoverIPToMacAddressRequest, AttachFailoverIPsRequest, BillingApiDownloadInvoiceRequest, BillingApiDownloadRefundRequest, BillingApiGetInvoiceRequest, BillingApiGetRefundRequest, BillingApiListInvoicesRequest, BillingApiListRefundsRequest, CancelServerInstallRequest, DeleteFailoverIPRequest, DeleteServerRequest, DeleteServiceRequest, DetachFailoverIPFromMacAddressRequest, GetBMCAccessRequest, GetFailoverIPRequest, GetOSRequest, GetOfferRequest, GetOrderedServiceRequest, GetRaidRequest, GetRescueRequest, GetServerBackupRequest, GetServerInstallRequest, GetServerRequest, GetServiceRequest, IPv6Block, IPv6BlockApiCreateIPv6BlockSubnetRequest, IPv6BlockApiDeleteIPv6BlockRequest, IPv6BlockApiListIPv6BlockSubnetsAvailableRequest, IPv6BlockApiUpdateIPv6BlockRequest, InstallServerRequest, ListFailoverIPsRequest, ListOSRequest, ListOffersRequest, ListServerDisksRequest, ListServerEventsRequest, ListServersRequest, ListServicesRequest, ListSubscribableServerOptionsRequest, RebootServerRequest, RpnApiListRpnServerCapabilitiesRequest, RpnSanApiAddIpRequest, RpnSanApiDeleteRpnSanRequest, RpnSanApiGetRpnSanRequest, RpnSanApiListAvailableIpsRequest, RpnSanApiListIpsRequest, RpnSanApiListRpnSansRequest, RpnSanApiRemoveIpRequest, RpnV1ApiAcceptRpnInviteRequest, RpnV1ApiAddRpnGroupMembersRequest, RpnV1ApiDeleteRpnGroupMembersRequest, RpnV1ApiDeleteRpnGroupRequest, RpnV1ApiGetRpnGroupRequest, RpnV1ApiLeaveRpnGroupRequest, RpnV1ApiListRpnCapableSanServersRequest, RpnV1ApiListRpnCapableServersRequest, RpnV1ApiListRpnGroupMembersRequest, RpnV1ApiListRpnGroupsRequest, RpnV1ApiListRpnInvitesRequest, RpnV1ApiRefuseRpnInviteRequest, RpnV1ApiRpnGroupInviteRequest, RpnV1ApiUpdateRpnGroupNameRequest, RpnV2ApiAddRpnV2MembersRequest, RpnV2ApiDeleteRpnV2GroupRequest, RpnV2ApiDeleteRpnV2MembersRequest, RpnV2ApiDisableRpnV2GroupCompatibilityRequest, RpnV2ApiEnableRpnV2GroupCompatibilityRequest, RpnV2ApiGetRpnV2GroupRequest, RpnV2ApiListRpnV2CapableResourcesRequest, RpnV2ApiListRpnV2GroupLogsRequest, RpnV2ApiListRpnV2GroupsRequest, RpnV2ApiListRpnV2MembersRequest, RpnV2ApiUpdateRpnV2GroupNameRequest, RpnV2ApiUpdateRpnV2VlanForMembersRequest, StartRescueRequest, StartServerRequest, StopBMCAccessRequest, StopRescueRequest, StopServerRequest, SubscribeServerOptionRequest, SubscribeStorageOptionsRequest, UpdateRaidRequest, UpdateReverseRequest, UpdateServerBackupRequest, UpdateServerRequest, UpdateServerTagsRequest, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-dedibox",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Scaleway SDK dedibox",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=20.19.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@scaleway/random-name": "5.1.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
29
|
+
"@scaleway/random-name": "5.1.4",
|
|
30
|
+
"@scaleway/sdk-std": "2.2.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|