@scaleway/sdk-baremetal 2.19.0 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v1/api.gen.d.ts +15 -1
- package/dist/v1/api.gen.js +21 -1
- package/dist/v1/constants.gen.d.ts +3 -1
- package/dist/v1/constants.gen.js +10 -1
- package/dist/v1/index.gen.d.ts +5 -5
- package/dist/v1/index.gen.js +6 -3
- package/dist/v1/marshalling.gen.d.ts +3 -1
- package/dist/v1/marshalling.gen.js +41 -4
- package/dist/v1/types.gen.d.ts +121 -0
- package/package.json +1 -1
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -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.
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -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, 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}. */
|
package/dist/v1/constants.gen.js
CHANGED
|
@@ -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",
|
|
@@ -136,4 +145,4 @@ const SERVER_STATUSES = [
|
|
|
136
145
|
const SETTING_TYPES = ["unknown", "smtp"];
|
|
137
146
|
|
|
138
147
|
//#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 };
|
|
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 };
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -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, 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, 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, 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 };
|
|
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, 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 };
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -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, 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,
|
|
@@ -44,8 +45,10 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
44
45
|
marshalStartBMCAccessRequest: () => marshalStartBMCAccessRequest,
|
|
45
46
|
marshalStartServerRequest: () => marshalStartServerRequest,
|
|
46
47
|
marshalUpdateIPRequest: () => marshalUpdateIPRequest,
|
|
48
|
+
marshalUpdateServerCommitmentRequest: () => marshalUpdateServerCommitmentRequest,
|
|
47
49
|
marshalUpdateServerRequest: () => marshalUpdateServerRequest,
|
|
48
50
|
marshalUpdateSettingRequest: () => marshalUpdateSettingRequest,
|
|
51
|
+
marshalUpgradeServerCommitmentRequest: () => marshalUpgradeServerCommitmentRequest,
|
|
49
52
|
marshalValidatePartitioningSchemaRequest: () => marshalValidatePartitioningSchemaRequest,
|
|
50
53
|
unmarshalBMCAccess: () => unmarshalBMCAccess,
|
|
51
54
|
unmarshalBatchCreateServersResponse: () => unmarshalBatchCreateServersResponse,
|
|
@@ -69,4 +72,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
69
72
|
});
|
|
70
73
|
|
|
71
74
|
//#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 };
|
|
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 };
|
|
@@ -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
|
|
@@ -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),
|
|
96
|
+
period: data.period,
|
|
97
|
+
renewAt: unmarshalDate(data.renew_at),
|
|
98
|
+
startedAt: unmarshalDate(data.started_at)
|
|
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 {
|
|
@@ -128,6 +139,7 @@ const unmarshalServer = (data) => {
|
|
|
128
139
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
|
|
129
140
|
return {
|
|
130
141
|
bootType: data.boot_type,
|
|
142
|
+
commitment: data.commitment ? unmarshalServerCommitment(data.commitment) : void 0,
|
|
131
143
|
createdAt: unmarshalDate(data.created_at),
|
|
132
144
|
description: data.description,
|
|
133
145
|
domain: data.domain,
|
|
@@ -143,6 +155,9 @@ const unmarshalServer = (data) => {
|
|
|
143
155
|
projectId: data.project_id,
|
|
144
156
|
protected: data.protected,
|
|
145
157
|
rescueServer: data.rescue_server ? unmarshalServerRescueServer(data.rescue_server) : void 0,
|
|
158
|
+
scheduledDeletion: data.scheduled_deletion,
|
|
159
|
+
scheduledDeletionAt: unmarshalDate(data.scheduled_deletion_at),
|
|
160
|
+
srn: data.srn,
|
|
146
161
|
status: data.status,
|
|
147
162
|
tags: data.tags,
|
|
148
163
|
updatedAt: unmarshalDate(data.updated_at),
|
|
@@ -175,6 +190,7 @@ const unmarshalOS = (data) => {
|
|
|
175
190
|
password: data.password ? unmarshalOSOSField(data.password) : void 0,
|
|
176
191
|
servicePassword: data.service_password ? unmarshalOSOSField(data.service_password) : void 0,
|
|
177
192
|
serviceUser: data.service_user ? unmarshalOSOSField(data.service_user) : void 0,
|
|
193
|
+
srn: data.srn,
|
|
178
194
|
ssh: data.ssh ? unmarshalOSOSField(data.ssh) : void 0,
|
|
179
195
|
user: data.user ? unmarshalOSOSField(data.user) : void 0,
|
|
180
196
|
version: data.version,
|
|
@@ -215,6 +231,14 @@ const unmarshalMemory = (data) => {
|
|
|
215
231
|
type: data.type
|
|
216
232
|
};
|
|
217
233
|
};
|
|
234
|
+
const unmarshalOfferCommitment = (data) => {
|
|
235
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferCommitment' failed as data isn't a dictionary.`);
|
|
236
|
+
return {
|
|
237
|
+
discountRatePercent: data.discount_rate_percent,
|
|
238
|
+
noFee: data.no_fee,
|
|
239
|
+
period: data.period
|
|
240
|
+
};
|
|
241
|
+
};
|
|
218
242
|
const unmarshalOfferOptionOffer = (data) => {
|
|
219
243
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferOptionOffer' failed as data isn't a dictionary.`);
|
|
220
244
|
return {
|
|
@@ -252,6 +276,7 @@ const unmarshalOffer = (data) => {
|
|
|
252
276
|
return {
|
|
253
277
|
bandwidth: data.bandwidth,
|
|
254
278
|
commercialRange: data.commercial_range,
|
|
279
|
+
commitmentsAvailable: unmarshalArrayOfObject(data.commitments_available, unmarshalOfferCommitment),
|
|
255
280
|
cpus: unmarshalArrayOfObject(data.cpus, unmarshalCPU),
|
|
256
281
|
disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
|
|
257
282
|
dualAttach: data.dual_attach,
|
|
@@ -273,6 +298,7 @@ const unmarshalOffer = (data) => {
|
|
|
273
298
|
quotaName: data.quota_name,
|
|
274
299
|
raidControllers: unmarshalArrayOfObject(data.raid_controllers, unmarshalRaidController),
|
|
275
300
|
sharedBandwidth: data.shared_bandwidth,
|
|
301
|
+
srn: data.srn,
|
|
276
302
|
stock: data.stock,
|
|
277
303
|
subscriptionPeriod: data.subscription_period,
|
|
278
304
|
tags: data.tags,
|
|
@@ -289,7 +315,9 @@ const unmarshalOption = (data) => {
|
|
|
289
315
|
name: data.name,
|
|
290
316
|
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
|
|
291
317
|
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
|
|
292
|
-
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0
|
|
318
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
|
|
319
|
+
srn: data.srn,
|
|
320
|
+
zone: data.zone
|
|
293
321
|
};
|
|
294
322
|
};
|
|
295
323
|
const unmarshalServerPrivateNetwork = (data) => {
|
|
@@ -311,7 +339,9 @@ const unmarshalSetting = (data) => {
|
|
|
311
339
|
enabled: data.enabled,
|
|
312
340
|
id: data.id,
|
|
313
341
|
projectId: data.project_id,
|
|
314
|
-
|
|
342
|
+
srn: data.srn,
|
|
343
|
+
type: data.type,
|
|
344
|
+
zone: data.zone
|
|
315
345
|
};
|
|
316
346
|
};
|
|
317
347
|
const unmarshalBMCAccess = (data) => {
|
|
@@ -320,7 +350,10 @@ const unmarshalBMCAccess = (data) => {
|
|
|
320
350
|
expiresAt: unmarshalDate(data.expires_at),
|
|
321
351
|
login: data.login,
|
|
322
352
|
password: data.password,
|
|
323
|
-
|
|
353
|
+
serverId: data.server_id,
|
|
354
|
+
srn: data.srn,
|
|
355
|
+
url: data.url,
|
|
356
|
+
zone: data.zone
|
|
324
357
|
};
|
|
325
358
|
};
|
|
326
359
|
const unmarshalBatchCreateServersResponse = (data) => {
|
|
@@ -440,6 +473,7 @@ const marshalCreateServerRequestInstall = (request, defaults) => ({
|
|
|
440
473
|
user: request.user
|
|
441
474
|
});
|
|
442
475
|
const marshalCreateServerRequest = (request, defaults) => ({
|
|
476
|
+
commitment_period: request.commitmentPeriod,
|
|
443
477
|
description: request.description,
|
|
444
478
|
install: request.install !== void 0 ? marshalCreateServerRequestInstall(request.install, defaults) : void 0,
|
|
445
479
|
name: request.name,
|
|
@@ -493,14 +527,17 @@ const marshalStartServerRequest = (request, defaults) => ({
|
|
|
493
527
|
ssh_key_ids: request.sshKeyIds
|
|
494
528
|
});
|
|
495
529
|
const marshalUpdateIPRequest = (request, defaults) => ({ reverse: request.reverse });
|
|
530
|
+
const marshalUpdateServerCommitmentRequest = (request, defaults) => ({ auto_renewal: request.autoRenewal });
|
|
496
531
|
const marshalUpdateServerRequest = (request, defaults) => ({
|
|
497
532
|
description: request.description,
|
|
498
533
|
name: request.name,
|
|
499
534
|
protected: request.protected,
|
|
535
|
+
scheduled_deletion: request.scheduledDeletion,
|
|
500
536
|
tags: request.tags,
|
|
501
537
|
user_data: request.userData
|
|
502
538
|
});
|
|
503
539
|
const marshalUpdateSettingRequest = (request, defaults) => ({ enabled: request.enabled });
|
|
540
|
+
const marshalUpgradeServerCommitmentRequest = (request, defaults) => ({ period: request.period });
|
|
504
541
|
const marshalValidatePartitioningSchemaRequest = (request, defaults) => ({
|
|
505
542
|
offer_id: request.offerId,
|
|
506
543
|
os_id: request.osId,
|
|
@@ -508,4 +545,4 @@ const marshalValidatePartitioningSchemaRequest = (request, defaults) => ({
|
|
|
508
545
|
});
|
|
509
546
|
|
|
510
547
|
//#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 };
|
|
548
|
+
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 };
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Money, TimeSeries, Zone } from "@scaleway/sdk-client";
|
|
2
2
|
//#region src/v1/types.gen.d.ts
|
|
3
|
+
export type CommitmentPeriod = 'unknown_period' | 'one_month' | 'six_months' | 'one_year' | 'two_years' | 'three_years';
|
|
3
4
|
export type IPReverseStatus = 'unknown' | 'pending' | 'active' | 'error';
|
|
4
5
|
export type IPVersion = 'IPv4' | 'IPv6';
|
|
5
6
|
export type ListServerEventsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
@@ -135,6 +136,32 @@ export interface IP {
|
|
|
135
136
|
*/
|
|
136
137
|
reverseStatusMessage: string;
|
|
137
138
|
}
|
|
139
|
+
export interface ServerCommitment {
|
|
140
|
+
/**
|
|
141
|
+
* Commitment period subscribed.
|
|
142
|
+
*/
|
|
143
|
+
period: CommitmentPeriod;
|
|
144
|
+
/**
|
|
145
|
+
* Start of commitment subscribed.
|
|
146
|
+
*/
|
|
147
|
+
startedAt?: Date;
|
|
148
|
+
/**
|
|
149
|
+
* Next renew of commitment subscribed.
|
|
150
|
+
*/
|
|
151
|
+
renewAt?: Date;
|
|
152
|
+
/**
|
|
153
|
+
* End of commitment subscribed.
|
|
154
|
+
*/
|
|
155
|
+
endAt?: Date;
|
|
156
|
+
/**
|
|
157
|
+
* Discount rate for the commitment period.
|
|
158
|
+
*/
|
|
159
|
+
discountRatePercent: number;
|
|
160
|
+
/**
|
|
161
|
+
* Flag for automatic renewal commitment.
|
|
162
|
+
*/
|
|
163
|
+
autoRenewal: boolean;
|
|
164
|
+
}
|
|
138
165
|
export interface ServerInstall {
|
|
139
166
|
/**
|
|
140
167
|
* ID of the OS.
|
|
@@ -308,6 +335,20 @@ export interface Memory {
|
|
|
308
335
|
*/
|
|
309
336
|
eccType: MemoryEccType;
|
|
310
337
|
}
|
|
338
|
+
export interface OfferCommitment {
|
|
339
|
+
/**
|
|
340
|
+
* Commitment period.
|
|
341
|
+
*/
|
|
342
|
+
period: CommitmentPeriod;
|
|
343
|
+
/**
|
|
344
|
+
* Discount rate for the commitment period.
|
|
345
|
+
*/
|
|
346
|
+
discountRatePercent: number;
|
|
347
|
+
/**
|
|
348
|
+
* Fee not mandatory.
|
|
349
|
+
*/
|
|
350
|
+
noFee: boolean;
|
|
351
|
+
}
|
|
311
352
|
export interface OfferOptionOffer {
|
|
312
353
|
/**
|
|
313
354
|
* ID of the option.
|
|
@@ -441,6 +482,10 @@ export type CreateServerRequest = {
|
|
|
441
482
|
* Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
|
|
442
483
|
*/
|
|
443
484
|
userData?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Commitment period to subscribe.
|
|
487
|
+
*/
|
|
488
|
+
commitmentPeriod?: CommitmentPeriod;
|
|
444
489
|
};
|
|
445
490
|
export interface Server {
|
|
446
491
|
/**
|
|
@@ -527,6 +572,22 @@ export interface Server {
|
|
|
527
572
|
* Optional configuration data passed to cloud-init.
|
|
528
573
|
*/
|
|
529
574
|
userData?: string;
|
|
575
|
+
/**
|
|
576
|
+
* Commitment subscribed for the server.
|
|
577
|
+
*/
|
|
578
|
+
commitment?: ServerCommitment;
|
|
579
|
+
/**
|
|
580
|
+
* Date on which the server will be deleted.
|
|
581
|
+
*/
|
|
582
|
+
scheduledDeletionAt?: Date;
|
|
583
|
+
/**
|
|
584
|
+
* True if a deletion is scheduled.
|
|
585
|
+
*/
|
|
586
|
+
scheduledDeletion: boolean;
|
|
587
|
+
/**
|
|
588
|
+
* The SRN of the server.
|
|
589
|
+
*/
|
|
590
|
+
srn: string;
|
|
530
591
|
}
|
|
531
592
|
export interface OS {
|
|
532
593
|
/**
|
|
@@ -601,6 +662,10 @@ export interface OS {
|
|
|
601
662
|
* Zone in which is the OS is available.
|
|
602
663
|
*/
|
|
603
664
|
zone: Zone;
|
|
665
|
+
/**
|
|
666
|
+
* The SRN of the OS.
|
|
667
|
+
*/
|
|
668
|
+
srn: string;
|
|
604
669
|
}
|
|
605
670
|
export interface Offer {
|
|
606
671
|
/**
|
|
@@ -703,6 +768,10 @@ export interface Offer {
|
|
|
703
768
|
* Exist only for hourly offers, to migrate to the monthly offer.
|
|
704
769
|
*/
|
|
705
770
|
monthlyOfferId?: string;
|
|
771
|
+
/**
|
|
772
|
+
* List all available commitments on the offer.
|
|
773
|
+
*/
|
|
774
|
+
commitmentsAvailable: OfferCommitment[];
|
|
706
775
|
/**
|
|
707
776
|
* Zone in which is the offer is available.
|
|
708
777
|
*/
|
|
@@ -711,6 +780,10 @@ export interface Offer {
|
|
|
711
780
|
* Describe the network topology of the offer.
|
|
712
781
|
*/
|
|
713
782
|
dualAttach?: boolean;
|
|
783
|
+
/**
|
|
784
|
+
* The SRN of the offer.
|
|
785
|
+
*/
|
|
786
|
+
srn: string;
|
|
714
787
|
}
|
|
715
788
|
export interface Option {
|
|
716
789
|
/**
|
|
@@ -755,6 +828,14 @@ export interface Option {
|
|
|
755
828
|
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
756
829
|
*/
|
|
757
830
|
certification?: CertificationOption;
|
|
831
|
+
/**
|
|
832
|
+
* Zone in which is the option is available.
|
|
833
|
+
*/
|
|
834
|
+
zone: Zone;
|
|
835
|
+
/**
|
|
836
|
+
* The SRN of the option.
|
|
837
|
+
*/
|
|
838
|
+
srn: string;
|
|
758
839
|
}
|
|
759
840
|
export interface ServerEvent {
|
|
760
841
|
/**
|
|
@@ -825,6 +906,14 @@ export interface Setting {
|
|
|
825
906
|
* Defines whether the setting is enabled.
|
|
826
907
|
*/
|
|
827
908
|
enabled: boolean;
|
|
909
|
+
/**
|
|
910
|
+
* Zone in which is the setting is located.
|
|
911
|
+
*/
|
|
912
|
+
zone: Zone;
|
|
913
|
+
/**
|
|
914
|
+
* The SRN of the setting.
|
|
915
|
+
*/
|
|
916
|
+
srn: string;
|
|
828
917
|
}
|
|
829
918
|
export type AddOptionServerRequest = {
|
|
830
919
|
/**
|
|
@@ -861,6 +950,18 @@ export interface BMCAccess {
|
|
|
861
950
|
* The date after which the BMC (Baseboard Management Controller) access will be closed.
|
|
862
951
|
*/
|
|
863
952
|
expiresAt?: Date;
|
|
953
|
+
/**
|
|
954
|
+
* ID of the server.
|
|
955
|
+
*/
|
|
956
|
+
serverId: string;
|
|
957
|
+
/**
|
|
958
|
+
* Zone in which the server is located.
|
|
959
|
+
*/
|
|
960
|
+
zone: Zone;
|
|
961
|
+
/**
|
|
962
|
+
* The SRN of the BMC access.
|
|
963
|
+
*/
|
|
964
|
+
srn: string;
|
|
864
965
|
}
|
|
865
966
|
export type BatchCreateServersRequest = {
|
|
866
967
|
/**
|
|
@@ -1426,6 +1527,14 @@ export type UpdateIPRequest = {
|
|
|
1426
1527
|
*/
|
|
1427
1528
|
reverse?: string;
|
|
1428
1529
|
};
|
|
1530
|
+
export type UpdateServerCommitmentRequest = {
|
|
1531
|
+
/**
|
|
1532
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1533
|
+
*/
|
|
1534
|
+
zone?: Zone;
|
|
1535
|
+
serverId: string;
|
|
1536
|
+
autoRenewal: boolean;
|
|
1537
|
+
};
|
|
1429
1538
|
export type UpdateServerRequest = {
|
|
1430
1539
|
/**
|
|
1431
1540
|
* Zone to target. If none is passed will use default zone from the config.
|
|
@@ -1455,6 +1564,10 @@ export type UpdateServerRequest = {
|
|
|
1455
1564
|
* Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
|
|
1456
1565
|
*/
|
|
1457
1566
|
userData?: string;
|
|
1567
|
+
/**
|
|
1568
|
+
* Set false to cancel the scheduled deletion of the server.
|
|
1569
|
+
*/
|
|
1570
|
+
scheduledDeletion?: boolean;
|
|
1458
1571
|
};
|
|
1459
1572
|
export type UpdateSettingRequest = {
|
|
1460
1573
|
/**
|
|
@@ -1470,6 +1583,14 @@ export type UpdateSettingRequest = {
|
|
|
1470
1583
|
*/
|
|
1471
1584
|
enabled?: boolean;
|
|
1472
1585
|
};
|
|
1586
|
+
export type UpgradeServerCommitmentRequest = {
|
|
1587
|
+
/**
|
|
1588
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1589
|
+
*/
|
|
1590
|
+
zone?: Zone;
|
|
1591
|
+
serverId: string;
|
|
1592
|
+
period?: CommitmentPeriod;
|
|
1593
|
+
};
|
|
1473
1594
|
export type ValidatePartitioningSchemaRequest = {
|
|
1474
1595
|
/**
|
|
1475
1596
|
* Zone to target. If none is passed will use default zone from the config.
|