@scaleway/sdk-baremetal 2.17.1 → 2.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v1/marshalling.gen.js +8 -0
- package/dist/v1/types.gen.d.ts +32 -0
- package/package.json +4 -4
|
@@ -91,6 +91,8 @@ const unmarshalServerInstall = (data) => {
|
|
|
91
91
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`);
|
|
92
92
|
return {
|
|
93
93
|
hostname: data.hostname,
|
|
94
|
+
networkBootPersistent: data.network_boot_persistent,
|
|
95
|
+
networkBootUrl: data.network_boot_url,
|
|
94
96
|
osId: data.os_id,
|
|
95
97
|
partitioningSchema: data.partitioning_schema ? unmarshalSchema(data.partitioning_schema) : void 0,
|
|
96
98
|
serviceUrl: data.service_url,
|
|
@@ -168,6 +170,8 @@ const unmarshalOS = (data) => {
|
|
|
168
170
|
licenseRequired: data.license_required,
|
|
169
171
|
logoUrl: data.logo_url,
|
|
170
172
|
name: data.name,
|
|
173
|
+
networkBoot: data.network_boot ? unmarshalOSOSField(data.network_boot) : void 0,
|
|
174
|
+
networkBootPersistentEditable: data.network_boot_persistent_editable,
|
|
171
175
|
password: data.password ? unmarshalOSOSField(data.password) : void 0,
|
|
172
176
|
servicePassword: data.service_password ? unmarshalOSOSField(data.service_password) : void 0,
|
|
173
177
|
serviceUser: data.service_user ? unmarshalOSOSField(data.service_user) : void 0,
|
|
@@ -425,6 +429,8 @@ const marshalSchema = (request, defaults) => ({
|
|
|
425
429
|
});
|
|
426
430
|
const marshalCreateServerRequestInstall = (request, defaults) => ({
|
|
427
431
|
hostname: request.hostname,
|
|
432
|
+
network_boot_persistent: request.networkBootPersistent,
|
|
433
|
+
network_boot_url: request.networkBootUrl,
|
|
428
434
|
os_id: request.osId,
|
|
429
435
|
partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema, defaults) : void 0,
|
|
430
436
|
password: request.password,
|
|
@@ -464,6 +470,8 @@ const marshalBatchCreateServersRequest = (request, defaults) => ({
|
|
|
464
470
|
});
|
|
465
471
|
const marshalInstallServerRequest = async (request, defaults) => ({
|
|
466
472
|
hostname: request.hostname,
|
|
473
|
+
network_boot_persistent: request.networkBootPersistent,
|
|
474
|
+
network_boot_url: request.networkBootUrl,
|
|
467
475
|
os_id: request.osId,
|
|
468
476
|
partitioning_schema: request.partitioningSchema !== void 0 ? marshalSchema(request.partitioningSchema, defaults) : void 0,
|
|
469
477
|
password: request.password,
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -100,6 +100,14 @@ export interface CreateServerRequestInstall {
|
|
|
100
100
|
* Partitioning schema.
|
|
101
101
|
*/
|
|
102
102
|
partitioningSchema?: Schema;
|
|
103
|
+
/**
|
|
104
|
+
* URL of the network service to which the server should forward its boot request.
|
|
105
|
+
*/
|
|
106
|
+
networkBootUrl?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Defines whether the network boot forwarding should be applied at every reboot or only once.
|
|
109
|
+
*/
|
|
110
|
+
networkBootPersistent?: boolean;
|
|
103
111
|
}
|
|
104
112
|
export interface IP {
|
|
105
113
|
/**
|
|
@@ -160,6 +168,14 @@ export interface ServerInstall {
|
|
|
160
168
|
* Partitioning schema.
|
|
161
169
|
*/
|
|
162
170
|
partitioningSchema?: Schema;
|
|
171
|
+
/**
|
|
172
|
+
* URL of the network service to which the server should forward its boot request.
|
|
173
|
+
*/
|
|
174
|
+
networkBootUrl: string;
|
|
175
|
+
/**
|
|
176
|
+
* Defines whether the network boot forwarding should be applied at every reboot or only once.
|
|
177
|
+
*/
|
|
178
|
+
networkBootPersistent: boolean;
|
|
163
179
|
}
|
|
164
180
|
export interface ServerOption {
|
|
165
181
|
/**
|
|
@@ -573,6 +589,14 @@ export interface OS {
|
|
|
573
589
|
* Defines the cloud-init API version used by this OS.
|
|
574
590
|
*/
|
|
575
591
|
cloudInitVersion?: string;
|
|
592
|
+
/**
|
|
593
|
+
* Object defining the network boot requirements for booting server.
|
|
594
|
+
*/
|
|
595
|
+
networkBoot?: OSOSField;
|
|
596
|
+
/**
|
|
597
|
+
* Defines if the network boot can be persisted or not.
|
|
598
|
+
*/
|
|
599
|
+
networkBootPersistentEditable: boolean;
|
|
576
600
|
/**
|
|
577
601
|
* Zone in which is the OS is available.
|
|
578
602
|
*/
|
|
@@ -1004,6 +1028,14 @@ export type InstallServerRequest = {
|
|
|
1004
1028
|
* @deprecated Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
|
|
1005
1029
|
*/
|
|
1006
1030
|
userData?: Blob;
|
|
1031
|
+
/**
|
|
1032
|
+
* URL of the network service to which the server should forward its boot request.
|
|
1033
|
+
*/
|
|
1034
|
+
networkBootUrl?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Defines whether the network boot forwarding should be applied at every reboot or only once.
|
|
1037
|
+
*/
|
|
1038
|
+
networkBootPersistent?: boolean;
|
|
1007
1039
|
};
|
|
1008
1040
|
export type ListOSRequest = {
|
|
1009
1041
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-baremetal",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.1",
|
|
4
4
|
"description": "Scaleway SDK baremetal",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.9.
|
|
36
|
+
"@scaleway/sdk-std": "2.9.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@repo/configs": "^0.1.1",
|
|
40
|
-
"@scaleway/sdk-client": "^2.
|
|
40
|
+
"@scaleway/sdk-client": "^2.15.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@scaleway/sdk-client": "^2.
|
|
43
|
+
"@scaleway/sdk-client": "^2.15.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"package:check": "pnpm publint",
|