@scaleway/sdk-baremetal 2.4.0 → 2.6.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/.vite/license.md +3 -0
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +13 -0
- package/dist/v1/api.gen.d.ts +9 -2
- package/dist/v1/api.gen.js +197 -388
- package/dist/v1/content.gen.js +3 -3
- package/dist/v1/index.gen.d.ts +1 -1
- package/dist/v1/index.gen.js +4 -2
- package/dist/v1/marshalling.gen.d.ts +3 -1
- package/dist/v1/marshalling.gen.js +75 -62
- package/dist/v1/metadata.gen.js +1 -1
- package/dist/v1/types.gen.d.ts +22 -0
- package/dist/v1/validation-rules.gen.d.ts +8 -0
- package/dist/v1/validation-rules.gen.js +16 -11
- package/dist/v3/api.gen.js +36 -58
- package/dist/v3/content.gen.js +1 -1
- package/dist/v3/marshalling.gen.js +5 -5
- package/dist/v3/metadata.gen.js +1 -1
- package/package.json +16 -6
- package/LICENSE +0 -191
package/dist/v1/content.gen.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/v1/content.gen.ts
|
|
2
2
|
/** Lists transient statutes of the enum {@link ServerInstallStatus}. */
|
|
3
|
-
|
|
3
|
+
const SERVER_INSTALL_TRANSIENT_STATUSES = ["to_install", "installing"];
|
|
4
4
|
/** Lists transient statutes of the enum {@link ServerPrivateNetworkStatus}. */
|
|
5
|
-
|
|
5
|
+
const SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES = ["attaching", "detaching"];
|
|
6
6
|
/** Lists transient statutes of the enum {@link ServerStatus}. */
|
|
7
|
-
|
|
7
|
+
const SERVER_TRANSIENT_STATUSES = [
|
|
8
8
|
"delivering",
|
|
9
9
|
"stopping",
|
|
10
10
|
"starting",
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { API, PrivateNetworkAPI, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
|
-
export type { AddOptionServerRequest, BMCAccess, CertificationOption, CPU, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOfferRequest, GetOptionRequest, GetOSRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, GPU, InstallServerRequest, IP, IPReverseStatus, IPVersion, LicenseOption, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListOSRequest, ListOSResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, MigrateServerToMonthlyOfferRequest, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, OS, OSOSField, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen.js';
|
|
4
|
+
export type { AddOptionServerRequest, BatchCreateServersRequest, BatchCreateServersRequestServerConfig, BatchCreateServersResponse, BMCAccess, CertificationOption, CPU, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOfferRequest, GetOptionRequest, GetOSRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, GPU, InstallServerRequest, IP, IPReverseStatus, IPVersion, LicenseOption, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListOSRequest, ListOSResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, MigrateServerToMonthlyOfferRequest, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, OS, OSOSField, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen.js';
|
|
5
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { marshalAddOptionServerRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting } from "./marshalling.gen.js";
|
|
3
|
+
import { marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting } from "./marshalling.gen.js";
|
|
4
4
|
import { API, PrivateNetworkAPI } from "./api.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
6
|
//#region src/v1/index.gen.ts
|
|
@@ -12,6 +12,7 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
12
12
|
SERVER_TRANSIENT_STATUSES: () => SERVER_TRANSIENT_STATUSES,
|
|
13
13
|
ValidationRules: () => validation_rules_gen_exports,
|
|
14
14
|
marshalAddOptionServerRequest: () => marshalAddOptionServerRequest,
|
|
15
|
+
marshalBatchCreateServersRequest: () => marshalBatchCreateServersRequest,
|
|
15
16
|
marshalCreateServerRequest: () => marshalCreateServerRequest,
|
|
16
17
|
marshalInstallServerRequest: () => marshalInstallServerRequest,
|
|
17
18
|
marshalPrivateNetworkApiAddServerPrivateNetworkRequest: () => marshalPrivateNetworkApiAddServerPrivateNetworkRequest,
|
|
@@ -25,6 +26,7 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
25
26
|
marshalUpdateSettingRequest: () => marshalUpdateSettingRequest,
|
|
26
27
|
marshalValidatePartitioningSchemaRequest: () => marshalValidatePartitioningSchemaRequest,
|
|
27
28
|
unmarshalBMCAccess: () => unmarshalBMCAccess,
|
|
29
|
+
unmarshalBatchCreateServersResponse: () => unmarshalBatchCreateServersResponse,
|
|
28
30
|
unmarshalGetServerMetricsResponse: () => unmarshalGetServerMetricsResponse,
|
|
29
31
|
unmarshalIP: () => unmarshalIP,
|
|
30
32
|
unmarshalListOSResponse: () => unmarshalListOSResponse,
|
|
@@ -44,4 +46,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
44
46
|
unmarshalSetting: () => unmarshalSetting
|
|
45
47
|
});
|
|
46
48
|
//#endregion
|
|
47
|
-
export { API, PrivateNetworkAPI, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddOptionServerRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
49
|
+
export { API, PrivateNetworkAPI, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { AddOptionServerRequest, BMCAccess, CreateServerRequest, GetServerMetricsResponse, InstallServerRequest, IP, ListOffersResponse, ListOptionsResponse, ListOSResponse, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersResponse, ListSettingsResponse, Offer, Option, OS, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from './types.gen.js';
|
|
2
|
+
import type { AddOptionServerRequest, BatchCreateServersRequest, BatchCreateServersResponse, BMCAccess, CreateServerRequest, GetServerMetricsResponse, InstallServerRequest, IP, ListOffersResponse, ListOptionsResponse, ListOSResponse, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersResponse, ListSettingsResponse, Offer, Option, OS, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalSchema: (data: unknown) => Schema;
|
|
4
4
|
export declare const unmarshalIP: (data: unknown) => IP;
|
|
5
5
|
export declare const unmarshalServer: (data: unknown) => Server;
|
|
@@ -9,6 +9,7 @@ export declare const unmarshalOption: (data: unknown) => Option;
|
|
|
9
9
|
export declare const unmarshalServerPrivateNetwork: (data: unknown) => ServerPrivateNetwork;
|
|
10
10
|
export declare const unmarshalSetting: (data: unknown) => Setting;
|
|
11
11
|
export declare const unmarshalBMCAccess: (data: unknown) => BMCAccess;
|
|
12
|
+
export declare const unmarshalBatchCreateServersResponse: (data: unknown) => BatchCreateServersResponse;
|
|
12
13
|
export declare const unmarshalGetServerMetricsResponse: (data: unknown) => GetServerMetricsResponse;
|
|
13
14
|
export declare const unmarshalListOSResponse: (data: unknown) => ListOSResponse;
|
|
14
15
|
export declare const unmarshalListOffersResponse: (data: unknown) => ListOffersResponse;
|
|
@@ -21,6 +22,7 @@ export declare const unmarshalSetServerPrivateNetworksResponse: (data: unknown)
|
|
|
21
22
|
export declare const marshalSchema: (request: Schema, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
23
|
export declare const marshalCreateServerRequest: (request: CreateServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
24
|
export declare const marshalAddOptionServerRequest: (request: AddOptionServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
25
|
+
export declare const marshalBatchCreateServersRequest: (request: BatchCreateServersRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
26
|
export declare const marshalInstallServerRequest: (request: InstallServerRequest, defaults: DefaultValues) => Promise<Record<string, unknown>>;
|
|
25
27
|
export declare const marshalPrivateNetworkApiAddServerPrivateNetworkRequest: (request: PrivateNetworkApiAddServerPrivateNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
28
|
export declare const marshalPrivateNetworkApiSetServerPrivateNetworksRequest: (request: PrivateNetworkApiSetServerPrivateNetworksRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, marshalBlobToScwFile, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney, unmarshalTimeSeries } from "@scaleway/sdk-client";
|
|
2
2
|
//#region src/v1/marshalling.gen.ts
|
|
3
|
-
|
|
3
|
+
const unmarshalSchemaPartition = (data) => {
|
|
4
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SchemaPartition' failed as data isn't a dictionary.`);
|
|
5
5
|
return {
|
|
6
6
|
label: data.label,
|
|
@@ -9,7 +9,7 @@ var unmarshalSchemaPartition = (data) => {
|
|
|
9
9
|
useAllAvailableSpace: data.use_all_available_space
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
const unmarshalSchemaPool = (data) => {
|
|
13
13
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SchemaPool' failed as data isn't a dictionary.`);
|
|
14
14
|
return {
|
|
15
15
|
devices: data.devices,
|
|
@@ -19,14 +19,14 @@ var unmarshalSchemaPool = (data) => {
|
|
|
19
19
|
type: data.type
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
const unmarshalSchemaDisk = (data) => {
|
|
23
23
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SchemaDisk' failed as data isn't a dictionary.`);
|
|
24
24
|
return {
|
|
25
25
|
device: data.device,
|
|
26
26
|
partitions: unmarshalArrayOfObject(data.partitions, unmarshalSchemaPartition)
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
const unmarshalSchemaFilesystem = (data) => {
|
|
30
30
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SchemaFilesystem' failed as data isn't a dictionary.`);
|
|
31
31
|
return {
|
|
32
32
|
device: data.device,
|
|
@@ -34,7 +34,7 @@ var unmarshalSchemaFilesystem = (data) => {
|
|
|
34
34
|
mountpoint: data.mountpoint
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
const unmarshalSchemaRAID = (data) => {
|
|
38
38
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SchemaRAID' failed as data isn't a dictionary.`);
|
|
39
39
|
return {
|
|
40
40
|
devices: data.devices,
|
|
@@ -42,11 +42,11 @@ var unmarshalSchemaRAID = (data) => {
|
|
|
42
42
|
name: data.name
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
const unmarshalSchemaZFS = (data) => {
|
|
46
46
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SchemaZFS' failed as data isn't a dictionary.`);
|
|
47
47
|
return { pools: unmarshalArrayOfObject(data.pools, unmarshalSchemaPool) };
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
const unmarshalSchema = (data) => {
|
|
50
50
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Schema' failed as data isn't a dictionary.`);
|
|
51
51
|
return {
|
|
52
52
|
disks: unmarshalArrayOfObject(data.disks, unmarshalSchemaDisk),
|
|
@@ -55,7 +55,7 @@ var unmarshalSchema = (data) => {
|
|
|
55
55
|
zfs: data.zfs ? unmarshalSchemaZFS(data.zfs) : void 0
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
const unmarshalIP = (data) => {
|
|
59
59
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
|
|
60
60
|
return {
|
|
61
61
|
address: data.address,
|
|
@@ -66,27 +66,27 @@ var unmarshalIP = (data) => {
|
|
|
66
66
|
version: data.version
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
const unmarshalCertificationOption = (data) => {
|
|
70
70
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CertificationOption' failed as data isn't a dictionary.`);
|
|
71
71
|
return {};
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
const unmarshalLicenseOption = (data) => {
|
|
74
74
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LicenseOption' failed as data isn't a dictionary.`);
|
|
75
75
|
return { osId: data.os_id };
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
const unmarshalPrivateNetworkOption = (data) => {
|
|
78
78
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetworkOption' failed as data isn't a dictionary.`);
|
|
79
79
|
return { bandwidthInBps: data.bandwidth_in_bps };
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
const unmarshalPublicBandwidthOption = (data) => {
|
|
82
82
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicBandwidthOption' failed as data isn't a dictionary.`);
|
|
83
83
|
return { bandwidthInBps: data.bandwidth_in_bps };
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
const unmarshalRemoteAccessOption = (data) => {
|
|
86
86
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RemoteAccessOption' failed as data isn't a dictionary.`);
|
|
87
87
|
return {};
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
const unmarshalServerInstall = (data) => {
|
|
90
90
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`);
|
|
91
91
|
return {
|
|
92
92
|
hostname: data.hostname,
|
|
@@ -99,7 +99,7 @@ var unmarshalServerInstall = (data) => {
|
|
|
99
99
|
user: data.user
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
const unmarshalServerOption = (data) => {
|
|
103
103
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerOption' failed as data isn't a dictionary.`);
|
|
104
104
|
return {
|
|
105
105
|
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
@@ -114,14 +114,14 @@ var unmarshalServerOption = (data) => {
|
|
|
114
114
|
status: data.status
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
const unmarshalServerRescueServer = (data) => {
|
|
118
118
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerRescueServer' failed as data isn't a dictionary.`);
|
|
119
119
|
return {
|
|
120
120
|
password: data.password,
|
|
121
121
|
user: data.user
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
const unmarshalServer = (data) => {
|
|
125
125
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
|
|
126
126
|
return {
|
|
127
127
|
bootType: data.boot_type,
|
|
@@ -147,7 +147,7 @@ var unmarshalServer = (data) => {
|
|
|
147
147
|
zone: data.zone
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
|
-
|
|
150
|
+
const unmarshalOSOSField = (data) => {
|
|
151
151
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OSOSField' failed as data isn't a dictionary.`);
|
|
152
152
|
return {
|
|
153
153
|
defaultValue: data.default_value,
|
|
@@ -155,7 +155,7 @@ var unmarshalOSOSField = (data) => {
|
|
|
155
155
|
required: data.required
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
|
|
158
|
+
const unmarshalOS = (data) => {
|
|
159
159
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OS' failed as data isn't a dictionary.`);
|
|
160
160
|
return {
|
|
161
161
|
allowed: data.allowed,
|
|
@@ -176,7 +176,7 @@ var unmarshalOS = (data) => {
|
|
|
176
176
|
zone: data.zone
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
const unmarshalCPU = (data) => {
|
|
180
180
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CPU' failed as data isn't a dictionary.`);
|
|
181
181
|
return {
|
|
182
182
|
benchmark: data.benchmark,
|
|
@@ -186,21 +186,21 @@ var unmarshalCPU = (data) => {
|
|
|
186
186
|
threadCount: data.thread_count
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
|
-
|
|
189
|
+
const unmarshalDisk = (data) => {
|
|
190
190
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Disk' failed as data isn't a dictionary.`);
|
|
191
191
|
return {
|
|
192
192
|
capacity: data.capacity,
|
|
193
193
|
type: data.type
|
|
194
194
|
};
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
const unmarshalGPU = (data) => {
|
|
197
197
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GPU' failed as data isn't a dictionary.`);
|
|
198
198
|
return {
|
|
199
199
|
name: data.name,
|
|
200
200
|
vram: data.vram
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
|
|
203
|
+
const unmarshalMemory = (data) => {
|
|
204
204
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Memory' failed as data isn't a dictionary.`);
|
|
205
205
|
return {
|
|
206
206
|
capacity: data.capacity,
|
|
@@ -209,7 +209,7 @@ var unmarshalMemory = (data) => {
|
|
|
209
209
|
type: data.type
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
|
-
|
|
212
|
+
const unmarshalOfferOptionOffer = (data) => {
|
|
213
213
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferOptionOffer' failed as data isn't a dictionary.`);
|
|
214
214
|
return {
|
|
215
215
|
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
@@ -226,7 +226,7 @@ var unmarshalOfferOptionOffer = (data) => {
|
|
|
226
226
|
subscriptionPeriod: data.subscription_period
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
|
-
|
|
229
|
+
const unmarshalPersistentMemory = (data) => {
|
|
230
230
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PersistentMemory' failed as data isn't a dictionary.`);
|
|
231
231
|
return {
|
|
232
232
|
capacity: data.capacity,
|
|
@@ -234,14 +234,14 @@ var unmarshalPersistentMemory = (data) => {
|
|
|
234
234
|
type: data.type
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
|
-
|
|
237
|
+
const unmarshalRaidController = (data) => {
|
|
238
238
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RaidController' failed as data isn't a dictionary.`);
|
|
239
239
|
return {
|
|
240
240
|
model: data.model,
|
|
241
241
|
raidLevel: data.raid_level
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
const unmarshalOffer = (data) => {
|
|
245
245
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
|
|
246
246
|
return {
|
|
247
247
|
bandwidth: data.bandwidth,
|
|
@@ -272,7 +272,7 @@ var unmarshalOffer = (data) => {
|
|
|
272
272
|
zone: data.zone
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
const unmarshalOption = (data) => {
|
|
276
276
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Option' failed as data isn't a dictionary.`);
|
|
277
277
|
return {
|
|
278
278
|
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
@@ -285,7 +285,7 @@ var unmarshalOption = (data) => {
|
|
|
285
285
|
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
|
-
|
|
288
|
+
const unmarshalServerPrivateNetwork = (data) => {
|
|
289
289
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerPrivateNetwork' failed as data isn't a dictionary.`);
|
|
290
290
|
return {
|
|
291
291
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -298,7 +298,7 @@ var unmarshalServerPrivateNetwork = (data) => {
|
|
|
298
298
|
vlan: data.vlan
|
|
299
299
|
};
|
|
300
300
|
};
|
|
301
|
-
|
|
301
|
+
const unmarshalSetting = (data) => {
|
|
302
302
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Setting' failed as data isn't a dictionary.`);
|
|
303
303
|
return {
|
|
304
304
|
enabled: data.enabled,
|
|
@@ -307,7 +307,7 @@ var unmarshalSetting = (data) => {
|
|
|
307
307
|
type: data.type
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
|
-
|
|
310
|
+
const unmarshalBMCAccess = (data) => {
|
|
311
311
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`);
|
|
312
312
|
return {
|
|
313
313
|
expiresAt: unmarshalDate(data.expires_at),
|
|
@@ -316,32 +316,36 @@ var unmarshalBMCAccess = (data) => {
|
|
|
316
316
|
url: data.url
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
|
-
|
|
319
|
+
const unmarshalBatchCreateServersResponse = (data) => {
|
|
320
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BatchCreateServersResponse' failed as data isn't a dictionary.`);
|
|
321
|
+
return { servers: unmarshalArrayOfObject(data.servers, unmarshalServer) };
|
|
322
|
+
};
|
|
323
|
+
const unmarshalGetServerMetricsResponse = (data) => {
|
|
320
324
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetServerMetricsResponse' failed as data isn't a dictionary.`);
|
|
321
325
|
return { pings: data.pings ? unmarshalTimeSeries(data.pings) : void 0 };
|
|
322
326
|
};
|
|
323
|
-
|
|
327
|
+
const unmarshalListOSResponse = (data) => {
|
|
324
328
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
|
|
325
329
|
return {
|
|
326
330
|
os: unmarshalArrayOfObject(data.os, unmarshalOS),
|
|
327
331
|
totalCount: data.total_count
|
|
328
332
|
};
|
|
329
333
|
};
|
|
330
|
-
|
|
334
|
+
const unmarshalListOffersResponse = (data) => {
|
|
331
335
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
|
|
332
336
|
return {
|
|
333
337
|
offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
|
|
334
338
|
totalCount: data.total_count
|
|
335
339
|
};
|
|
336
340
|
};
|
|
337
|
-
|
|
341
|
+
const unmarshalListOptionsResponse = (data) => {
|
|
338
342
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOptionsResponse' failed as data isn't a dictionary.`);
|
|
339
343
|
return {
|
|
340
344
|
options: unmarshalArrayOfObject(data.options, unmarshalOption),
|
|
341
345
|
totalCount: data.total_count
|
|
342
346
|
};
|
|
343
347
|
};
|
|
344
|
-
|
|
348
|
+
const unmarshalServerEvent = (data) => {
|
|
345
349
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerEvent' failed as data isn't a dictionary.`);
|
|
346
350
|
return {
|
|
347
351
|
action: data.action,
|
|
@@ -350,73 +354,73 @@ var unmarshalServerEvent = (data) => {
|
|
|
350
354
|
updatedAt: unmarshalDate(data.updated_at)
|
|
351
355
|
};
|
|
352
356
|
};
|
|
353
|
-
|
|
357
|
+
const unmarshalListServerEventsResponse = (data) => {
|
|
354
358
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServerEventsResponse' failed as data isn't a dictionary.`);
|
|
355
359
|
return {
|
|
356
360
|
events: unmarshalArrayOfObject(data.events, unmarshalServerEvent),
|
|
357
361
|
totalCount: data.total_count
|
|
358
362
|
};
|
|
359
363
|
};
|
|
360
|
-
|
|
364
|
+
const unmarshalListServerPrivateNetworksResponse = (data) => {
|
|
361
365
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServerPrivateNetworksResponse' failed as data isn't a dictionary.`);
|
|
362
366
|
return {
|
|
363
367
|
serverPrivateNetworks: unmarshalArrayOfObject(data.server_private_networks, unmarshalServerPrivateNetwork),
|
|
364
368
|
totalCount: data.total_count
|
|
365
369
|
};
|
|
366
370
|
};
|
|
367
|
-
|
|
371
|
+
const unmarshalListServersResponse = (data) => {
|
|
368
372
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
|
|
369
373
|
return {
|
|
370
374
|
servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
|
|
371
375
|
totalCount: data.total_count
|
|
372
376
|
};
|
|
373
377
|
};
|
|
374
|
-
|
|
378
|
+
const unmarshalListSettingsResponse = (data) => {
|
|
375
379
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSettingsResponse' failed as data isn't a dictionary.`);
|
|
376
380
|
return {
|
|
377
381
|
settings: unmarshalArrayOfObject(data.settings, unmarshalSetting),
|
|
378
382
|
totalCount: data.total_count
|
|
379
383
|
};
|
|
380
384
|
};
|
|
381
|
-
|
|
385
|
+
const unmarshalSetServerPrivateNetworksResponse = (data) => {
|
|
382
386
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetServerPrivateNetworksResponse' failed as data isn't a dictionary.`);
|
|
383
387
|
return { serverPrivateNetworks: unmarshalArrayOfObject(data.server_private_networks, unmarshalServerPrivateNetwork) };
|
|
384
388
|
};
|
|
385
|
-
|
|
389
|
+
const marshalSchemaPartition = (request, defaults) => ({
|
|
386
390
|
label: request.label,
|
|
387
391
|
number: request.number,
|
|
388
392
|
size: request.size,
|
|
389
393
|
use_all_available_space: request.useAllAvailableSpace
|
|
390
394
|
});
|
|
391
|
-
|
|
395
|
+
const marshalSchemaPool = (request, defaults) => ({
|
|
392
396
|
devices: request.devices,
|
|
393
397
|
filesystem_options: request.filesystemOptions,
|
|
394
398
|
name: request.name,
|
|
395
399
|
options: request.options,
|
|
396
400
|
type: request.type
|
|
397
401
|
});
|
|
398
|
-
|
|
402
|
+
const marshalSchemaDisk = (request, defaults) => ({
|
|
399
403
|
device: request.device,
|
|
400
404
|
partitions: request.partitions.map((elt) => marshalSchemaPartition(elt, defaults))
|
|
401
405
|
});
|
|
402
|
-
|
|
406
|
+
const marshalSchemaFilesystem = (request, defaults) => ({
|
|
403
407
|
device: request.device,
|
|
404
408
|
format: request.format,
|
|
405
409
|
mountpoint: request.mountpoint
|
|
406
410
|
});
|
|
407
|
-
|
|
411
|
+
const marshalSchemaRAID = (request, defaults) => ({
|
|
408
412
|
devices: request.devices,
|
|
409
413
|
level: request.level,
|
|
410
414
|
name: request.name
|
|
411
415
|
});
|
|
412
|
-
|
|
413
|
-
|
|
416
|
+
const marshalSchemaZFS = (request, defaults) => ({ pools: request.pools.map((elt) => marshalSchemaPool(elt, defaults)) });
|
|
417
|
+
const marshalSchema = (request, defaults) => ({
|
|
414
418
|
disks: request.disks.map((elt) => marshalSchemaDisk(elt, defaults)),
|
|
415
419
|
filesystems: request.filesystems.map((elt) => marshalSchemaFilesystem(elt, defaults)),
|
|
416
420
|
raids: request.raids.map((elt) => marshalSchemaRAID(elt, defaults)),
|
|
417
421
|
zfs: request.zfs !== void 0 ? marshalSchemaZFS(request.zfs, defaults) : void 0
|
|
418
422
|
});
|
|
419
|
-
|
|
423
|
+
const marshalCreateServerRequestInstall = (request, defaults) => ({
|
|
420
424
|
hostname: request.hostname,
|
|
421
425
|
os_id: request.osId,
|
|
422
426
|
partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema, defaults) : void 0,
|
|
@@ -426,7 +430,7 @@ var marshalCreateServerRequestInstall = (request, defaults) => ({
|
|
|
426
430
|
ssh_key_ids: request.sshKeyIds,
|
|
427
431
|
user: request.user
|
|
428
432
|
});
|
|
429
|
-
|
|
433
|
+
const marshalCreateServerRequest = (request, defaults) => ({
|
|
430
434
|
description: request.description,
|
|
431
435
|
install: request.install !== void 0 ? marshalCreateServerRequestInstall(request.install, defaults) : void 0,
|
|
432
436
|
name: request.name,
|
|
@@ -445,8 +449,17 @@ var marshalCreateServerRequest = (request, defaults) => ({
|
|
|
445
449
|
value: request.organizationId
|
|
446
450
|
}])
|
|
447
451
|
});
|
|
448
|
-
|
|
449
|
-
|
|
452
|
+
const marshalAddOptionServerRequest = (request, defaults) => ({ expires_at: request.expiresAt });
|
|
453
|
+
const marshalBatchCreateServersRequestServerConfig = (request, defaults) => ({
|
|
454
|
+
description: request.description,
|
|
455
|
+
hostname: request.hostname,
|
|
456
|
+
tags: request.tags
|
|
457
|
+
});
|
|
458
|
+
const marshalBatchCreateServersRequest = (request, defaults) => ({
|
|
459
|
+
common_configuration: request.commonConfiguration !== void 0 ? marshalCreateServerRequest(request.commonConfiguration, defaults) : void 0,
|
|
460
|
+
servers: request.servers !== void 0 ? request.servers.map((elt) => marshalBatchCreateServersRequestServerConfig(elt, defaults)) : void 0
|
|
461
|
+
});
|
|
462
|
+
const marshalInstallServerRequest = async (request, defaults) => ({
|
|
450
463
|
hostname: request.hostname,
|
|
451
464
|
os_id: request.osId,
|
|
452
465
|
partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema, defaults) : void 0,
|
|
@@ -457,30 +470,30 @@ var marshalInstallServerRequest = async (request, defaults) => ({
|
|
|
457
470
|
user: request.user,
|
|
458
471
|
user_data: request.userData !== void 0 ? await marshalBlobToScwFile(request.userData) : void 0
|
|
459
472
|
});
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
473
|
+
const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({ private_network_id: request.privateNetworkId });
|
|
474
|
+
const marshalPrivateNetworkApiSetServerPrivateNetworksRequest = (request, defaults) => ({ private_network_ids: request.privateNetworkIds });
|
|
475
|
+
const marshalRebootServerRequest = (request, defaults) => ({
|
|
463
476
|
boot_type: request.bootType,
|
|
464
477
|
ssh_key_ids: request.sshKeyIds
|
|
465
478
|
});
|
|
466
|
-
|
|
467
|
-
|
|
479
|
+
const marshalStartBMCAccessRequest = (request, defaults) => ({ ip: request.ip });
|
|
480
|
+
const marshalStartServerRequest = (request, defaults) => ({
|
|
468
481
|
boot_type: request.bootType,
|
|
469
482
|
ssh_key_ids: request.sshKeyIds
|
|
470
483
|
});
|
|
471
|
-
|
|
472
|
-
|
|
484
|
+
const marshalUpdateIPRequest = (request, defaults) => ({ reverse: request.reverse });
|
|
485
|
+
const marshalUpdateServerRequest = (request, defaults) => ({
|
|
473
486
|
description: request.description,
|
|
474
487
|
name: request.name,
|
|
475
488
|
protected: request.protected,
|
|
476
489
|
tags: request.tags,
|
|
477
490
|
user_data: request.userData
|
|
478
491
|
});
|
|
479
|
-
|
|
480
|
-
|
|
492
|
+
const marshalUpdateSettingRequest = (request, defaults) => ({ enabled: request.enabled });
|
|
493
|
+
const marshalValidatePartitioningSchemaRequest = (request, defaults) => ({
|
|
481
494
|
offer_id: request.offerId,
|
|
482
495
|
os_id: request.osId,
|
|
483
496
|
partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema, defaults) : void 0
|
|
484
497
|
});
|
|
485
498
|
//#endregion
|
|
486
|
-
export { marshalAddOptionServerRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
499
|
+
export { marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
package/dist/v1/metadata.gen.js
CHANGED
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -367,6 +367,11 @@ export interface RaidController {
|
|
|
367
367
|
model: string;
|
|
368
368
|
raidLevel: string[];
|
|
369
369
|
}
|
|
370
|
+
export interface BatchCreateServersRequestServerConfig {
|
|
371
|
+
hostname: string;
|
|
372
|
+
description: string;
|
|
373
|
+
tags: string[];
|
|
374
|
+
}
|
|
370
375
|
export type CreateServerRequest = {
|
|
371
376
|
/**
|
|
372
377
|
* Zone to target. If none is passed will use default zone from the config.
|
|
@@ -825,6 +830,23 @@ export interface BMCAccess {
|
|
|
825
830
|
*/
|
|
826
831
|
expiresAt?: Date;
|
|
827
832
|
}
|
|
833
|
+
export type BatchCreateServersRequest = {
|
|
834
|
+
/**
|
|
835
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
836
|
+
*/
|
|
837
|
+
zone?: ScwZone;
|
|
838
|
+
/**
|
|
839
|
+
* Configuration wanted for the servers to create.
|
|
840
|
+
*/
|
|
841
|
+
commonConfiguration?: CreateServerRequest;
|
|
842
|
+
/**
|
|
843
|
+
* List of servers to create.
|
|
844
|
+
*/
|
|
845
|
+
servers?: BatchCreateServersRequestServerConfig[];
|
|
846
|
+
};
|
|
847
|
+
export interface BatchCreateServersResponse {
|
|
848
|
+
servers: Server[];
|
|
849
|
+
}
|
|
828
850
|
export type DeleteOptionServerRequest = {
|
|
829
851
|
/**
|
|
830
852
|
* Zone to target. If none is passed will use default zone from the config.
|