@scaleway/sdk-baremetal 2.19.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.
@@ -1,4 +1,4 @@
1
- import { AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersResponse, CreateServerRequest, DeleteOptionServerRequest, DeleteServerRequest, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, InstallServerRequest, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersRequest, ListServersResponse, ListSettingsRequest, ListSettingsResponse, MigrateServerToMonthlyOfferRequest, OS, Offer, Option, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerEvent, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from "./types.gen.js";
1
+ import { AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersResponse, CreateServerRequest, DeleteOptionServerRequest, DeleteServerRequest, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, InstallServerRequest, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersRequest, ListServersResponse, ListSettingsRequest, ListSettingsResponse, MigrateServerToMonthlyOfferRequest, OS, Offer, Option, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerEvent, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerCommitmentRequest, UpdateServerRequest, UpdateSettingRequest, UpgradeServerCommitmentRequest, ValidatePartitioningSchemaRequest } from "./types.gen.js";
2
2
  import { API, ApiLocality, RequestOptions, WaitForOptions } from "@scaleway/sdk-client";
3
3
  //#region src/v1/api.gen.d.ts
4
4
  /**
@@ -125,6 +125,20 @@ declare class API$1 extends API {
125
125
  * @param request - The request {@link ValidatePartitioningSchemaRequest}
126
126
  */
127
127
  validatePartitioningSchema: (request: Readonly<ValidatePartitioningSchemaRequest>, options?: RequestOptions) => Promise<void>;
128
+ /**
129
+ * Upgrade a commitment. Start a commitment or upgrade an existing commitment on a server.
130
+ *
131
+ * @param request - The request {@link UpgradeServerCommitmentRequest}
132
+ * @returns A Promise of Server
133
+ */
134
+ upgradeServerCommitment: (request: Readonly<UpgradeServerCommitmentRequest>, options?: RequestOptions) => Promise<Server>;
135
+ /**
136
+ * Update a commitment. Update an existing commitment on a server to enable/disable auto-renewal.
137
+ *
138
+ * @param request - The request {@link UpdateServerCommitmentRequest}
139
+ * @returns A Promise of Server
140
+ */
141
+ updateServerCommitment: (request: Readonly<UpdateServerCommitmentRequest>, options?: RequestOptions) => Promise<Server>;
128
142
  /**
129
143
  * Start BMC access. Start BMC (Baseboard Management Controller) access associated with the ID.
130
144
  The BMC (Baseboard Management Controller) access is available one hour after the installation of the server.
@@ -1,5 +1,5 @@
1
1
  import { SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
2
- import { marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, 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";
2
+ import { marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, 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";
3
3
  import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
4
 
5
5
  //#region src/v1/api.gen.ts
@@ -128,6 +128,26 @@ var API$1 = class extends API {
128
128
  path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/partitioning-schemas/validate`,
129
129
  signal: options?.signal
130
130
  });
131
+ this.upgradeServerCommitment = (request, options) => this.client.fetch({
132
+ body: JSON.stringify(marshalUpgradeServerCommitmentRequest(request, this.client.settings)),
133
+ headers: {
134
+ ...jsonContentHeaders,
135
+ ...options?.headers
136
+ },
137
+ method: "POST",
138
+ path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/upgrade-commitment`,
139
+ signal: options?.signal
140
+ }, unmarshalServer);
141
+ this.updateServerCommitment = (request, options) => this.client.fetch({
142
+ body: JSON.stringify(marshalUpdateServerCommitmentRequest(request, this.client.settings)),
143
+ headers: {
144
+ ...jsonContentHeaders,
145
+ ...options?.headers
146
+ },
147
+ method: "POST",
148
+ path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/update-commitment`,
149
+ signal: options?.signal
150
+ }, unmarshalServer);
131
151
  this.startBMCAccess = (request, options) => this.client.fetch({
132
152
  body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
133
153
  headers: {
@@ -1,5 +1,7 @@
1
- import { 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
+ /** Lists all values of the enum {@link CommitmentPeriod}. */
4
+ export declare const COMMITMENT_PERIODS: CommitmentPeriod[];
3
5
  /** Lists all values of the enum {@link IPReverseStatus}. */
4
6
  export declare const IP_REVERSE_STATUSES: IPReverseStatus[];
5
7
  /** Lists all values of the enum {@link IPVersion}. */
@@ -18,6 +20,8 @@ export declare const MEMORY_ECC_TYPES: MemoryEccType[];
18
20
  export declare const OFFER_STOCKS: OfferStock[];
19
21
  /** Lists all values of the enum {@link OfferSubscriptionPeriod}. */
20
22
  export declare const OFFER_SUBSCRIPTION_PERIODS: OfferSubscriptionPeriod[];
23
+ /** Lists all values of the enum {@link OptionType}. */
24
+ export declare const OPTION_TYPES: OptionType[];
21
25
  /** Lists all values of the enum {@link SchemaFilesystemFormat}. */
22
26
  export declare const SCHEMA_FILESYSTEM_FORMATS: SchemaFilesystemFormat[];
23
27
  /** Lists all values of the enum {@link SchemaPartitionLabel}. */
@@ -1,4 +1,13 @@
1
1
  //#region src/v1/constants.gen.ts
2
+ /** Lists all values of the enum {@link CommitmentPeriod}. */
3
+ const COMMITMENT_PERIODS = [
4
+ "unknown_period",
5
+ "one_month",
6
+ "six_months",
7
+ "one_year",
8
+ "two_years",
9
+ "three_years"
10
+ ];
2
11
  /** Lists all values of the enum {@link IPReverseStatus}. */
3
12
  const IP_REVERSE_STATUSES = [
4
13
  "unknown",
@@ -40,6 +49,15 @@ const OFFER_SUBSCRIPTION_PERIODS = [
40
49
  "hourly",
41
50
  "monthly"
42
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
+ ];
43
61
  /** Lists all values of the enum {@link SchemaFilesystemFormat}. */
44
62
  const SCHEMA_FILESYSTEM_FORMATS = [
45
63
  "unknown_format",
@@ -136,4 +154,4 @@ const SERVER_STATUSES = [
136
154
  const SETTING_TYPES = ["unknown", "smtp"];
137
155
 
138
156
  //#endregion
139
- export { 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 };
@@ -1,11 +1,11 @@
1
- import { AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersRequestServerConfig, BatchCreateServersResponse, CPU, CertificationOption, 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, 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, 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";
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 { 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 { 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
+ 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
+ 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, CPU, CertificationOption, 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, 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, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, validation_rules_gen_d_exports as ValidationRules, 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 };
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, type CPU, type CertificationOption, 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 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 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 UpdateServerRequest, type UpdateSettingRequest, type ValidatePartitioningSchemaRequest, validation_rules_gen_d_exports as ValidationRules, index_gen_d_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 };
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 };
@@ -1,13 +1,14 @@
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, 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";
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 { 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
9
9
  var index_gen_exports = /* @__PURE__ */ __exportAll({
10
10
  API: () => API,
11
+ COMMITMENT_PERIODS: () => COMMITMENT_PERIODS,
11
12
  IP_REVERSE_STATUSES: () => IP_REVERSE_STATUSES,
12
13
  IP_VERSIONS: () => IP_VERSIONS,
13
14
  LIST_SERVERS_REQUEST_ORDER_BIES: () => LIST_SERVERS_REQUEST_ORDER_BIES,
@@ -17,6 +18,7 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
17
18
  MEMORY_ECC_TYPES: () => MEMORY_ECC_TYPES,
18
19
  OFFER_STOCKS: () => OFFER_STOCKS,
19
20
  OFFER_SUBSCRIPTION_PERIODS: () => OFFER_SUBSCRIPTION_PERIODS,
21
+ OPTION_TYPES: () => OPTION_TYPES,
20
22
  PrivateNetworkAPI: () => PrivateNetworkAPI,
21
23
  SCHEMA_FILESYSTEM_FORMATS: () => SCHEMA_FILESYSTEM_FORMATS,
22
24
  SCHEMA_PARTITION_LABELS: () => SCHEMA_PARTITION_LABELS,
@@ -44,8 +46,10 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
44
46
  marshalStartBMCAccessRequest: () => marshalStartBMCAccessRequest,
45
47
  marshalStartServerRequest: () => marshalStartServerRequest,
46
48
  marshalUpdateIPRequest: () => marshalUpdateIPRequest,
49
+ marshalUpdateServerCommitmentRequest: () => marshalUpdateServerCommitmentRequest,
47
50
  marshalUpdateServerRequest: () => marshalUpdateServerRequest,
48
51
  marshalUpdateSettingRequest: () => marshalUpdateSettingRequest,
52
+ marshalUpgradeServerCommitmentRequest: () => marshalUpgradeServerCommitmentRequest,
49
53
  marshalValidatePartitioningSchemaRequest: () => marshalValidatePartitioningSchemaRequest,
50
54
  unmarshalBMCAccess: () => unmarshalBMCAccess,
51
55
  unmarshalBatchCreateServersResponse: () => unmarshalBatchCreateServersResponse,
@@ -69,4 +73,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
69
73
  });
70
74
 
71
75
  //#endregion
72
- export { API, 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, marshalUpdateServerRequest, marshalUpdateSettingRequest, 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 };
@@ -1,4 +1,4 @@
1
- import { AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersResponse, CreateServerRequest, GetServerMetricsResponse, IP, InstallServerRequest, ListOSResponse, ListOffersResponse, ListOptionsResponse, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersResponse, ListSettingsResponse, OS, Offer, Option, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from "./types.gen.js";
1
+ import { AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersResponse, CreateServerRequest, GetServerMetricsResponse, IP, InstallServerRequest, ListOSResponse, ListOffersResponse, ListOptionsResponse, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersResponse, ListSettingsResponse, OS, Offer, Option, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, UpdateIPRequest, UpdateServerCommitmentRequest, UpdateServerRequest, UpdateSettingRequest, UpgradeServerCommitmentRequest, ValidatePartitioningSchemaRequest } from "./types.gen.js";
2
2
  import { DefaultValues } from "@scaleway/sdk-client";
3
3
  //#region src/v1/marshalling.gen.d.ts
4
4
  export declare const unmarshalSchema: (data: unknown) => Schema;
@@ -31,7 +31,9 @@ export declare const marshalRebootServerRequest: (request: RebootServerRequest,
31
31
  export declare const marshalStartBMCAccessRequest: (request: StartBMCAccessRequest, defaults: DefaultValues) => Record<string, unknown>;
32
32
  export declare const marshalStartServerRequest: (request: StartServerRequest, defaults: DefaultValues) => Record<string, unknown>;
33
33
  export declare const marshalUpdateIPRequest: (request: UpdateIPRequest, defaults: DefaultValues) => Record<string, unknown>;
34
+ export declare const marshalUpdateServerCommitmentRequest: (request: UpdateServerCommitmentRequest, defaults: DefaultValues) => Record<string, unknown>;
34
35
  export declare const marshalUpdateServerRequest: (request: UpdateServerRequest, defaults: DefaultValues) => Record<string, unknown>;
35
36
  export declare const marshalUpdateSettingRequest: (request: UpdateSettingRequest, defaults: DefaultValues) => Record<string, unknown>;
37
+ export declare const marshalUpgradeServerCommitmentRequest: (request: UpgradeServerCommitmentRequest, defaults: DefaultValues) => Record<string, unknown>;
36
38
  export declare const marshalValidatePartitioningSchemaRequest: (request: ValidatePartitioningSchemaRequest, defaults: DefaultValues) => Record<string, unknown>;
37
39
  //#endregion
@@ -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) : void 0
56
+ zfs: data.zfs ? unmarshalSchemaZFS(data.zfs) : null
57
57
  };
58
58
  };
59
59
  const unmarshalIP = (data) => {
@@ -87,6 +87,17 @@ const unmarshalRemoteAccessOption = (data) => {
87
87
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RemoteAccessOption' failed as data isn't a dictionary.`);
88
88
  return {};
89
89
  };
90
+ const unmarshalServerCommitment = (data) => {
91
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerCommitment' failed as data isn't a dictionary.`);
92
+ return {
93
+ autoRenewal: data.auto_renewal,
94
+ discountRatePercent: data.discount_rate_percent,
95
+ endAt: unmarshalDate(data.end_at) ?? null,
96
+ period: data.period,
97
+ renewAt: unmarshalDate(data.renew_at) ?? null,
98
+ startedAt: unmarshalDate(data.started_at) ?? null
99
+ };
100
+ };
90
101
  const unmarshalServerInstall = (data) => {
91
102
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`);
92
103
  return {
@@ -94,7 +105,7 @@ const unmarshalServerInstall = (data) => {
94
105
  networkBootPersistent: data.network_boot_persistent,
95
106
  networkBootUrl: data.network_boot_url,
96
107
  osId: data.os_id,
97
- partitioningSchema: data.partitioning_schema ? unmarshalSchema(data.partitioning_schema) : void 0,
108
+ partitioningSchema: data.partitioning_schema ? unmarshalSchema(data.partitioning_schema) : null,
98
109
  serviceUrl: data.service_url,
99
110
  serviceUser: data.service_user,
100
111
  sshKeyIds: data.ssh_key_ids,
@@ -105,16 +116,17 @@ const unmarshalServerInstall = (data) => {
105
116
  const unmarshalServerOption = (data) => {
106
117
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerOption' failed as data isn't a dictionary.`);
107
118
  return {
108
- certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
109
- expiresAt: unmarshalDate(data.expires_at),
119
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : null,
120
+ expiresAt: unmarshalDate(data.expires_at) ?? null,
110
121
  id: data.id,
111
- license: data.license ? unmarshalLicenseOption(data.license) : void 0,
122
+ license: data.license ? unmarshalLicenseOption(data.license) : null,
112
123
  manageable: data.manageable,
113
124
  name: data.name,
114
- privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
115
- publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
116
- remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
117
- 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
118
130
  };
119
131
  };
120
132
  const unmarshalServerRescueServer = (data) => {
@@ -128,11 +140,12 @@ const unmarshalServer = (data) => {
128
140
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
129
141
  return {
130
142
  bootType: data.boot_type,
131
- createdAt: unmarshalDate(data.created_at),
143
+ commitment: data.commitment ? unmarshalServerCommitment(data.commitment) : null,
144
+ createdAt: unmarshalDate(data.created_at) ?? null,
132
145
  description: data.description,
133
146
  domain: data.domain,
134
147
  id: data.id,
135
- install: data.install ? unmarshalServerInstall(data.install) : void 0,
148
+ install: data.install ? unmarshalServerInstall(data.install) : null,
136
149
  ips: unmarshalArrayOfObject(data.ips, unmarshalIP),
137
150
  name: data.name,
138
151
  offerId: data.offer_id,
@@ -142,18 +155,21 @@ const unmarshalServer = (data) => {
142
155
  pingStatus: data.ping_status,
143
156
  projectId: data.project_id,
144
157
  protected: data.protected,
145
- rescueServer: data.rescue_server ? unmarshalServerRescueServer(data.rescue_server) : void 0,
158
+ rescueServer: data.rescue_server ? unmarshalServerRescueServer(data.rescue_server) : null,
159
+ scheduledDeletion: data.scheduled_deletion,
160
+ scheduledDeletionAt: unmarshalDate(data.scheduled_deletion_at) ?? null,
161
+ srn: data.srn,
146
162
  status: data.status,
147
163
  tags: data.tags,
148
- updatedAt: unmarshalDate(data.updated_at),
149
- userData: data.user_data,
164
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
165
+ userData: data.user_data ?? null,
150
166
  zone: data.zone
151
167
  };
152
168
  };
153
169
  const unmarshalOSOSField = (data) => {
154
170
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OSOSField' failed as data isn't a dictionary.`);
155
171
  return {
156
- defaultValue: data.default_value,
172
+ defaultValue: data.default_value ?? null,
157
173
  editable: data.editable,
158
174
  required: data.required
159
175
  };
@@ -163,20 +179,21 @@ const unmarshalOS = (data) => {
163
179
  return {
164
180
  allowed: data.allowed,
165
181
  cloudInitSupported: data.cloud_init_supported,
166
- cloudInitVersion: data.cloud_init_version,
182
+ cloudInitVersion: data.cloud_init_version ?? null,
167
183
  customPartitioningSupported: data.custom_partitioning_supported,
168
184
  enabled: data.enabled,
169
185
  id: data.id,
170
186
  licenseRequired: data.license_required,
171
187
  logoUrl: data.logo_url,
172
188
  name: data.name,
173
- networkBoot: data.network_boot ? unmarshalOSOSField(data.network_boot) : void 0,
189
+ networkBoot: data.network_boot ? unmarshalOSOSField(data.network_boot) : null,
174
190
  networkBootPersistentEditable: data.network_boot_persistent_editable,
175
- password: data.password ? unmarshalOSOSField(data.password) : void 0,
176
- servicePassword: data.service_password ? unmarshalOSOSField(data.service_password) : void 0,
177
- serviceUser: data.service_user ? unmarshalOSOSField(data.service_user) : void 0,
178
- ssh: data.ssh ? unmarshalOSOSField(data.ssh) : void 0,
179
- user: data.user ? unmarshalOSOSField(data.user) : void 0,
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,
194
+ srn: data.srn,
195
+ ssh: data.ssh ? unmarshalOSOSField(data.ssh) : null,
196
+ user: data.user ? unmarshalOSOSField(data.user) : null,
180
197
  version: data.version,
181
198
  zone: data.zone
182
199
  };
@@ -215,21 +232,30 @@ const unmarshalMemory = (data) => {
215
232
  type: data.type
216
233
  };
217
234
  };
235
+ const unmarshalOfferCommitment = (data) => {
236
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferCommitment' failed as data isn't a dictionary.`);
237
+ return {
238
+ discountRatePercent: data.discount_rate_percent,
239
+ noFee: data.no_fee,
240
+ period: data.period
241
+ };
242
+ };
218
243
  const unmarshalOfferOptionOffer = (data) => {
219
244
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferOptionOffer' failed as data isn't a dictionary.`);
220
245
  return {
221
- certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
246
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : null,
222
247
  enabled: data.enabled,
223
248
  id: data.id,
224
- license: data.license ? unmarshalLicenseOption(data.license) : void 0,
249
+ license: data.license ? unmarshalLicenseOption(data.license) : null,
225
250
  manageable: data.manageable,
226
251
  name: data.name,
227
- osId: data.os_id,
228
- price: data.price ? unmarshalMoney(data.price) : void 0,
229
- privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
230
- publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
231
- remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
232
- 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
233
259
  };
234
260
  };
235
261
  const unmarshalPersistentMemory = (data) => {
@@ -252,27 +278,29 @@ const unmarshalOffer = (data) => {
252
278
  return {
253
279
  bandwidth: data.bandwidth,
254
280
  commercialRange: data.commercial_range,
281
+ commitmentsAvailable: unmarshalArrayOfObject(data.commitments_available, unmarshalOfferCommitment),
255
282
  cpus: unmarshalArrayOfObject(data.cpus, unmarshalCPU),
256
283
  disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
257
- dualAttach: data.dual_attach,
284
+ dualAttach: data.dual_attach ?? null,
258
285
  enable: data.enable,
259
- fee: data.fee ? unmarshalMoney(data.fee) : void 0,
286
+ fee: data.fee ? unmarshalMoney(data.fee) : null,
260
287
  gpus: unmarshalArrayOfObject(data.gpus, unmarshalGPU),
261
288
  id: data.id,
262
289
  incompatibleOsIds: data.incompatible_os_ids,
263
290
  maxBandwidth: data.max_bandwidth,
264
291
  memories: unmarshalArrayOfObject(data.memories, unmarshalMemory),
265
- monthlyOfferId: data.monthly_offer_id,
292
+ monthlyOfferId: data.monthly_offer_id ?? null,
266
293
  name: data.name,
267
294
  operationPath: data.operation_path,
268
295
  options: unmarshalArrayOfObject(data.options, unmarshalOfferOptionOffer),
269
296
  persistentMemories: unmarshalArrayOfObject(data.persistent_memories, unmarshalPersistentMemory),
270
- pricePerHour: data.price_per_hour ? unmarshalMoney(data.price_per_hour) : void 0,
271
- pricePerMonth: data.price_per_month ? unmarshalMoney(data.price_per_month) : void 0,
297
+ pricePerHour: data.price_per_hour ? unmarshalMoney(data.price_per_hour) : null,
298
+ pricePerMonth: data.price_per_month ? unmarshalMoney(data.price_per_month) : null,
272
299
  privateBandwidth: data.private_bandwidth,
273
300
  quotaName: data.quota_name,
274
301
  raidControllers: unmarshalArrayOfObject(data.raid_controllers, unmarshalRaidController),
275
302
  sharedBandwidth: data.shared_bandwidth,
303
+ srn: data.srn,
276
304
  stock: data.stock,
277
305
  subscriptionPeriod: data.subscription_period,
278
306
  tags: data.tags,
@@ -282,27 +310,30 @@ const unmarshalOffer = (data) => {
282
310
  const unmarshalOption = (data) => {
283
311
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Option' failed as data isn't a dictionary.`);
284
312
  return {
285
- certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
313
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : null,
286
314
  id: data.id,
287
- license: data.license ? unmarshalLicenseOption(data.license) : void 0,
315
+ license: data.license ? unmarshalLicenseOption(data.license) : null,
288
316
  manageable: data.manageable,
289
317
  name: data.name,
290
- privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
291
- publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
292
- remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0
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,
321
+ srn: data.srn,
322
+ type: data.type,
323
+ zone: data.zone
293
324
  };
294
325
  };
295
326
  const unmarshalServerPrivateNetwork = (data) => {
296
327
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerPrivateNetwork' failed as data isn't a dictionary.`);
297
328
  return {
298
- createdAt: unmarshalDate(data.created_at),
329
+ createdAt: unmarshalDate(data.created_at) ?? null,
299
330
  id: data.id,
300
331
  privateNetworkId: data.private_network_id,
301
332
  projectId: data.project_id,
302
333
  serverId: data.server_id,
303
334
  status: data.status,
304
- updatedAt: unmarshalDate(data.updated_at),
305
- vlan: data.vlan
335
+ updatedAt: unmarshalDate(data.updated_at) ?? null,
336
+ vlan: data.vlan ?? null
306
337
  };
307
338
  };
308
339
  const unmarshalSetting = (data) => {
@@ -311,16 +342,21 @@ const unmarshalSetting = (data) => {
311
342
  enabled: data.enabled,
312
343
  id: data.id,
313
344
  projectId: data.project_id,
314
- type: data.type
345
+ srn: data.srn,
346
+ type: data.type,
347
+ zone: data.zone
315
348
  };
316
349
  };
317
350
  const unmarshalBMCAccess = (data) => {
318
351
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`);
319
352
  return {
320
- expiresAt: unmarshalDate(data.expires_at),
353
+ expiresAt: unmarshalDate(data.expires_at) ?? null,
321
354
  login: data.login,
322
355
  password: data.password,
323
- url: data.url
356
+ serverId: data.server_id,
357
+ srn: data.srn,
358
+ url: data.url,
359
+ zone: data.zone
324
360
  };
325
361
  };
326
362
  const unmarshalBatchCreateServersResponse = (data) => {
@@ -329,7 +365,7 @@ const unmarshalBatchCreateServersResponse = (data) => {
329
365
  };
330
366
  const unmarshalGetServerMetricsResponse = (data) => {
331
367
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetServerMetricsResponse' failed as data isn't a dictionary.`);
332
- return { pings: data.pings ? unmarshalTimeSeries(data.pings) : void 0 };
368
+ return { pings: data.pings ? unmarshalTimeSeries(data.pings) : null };
333
369
  };
334
370
  const unmarshalListOSResponse = (data) => {
335
371
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
@@ -356,9 +392,9 @@ const unmarshalServerEvent = (data) => {
356
392
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerEvent' failed as data isn't a dictionary.`);
357
393
  return {
358
394
  action: data.action,
359
- createdAt: unmarshalDate(data.created_at),
395
+ createdAt: unmarshalDate(data.created_at) ?? null,
360
396
  id: data.id,
361
- updatedAt: unmarshalDate(data.updated_at)
397
+ updatedAt: unmarshalDate(data.updated_at) ?? null
362
398
  };
363
399
  };
364
400
  const unmarshalListServerEventsResponse = (data) => {
@@ -425,14 +461,14 @@ const marshalSchema = (request, defaults) => ({
425
461
  disks: request.disks.map((elt) => marshalSchemaDisk(elt, defaults)),
426
462
  filesystems: request.filesystems.map((elt) => marshalSchemaFilesystem(elt, defaults)),
427
463
  raids: request.raids.map((elt) => marshalSchemaRAID(elt, defaults)),
428
- zfs: request.zfs !== void 0 ? marshalSchemaZFS(request.zfs, defaults) : void 0
464
+ zfs: request.zfs != null ? marshalSchemaZFS(request.zfs, defaults) : void 0
429
465
  });
430
466
  const marshalCreateServerRequestInstall = (request, defaults) => ({
431
467
  hostname: request.hostname,
432
468
  network_boot_persistent: request.networkBootPersistent,
433
469
  network_boot_url: request.networkBootUrl,
434
470
  os_id: request.osId,
435
- partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema, defaults) : void 0,
471
+ partitioning_schema: request.partitioningSchema != null ? marshalSchema(request.partitioningSchema, defaults) : void 0,
436
472
  password: request.password,
437
473
  service_password: request.servicePassword,
438
474
  service_user: request.serviceUser,
@@ -440,8 +476,9 @@ const marshalCreateServerRequestInstall = (request, defaults) => ({
440
476
  user: request.user
441
477
  });
442
478
  const marshalCreateServerRequest = (request, defaults) => ({
479
+ commitment_period: request.commitmentPeriod,
443
480
  description: request.description,
444
- install: request.install !== void 0 ? marshalCreateServerRequestInstall(request.install, defaults) : void 0,
481
+ install: request.install != null ? marshalCreateServerRequestInstall(request.install, defaults) : void 0,
445
482
  name: request.name,
446
483
  offer_id: request.offerId,
447
484
  option_ids: request.optionIds,
@@ -465,21 +502,21 @@ const marshalBatchCreateServersRequestServerConfig = (request, defaults) => ({
465
502
  tags: request.tags
466
503
  });
467
504
  const marshalBatchCreateServersRequest = (request, defaults) => ({
468
- common_configuration: request.commonConfiguration !== void 0 ? marshalCreateServerRequest(request.commonConfiguration, defaults) : void 0,
469
- servers: request.servers !== void 0 ? request.servers.map((elt) => marshalBatchCreateServersRequestServerConfig(elt, defaults)) : void 0
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
470
507
  });
471
508
  const marshalInstallServerRequest = async (request, defaults) => ({
472
509
  hostname: request.hostname,
473
510
  network_boot_persistent: request.networkBootPersistent,
474
511
  network_boot_url: request.networkBootUrl,
475
512
  os_id: request.osId,
476
- partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema, defaults) : void 0,
513
+ partitioning_schema: request.partitioningSchema != null ? marshalSchema(request.partitioningSchema, defaults) : void 0,
477
514
  password: request.password,
478
515
  service_password: request.servicePassword,
479
516
  service_user: request.serviceUser,
480
517
  ssh_key_ids: request.sshKeyIds,
481
518
  user: request.user,
482
- user_data: request.userData !== void 0 ? await marshalBlobToScwFile(request.userData) : void 0
519
+ user_data: request.userData != null ? await marshalBlobToScwFile(request.userData) : void 0
483
520
  });
484
521
  const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({ private_network_id: request.privateNetworkId });
485
522
  const marshalPrivateNetworkApiSetServerPrivateNetworksRequest = (request, defaults) => ({ private_network_ids: request.privateNetworkIds });
@@ -493,19 +530,22 @@ const marshalStartServerRequest = (request, defaults) => ({
493
530
  ssh_key_ids: request.sshKeyIds
494
531
  });
495
532
  const marshalUpdateIPRequest = (request, defaults) => ({ reverse: request.reverse });
533
+ const marshalUpdateServerCommitmentRequest = (request, defaults) => ({ auto_renewal: request.autoRenewal });
496
534
  const marshalUpdateServerRequest = (request, defaults) => ({
497
535
  description: request.description,
498
536
  name: request.name,
499
537
  protected: request.protected,
538
+ scheduled_deletion: request.scheduledDeletion,
500
539
  tags: request.tags,
501
540
  user_data: request.userData
502
541
  });
503
542
  const marshalUpdateSettingRequest = (request, defaults) => ({ enabled: request.enabled });
543
+ const marshalUpgradeServerCommitmentRequest = (request, defaults) => ({ period: request.period });
504
544
  const marshalValidatePartitioningSchemaRequest = (request, defaults) => ({
505
545
  offer_id: request.offerId,
506
546
  os_id: request.osId,
507
- partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema, defaults) : void 0
547
+ partitioning_schema: request.partitioningSchema != null ? marshalSchema(request.partitioningSchema, defaults) : void 0
508
548
  });
509
549
 
510
550
  //#endregion
511
- 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 };
551
+ export { 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 };