Skip to content

Commit 03e0663

Browse files
committed
feat: update generated APIs
1 parent 50cbd0a commit 03e0663

File tree

34 files changed

+8836
-4495
lines changed

34 files changed

+8836
-4495
lines changed

packages/clients/src/api/baremetal/v1/api.gen.ts

Lines changed: 29 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ const jsonContentHeaders = {
100100

101101
/**
102102
* Elastic Metal API.
103-
*
104-
* This API allows you to manage your Elastic Metal servers.
103+
104+
This API allows you to manage your Elastic Metal servers.
105105
*/
106106
export class API extends ParentAPI {
107107
/** Lists the available zones of the API. */
@@ -138,8 +138,7 @@ export class API extends ParentAPI {
138138
)
139139

140140
/**
141-
* List Elastic Metal servers for an Organization. List Elastic Metal servers
142-
* for a specific Organization.
141+
* List Elastic Metal servers for an Organization. List Elastic Metal servers for a specific Organization.
143142
*
144143
* @param request - The request {@link ListServersRequest}
145144
* @returns A Promise of ListServersResponse
@@ -148,8 +147,7 @@ export class API extends ParentAPI {
148147
enrichForPagination('servers', this.pageOfListServers, request)
149148

150149
/**
151-
* Get a specific Elastic Metal server. Get full details of an existing
152-
* Elastic Metal server associated with the ID.
150+
* Get a specific Elastic Metal server. Get full details of an existing Elastic Metal server associated with the ID.
153151
*
154152
* @param request - The request {@link GetServerRequest}
155153
* @returns A Promise of Server
@@ -186,8 +184,7 @@ export class API extends ParentAPI {
186184
)
187185

188186
/**
189-
* Create an Elastic Metal server. Create a new Elastic Metal server. Once the
190-
* server is created, proceed with the [installation of an OS](#post-3e949e).
187+
* 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).
191188
*
192189
* @param request - The request {@link CreateServerRequest}
193190
* @returns A Promise of Server
@@ -206,9 +203,7 @@ export class API extends ParentAPI {
206203
)
207204

208205
/**
209-
* Update an Elastic Metal server. Update the server associated with the ID.
210-
* You can update parameters such as the server's name, tags and description.
211-
* Any parameters left null in the request body are not updated.
206+
* Update an Elastic Metal server. Update the server associated with the ID. You can update parameters such as the server's name, tags and description. Any parameters left null in the request body are not updated.
212207
*
213208
* @param request - The request {@link UpdateServerRequest}
214209
* @returns A Promise of Server
@@ -227,8 +222,7 @@ export class API extends ParentAPI {
227222
)
228223

229224
/**
230-
* Install an Elastic Metal server. Install an Operating System (OS) on the
231-
* Elastic Metal server with a specific ID.
225+
* Install an Elastic Metal server. Install an Operating System (OS) on the Elastic Metal server with a specific ID.
232226
*
233227
* @param request - The request {@link InstallServerRequest}
234228
* @returns A Promise of Server
@@ -247,8 +241,7 @@ export class API extends ParentAPI {
247241
)
248242

249243
/**
250-
* Return server metrics. Get the ping status of the server associated with
251-
* the ID.
244+
* Return server metrics. Get the ping status of the server associated with the ID.
252245
*
253246
* @param request - The request {@link GetServerMetricsRequest}
254247
* @returns A Promise of GetServerMetricsResponse
@@ -278,9 +271,7 @@ export class API extends ParentAPI {
278271
)
279272

280273
/**
281-
* Reboot an Elastic Metal server. Reboot the Elastic Metal server associated
282-
* with the ID, use the `boot_type` `rescue` to reboot the server in rescue
283-
* mode.
274+
* 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.
284275
*
285276
* @param request - The request {@link RebootServerRequest}
286277
* @returns A Promise of Server
@@ -318,9 +309,7 @@ export class API extends ParentAPI {
318309
)
319310

320311
/**
321-
* Stop an Elastic Metal server. Stop the server associated with the ID. The
322-
* server remains allocated to your account and all data remains on the local
323-
* storage of the server.
312+
* 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.
324313
*
325314
* @param request - The request {@link StopServerRequest}
326315
* @returns A Promise of Server
@@ -356,8 +345,7 @@ export class API extends ParentAPI {
356345
)
357346

358347
/**
359-
* List server events. List event (i.e. start/stop/reboot) associated to the
360-
* server ID.
348+
* List server events. List event (i.e. start/stop/reboot) associated to the server ID.
361349
*
362350
* @param request - The request {@link ListServerEventsRequest}
363351
* @returns A Promise of ListServerEventsResponse
@@ -366,8 +354,7 @@ export class API extends ParentAPI {
366354
enrichForPagination('events', this.pageOfListServerEvents, request)
367355

368356
/**
369-
* Get default partitioning schema. Get the default partitioning schema for
370-
* the given offer ID and OS ID.
357+
* Get default partitioning schema. Get the default partitioning schema for the given offer ID and OS ID.
371358
*
372359
* @param request - The request {@link GetDefaultPartitioningSchemaRequest}
373360
* @returns A Promise of Schema
@@ -388,9 +375,7 @@ export class API extends ParentAPI {
388375
)
389376

390377
/**
391-
* Validate client partitioning schema. Validate the incoming partitioning
392-
* schema from a user before installing the server. Return default ErrorCode
393-
* if invalid.
378+
* Validate client partitioning schema. Validate the incoming partitioning schema from a user before installing the server. Return default ErrorCode if invalid.
394379
*
395380
* @param request - The request {@link ValidatePartitioningSchemaRequest}
396381
*/
@@ -407,18 +392,10 @@ export class API extends ParentAPI {
407392
})
408393

409394
/**
410-
* Start BMC access. Start BMC (Baseboard Management Controller) access
411-
* associated with the ID. The BMC (Baseboard Management Controller) access is
412-
* available one hour after the installation of the server. You need first to
413-
* create an option Remote Access. You will find the ID and the price with a
414-
* call to listOffers
415-
* (https://developers.scaleway.com/en/products/baremetal/api/#get-78db92).
416-
* Then add the option
417-
* https://developers.scaleway.com/en/products/baremetal/api/#post-b14abd.
418-
* After adding the BMC option, you need to Get Remote Access to get the
419-
* login/password
420-
* https://developers.scaleway.com/en/products/baremetal/api/#get-cefc0f. Do
421-
* not forget to delete the Option after use.
395+
* Start BMC access. Start BMC (Baseboard Management Controller) access associated with the ID.
396+
The BMC (Baseboard Management Controller) access is available one hour after the installation of the server.
397+
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.
398+
After adding the BMC option, you need to Get Remote Access to get the login/password https://developers.scaleway.com/en/products/baremetal/api/#get-cefc0f. Do not forget to delete the Option after use.
422399
*
423400
* @param request - The request {@link StartBMCAccessRequest}
424401
* @returns A Promise of BMCAccess
@@ -437,9 +414,7 @@ export class API extends ParentAPI {
437414
)
438415

439416
/**
440-
* Get BMC access. Get the BMC (Baseboard Management Controller) access
441-
* associated with the ID, including the URL and login information needed to
442-
* connect.
417+
* Get BMC access. Get the BMC (Baseboard Management Controller) access associated with the ID, including the URL and login information needed to connect.
443418
*
444419
* @param request - The request {@link GetBMCAccessRequest}
445420
* @returns A Promise of BMCAccess
@@ -454,8 +429,7 @@ export class API extends ParentAPI {
454429
)
455430

456431
/**
457-
* Stop BMC access. Stop BMC (Baseboard Management Controller) access
458-
* associated with the ID.
432+
* Stop BMC access. Stop BMC (Baseboard Management Controller) access associated with the ID.
459433
*
460434
* @param request - The request {@link StopBMCAccessRequest}
461435
*/
@@ -466,8 +440,7 @@ export class API extends ParentAPI {
466440
})
467441

468442
/**
469-
* Update IP. Configure the IP address associated with the server ID and IP
470-
* ID. You can use this method to set a reverse DNS for an IP address.
443+
* 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.
471444
*
472445
* @param request - The request {@link UpdateIPRequest}
473446
* @returns A Promise of IP
@@ -486,8 +459,7 @@ export class API extends ParentAPI {
486459
)
487460

488461
/**
489-
* Add server option. Add an option, such as Private Networks, to a specific
490-
* server.
462+
* Add server option. Add an option, such as Private Networks, to a specific server.
491463
*
492464
* @param request - The request {@link AddOptionServerRequest}
493465
* @returns A Promise of Server
@@ -690,8 +662,7 @@ export class API extends ParentAPI {
690662
)
691663

692664
/**
693-
* List available OSes. List all OSes that are available for installation on
694-
* Elastic Metal servers.
665+
* List available OSes. List all OSes that are available for installation on Elastic Metal servers.
695666
*
696667
* @param request - The request {@link ListOSRequest}
697668
* @returns A Promise of ListOSResponse
@@ -715,16 +686,17 @@ export class API extends ParentAPI {
715686
)
716687
}
717688

718-
/** Elastic Metal - Private Network API. */
689+
/**
690+
* Elastic Metal - Private Network API.
691+
*/
719692
export class PrivateNetworkAPI extends ParentAPI {
720693
/** Lists the available zones of the API. */
721694
public static readonly LOCALITIES: ScwZone[] = ['fr-par-2']
722695

723696
/**
724697
* Add a server to a Private Network.
725698
*
726-
* @param request - The request
727-
* {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
699+
* @param request - The request {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
728700
* @returns A Promise of ServerPrivateNetwork
729701
*/
730702
addServerPrivateNetwork = (
@@ -748,8 +720,7 @@ export class PrivateNetworkAPI extends ParentAPI {
748720
/**
749721
* Set multiple Private Networks on a server.
750722
*
751-
* @param request - The request
752-
* {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
723+
* @param request - The request {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
753724
* @returns A Promise of SetServerPrivateNetworksResponse
754725
*/
755726
setServerPrivateNetworks = (
@@ -796,8 +767,7 @@ export class PrivateNetworkAPI extends ParentAPI {
796767
/**
797768
* List the Private Networks of a server.
798769
*
799-
* @param request - The request
800-
* {@link PrivateNetworkApiListServerPrivateNetworksRequest}
770+
* @param request - The request {@link PrivateNetworkApiListServerPrivateNetworksRequest}
801771
* @returns A Promise of ListServerPrivateNetworksResponse
802772
*/
803773
listServerPrivateNetworks = (
@@ -812,8 +782,7 @@ export class PrivateNetworkAPI extends ParentAPI {
812782
/**
813783
* Delete a Private Network.
814784
*
815-
* @param request - The request
816-
* {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
785+
* @param request - The request {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
817786
*/
818787
deleteServerPrivateNetwork = (
819788
request: Readonly<PrivateNetworkApiDeleteServerPrivateNetworkRequest>,

0 commit comments

Comments
 (0)