@scaleway/sdk-baremetal 2.20.0 → 2.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v1/constants.gen.d.ts +3 -1
- package/dist/v1/constants.gen.js +10 -1
- package/dist/v1/index.gen.d.ts +4 -4
- package/dist/v1/index.gen.js +3 -2
- package/dist/v1/marshalling.gen.js +63 -60
- package/dist/v1/types.gen.d.ts +171 -158
- package/dist/v3/marshalling.gen.js +3 -3
- package/dist/v3/types.gen.d.ts +16 -16
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommitmentPeriod, IPReverseStatus, IPVersion, ListServerEventsRequestOrderBy, ListServerPrivateNetworksRequestOrderBy, ListServersRequestOrderBy, ListSettingsRequestOrderBy, MemoryEccType, OfferStock, OfferSubscriptionPeriod, SchemaFilesystemFormat, SchemaPartitionLabel, SchemaPoolType, SchemaRAIDLevel, ServerBootType, ServerInstallStatus, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetworkStatus, ServerStatus, SettingType } from "./types.gen.js";
|
|
1
|
+
import { CommitmentPeriod, IPReverseStatus, IPVersion, ListServerEventsRequestOrderBy, ListServerPrivateNetworksRequestOrderBy, ListServersRequestOrderBy, ListSettingsRequestOrderBy, MemoryEccType, OfferStock, OfferSubscriptionPeriod, OptionType, SchemaFilesystemFormat, SchemaPartitionLabel, SchemaPoolType, SchemaRAIDLevel, ServerBootType, ServerInstallStatus, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetworkStatus, ServerStatus, SettingType } from "./types.gen.js";
|
|
2
2
|
//#region src/v1/constants.gen.d.ts
|
|
3
3
|
/** Lists all values of the enum {@link CommitmentPeriod}. */
|
|
4
4
|
export declare const COMMITMENT_PERIODS: CommitmentPeriod[];
|
|
@@ -20,6 +20,8 @@ export declare const MEMORY_ECC_TYPES: MemoryEccType[];
|
|
|
20
20
|
export declare const OFFER_STOCKS: OfferStock[];
|
|
21
21
|
/** Lists all values of the enum {@link OfferSubscriptionPeriod}. */
|
|
22
22
|
export declare const OFFER_SUBSCRIPTION_PERIODS: OfferSubscriptionPeriod[];
|
|
23
|
+
/** Lists all values of the enum {@link OptionType}. */
|
|
24
|
+
export declare const OPTION_TYPES: OptionType[];
|
|
23
25
|
/** Lists all values of the enum {@link SchemaFilesystemFormat}. */
|
|
24
26
|
export declare const SCHEMA_FILESYSTEM_FORMATS: SchemaFilesystemFormat[];
|
|
25
27
|
/** Lists all values of the enum {@link SchemaPartitionLabel}. */
|
package/dist/v1/constants.gen.js
CHANGED
|
@@ -49,6 +49,15 @@ const OFFER_SUBSCRIPTION_PERIODS = [
|
|
|
49
49
|
"hourly",
|
|
50
50
|
"monthly"
|
|
51
51
|
];
|
|
52
|
+
/** Lists all values of the enum {@link OptionType}. */
|
|
53
|
+
const OPTION_TYPES = [
|
|
54
|
+
"option_type_unknown",
|
|
55
|
+
"private_network",
|
|
56
|
+
"license",
|
|
57
|
+
"remote_access",
|
|
58
|
+
"public_bandwidth",
|
|
59
|
+
"certification"
|
|
60
|
+
];
|
|
52
61
|
/** Lists all values of the enum {@link SchemaFilesystemFormat}. */
|
|
53
62
|
const SCHEMA_FILESYSTEM_FORMATS = [
|
|
54
63
|
"unknown_format",
|
|
@@ -145,4 +154,4 @@ const SERVER_STATUSES = [
|
|
|
145
154
|
const SETTING_TYPES = ["unknown", "smtp"];
|
|
146
155
|
|
|
147
156
|
//#endregion
|
|
148
|
-
export { COMMITMENT_PERIODS, IP_REVERSE_STATUSES, IP_VERSIONS, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, MEMORY_ECC_TYPES, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_STATUSES, SETTING_TYPES };
|
|
157
|
+
export { COMMITMENT_PERIODS, IP_REVERSE_STATUSES, IP_VERSIONS, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, MEMORY_ECC_TYPES, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, OPTION_TYPES, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_STATUSES, SETTING_TYPES };
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersRequestServerConfig, BatchCreateServersResponse, CPU, CertificationOption, CommitmentPeriod, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, MemoryEccType, MigrateServerToMonthlyOfferRequest, OS, OSOSField, Offer, OfferCommitment, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerCommitment, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerCommitmentRequest, UpdateServerRequest, UpdateSettingRequest, UpgradeServerCommitmentRequest, ValidatePartitioningSchemaRequest } from "./types.gen.js";
|
|
1
|
+
import { AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersRequestServerConfig, BatchCreateServersResponse, CPU, CertificationOption, CommitmentPeriod, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, MemoryEccType, MigrateServerToMonthlyOfferRequest, OS, OSOSField, Offer, OfferCommitment, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, OptionType, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerCommitment, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerCommitmentRequest, UpdateServerRequest, UpdateSettingRequest, UpgradeServerCommitmentRequest, ValidatePartitioningSchemaRequest } from "./types.gen.js";
|
|
2
2
|
import { API, PrivateNetworkAPI } from "./api.gen.js";
|
|
3
3
|
import { SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
4
|
-
import { COMMITMENT_PERIODS, IP_REVERSE_STATUSES, IP_VERSIONS, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, MEMORY_ECC_TYPES, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_STATUSES, SETTING_TYPES } from "./constants.gen.js";
|
|
4
|
+
import { COMMITMENT_PERIODS, IP_REVERSE_STATUSES, IP_VERSIONS, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, MEMORY_ECC_TYPES, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, OPTION_TYPES, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_STATUSES, SETTING_TYPES } from "./constants.gen.js";
|
|
5
5
|
import { marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerCommitmentRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalUpgradeServerCommitmentRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting } from "./marshalling.gen.js";
|
|
6
6
|
import { validation_rules_gen_d_exports } from "./validation-rules.gen.js";
|
|
7
7
|
declare namespace index_gen_d_exports {
|
|
8
|
-
export { API, AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersRequestServerConfig, BatchCreateServersResponse, COMMITMENT_PERIODS, CPU, CertificationOption, CommitmentPeriod, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, IP_REVERSE_STATUSES, IP_VERSIONS, InstallServerRequest, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, MEMORY_ECC_TYPES, Memory, MemoryEccType, MigrateServerToMonthlyOfferRequest, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, OS, OSOSField, Offer, OfferCommitment, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkAPI, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_STATUSES, SERVER_TRANSIENT_STATUSES, SETTING_TYPES, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerCommitment, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerCommitmentRequest, UpdateServerRequest, UpdateSettingRequest, UpgradeServerCommitmentRequest, ValidatePartitioningSchemaRequest, validation_rules_gen_d_exports as ValidationRules, marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerCommitmentRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalUpgradeServerCommitmentRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
8
|
+
export { API, AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersRequestServerConfig, BatchCreateServersResponse, COMMITMENT_PERIODS, CPU, CertificationOption, CommitmentPeriod, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, IP_REVERSE_STATUSES, IP_VERSIONS, InstallServerRequest, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, MEMORY_ECC_TYPES, Memory, MemoryEccType, MigrateServerToMonthlyOfferRequest, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, OPTION_TYPES, OS, OSOSField, Offer, OfferCommitment, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, OptionType, PersistentMemory, PrivateNetworkAPI, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_STATUSES, SERVER_TRANSIENT_STATUSES, SETTING_TYPES, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerCommitment, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerCommitmentRequest, UpdateServerRequest, UpdateSettingRequest, UpgradeServerCommitmentRequest, ValidatePartitioningSchemaRequest, validation_rules_gen_d_exports as ValidationRules, marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerCommitmentRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalUpgradeServerCommitmentRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { API, type AddOptionServerRequest, type BMCAccess, type BatchCreateServersRequest, type BatchCreateServersRequestServerConfig, type BatchCreateServersResponse, COMMITMENT_PERIODS, type CPU, type CertificationOption, type CommitmentPeriod, type CreateServerRequest, type CreateServerRequestInstall, type DeleteOptionServerRequest, type DeleteServerRequest, type Disk, type GPU, type GetBMCAccessRequest, type GetDefaultPartitioningSchemaRequest, type GetOSRequest, type GetOfferRequest, type GetOptionRequest, type GetServerMetricsRequest, type GetServerMetricsResponse, type GetServerRequest, type IP, type IPReverseStatus, type IPVersion, IP_REVERSE_STATUSES, IP_VERSIONS, type InstallServerRequest, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, type LicenseOption, type ListOSRequest, type ListOSResponse, type ListOffersRequest, type ListOffersResponse, type ListOptionsRequest, type ListOptionsResponse, type ListServerEventsRequest, type ListServerEventsRequestOrderBy, type ListServerEventsResponse, type ListServerPrivateNetworksRequestOrderBy, type ListServerPrivateNetworksResponse, type ListServersRequest, type ListServersRequestOrderBy, type ListServersResponse, type ListSettingsRequest, type ListSettingsRequestOrderBy, type ListSettingsResponse, MEMORY_ECC_TYPES, type Memory, type MemoryEccType, type MigrateServerToMonthlyOfferRequest, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, type OS, type OSOSField, type Offer, type OfferCommitment, type OfferOptionOffer, type OfferStock, type OfferSubscriptionPeriod, type Option, type PersistentMemory, PrivateNetworkAPI, type PrivateNetworkApiAddServerPrivateNetworkRequest, type PrivateNetworkApiDeleteServerPrivateNetworkRequest, type PrivateNetworkApiListServerPrivateNetworksRequest, type PrivateNetworkApiSetServerPrivateNetworksRequest, type PrivateNetworkOption, type PublicBandwidthOption, type RaidController, type RebootServerRequest, type RemoteAccessOption, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_STATUSES, SERVER_TRANSIENT_STATUSES, SETTING_TYPES, type Schema, type SchemaDisk, type SchemaFilesystem, type SchemaFilesystemFormat, type SchemaPartition, type SchemaPartitionLabel, type SchemaPool, type SchemaPoolType, type SchemaRAID, type SchemaRAIDLevel, type SchemaZFS, type Server, type ServerBootType, type ServerCommitment, type ServerEvent, type ServerInstall, type ServerInstallStatus, type ServerOption, type ServerOptionOptionStatus, type ServerPingStatus, type ServerPrivateNetwork, type ServerPrivateNetworkStatus, type ServerRescueServer, type ServerStatus, type SetServerPrivateNetworksResponse, type Setting, type SettingType, type StartBMCAccessRequest, type StartServerRequest, type StopBMCAccessRequest, type StopServerRequest, type UpdateIPRequest, type UpdateServerCommitmentRequest, type UpdateServerRequest, type UpdateSettingRequest, type UpgradeServerCommitmentRequest, type ValidatePartitioningSchemaRequest, validation_rules_gen_d_exports as ValidationRules, index_gen_d_exports, marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerCommitmentRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalUpgradeServerCommitmentRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
11
|
+
export { API, type AddOptionServerRequest, type BMCAccess, type BatchCreateServersRequest, type BatchCreateServersRequestServerConfig, type BatchCreateServersResponse, COMMITMENT_PERIODS, type CPU, type CertificationOption, type CommitmentPeriod, type CreateServerRequest, type CreateServerRequestInstall, type DeleteOptionServerRequest, type DeleteServerRequest, type Disk, type GPU, type GetBMCAccessRequest, type GetDefaultPartitioningSchemaRequest, type GetOSRequest, type GetOfferRequest, type GetOptionRequest, type GetServerMetricsRequest, type GetServerMetricsResponse, type GetServerRequest, type IP, type IPReverseStatus, type IPVersion, IP_REVERSE_STATUSES, IP_VERSIONS, type InstallServerRequest, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, type LicenseOption, type ListOSRequest, type ListOSResponse, type ListOffersRequest, type ListOffersResponse, type ListOptionsRequest, type ListOptionsResponse, type ListServerEventsRequest, type ListServerEventsRequestOrderBy, type ListServerEventsResponse, type ListServerPrivateNetworksRequestOrderBy, type ListServerPrivateNetworksResponse, type ListServersRequest, type ListServersRequestOrderBy, type ListServersResponse, type ListSettingsRequest, type ListSettingsRequestOrderBy, type ListSettingsResponse, MEMORY_ECC_TYPES, type Memory, type MemoryEccType, type MigrateServerToMonthlyOfferRequest, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, OPTION_TYPES, type OS, type OSOSField, type Offer, type OfferCommitment, type OfferOptionOffer, type OfferStock, type OfferSubscriptionPeriod, type Option, type OptionType, type PersistentMemory, PrivateNetworkAPI, type PrivateNetworkApiAddServerPrivateNetworkRequest, type PrivateNetworkApiDeleteServerPrivateNetworkRequest, type PrivateNetworkApiListServerPrivateNetworksRequest, type PrivateNetworkApiSetServerPrivateNetworksRequest, type PrivateNetworkOption, type PublicBandwidthOption, type RaidController, type RebootServerRequest, type RemoteAccessOption, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_STATUSES, SERVER_TRANSIENT_STATUSES, SETTING_TYPES, type Schema, type SchemaDisk, type SchemaFilesystem, type SchemaFilesystemFormat, type SchemaPartition, type SchemaPartitionLabel, type SchemaPool, type SchemaPoolType, type SchemaRAID, type SchemaRAIDLevel, type SchemaZFS, type Server, type ServerBootType, type ServerCommitment, type ServerEvent, type ServerInstall, type ServerInstallStatus, type ServerOption, type ServerOptionOptionStatus, type ServerPingStatus, type ServerPrivateNetwork, type ServerPrivateNetworkStatus, type ServerRescueServer, type ServerStatus, type SetServerPrivateNetworksResponse, type Setting, type SettingType, type StartBMCAccessRequest, type StartServerRequest, type StopBMCAccessRequest, type StopServerRequest, type UpdateIPRequest, type UpdateServerCommitmentRequest, type UpdateServerRequest, type UpdateSettingRequest, type UpgradeServerCommitmentRequest, type ValidatePartitioningSchemaRequest, validation_rules_gen_d_exports as ValidationRules, index_gen_d_exports, marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerCommitmentRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalUpgradeServerCommitmentRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -2,7 +2,7 @@ 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
3
|
import { marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerCommitmentRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalUpgradeServerCommitmentRequest, 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
|
-
import { COMMITMENT_PERIODS, IP_REVERSE_STATUSES, IP_VERSIONS, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, MEMORY_ECC_TYPES, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_STATUSES, SETTING_TYPES } from "./constants.gen.js";
|
|
5
|
+
import { COMMITMENT_PERIODS, IP_REVERSE_STATUSES, IP_VERSIONS, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, MEMORY_ECC_TYPES, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, OPTION_TYPES, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_STATUSES, SETTING_TYPES } from "./constants.gen.js";
|
|
6
6
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
7
7
|
|
|
8
8
|
//#region src/v1/index.gen.ts
|
|
@@ -18,6 +18,7 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
18
18
|
MEMORY_ECC_TYPES: () => MEMORY_ECC_TYPES,
|
|
19
19
|
OFFER_STOCKS: () => OFFER_STOCKS,
|
|
20
20
|
OFFER_SUBSCRIPTION_PERIODS: () => OFFER_SUBSCRIPTION_PERIODS,
|
|
21
|
+
OPTION_TYPES: () => OPTION_TYPES,
|
|
21
22
|
PrivateNetworkAPI: () => PrivateNetworkAPI,
|
|
22
23
|
SCHEMA_FILESYSTEM_FORMATS: () => SCHEMA_FILESYSTEM_FORMATS,
|
|
23
24
|
SCHEMA_PARTITION_LABELS: () => SCHEMA_PARTITION_LABELS,
|
|
@@ -72,4 +73,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
72
73
|
});
|
|
73
74
|
|
|
74
75
|
//#endregion
|
|
75
|
-
export { API, COMMITMENT_PERIODS, IP_REVERSE_STATUSES, IP_VERSIONS, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, MEMORY_ECC_TYPES, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, PrivateNetworkAPI, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_STATUSES, SERVER_TRANSIENT_STATUSES, SETTING_TYPES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerCommitmentRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalUpgradeServerCommitmentRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
76
|
+
export { API, COMMITMENT_PERIODS, IP_REVERSE_STATUSES, IP_VERSIONS, LIST_SERVERS_REQUEST_ORDER_BIES, LIST_SERVER_EVENTS_REQUEST_ORDER_BIES, LIST_SERVER_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SETTINGS_REQUEST_ORDER_BIES, MEMORY_ECC_TYPES, OFFER_STOCKS, OFFER_SUBSCRIPTION_PERIODS, OPTION_TYPES, PrivateNetworkAPI, SCHEMA_FILESYSTEM_FORMATS, SCHEMA_PARTITION_LABELS, SCHEMA_POOL_TYPES, SCHEMA_RAID_LEVELS, SERVER_BOOT_TYPES, SERVER_INSTALL_STATUSES, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_OPTION_OPTION_STATUSES, SERVER_PING_STATUSES, SERVER_PRIVATE_NETWORK_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_STATUSES, SERVER_TRANSIENT_STATUSES, SETTING_TYPES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerCommitmentRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalUpgradeServerCommitmentRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
@@ -53,7 +53,7 @@ const unmarshalSchema = (data) => {
|
|
|
53
53
|
disks: unmarshalArrayOfObject(data.disks, unmarshalSchemaDisk),
|
|
54
54
|
filesystems: unmarshalArrayOfObject(data.filesystems, unmarshalSchemaFilesystem),
|
|
55
55
|
raids: unmarshalArrayOfObject(data.raids, unmarshalSchemaRAID),
|
|
56
|
-
zfs: data.zfs ? unmarshalSchemaZFS(data.zfs) :
|
|
56
|
+
zfs: data.zfs ? unmarshalSchemaZFS(data.zfs) : null
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
const unmarshalIP = (data) => {
|
|
@@ -92,10 +92,10 @@ const unmarshalServerCommitment = (data) => {
|
|
|
92
92
|
return {
|
|
93
93
|
autoRenewal: data.auto_renewal,
|
|
94
94
|
discountRatePercent: data.discount_rate_percent,
|
|
95
|
-
endAt: unmarshalDate(data.end_at),
|
|
95
|
+
endAt: unmarshalDate(data.end_at) ?? null,
|
|
96
96
|
period: data.period,
|
|
97
|
-
renewAt: unmarshalDate(data.renew_at),
|
|
98
|
-
startedAt: unmarshalDate(data.started_at)
|
|
97
|
+
renewAt: unmarshalDate(data.renew_at) ?? null,
|
|
98
|
+
startedAt: unmarshalDate(data.started_at) ?? null
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
const unmarshalServerInstall = (data) => {
|
|
@@ -105,7 +105,7 @@ const unmarshalServerInstall = (data) => {
|
|
|
105
105
|
networkBootPersistent: data.network_boot_persistent,
|
|
106
106
|
networkBootUrl: data.network_boot_url,
|
|
107
107
|
osId: data.os_id,
|
|
108
|
-
partitioningSchema: data.partitioning_schema ? unmarshalSchema(data.partitioning_schema) :
|
|
108
|
+
partitioningSchema: data.partitioning_schema ? unmarshalSchema(data.partitioning_schema) : null,
|
|
109
109
|
serviceUrl: data.service_url,
|
|
110
110
|
serviceUser: data.service_user,
|
|
111
111
|
sshKeyIds: data.ssh_key_ids,
|
|
@@ -116,16 +116,17 @@ const unmarshalServerInstall = (data) => {
|
|
|
116
116
|
const unmarshalServerOption = (data) => {
|
|
117
117
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerOption' failed as data isn't a dictionary.`);
|
|
118
118
|
return {
|
|
119
|
-
certification: data.certification ? unmarshalCertificationOption(data.certification) :
|
|
120
|
-
expiresAt: unmarshalDate(data.expires_at),
|
|
119
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : null,
|
|
120
|
+
expiresAt: unmarshalDate(data.expires_at) ?? null,
|
|
121
121
|
id: data.id,
|
|
122
|
-
license: data.license ? unmarshalLicenseOption(data.license) :
|
|
122
|
+
license: data.license ? unmarshalLicenseOption(data.license) : null,
|
|
123
123
|
manageable: data.manageable,
|
|
124
124
|
name: data.name,
|
|
125
|
-
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) :
|
|
126
|
-
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) :
|
|
127
|
-
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) :
|
|
128
|
-
status: data.status
|
|
125
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : null,
|
|
126
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : null,
|
|
127
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : null,
|
|
128
|
+
status: data.status,
|
|
129
|
+
type: data.type
|
|
129
130
|
};
|
|
130
131
|
};
|
|
131
132
|
const unmarshalServerRescueServer = (data) => {
|
|
@@ -139,12 +140,12 @@ const unmarshalServer = (data) => {
|
|
|
139
140
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
|
|
140
141
|
return {
|
|
141
142
|
bootType: data.boot_type,
|
|
142
|
-
commitment: data.commitment ? unmarshalServerCommitment(data.commitment) :
|
|
143
|
-
createdAt: unmarshalDate(data.created_at),
|
|
143
|
+
commitment: data.commitment ? unmarshalServerCommitment(data.commitment) : null,
|
|
144
|
+
createdAt: unmarshalDate(data.created_at) ?? null,
|
|
144
145
|
description: data.description,
|
|
145
146
|
domain: data.domain,
|
|
146
147
|
id: data.id,
|
|
147
|
-
install: data.install ? unmarshalServerInstall(data.install) :
|
|
148
|
+
install: data.install ? unmarshalServerInstall(data.install) : null,
|
|
148
149
|
ips: unmarshalArrayOfObject(data.ips, unmarshalIP),
|
|
149
150
|
name: data.name,
|
|
150
151
|
offerId: data.offer_id,
|
|
@@ -154,21 +155,21 @@ const unmarshalServer = (data) => {
|
|
|
154
155
|
pingStatus: data.ping_status,
|
|
155
156
|
projectId: data.project_id,
|
|
156
157
|
protected: data.protected,
|
|
157
|
-
rescueServer: data.rescue_server ? unmarshalServerRescueServer(data.rescue_server) :
|
|
158
|
+
rescueServer: data.rescue_server ? unmarshalServerRescueServer(data.rescue_server) : null,
|
|
158
159
|
scheduledDeletion: data.scheduled_deletion,
|
|
159
|
-
scheduledDeletionAt: unmarshalDate(data.scheduled_deletion_at),
|
|
160
|
+
scheduledDeletionAt: unmarshalDate(data.scheduled_deletion_at) ?? null,
|
|
160
161
|
srn: data.srn,
|
|
161
162
|
status: data.status,
|
|
162
163
|
tags: data.tags,
|
|
163
|
-
updatedAt: unmarshalDate(data.updated_at),
|
|
164
|
-
userData: data.user_data,
|
|
164
|
+
updatedAt: unmarshalDate(data.updated_at) ?? null,
|
|
165
|
+
userData: data.user_data ?? null,
|
|
165
166
|
zone: data.zone
|
|
166
167
|
};
|
|
167
168
|
};
|
|
168
169
|
const unmarshalOSOSField = (data) => {
|
|
169
170
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OSOSField' failed as data isn't a dictionary.`);
|
|
170
171
|
return {
|
|
171
|
-
defaultValue: data.default_value,
|
|
172
|
+
defaultValue: data.default_value ?? null,
|
|
172
173
|
editable: data.editable,
|
|
173
174
|
required: data.required
|
|
174
175
|
};
|
|
@@ -178,21 +179,21 @@ const unmarshalOS = (data) => {
|
|
|
178
179
|
return {
|
|
179
180
|
allowed: data.allowed,
|
|
180
181
|
cloudInitSupported: data.cloud_init_supported,
|
|
181
|
-
cloudInitVersion: data.cloud_init_version,
|
|
182
|
+
cloudInitVersion: data.cloud_init_version ?? null,
|
|
182
183
|
customPartitioningSupported: data.custom_partitioning_supported,
|
|
183
184
|
enabled: data.enabled,
|
|
184
185
|
id: data.id,
|
|
185
186
|
licenseRequired: data.license_required,
|
|
186
187
|
logoUrl: data.logo_url,
|
|
187
188
|
name: data.name,
|
|
188
|
-
networkBoot: data.network_boot ? unmarshalOSOSField(data.network_boot) :
|
|
189
|
+
networkBoot: data.network_boot ? unmarshalOSOSField(data.network_boot) : null,
|
|
189
190
|
networkBootPersistentEditable: data.network_boot_persistent_editable,
|
|
190
|
-
password: data.password ? unmarshalOSOSField(data.password) :
|
|
191
|
-
servicePassword: data.service_password ? unmarshalOSOSField(data.service_password) :
|
|
192
|
-
serviceUser: data.service_user ? unmarshalOSOSField(data.service_user) :
|
|
191
|
+
password: data.password ? unmarshalOSOSField(data.password) : null,
|
|
192
|
+
servicePassword: data.service_password ? unmarshalOSOSField(data.service_password) : null,
|
|
193
|
+
serviceUser: data.service_user ? unmarshalOSOSField(data.service_user) : null,
|
|
193
194
|
srn: data.srn,
|
|
194
|
-
ssh: data.ssh ? unmarshalOSOSField(data.ssh) :
|
|
195
|
-
user: data.user ? unmarshalOSOSField(data.user) :
|
|
195
|
+
ssh: data.ssh ? unmarshalOSOSField(data.ssh) : null,
|
|
196
|
+
user: data.user ? unmarshalOSOSField(data.user) : null,
|
|
196
197
|
version: data.version,
|
|
197
198
|
zone: data.zone
|
|
198
199
|
};
|
|
@@ -242,18 +243,19 @@ const unmarshalOfferCommitment = (data) => {
|
|
|
242
243
|
const unmarshalOfferOptionOffer = (data) => {
|
|
243
244
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferOptionOffer' failed as data isn't a dictionary.`);
|
|
244
245
|
return {
|
|
245
|
-
certification: data.certification ? unmarshalCertificationOption(data.certification) :
|
|
246
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : null,
|
|
246
247
|
enabled: data.enabled,
|
|
247
248
|
id: data.id,
|
|
248
|
-
license: data.license ? unmarshalLicenseOption(data.license) :
|
|
249
|
+
license: data.license ? unmarshalLicenseOption(data.license) : null,
|
|
249
250
|
manageable: data.manageable,
|
|
250
251
|
name: data.name,
|
|
251
|
-
osId: data.os_id,
|
|
252
|
-
price: data.price ? unmarshalMoney(data.price) :
|
|
253
|
-
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) :
|
|
254
|
-
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) :
|
|
255
|
-
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) :
|
|
256
|
-
subscriptionPeriod: data.subscription_period
|
|
252
|
+
osId: data.os_id ?? null,
|
|
253
|
+
price: data.price ? unmarshalMoney(data.price) : null,
|
|
254
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : null,
|
|
255
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : null,
|
|
256
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : null,
|
|
257
|
+
subscriptionPeriod: data.subscription_period,
|
|
258
|
+
type: data.type
|
|
257
259
|
};
|
|
258
260
|
};
|
|
259
261
|
const unmarshalPersistentMemory = (data) => {
|
|
@@ -279,21 +281,21 @@ const unmarshalOffer = (data) => {
|
|
|
279
281
|
commitmentsAvailable: unmarshalArrayOfObject(data.commitments_available, unmarshalOfferCommitment),
|
|
280
282
|
cpus: unmarshalArrayOfObject(data.cpus, unmarshalCPU),
|
|
281
283
|
disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
|
|
282
|
-
dualAttach: data.dual_attach,
|
|
284
|
+
dualAttach: data.dual_attach ?? null,
|
|
283
285
|
enable: data.enable,
|
|
284
|
-
fee: data.fee ? unmarshalMoney(data.fee) :
|
|
286
|
+
fee: data.fee ? unmarshalMoney(data.fee) : null,
|
|
285
287
|
gpus: unmarshalArrayOfObject(data.gpus, unmarshalGPU),
|
|
286
288
|
id: data.id,
|
|
287
289
|
incompatibleOsIds: data.incompatible_os_ids,
|
|
288
290
|
maxBandwidth: data.max_bandwidth,
|
|
289
291
|
memories: unmarshalArrayOfObject(data.memories, unmarshalMemory),
|
|
290
|
-
monthlyOfferId: data.monthly_offer_id,
|
|
292
|
+
monthlyOfferId: data.monthly_offer_id ?? null,
|
|
291
293
|
name: data.name,
|
|
292
294
|
operationPath: data.operation_path,
|
|
293
295
|
options: unmarshalArrayOfObject(data.options, unmarshalOfferOptionOffer),
|
|
294
296
|
persistentMemories: unmarshalArrayOfObject(data.persistent_memories, unmarshalPersistentMemory),
|
|
295
|
-
pricePerHour: data.price_per_hour ? unmarshalMoney(data.price_per_hour) :
|
|
296
|
-
pricePerMonth: data.price_per_month ? unmarshalMoney(data.price_per_month) :
|
|
297
|
+
pricePerHour: data.price_per_hour ? unmarshalMoney(data.price_per_hour) : null,
|
|
298
|
+
pricePerMonth: data.price_per_month ? unmarshalMoney(data.price_per_month) : null,
|
|
297
299
|
privateBandwidth: data.private_bandwidth,
|
|
298
300
|
quotaName: data.quota_name,
|
|
299
301
|
raidControllers: unmarshalArrayOfObject(data.raid_controllers, unmarshalRaidController),
|
|
@@ -308,29 +310,30 @@ const unmarshalOffer = (data) => {
|
|
|
308
310
|
const unmarshalOption = (data) => {
|
|
309
311
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Option' failed as data isn't a dictionary.`);
|
|
310
312
|
return {
|
|
311
|
-
certification: data.certification ? unmarshalCertificationOption(data.certification) :
|
|
313
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : null,
|
|
312
314
|
id: data.id,
|
|
313
|
-
license: data.license ? unmarshalLicenseOption(data.license) :
|
|
315
|
+
license: data.license ? unmarshalLicenseOption(data.license) : null,
|
|
314
316
|
manageable: data.manageable,
|
|
315
317
|
name: data.name,
|
|
316
|
-
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) :
|
|
317
|
-
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) :
|
|
318
|
-
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) :
|
|
318
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : null,
|
|
319
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : null,
|
|
320
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : null,
|
|
319
321
|
srn: data.srn,
|
|
322
|
+
type: data.type,
|
|
320
323
|
zone: data.zone
|
|
321
324
|
};
|
|
322
325
|
};
|
|
323
326
|
const unmarshalServerPrivateNetwork = (data) => {
|
|
324
327
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerPrivateNetwork' failed as data isn't a dictionary.`);
|
|
325
328
|
return {
|
|
326
|
-
createdAt: unmarshalDate(data.created_at),
|
|
329
|
+
createdAt: unmarshalDate(data.created_at) ?? null,
|
|
327
330
|
id: data.id,
|
|
328
331
|
privateNetworkId: data.private_network_id,
|
|
329
332
|
projectId: data.project_id,
|
|
330
333
|
serverId: data.server_id,
|
|
331
334
|
status: data.status,
|
|
332
|
-
updatedAt: unmarshalDate(data.updated_at),
|
|
333
|
-
vlan: data.vlan
|
|
335
|
+
updatedAt: unmarshalDate(data.updated_at) ?? null,
|
|
336
|
+
vlan: data.vlan ?? null
|
|
334
337
|
};
|
|
335
338
|
};
|
|
336
339
|
const unmarshalSetting = (data) => {
|
|
@@ -347,7 +350,7 @@ const unmarshalSetting = (data) => {
|
|
|
347
350
|
const unmarshalBMCAccess = (data) => {
|
|
348
351
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`);
|
|
349
352
|
return {
|
|
350
|
-
expiresAt: unmarshalDate(data.expires_at),
|
|
353
|
+
expiresAt: unmarshalDate(data.expires_at) ?? null,
|
|
351
354
|
login: data.login,
|
|
352
355
|
password: data.password,
|
|
353
356
|
serverId: data.server_id,
|
|
@@ -362,7 +365,7 @@ const unmarshalBatchCreateServersResponse = (data) => {
|
|
|
362
365
|
};
|
|
363
366
|
const unmarshalGetServerMetricsResponse = (data) => {
|
|
364
367
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetServerMetricsResponse' failed as data isn't a dictionary.`);
|
|
365
|
-
return { pings: data.pings ? unmarshalTimeSeries(data.pings) :
|
|
368
|
+
return { pings: data.pings ? unmarshalTimeSeries(data.pings) : null };
|
|
366
369
|
};
|
|
367
370
|
const unmarshalListOSResponse = (data) => {
|
|
368
371
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
|
|
@@ -389,9 +392,9 @@ const unmarshalServerEvent = (data) => {
|
|
|
389
392
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerEvent' failed as data isn't a dictionary.`);
|
|
390
393
|
return {
|
|
391
394
|
action: data.action,
|
|
392
|
-
createdAt: unmarshalDate(data.created_at),
|
|
395
|
+
createdAt: unmarshalDate(data.created_at) ?? null,
|
|
393
396
|
id: data.id,
|
|
394
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
397
|
+
updatedAt: unmarshalDate(data.updated_at) ?? null
|
|
395
398
|
};
|
|
396
399
|
};
|
|
397
400
|
const unmarshalListServerEventsResponse = (data) => {
|
|
@@ -458,14 +461,14 @@ const marshalSchema = (request, defaults) => ({
|
|
|
458
461
|
disks: request.disks.map((elt) => marshalSchemaDisk(elt, defaults)),
|
|
459
462
|
filesystems: request.filesystems.map((elt) => marshalSchemaFilesystem(elt, defaults)),
|
|
460
463
|
raids: request.raids.map((elt) => marshalSchemaRAID(elt, defaults)),
|
|
461
|
-
zfs: request.zfs
|
|
464
|
+
zfs: request.zfs != null ? marshalSchemaZFS(request.zfs, defaults) : void 0
|
|
462
465
|
});
|
|
463
466
|
const marshalCreateServerRequestInstall = (request, defaults) => ({
|
|
464
467
|
hostname: request.hostname,
|
|
465
468
|
network_boot_persistent: request.networkBootPersistent,
|
|
466
469
|
network_boot_url: request.networkBootUrl,
|
|
467
470
|
os_id: request.osId,
|
|
468
|
-
partitioning_schema: request.partitioningSchema
|
|
471
|
+
partitioning_schema: request.partitioningSchema != null ? marshalSchema(request.partitioningSchema, defaults) : void 0,
|
|
469
472
|
password: request.password,
|
|
470
473
|
service_password: request.servicePassword,
|
|
471
474
|
service_user: request.serviceUser,
|
|
@@ -475,7 +478,7 @@ const marshalCreateServerRequestInstall = (request, defaults) => ({
|
|
|
475
478
|
const marshalCreateServerRequest = (request, defaults) => ({
|
|
476
479
|
commitment_period: request.commitmentPeriod,
|
|
477
480
|
description: request.description,
|
|
478
|
-
install: request.install
|
|
481
|
+
install: request.install != null ? marshalCreateServerRequestInstall(request.install, defaults) : void 0,
|
|
479
482
|
name: request.name,
|
|
480
483
|
offer_id: request.offerId,
|
|
481
484
|
option_ids: request.optionIds,
|
|
@@ -499,21 +502,21 @@ const marshalBatchCreateServersRequestServerConfig = (request, defaults) => ({
|
|
|
499
502
|
tags: request.tags
|
|
500
503
|
});
|
|
501
504
|
const marshalBatchCreateServersRequest = (request, defaults) => ({
|
|
502
|
-
common_configuration: request.commonConfiguration
|
|
503
|
-
servers: request.servers
|
|
505
|
+
common_configuration: request.commonConfiguration != null ? marshalCreateServerRequest(request.commonConfiguration, defaults) : void 0,
|
|
506
|
+
servers: request.servers != null ? request.servers.map((elt) => marshalBatchCreateServersRequestServerConfig(elt, defaults)) : void 0
|
|
504
507
|
});
|
|
505
508
|
const marshalInstallServerRequest = async (request, defaults) => ({
|
|
506
509
|
hostname: request.hostname,
|
|
507
510
|
network_boot_persistent: request.networkBootPersistent,
|
|
508
511
|
network_boot_url: request.networkBootUrl,
|
|
509
512
|
os_id: request.osId,
|
|
510
|
-
partitioning_schema: request.partitioningSchema
|
|
513
|
+
partitioning_schema: request.partitioningSchema != null ? marshalSchema(request.partitioningSchema, defaults) : void 0,
|
|
511
514
|
password: request.password,
|
|
512
515
|
service_password: request.servicePassword,
|
|
513
516
|
service_user: request.serviceUser,
|
|
514
517
|
ssh_key_ids: request.sshKeyIds,
|
|
515
518
|
user: request.user,
|
|
516
|
-
user_data: request.userData
|
|
519
|
+
user_data: request.userData != null ? await marshalBlobToScwFile(request.userData) : void 0
|
|
517
520
|
});
|
|
518
521
|
const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({ private_network_id: request.privateNetworkId });
|
|
519
522
|
const marshalPrivateNetworkApiSetServerPrivateNetworksRequest = (request, defaults) => ({ private_network_ids: request.privateNetworkIds });
|
|
@@ -541,7 +544,7 @@ const marshalUpgradeServerCommitmentRequest = (request, defaults) => ({ period:
|
|
|
541
544
|
const marshalValidatePartitioningSchemaRequest = (request, defaults) => ({
|
|
542
545
|
offer_id: request.offerId,
|
|
543
546
|
os_id: request.osId,
|
|
544
|
-
partitioning_schema: request.partitioningSchema
|
|
547
|
+
partitioning_schema: request.partitioningSchema != null ? marshalSchema(request.partitioningSchema, defaults) : void 0
|
|
545
548
|
});
|
|
546
549
|
|
|
547
550
|
//#endregion
|