@scaleway/sdk-baremetal 2.18.1 → 2.19.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.js +56 -14
- package/dist/v3/api.gen.js +8 -2
- package/package.json +4 -4
package/dist/v1/api.gen.js
CHANGED
|
@@ -27,28 +27,40 @@ var API$1 = class extends API {
|
|
|
27
27
|
this.waitForServer = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))), this.getServer, request, options);
|
|
28
28
|
this.createServer = (request, options) => this.client.fetch({
|
|
29
29
|
body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
|
|
30
|
-
headers:
|
|
30
|
+
headers: {
|
|
31
|
+
...jsonContentHeaders,
|
|
32
|
+
...options?.headers
|
|
33
|
+
},
|
|
31
34
|
method: "POST",
|
|
32
35
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`,
|
|
33
36
|
signal: options?.signal
|
|
34
37
|
}, unmarshalServer);
|
|
35
38
|
this.batchCreateServers = (request = {}, options) => this.client.fetch({
|
|
36
39
|
body: JSON.stringify(marshalBatchCreateServersRequest(request, this.client.settings)),
|
|
37
|
-
headers:
|
|
40
|
+
headers: {
|
|
41
|
+
...jsonContentHeaders,
|
|
42
|
+
...options?.headers
|
|
43
|
+
},
|
|
38
44
|
method: "POST",
|
|
39
45
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/batch-create-servers`,
|
|
40
46
|
signal: options?.signal
|
|
41
47
|
}, unmarshalBatchCreateServersResponse);
|
|
42
48
|
this.updateServer = (request, options) => this.client.fetch({
|
|
43
49
|
body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
|
|
44
|
-
headers:
|
|
50
|
+
headers: {
|
|
51
|
+
...jsonContentHeaders,
|
|
52
|
+
...options?.headers
|
|
53
|
+
},
|
|
45
54
|
method: "PATCH",
|
|
46
55
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`,
|
|
47
56
|
signal: options?.signal
|
|
48
57
|
}, unmarshalServer);
|
|
49
58
|
this.installServer = async (request, options) => this.client.fetch({
|
|
50
59
|
body: JSON.stringify(await marshalInstallServerRequest(request, this.client.settings)),
|
|
51
|
-
headers:
|
|
60
|
+
headers: {
|
|
61
|
+
...jsonContentHeaders,
|
|
62
|
+
...options?.headers
|
|
63
|
+
},
|
|
52
64
|
method: "POST",
|
|
53
65
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/install`,
|
|
54
66
|
signal: options?.signal
|
|
@@ -65,21 +77,30 @@ var API$1 = class extends API {
|
|
|
65
77
|
}, unmarshalServer);
|
|
66
78
|
this.rebootServer = (request, options) => this.client.fetch({
|
|
67
79
|
body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
|
|
68
|
-
headers:
|
|
80
|
+
headers: {
|
|
81
|
+
...jsonContentHeaders,
|
|
82
|
+
...options?.headers
|
|
83
|
+
},
|
|
69
84
|
method: "POST",
|
|
70
85
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/reboot`,
|
|
71
86
|
signal: options?.signal
|
|
72
87
|
}, unmarshalServer);
|
|
73
88
|
this.startServer = (request, options) => this.client.fetch({
|
|
74
89
|
body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
|
|
75
|
-
headers:
|
|
90
|
+
headers: {
|
|
91
|
+
...jsonContentHeaders,
|
|
92
|
+
...options?.headers
|
|
93
|
+
},
|
|
76
94
|
method: "POST",
|
|
77
95
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/start`,
|
|
78
96
|
signal: options?.signal
|
|
79
97
|
}, unmarshalServer);
|
|
80
98
|
this.stopServer = (request, options) => this.client.fetch({
|
|
81
99
|
body: "{}",
|
|
82
|
-
headers:
|
|
100
|
+
headers: {
|
|
101
|
+
...jsonContentHeaders,
|
|
102
|
+
...options?.headers
|
|
103
|
+
},
|
|
83
104
|
method: "POST",
|
|
84
105
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/stop`,
|
|
85
106
|
signal: options?.signal
|
|
@@ -99,14 +120,20 @@ var API$1 = class extends API {
|
|
|
99
120
|
}, unmarshalSchema);
|
|
100
121
|
this.validatePartitioningSchema = (request, options) => this.client.fetch({
|
|
101
122
|
body: JSON.stringify(marshalValidatePartitioningSchemaRequest(request, this.client.settings)),
|
|
102
|
-
headers:
|
|
123
|
+
headers: {
|
|
124
|
+
...jsonContentHeaders,
|
|
125
|
+
...options?.headers
|
|
126
|
+
},
|
|
103
127
|
method: "POST",
|
|
104
128
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/partitioning-schemas/validate`,
|
|
105
129
|
signal: options?.signal
|
|
106
130
|
});
|
|
107
131
|
this.startBMCAccess = (request, options) => this.client.fetch({
|
|
108
132
|
body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
|
|
109
|
-
headers:
|
|
133
|
+
headers: {
|
|
134
|
+
...jsonContentHeaders,
|
|
135
|
+
...options?.headers
|
|
136
|
+
},
|
|
110
137
|
method: "POST",
|
|
111
138
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/bmc-access`,
|
|
112
139
|
signal: options?.signal
|
|
@@ -123,14 +150,20 @@ var API$1 = class extends API {
|
|
|
123
150
|
});
|
|
124
151
|
this.updateIP = (request, options) => this.client.fetch({
|
|
125
152
|
body: JSON.stringify(marshalUpdateIPRequest(request, this.client.settings)),
|
|
126
|
-
headers:
|
|
153
|
+
headers: {
|
|
154
|
+
...jsonContentHeaders,
|
|
155
|
+
...options?.headers
|
|
156
|
+
},
|
|
127
157
|
method: "PATCH",
|
|
128
158
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
129
159
|
signal: options?.signal
|
|
130
160
|
}, unmarshalIP);
|
|
131
161
|
this.addOptionServer = (request, options) => this.client.fetch({
|
|
132
162
|
body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
|
|
133
|
-
headers:
|
|
163
|
+
headers: {
|
|
164
|
+
...jsonContentHeaders,
|
|
165
|
+
...options?.headers
|
|
166
|
+
},
|
|
134
167
|
method: "POST",
|
|
135
168
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/options/${validatePathParam("optionId", request.optionId)}`,
|
|
136
169
|
signal: options?.signal
|
|
@@ -178,7 +211,10 @@ var API$1 = class extends API {
|
|
|
178
211
|
this.listSettings = (request = {}, options) => enrichForPagination("settings", this.pageOfListSettings, request, options);
|
|
179
212
|
this.updateSetting = (request, options) => this.client.fetch({
|
|
180
213
|
body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
|
|
181
|
-
headers:
|
|
214
|
+
headers: {
|
|
215
|
+
...jsonContentHeaders,
|
|
216
|
+
...options?.headers
|
|
217
|
+
},
|
|
182
218
|
method: "PATCH",
|
|
183
219
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/settings/${validatePathParam("settingId", request.settingId)}`,
|
|
184
220
|
signal: options?.signal
|
|
@@ -215,14 +251,20 @@ var PrivateNetworkAPI = class extends API {
|
|
|
215
251
|
super(..._args2);
|
|
216
252
|
this.addServerPrivateNetwork = (request, options) => this.client.fetch({
|
|
217
253
|
body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
|
|
218
|
-
headers:
|
|
254
|
+
headers: {
|
|
255
|
+
...jsonContentHeaders,
|
|
256
|
+
...options?.headers
|
|
257
|
+
},
|
|
219
258
|
method: "POST",
|
|
220
259
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private-networks`,
|
|
221
260
|
signal: options?.signal
|
|
222
261
|
}, unmarshalServerPrivateNetwork);
|
|
223
262
|
this.setServerPrivateNetworks = (request, options) => this.client.fetch({
|
|
224
263
|
body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
|
|
225
|
-
headers:
|
|
264
|
+
headers: {
|
|
265
|
+
...jsonContentHeaders,
|
|
266
|
+
...options?.headers
|
|
267
|
+
},
|
|
226
268
|
method: "PUT",
|
|
227
269
|
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private-networks`,
|
|
228
270
|
signal: options?.signal
|
package/dist/v3/api.gen.js
CHANGED
|
@@ -11,14 +11,20 @@ var PrivateNetworkAPI = class extends API {
|
|
|
11
11
|
super(..._args);
|
|
12
12
|
this.addServerPrivateNetwork = (request, options) => this.client.fetch({
|
|
13
13
|
body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
|
|
14
|
-
headers:
|
|
14
|
+
headers: {
|
|
15
|
+
...jsonContentHeaders,
|
|
16
|
+
...options?.headers
|
|
17
|
+
},
|
|
15
18
|
method: "POST",
|
|
16
19
|
path: `/baremetal/v3/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private-networks`,
|
|
17
20
|
signal: options?.signal
|
|
18
21
|
}, unmarshalServerPrivateNetwork);
|
|
19
22
|
this.setServerPrivateNetworks = (request, options) => this.client.fetch({
|
|
20
23
|
body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
|
|
21
|
-
headers:
|
|
24
|
+
headers: {
|
|
25
|
+
...jsonContentHeaders,
|
|
26
|
+
...options?.headers
|
|
27
|
+
},
|
|
22
28
|
method: "PUT",
|
|
23
29
|
path: `/baremetal/v3/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private-networks`,
|
|
24
30
|
signal: options?.signal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-baremetal",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
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.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@repo/configs": "^0.1.1",
|
|
40
|
-
"@scaleway/sdk-client": "^2.
|
|
40
|
+
"@scaleway/sdk-client": "^2.16.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@scaleway/sdk-client": "^2.
|
|
43
|
+
"@scaleway/sdk-client": "^2.16.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"package:check": "pnpm publint",
|