@scaleway/sdk-baremetal 1.1.0 → 1.3.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/index.gen.d.ts +2 -2
- package/dist/v1/api.gen.cjs +2 -2
- package/dist/v1/api.gen.d.ts +4 -4
- package/dist/v1/api.gen.js +2 -2
- package/dist/v1/content.gen.d.ts +1 -1
- package/dist/v1/index.gen.d.ts +5 -5
- package/dist/v1/marshalling.gen.cjs +13 -5
- package/dist/v1/marshalling.gen.d.ts +2 -2
- package/dist/v1/marshalling.gen.js +14 -6
- package/dist/v1/types.gen.d.ts +32 -0
- package/dist/v3/api.gen.d.ts +2 -2
- package/dist/v3/content.gen.d.ts +1 -1
- package/dist/v3/index.gen.d.ts +4 -4
- package/dist/v3/marshalling.gen.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.gen.d.ts
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* This file is automatically generated
|
|
3
3
|
* PLEASE DO NOT EDIT HERE
|
|
4
4
|
*/
|
|
5
|
-
export * as Baremetalv1 from './v1/index.gen';
|
|
6
|
-
export * as Baremetalv3 from './v3/index.gen';
|
|
5
|
+
export * as Baremetalv1 from './v1/index.gen.js';
|
|
6
|
+
export * as Baremetalv3 from './v3/index.gen.js';
|
package/dist/v1/api.gen.cjs
CHANGED
|
@@ -117,10 +117,10 @@ class API extends sdkClient.API {
|
|
|
117
117
|
* @param request - The request {@link InstallServerRequest}
|
|
118
118
|
* @returns A Promise of Server
|
|
119
119
|
*/
|
|
120
|
-
installServer = (request) => this.client.fetch(
|
|
120
|
+
installServer = async (request) => this.client.fetch(
|
|
121
121
|
{
|
|
122
122
|
body: JSON.stringify(
|
|
123
|
-
marshalling_gen.marshalInstallServerRequest(request, this.client.settings)
|
|
123
|
+
await marshalling_gen.marshalInstallServerRequest(request, this.client.settings)
|
|
124
124
|
),
|
|
125
125
|
headers: jsonContentHeaders,
|
|
126
126
|
method: "POST",
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
2
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
-
import type {
|
|
2
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
+
import type { AddOptionServerRequest, BMCAccess, 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, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Elastic Metal API.
|
|
6
6
|
|
|
@@ -102,8 +102,8 @@ export declare class API extends ParentAPI {
|
|
|
102
102
|
* @returns A Promise of ListServerEventsResponse
|
|
103
103
|
*/
|
|
104
104
|
listServerEvents: (request: Readonly<ListServerEventsRequest>) => Promise<ListServerEventsResponse> & {
|
|
105
|
-
all: () => Promise<import("./types.gen").ServerEvent[]>;
|
|
106
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").ServerEvent[], void, void>;
|
|
105
|
+
all: () => Promise<import("./types.gen.js").ServerEvent[]>;
|
|
106
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").ServerEvent[], void, void>;
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* Get default partitioning schema. Get the default partitioning schema for the given offer ID and OS ID.
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -115,10 +115,10 @@ class API extends API$1 {
|
|
|
115
115
|
* @param request - The request {@link InstallServerRequest}
|
|
116
116
|
* @returns A Promise of Server
|
|
117
117
|
*/
|
|
118
|
-
installServer = (request) => this.client.fetch(
|
|
118
|
+
installServer = async (request) => this.client.fetch(
|
|
119
119
|
{
|
|
120
120
|
body: JSON.stringify(
|
|
121
|
-
marshalInstallServerRequest(request, this.client.settings)
|
|
121
|
+
await marshalInstallServerRequest(request, this.client.settings)
|
|
122
122
|
),
|
|
123
123
|
headers: jsonContentHeaders,
|
|
124
124
|
method: "POST",
|
package/dist/v1/content.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServerInstallStatus, ServerPrivateNetworkStatus, ServerStatus } from './types.gen';
|
|
1
|
+
import type { ServerInstallStatus, ServerPrivateNetworkStatus, ServerStatus } from './types.gen.js';
|
|
2
2
|
/** Lists transient statutes of the enum {@link ServerInstallStatus}. */
|
|
3
3
|
export declare const SERVER_INSTALL_TRANSIENT_STATUSES: ServerInstallStatus[];
|
|
4
4
|
/** Lists transient statutes of the enum {@link ServerPrivateNetworkStatus}. */
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { API, PrivateNetworkAPI, } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
3
|
-
export * from './marshalling.gen';
|
|
4
|
-
export type { AddOptionServerRequest, BMCAccess,
|
|
5
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
1
|
+
export { API, PrivateNetworkAPI, } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export * from './marshalling.gen.js';
|
|
4
|
+
export type { AddOptionServerRequest, BMCAccess, 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, 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';
|
|
5
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -226,6 +226,7 @@ const unmarshalServer = (data) => {
|
|
|
226
226
|
status: data.status,
|
|
227
227
|
tags: data.tags,
|
|
228
228
|
updatedAt: sdkClient.unmarshalDate(data.updated_at),
|
|
229
|
+
userData: data.user_data,
|
|
229
230
|
zone: data.zone
|
|
230
231
|
};
|
|
231
232
|
};
|
|
@@ -249,6 +250,8 @@ const unmarshalOS = (data) => {
|
|
|
249
250
|
}
|
|
250
251
|
return {
|
|
251
252
|
allowed: data.allowed,
|
|
253
|
+
cloudInitSupported: data.cloud_init_supported,
|
|
254
|
+
cloudInitVersion: data.cloud_init_version,
|
|
252
255
|
customPartitioningSupported: data.custom_partitioning_supported,
|
|
253
256
|
enabled: data.enabled,
|
|
254
257
|
id: data.id,
|
|
@@ -260,7 +263,8 @@ const unmarshalOS = (data) => {
|
|
|
260
263
|
serviceUser: data.service_user ? unmarshalOSOSField(data.service_user) : void 0,
|
|
261
264
|
ssh: data.ssh ? unmarshalOSOSField(data.ssh) : void 0,
|
|
262
265
|
user: data.user ? unmarshalOSOSField(data.user) : void 0,
|
|
263
|
-
version: data.version
|
|
266
|
+
version: data.version,
|
|
267
|
+
zone: data.zone
|
|
264
268
|
};
|
|
265
269
|
};
|
|
266
270
|
const unmarshalCPU = (data) => {
|
|
@@ -393,7 +397,8 @@ const unmarshalOffer = (data) => {
|
|
|
393
397
|
sharedBandwidth: data.shared_bandwidth,
|
|
394
398
|
stock: data.stock,
|
|
395
399
|
subscriptionPeriod: data.subscription_period,
|
|
396
|
-
tags: data.tags
|
|
400
|
+
tags: data.tags,
|
|
401
|
+
zone: data.zone
|
|
397
402
|
};
|
|
398
403
|
};
|
|
399
404
|
const unmarshalOption = (data) => {
|
|
@@ -630,6 +635,7 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
630
635
|
option_ids: request.optionIds,
|
|
631
636
|
protected: request.protected,
|
|
632
637
|
tags: request.tags,
|
|
638
|
+
user_data: request.userData,
|
|
633
639
|
...sdkClient.resolveOneOf([
|
|
634
640
|
{
|
|
635
641
|
default: defaults.defaultProjectId,
|
|
@@ -646,7 +652,7 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
646
652
|
const marshalAddOptionServerRequest = (request, defaults) => ({
|
|
647
653
|
expires_at: request.expiresAt
|
|
648
654
|
});
|
|
649
|
-
const marshalInstallServerRequest = (request, defaults) => ({
|
|
655
|
+
const marshalInstallServerRequest = async (request, defaults) => ({
|
|
650
656
|
hostname: request.hostname,
|
|
651
657
|
os_id: request.osId,
|
|
652
658
|
partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema) : void 0,
|
|
@@ -654,7 +660,8 @@ const marshalInstallServerRequest = (request, defaults) => ({
|
|
|
654
660
|
service_password: request.servicePassword,
|
|
655
661
|
service_user: request.serviceUser,
|
|
656
662
|
ssh_key_ids: request.sshKeyIds,
|
|
657
|
-
user: request.user
|
|
663
|
+
user: request.user,
|
|
664
|
+
user_data: request.userData !== void 0 ? await sdkClient.marshalBlobToScwFile(request.userData) : void 0
|
|
658
665
|
});
|
|
659
666
|
const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({
|
|
660
667
|
private_network_id: request.privateNetworkId
|
|
@@ -680,7 +687,8 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
680
687
|
description: request.description,
|
|
681
688
|
name: request.name,
|
|
682
689
|
protected: request.protected,
|
|
683
|
-
tags: request.tags
|
|
690
|
+
tags: request.tags,
|
|
691
|
+
user_data: request.userData
|
|
684
692
|
});
|
|
685
693
|
const marshalUpdateSettingRequest = (request, defaults) => ({
|
|
686
694
|
enabled: request.enabled
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { AddOptionServerRequest, BMCAccess, CreateServerRequest, GetServerMetricsResponse, InstallServerRequest,
|
|
2
|
+
import type { AddOptionServerRequest, BMCAccess, 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';
|
|
3
3
|
export declare const unmarshalSchema: (data: unknown) => Schema;
|
|
4
4
|
export declare const unmarshalIP: (data: unknown) => IP;
|
|
5
5
|
export declare const unmarshalServer: (data: unknown) => Server;
|
|
@@ -21,7 +21,7 @@ export declare const unmarshalSetServerPrivateNetworksResponse: (data: unknown)
|
|
|
21
21
|
export declare const marshalSchema: (request: Schema, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
22
|
export declare const marshalCreateServerRequest: (request: CreateServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
23
|
export declare const marshalAddOptionServerRequest: (request: AddOptionServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
|
-
export declare const marshalInstallServerRequest: (request: InstallServerRequest, defaults: DefaultValues) => Record<string, unknown
|
|
24
|
+
export declare const marshalInstallServerRequest: (request: InstallServerRequest, defaults: DefaultValues) => Promise<Record<string, unknown>>;
|
|
25
25
|
export declare const marshalPrivateNetworkApiAddServerPrivateNetworkRequest: (request: PrivateNetworkApiAddServerPrivateNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
26
|
export declare const marshalPrivateNetworkApiSetServerPrivateNetworksRequest: (request: PrivateNetworkApiSetServerPrivateNetworksRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
27
27
|
export declare const marshalRebootServerRequest: (request: RebootServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveOneOf, isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalTimeSeries, unmarshalMoney } from "@scaleway/sdk-client";
|
|
1
|
+
import { resolveOneOf, marshalBlobToScwFile, isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalTimeSeries, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
2
|
const unmarshalSchemaPartition = (data) => {
|
|
3
3
|
if (!isJSONObject(data)) {
|
|
4
4
|
throw new TypeError(
|
|
@@ -224,6 +224,7 @@ const unmarshalServer = (data) => {
|
|
|
224
224
|
status: data.status,
|
|
225
225
|
tags: data.tags,
|
|
226
226
|
updatedAt: unmarshalDate(data.updated_at),
|
|
227
|
+
userData: data.user_data,
|
|
227
228
|
zone: data.zone
|
|
228
229
|
};
|
|
229
230
|
};
|
|
@@ -247,6 +248,8 @@ const unmarshalOS = (data) => {
|
|
|
247
248
|
}
|
|
248
249
|
return {
|
|
249
250
|
allowed: data.allowed,
|
|
251
|
+
cloudInitSupported: data.cloud_init_supported,
|
|
252
|
+
cloudInitVersion: data.cloud_init_version,
|
|
250
253
|
customPartitioningSupported: data.custom_partitioning_supported,
|
|
251
254
|
enabled: data.enabled,
|
|
252
255
|
id: data.id,
|
|
@@ -258,7 +261,8 @@ const unmarshalOS = (data) => {
|
|
|
258
261
|
serviceUser: data.service_user ? unmarshalOSOSField(data.service_user) : void 0,
|
|
259
262
|
ssh: data.ssh ? unmarshalOSOSField(data.ssh) : void 0,
|
|
260
263
|
user: data.user ? unmarshalOSOSField(data.user) : void 0,
|
|
261
|
-
version: data.version
|
|
264
|
+
version: data.version,
|
|
265
|
+
zone: data.zone
|
|
262
266
|
};
|
|
263
267
|
};
|
|
264
268
|
const unmarshalCPU = (data) => {
|
|
@@ -391,7 +395,8 @@ const unmarshalOffer = (data) => {
|
|
|
391
395
|
sharedBandwidth: data.shared_bandwidth,
|
|
392
396
|
stock: data.stock,
|
|
393
397
|
subscriptionPeriod: data.subscription_period,
|
|
394
|
-
tags: data.tags
|
|
398
|
+
tags: data.tags,
|
|
399
|
+
zone: data.zone
|
|
395
400
|
};
|
|
396
401
|
};
|
|
397
402
|
const unmarshalOption = (data) => {
|
|
@@ -628,6 +633,7 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
628
633
|
option_ids: request.optionIds,
|
|
629
634
|
protected: request.protected,
|
|
630
635
|
tags: request.tags,
|
|
636
|
+
user_data: request.userData,
|
|
631
637
|
...resolveOneOf([
|
|
632
638
|
{
|
|
633
639
|
default: defaults.defaultProjectId,
|
|
@@ -644,7 +650,7 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
644
650
|
const marshalAddOptionServerRequest = (request, defaults) => ({
|
|
645
651
|
expires_at: request.expiresAt
|
|
646
652
|
});
|
|
647
|
-
const marshalInstallServerRequest = (request, defaults) => ({
|
|
653
|
+
const marshalInstallServerRequest = async (request, defaults) => ({
|
|
648
654
|
hostname: request.hostname,
|
|
649
655
|
os_id: request.osId,
|
|
650
656
|
partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema) : void 0,
|
|
@@ -652,7 +658,8 @@ const marshalInstallServerRequest = (request, defaults) => ({
|
|
|
652
658
|
service_password: request.servicePassword,
|
|
653
659
|
service_user: request.serviceUser,
|
|
654
660
|
ssh_key_ids: request.sshKeyIds,
|
|
655
|
-
user: request.user
|
|
661
|
+
user: request.user,
|
|
662
|
+
user_data: request.userData !== void 0 ? await marshalBlobToScwFile(request.userData) : void 0
|
|
656
663
|
});
|
|
657
664
|
const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({
|
|
658
665
|
private_network_id: request.privateNetworkId
|
|
@@ -678,7 +685,8 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
678
685
|
description: request.description,
|
|
679
686
|
name: request.name,
|
|
680
687
|
protected: request.protected,
|
|
681
|
-
tags: request.tags
|
|
688
|
+
tags: request.tags,
|
|
689
|
+
user_data: request.userData
|
|
682
690
|
});
|
|
683
691
|
const marshalUpdateSettingRequest = (request, defaults) => ({
|
|
684
692
|
enabled: request.enabled
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -412,6 +412,10 @@ export type CreateServerRequest = {
|
|
|
412
412
|
* If enabled, the server can not be deleted.
|
|
413
413
|
*/
|
|
414
414
|
protected: boolean;
|
|
415
|
+
/**
|
|
416
|
+
* Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
|
|
417
|
+
*/
|
|
418
|
+
userData?: string;
|
|
415
419
|
};
|
|
416
420
|
export interface Server {
|
|
417
421
|
/**
|
|
@@ -494,6 +498,10 @@ export interface Server {
|
|
|
494
498
|
* If enabled, the server can not be deleted.
|
|
495
499
|
*/
|
|
496
500
|
protected: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* Optional configuration data passed to cloud-init.
|
|
503
|
+
*/
|
|
504
|
+
userData?: string;
|
|
497
505
|
}
|
|
498
506
|
export interface OS {
|
|
499
507
|
/**
|
|
@@ -548,6 +556,18 @@ export interface OS {
|
|
|
548
556
|
* Defines if custom partitioning is supported by this OS.
|
|
549
557
|
*/
|
|
550
558
|
customPartitioningSupported: boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Defines if cloud-init is supported by this OS.
|
|
561
|
+
*/
|
|
562
|
+
cloudInitSupported: boolean;
|
|
563
|
+
/**
|
|
564
|
+
* Defines the cloud-init API version used by this OS.
|
|
565
|
+
*/
|
|
566
|
+
cloudInitVersion?: string;
|
|
567
|
+
/**
|
|
568
|
+
* Zone in which is the OS is available.
|
|
569
|
+
*/
|
|
570
|
+
zone: ScwZone;
|
|
551
571
|
}
|
|
552
572
|
export interface Offer {
|
|
553
573
|
/**
|
|
@@ -650,6 +670,10 @@ export interface Offer {
|
|
|
650
670
|
* Exist only for hourly offers, to migrate to the monthly offer.
|
|
651
671
|
*/
|
|
652
672
|
monthlyOfferId?: string;
|
|
673
|
+
/**
|
|
674
|
+
* Zone in which is the offer is available.
|
|
675
|
+
*/
|
|
676
|
+
zone: ScwZone;
|
|
653
677
|
}
|
|
654
678
|
export interface Option {
|
|
655
679
|
/**
|
|
@@ -946,6 +970,10 @@ export type InstallServerRequest = {
|
|
|
946
970
|
* Partitioning schema.
|
|
947
971
|
*/
|
|
948
972
|
partitioningSchema?: Schema;
|
|
973
|
+
/**
|
|
974
|
+
* @deprecated Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
|
|
975
|
+
*/
|
|
976
|
+
userData?: Blob;
|
|
949
977
|
};
|
|
950
978
|
export type ListOSRequest = {
|
|
951
979
|
/**
|
|
@@ -1361,6 +1389,10 @@ export type UpdateServerRequest = {
|
|
|
1361
1389
|
* If enabled, the server can not be deleted.
|
|
1362
1390
|
*/
|
|
1363
1391
|
protected?: boolean;
|
|
1392
|
+
/**
|
|
1393
|
+
* Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
|
|
1394
|
+
*/
|
|
1395
|
+
userData?: string;
|
|
1364
1396
|
};
|
|
1365
1397
|
export type UpdateSettingRequest = {
|
|
1366
1398
|
/**
|
package/dist/v3/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ApiLocality } from '@scaleway/sdk-client';
|
|
2
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
-
import type {
|
|
2
|
+
import type { ApiLocality } from '@scaleway/sdk-client';
|
|
3
|
+
import type { ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, SetServerPrivateNetworksResponse } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Elastic Metal - Private Networks API.
|
|
6
6
|
*/
|
package/dist/v3/content.gen.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ServerPrivateNetworkStatus } from './types.gen';
|
|
1
|
+
import type { ServerPrivateNetworkStatus } from './types.gen.js';
|
|
2
2
|
/** Lists transient statutes of the enum {@link ServerPrivateNetworkStatus}. */
|
|
3
3
|
export declare const SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: ServerPrivateNetworkStatus[];
|
package/dist/v3/index.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PrivateNetworkAPI } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
3
|
-
export * from './marshalling.gen';
|
|
4
|
-
export type { ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, ServerPrivateNetworkStatus, SetServerPrivateNetworksResponse, } from './types.gen';
|
|
1
|
+
export { PrivateNetworkAPI } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export * from './marshalling.gen.js';
|
|
4
|
+
export type { ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, ServerPrivateNetworkStatus, SetServerPrivateNetworksResponse, } from './types.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, SetServerPrivateNetworksResponse } from './types.gen';
|
|
2
|
+
import type { ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, SetServerPrivateNetworksResponse } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalServerPrivateNetwork: (data: unknown) => ServerPrivateNetwork;
|
|
4
4
|
export declare const unmarshalListServerPrivateNetworksResponse: (data: unknown) => ListServerPrivateNetworksResponse;
|
|
5
5
|
export declare const unmarshalSetServerPrivateNetworksResponse: (data: unknown) => SetServerPrivateNetworksResponse;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-baremetal",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Scaleway SDK baremetal",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.2",
|
|
33
|
-
"@scaleway/sdk-std": "1.0
|
|
33
|
+
"@scaleway/sdk-std": "1.2.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.3.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.3.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|