@scaleway/sdk-baremetal 2.14.0 → 2.15.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/LICENSE +191 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -6
- package/dist/index.gen.d.ts +3 -6
- package/dist/index.gen.js +2 -1
- package/dist/metadata.gen.d.ts +7 -5
- package/dist/metadata.gen.js +2 -1
- package/dist/v1/api.gen.d.ts +276 -274
- package/dist/v1/api.gen.js +6 -4
- package/dist/v1/constants.gen.d.ts +3 -1
- package/dist/v1/constants.gen.js +2 -1
- package/dist/v1/content.gen.d.ts +3 -1
- package/dist/v1/content.gen.js +2 -1
- package/dist/v1/index.gen.d.ts +11 -6
- package/dist/v1/index.gen.js +3 -1
- package/dist/v1/marshalling.gen.d.ts +4 -2
- package/dist/v1/marshalling.gen.js +3 -1
- package/dist/v1/metadata.gen.d.ts +172 -170
- package/dist/v1/metadata.gen.js +2 -1
- package/dist/v1/types.gen.d.ts +1286 -1286
- package/dist/v1/validation-rules.gen.d.ts +95 -90
- package/dist/v1/validation-rules.gen.js +3 -1
- package/dist/v3/api.gen.d.ts +41 -40
- package/dist/v3/api.gen.js +3 -1
- package/dist/v3/constants.gen.d.ts +3 -1
- package/dist/v3/constants.gen.js +2 -1
- package/dist/v3/content.gen.d.ts +3 -1
- package/dist/v3/content.gen.js +2 -1
- package/dist/v3/index.gen.d.ts +10 -5
- package/dist/v3/index.gen.js +3 -1
- package/dist/v3/marshalling.gen.d.ts +4 -2
- package/dist/v3/marshalling.gen.js +3 -1
- package/dist/v3/metadata.gen.d.ts +21 -19
- package/dist/v3/metadata.gen.js +2 -1
- package/dist/v3/types.gen.d.ts +118 -116
- package/package.json +5 -7
- package/dist/.vite/license.md +0 -3
- package/dist/v1/types.gen.js +0 -0
- package/dist/v3/types.gen.js +0 -0
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
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";
|
|
2
|
+
import { API, ApiLocality, WaitForOptions } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v1/api.gen.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Elastic Metal API.
|
|
6
6
|
|
|
7
7
|
This API allows you to manage your Elastic Metal servers.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
9
|
+
declare class API$1 extends API {
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static readonly LOCALITY: ApiLocality;
|
|
15
|
+
protected pageOfListServers: (request?: Readonly<ListServersRequest>) => Promise<ListServersResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* List Elastic Metal servers for an Organization. List Elastic Metal servers for a specific Organization.
|
|
18
|
+
*
|
|
19
|
+
* @param request - The request {@link ListServersRequest}
|
|
20
|
+
* @returns A Promise of ListServersResponse
|
|
21
|
+
*/
|
|
22
|
+
listServers: (request?: Readonly<ListServersRequest>) => Promise<ListServersResponse> & {
|
|
23
|
+
all: () => Promise<Server[]>;
|
|
24
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Server[], void, void>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Get a specific Elastic Metal server. Get full details of an existing Elastic Metal server associated with the ID.
|
|
28
|
+
*
|
|
29
|
+
* @param request - The request {@link GetServerRequest}
|
|
30
|
+
* @returns A Promise of Server
|
|
31
|
+
*/
|
|
32
|
+
getServer: (request: Readonly<GetServerRequest>) => Promise<Server>;
|
|
33
|
+
/**
|
|
34
|
+
* Waits for {@link Server} to be in a final state.
|
|
35
|
+
*
|
|
36
|
+
* @param request - The request {@link GetServerRequest}
|
|
37
|
+
* @param options - The waiting options
|
|
38
|
+
* @returns A Promise of Server
|
|
39
|
+
*/
|
|
40
|
+
waitForServer: (request: Readonly<GetServerRequest>, options?: Readonly<WaitForOptions<Server>>) => Promise<Server>;
|
|
41
|
+
/**
|
|
42
|
+
* Create an Elastic Metal server. Create a new Elastic Metal server. Once the server is created, proceed with the [installation of an OS](#post-3e949e).
|
|
43
|
+
*
|
|
44
|
+
* @param request - The request {@link CreateServerRequest}
|
|
45
|
+
* @returns A Promise of Server
|
|
46
|
+
*/
|
|
47
|
+
createServer: (request: Readonly<CreateServerRequest>) => Promise<Server>;
|
|
48
|
+
/**
|
|
49
|
+
* Create multiple Elastic Metal servers. Create multiple new Elastic Metal servers. Once the servers are created, proceed with the [installation of an OS](#post-3e949e).
|
|
50
|
+
*
|
|
51
|
+
* @param request - The request {@link BatchCreateServersRequest}
|
|
52
|
+
* @returns A Promise of BatchCreateServersResponse
|
|
53
|
+
*/
|
|
54
|
+
batchCreateServers: (request?: Readonly<BatchCreateServersRequest>) => Promise<BatchCreateServersResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Update an Elastic Metal server. Update the server associated with the ID. You can update parameters such as the server's name, tags, description and protection flag. Any parameters left null in the request body are not updated.
|
|
57
|
+
*
|
|
58
|
+
* @param request - The request {@link UpdateServerRequest}
|
|
59
|
+
* @returns A Promise of Server
|
|
60
|
+
*/
|
|
61
|
+
updateServer: (request: Readonly<UpdateServerRequest>) => Promise<Server>;
|
|
62
|
+
/**
|
|
63
|
+
* Install an Elastic Metal server. Install an Operating System (OS) on the Elastic Metal server with a specific ID.
|
|
64
|
+
*
|
|
65
|
+
* @param request - The request {@link InstallServerRequest}
|
|
66
|
+
* @returns A Promise of Server
|
|
67
|
+
*/
|
|
68
|
+
installServer: (request: Readonly<InstallServerRequest>) => Promise<Server>;
|
|
69
|
+
/**
|
|
70
|
+
* Return server metrics. Get the ping status of the server associated with the ID.
|
|
71
|
+
*
|
|
72
|
+
* @param request - The request {@link GetServerMetricsRequest}
|
|
73
|
+
* @returns A Promise of GetServerMetricsResponse
|
|
74
|
+
*/
|
|
75
|
+
getServerMetrics: (request: Readonly<GetServerMetricsRequest>) => Promise<GetServerMetricsResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Delete an Elastic Metal server. Delete the server associated with the ID.
|
|
78
|
+
*
|
|
79
|
+
* @param request - The request {@link DeleteServerRequest}
|
|
80
|
+
* @returns A Promise of Server
|
|
81
|
+
*/
|
|
82
|
+
deleteServer: (request: Readonly<DeleteServerRequest>) => Promise<Server>;
|
|
83
|
+
/**
|
|
84
|
+
* Reboot an Elastic Metal server. Reboot the Elastic Metal server associated with the ID, use the `boot_type` `rescue` to reboot the server in rescue mode.
|
|
85
|
+
*
|
|
86
|
+
* @param request - The request {@link RebootServerRequest}
|
|
87
|
+
* @returns A Promise of Server
|
|
88
|
+
*/
|
|
89
|
+
rebootServer: (request: Readonly<RebootServerRequest>) => Promise<Server>;
|
|
90
|
+
/**
|
|
91
|
+
* Start an Elastic Metal server. Start the server associated with the ID.
|
|
92
|
+
*
|
|
93
|
+
* @param request - The request {@link StartServerRequest}
|
|
94
|
+
* @returns A Promise of Server
|
|
95
|
+
*/
|
|
96
|
+
startServer: (request: Readonly<StartServerRequest>) => Promise<Server>;
|
|
97
|
+
/**
|
|
98
|
+
* Stop an Elastic Metal server. Stop the server associated with the ID. The server remains allocated to your account and all data remains on the local storage of the server.
|
|
99
|
+
*
|
|
100
|
+
* @param request - The request {@link StopServerRequest}
|
|
101
|
+
* @returns A Promise of Server
|
|
102
|
+
*/
|
|
103
|
+
stopServer: (request: Readonly<StopServerRequest>) => Promise<Server>;
|
|
104
|
+
protected pageOfListServerEvents: (request: Readonly<ListServerEventsRequest>) => Promise<ListServerEventsResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* List server events. List event (i.e. start/stop/reboot) associated to the server ID.
|
|
107
|
+
*
|
|
108
|
+
* @param request - The request {@link ListServerEventsRequest}
|
|
109
|
+
* @returns A Promise of ListServerEventsResponse
|
|
110
|
+
*/
|
|
111
|
+
listServerEvents: (request: Readonly<ListServerEventsRequest>) => Promise<ListServerEventsResponse> & {
|
|
112
|
+
all: () => Promise<ServerEvent[]>;
|
|
113
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<ServerEvent[], void, void>;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Get default partitioning schema. Get the default partitioning schema for the given offer ID and OS ID.
|
|
117
|
+
*
|
|
118
|
+
* @param request - The request {@link GetDefaultPartitioningSchemaRequest}
|
|
119
|
+
* @returns A Promise of Schema
|
|
120
|
+
*/
|
|
121
|
+
getDefaultPartitioningSchema: (request: Readonly<GetDefaultPartitioningSchemaRequest>) => Promise<Schema>;
|
|
122
|
+
/**
|
|
123
|
+
* Validate client partitioning schema. Validate the incoming partitioning schema from a user before installing the server. Return default ErrorCode if invalid.
|
|
124
|
+
*
|
|
125
|
+
* @param request - The request {@link ValidatePartitioningSchemaRequest}
|
|
126
|
+
*/
|
|
127
|
+
validatePartitioningSchema: (request: Readonly<ValidatePartitioningSchemaRequest>) => Promise<void>;
|
|
128
|
+
/**
|
|
129
129
|
* Start BMC access. Start BMC (Baseboard Management Controller) access associated with the ID.
|
|
130
130
|
The BMC (Baseboard Management Controller) access is available one hour after the installation of the server.
|
|
131
131
|
You need first to create an option Remote Access. You will find the ID and the price with a call to listOffers (https://developers.scaleway.com/en/products/baremetal/api/#get-78db92). Then add the option https://developers.scaleway.com/en/products/baremetal/api/#post-b14abd.
|
|
@@ -134,159 +134,161 @@ export declare class API extends ParentAPI {
|
|
|
134
134
|
* @param request - The request {@link StartBMCAccessRequest}
|
|
135
135
|
* @returns A Promise of BMCAccess
|
|
136
136
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
137
|
+
startBMCAccess: (request: Readonly<StartBMCAccessRequest>) => Promise<BMCAccess>;
|
|
138
|
+
/**
|
|
139
|
+
* Get BMC access. Get the BMC (Baseboard Management Controller) access associated with the ID, including the URL and login information needed to connect.
|
|
140
|
+
*
|
|
141
|
+
* @param request - The request {@link GetBMCAccessRequest}
|
|
142
|
+
* @returns A Promise of BMCAccess
|
|
143
|
+
*/
|
|
144
|
+
getBMCAccess: (request: Readonly<GetBMCAccessRequest>) => Promise<BMCAccess>;
|
|
145
|
+
/**
|
|
146
|
+
* Stop BMC access. Stop BMC (Baseboard Management Controller) access associated with the ID.
|
|
147
|
+
*
|
|
148
|
+
* @param request - The request {@link StopBMCAccessRequest}
|
|
149
|
+
*/
|
|
150
|
+
stopBMCAccess: (request: Readonly<StopBMCAccessRequest>) => Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* Update IP. Configure the IP address associated with the server ID and IP ID. You can use this method to set a reverse DNS for an IP address.
|
|
153
|
+
*
|
|
154
|
+
* @param request - The request {@link UpdateIPRequest}
|
|
155
|
+
* @returns A Promise of IP
|
|
156
|
+
*/
|
|
157
|
+
updateIP: (request: Readonly<UpdateIPRequest>) => Promise<IP>;
|
|
158
|
+
/**
|
|
159
|
+
* Add server option. Add an option, such as Private Networks, to a specific server.
|
|
160
|
+
*
|
|
161
|
+
* @param request - The request {@link AddOptionServerRequest}
|
|
162
|
+
* @returns A Promise of Server
|
|
163
|
+
*/
|
|
164
|
+
addOptionServer: (request: Readonly<AddOptionServerRequest>) => Promise<Server>;
|
|
165
|
+
/**
|
|
166
|
+
* Delete server option. Delete an option from a specific server.
|
|
167
|
+
*
|
|
168
|
+
* @param request - The request {@link DeleteOptionServerRequest}
|
|
169
|
+
* @returns A Promise of Server
|
|
170
|
+
*/
|
|
171
|
+
deleteOptionServer: (request: Readonly<DeleteOptionServerRequest>) => Promise<Server>;
|
|
172
|
+
/**
|
|
173
|
+
* Migrate server offer. Migrate server with hourly offer to monthly offer.
|
|
174
|
+
*
|
|
175
|
+
* @param request - The request {@link MigrateServerToMonthlyOfferRequest}
|
|
176
|
+
* @returns A Promise of Server
|
|
177
|
+
*/
|
|
178
|
+
migrateServerToMonthlyOffer: (request: Readonly<MigrateServerToMonthlyOfferRequest>) => Promise<Server>;
|
|
179
|
+
protected pageOfListOffers: (request?: Readonly<ListOffersRequest>) => Promise<ListOffersResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* List offers. List all available Elastic Metal server configurations.
|
|
182
|
+
*
|
|
183
|
+
* @param request - The request {@link ListOffersRequest}
|
|
184
|
+
* @returns A Promise of ListOffersResponse
|
|
185
|
+
*/
|
|
186
|
+
listOffers: (request?: Readonly<ListOffersRequest>) => Promise<ListOffersResponse> & {
|
|
187
|
+
all: () => Promise<Offer[]>;
|
|
188
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Offer[], void, void>;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Get offer. Get details of an offer identified by its offer ID.
|
|
192
|
+
*
|
|
193
|
+
* @param request - The request {@link GetOfferRequest}
|
|
194
|
+
* @returns A Promise of Offer
|
|
195
|
+
*/
|
|
196
|
+
getOffer: (request: Readonly<GetOfferRequest>) => Promise<Offer>;
|
|
197
|
+
/**
|
|
198
|
+
* Get option. Return specific option for the ID.
|
|
199
|
+
*
|
|
200
|
+
* @param request - The request {@link GetOptionRequest}
|
|
201
|
+
* @returns A Promise of Option
|
|
202
|
+
*/
|
|
203
|
+
getOption: (request: Readonly<GetOptionRequest>) => Promise<Option>;
|
|
204
|
+
protected pageOfListOptions: (request?: Readonly<ListOptionsRequest>) => Promise<ListOptionsResponse>;
|
|
205
|
+
/**
|
|
206
|
+
* List options. List all options matching with filters.
|
|
207
|
+
*
|
|
208
|
+
* @param request - The request {@link ListOptionsRequest}
|
|
209
|
+
* @returns A Promise of ListOptionsResponse
|
|
210
|
+
*/
|
|
211
|
+
listOptions: (request?: Readonly<ListOptionsRequest>) => Promise<ListOptionsResponse> & {
|
|
212
|
+
all: () => Promise<Option[]>;
|
|
213
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Option[], void, void>;
|
|
214
|
+
};
|
|
215
|
+
protected pageOfListSettings: (request?: Readonly<ListSettingsRequest>) => Promise<ListSettingsResponse>;
|
|
216
|
+
/**
|
|
217
|
+
* List all settings. Return all settings for a Project ID.
|
|
218
|
+
*
|
|
219
|
+
* @param request - The request {@link ListSettingsRequest}
|
|
220
|
+
* @returns A Promise of ListSettingsResponse
|
|
221
|
+
*/
|
|
222
|
+
listSettings: (request?: Readonly<ListSettingsRequest>) => Promise<ListSettingsResponse> & {
|
|
223
|
+
all: () => Promise<Setting[]>;
|
|
224
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Setting[], void, void>;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Update setting. Update a setting for a Project ID (enable or disable).
|
|
228
|
+
*
|
|
229
|
+
* @param request - The request {@link UpdateSettingRequest}
|
|
230
|
+
* @returns A Promise of Setting
|
|
231
|
+
*/
|
|
232
|
+
updateSetting: (request: Readonly<UpdateSettingRequest>) => Promise<Setting>;
|
|
233
|
+
protected pageOfListOS: (request?: Readonly<ListOSRequest>) => Promise<ListOSResponse>;
|
|
234
|
+
/**
|
|
235
|
+
* List available OSes. List all OSes that are available for installation on Elastic Metal servers.
|
|
236
|
+
*
|
|
237
|
+
* @param request - The request {@link ListOSRequest}
|
|
238
|
+
* @returns A Promise of ListOSResponse
|
|
239
|
+
*/
|
|
240
|
+
listOS: (request?: Readonly<ListOSRequest>) => Promise<ListOSResponse> & {
|
|
241
|
+
all: () => Promise<OS[]>;
|
|
242
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<OS[], void, void>;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Get OS with an ID. Return the specific OS for the ID.
|
|
246
|
+
*
|
|
247
|
+
* @param request - The request {@link GetOSRequest}
|
|
248
|
+
* @returns A Promise of OS
|
|
249
|
+
*/
|
|
250
|
+
getOS: (request: Readonly<GetOSRequest>) => Promise<OS>;
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
253
|
* Elastic Metal - Private Network API.
|
|
254
254
|
*/
|
|
255
|
-
export declare class PrivateNetworkAPI extends
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
255
|
+
export declare class PrivateNetworkAPI extends API {
|
|
256
|
+
/**
|
|
257
|
+
* Locality of this API.
|
|
258
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
259
|
+
*/
|
|
260
|
+
static readonly LOCALITY: ApiLocality;
|
|
261
|
+
/**
|
|
262
|
+
* Add a server to a Private Network.
|
|
263
|
+
*
|
|
264
|
+
* @param request - The request {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
|
|
265
|
+
* @returns A Promise of ServerPrivateNetwork
|
|
266
|
+
*/
|
|
267
|
+
addServerPrivateNetwork: (request: Readonly<PrivateNetworkApiAddServerPrivateNetworkRequest>) => Promise<ServerPrivateNetwork>;
|
|
268
|
+
/**
|
|
269
|
+
* Set multiple Private Networks on a server.
|
|
270
|
+
*
|
|
271
|
+
* @param request - The request {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
|
|
272
|
+
* @returns A Promise of SetServerPrivateNetworksResponse
|
|
273
|
+
*/
|
|
274
|
+
setServerPrivateNetworks: (request: Readonly<PrivateNetworkApiSetServerPrivateNetworksRequest>) => Promise<SetServerPrivateNetworksResponse>;
|
|
275
|
+
protected pageOfListServerPrivateNetworks: (request?: Readonly<PrivateNetworkApiListServerPrivateNetworksRequest>) => Promise<ListServerPrivateNetworksResponse>;
|
|
276
|
+
/**
|
|
277
|
+
* List the Private Networks of a server.
|
|
278
|
+
*
|
|
279
|
+
* @param request - The request {@link PrivateNetworkApiListServerPrivateNetworksRequest}
|
|
280
|
+
* @returns A Promise of ListServerPrivateNetworksResponse
|
|
281
|
+
*/
|
|
282
|
+
listServerPrivateNetworks: (request?: Readonly<PrivateNetworkApiListServerPrivateNetworksRequest>) => Promise<ListServerPrivateNetworksResponse> & {
|
|
283
|
+
all: () => Promise<ServerPrivateNetwork[]>;
|
|
284
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<ServerPrivateNetwork[], void, void>;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Delete a Private Network.
|
|
288
|
+
*
|
|
289
|
+
* @param request - The request {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
|
|
290
|
+
*/
|
|
291
|
+
deleteServerPrivateNetwork: (request: Readonly<PrivateNetworkApiDeleteServerPrivateNetworkRequest>) => Promise<void>;
|
|
292
292
|
}
|
|
293
|
+
//#endregion
|
|
294
|
+
export { API$1 as API };
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
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";
|
|
3
|
-
import { API
|
|
3
|
+
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
|
|
4
5
|
//#region src/v1/api.gen.ts
|
|
5
6
|
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
6
7
|
/**
|
|
@@ -8,7 +9,7 @@ const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" }
|
|
|
8
9
|
|
|
9
10
|
This API allows you to manage your Elastic Metal servers.
|
|
10
11
|
*/
|
|
11
|
-
var API = class extends API
|
|
12
|
+
var API$1 = class extends API {
|
|
12
13
|
constructor(..._args) {
|
|
13
14
|
super(..._args);
|
|
14
15
|
this.pageOfListServers = (request = {}) => this.client.fetch({
|
|
@@ -180,7 +181,7 @@ var API = class extends API$1 {
|
|
|
180
181
|
/**
|
|
181
182
|
* Elastic Metal - Private Network API.
|
|
182
183
|
*/
|
|
183
|
-
var PrivateNetworkAPI = class extends API
|
|
184
|
+
var PrivateNetworkAPI = class extends API {
|
|
184
185
|
constructor(..._args2) {
|
|
185
186
|
super(..._args2);
|
|
186
187
|
this.addServerPrivateNetwork = (request) => this.client.fetch({
|
|
@@ -210,5 +211,6 @@ var PrivateNetworkAPI = class extends API$1 {
|
|
|
210
211
|
this.LOCALITY = toApiLocality({ zones: ["fr-par-2"] });
|
|
211
212
|
}
|
|
212
213
|
};
|
|
214
|
+
|
|
213
215
|
//#endregion
|
|
214
|
-
export { API, PrivateNetworkAPI };
|
|
216
|
+
export { API$1 as API, PrivateNetworkAPI };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
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";
|
|
2
|
+
//#region src/v1/constants.gen.d.ts
|
|
2
3
|
/** Lists all values of the enum {@link IPReverseStatus}. */
|
|
3
4
|
export declare const IP_REVERSE_STATUSES: IPReverseStatus[];
|
|
4
5
|
/** Lists all values of the enum {@link IPVersion}. */
|
|
@@ -39,3 +40,4 @@ export declare const SERVER_PRIVATE_NETWORK_STATUSES: ServerPrivateNetworkStatus
|
|
|
39
40
|
export declare const SERVER_STATUSES: ServerStatus[];
|
|
40
41
|
/** Lists all values of the enum {@link SettingType}. */
|
|
41
42
|
export declare const SETTING_TYPES: SettingType[];
|
|
43
|
+
//#endregion
|
package/dist/v1/constants.gen.js
CHANGED
|
@@ -134,5 +134,6 @@ const SERVER_STATUSES = [
|
|
|
134
134
|
];
|
|
135
135
|
/** Lists all values of the enum {@link SettingType}. */
|
|
136
136
|
const SETTING_TYPES = ["unknown", "smtp"];
|
|
137
|
+
|
|
137
138
|
//#endregion
|
|
138
|
-
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 };
|
|
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 };
|