|
39 | 39 | _ = namegenerator.GetRandomName |
40 | 40 | ) |
41 | 41 |
|
42 | | -// API: scaleway Apple silicon as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation). |
| 42 | +// API: apple Mac mini as a service. |
| 43 | +// Scaleway Apple silicon as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation). |
43 | 44 | // |
44 | 45 | // These dedicated Mac mini M1s are designed for developing, building, testing, and signing applications for Apple devices, including iPhones, iPads, Mac computers and much more. |
45 | 46 | // |
@@ -239,7 +240,8 @@ type ServerType struct { |
239 | 240 | // Stock: current stock. |
240 | 241 | // Default value: unknown_stock |
241 | 242 | Stock ServerTypeStock `json:"stock"` |
242 | | - // MinimumLeaseDuration: minimum duration of the lease in seconds (example. 3.4s). |
| 243 | + // MinimumLeaseDuration: minimum duration of the lease in seconds. |
| 244 | + // Minimum duration of the lease in seconds (example. 3.4s). |
243 | 245 | MinimumLeaseDuration *scw.Duration `json:"minimum_lease_duration"` |
244 | 246 | } |
245 | 247 |
|
@@ -273,7 +275,8 @@ type ListServerTypesRequest struct { |
273 | 275 | Zone scw.Zone `json:"-"` |
274 | 276 | } |
275 | 277 |
|
276 | | -// ListServerTypes: list all technical details about Apple silicon server types available in the specified zone. Since there is only one Availability Zone for Apple silicon servers, the targeted value is `fr-par-3`. |
| 278 | +// ListServerTypes: list server types. |
| 279 | +// List all technical details about Apple silicon server types available in the specified zone. Since there is only one Availability Zone for Apple silicon servers, the targeted value is `fr-par-3`. |
277 | 280 | func (s *API) ListServerTypes(req *ListServerTypesRequest, opts ...scw.RequestOption) (*ListServerTypesResponse, error) { |
278 | 281 | var err error |
279 | 282 |
|
@@ -308,7 +311,8 @@ type GetServerTypeRequest struct { |
308 | 311 | ServerType string `json:"-"` |
309 | 312 | } |
310 | 313 |
|
311 | | -// GetServerType: get a server technical details. |
| 314 | +// GetServerType: get a server type. |
| 315 | +// Get a server technical details. |
312 | 316 | func (s *API) GetServerType(req *GetServerTypeRequest, opts ...scw.RequestOption) (*ServerType, error) { |
313 | 317 | var err error |
314 | 318 |
|
@@ -351,7 +355,8 @@ type CreateServerRequest struct { |
351 | 355 | Type string `json:"type"` |
352 | 356 | } |
353 | 357 |
|
354 | | -// CreateServer: create a new server in the targeted zone, specifying its configuration including name and type. |
| 358 | +// CreateServer: create a server. |
| 359 | +// Create a new server in the targeted zone, specifying its configuration including name and type. |
355 | 360 | func (s *API) CreateServer(req *CreateServerRequest, opts ...scw.RequestOption) (*Server, error) { |
356 | 361 | var err error |
357 | 362 |
|
@@ -410,7 +415,8 @@ type ListServersRequest struct { |
410 | 415 | PageSize *uint32 `json:"-"` |
411 | 416 | } |
412 | 417 |
|
413 | | -// ListServers: list all servers in the specified zone. By default, returned servers in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. |
| 418 | +// ListServers: list all servers. |
| 419 | +// List all servers in the specified zone. By default, returned servers in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. |
414 | 420 | func (s *API) ListServers(req *ListServersRequest, opts ...scw.RequestOption) (*ListServersResponse, error) { |
415 | 421 | var err error |
416 | 422 |
|
@@ -465,7 +471,8 @@ type ListOSRequest struct { |
465 | 471 | Name *string `json:"-"` |
466 | 472 | } |
467 | 473 |
|
468 | | -// ListOS: list all Operating System (OS). The response will include the total number of OS as well as their associated IDs, names and labels. |
| 474 | +// ListOS: list all Operating System (OS). |
| 475 | +// List all Operating System (OS). The response will include the total number of OS as well as their associated IDs, names and labels. |
469 | 476 | func (s *API) ListOS(req *ListOSRequest, opts ...scw.RequestOption) (*ListOSResponse, error) { |
470 | 477 | var err error |
471 | 478 |
|
@@ -512,7 +519,8 @@ type GetOSRequest struct { |
512 | 519 | OsID string `json:"-"` |
513 | 520 | } |
514 | 521 |
|
515 | | -// GetOS: get an Operating System (OS). The response will include the OS's unique ID as well as its name and label. |
| 522 | +// GetOS: get an Operating System (OS). |
| 523 | +// Get an Operating System (OS). The response will include the OS's unique ID as well as its name and label. |
516 | 524 | func (s *API) GetOS(req *GetOSRequest, opts ...scw.RequestOption) (*OS, error) { |
517 | 525 | var err error |
518 | 526 |
|
@@ -551,7 +559,8 @@ type GetServerRequest struct { |
551 | 559 | ServerID string `json:"-"` |
552 | 560 | } |
553 | 561 |
|
554 | | -// GetServer: retrieve information about an existing Apple silicon server, specified by its server ID. Its full details, including name, status and IP address, are returned in the response object. |
| 562 | +// GetServer: get a server. |
| 563 | +// Retrieve information about an existing Apple silicon server, specified by its server ID. Its full details, including name, status and IP address, are returned in the response object. |
555 | 564 | func (s *API) GetServer(req *GetServerRequest, opts ...scw.RequestOption) (*Server, error) { |
556 | 565 | var err error |
557 | 566 |
|
@@ -592,7 +601,8 @@ type UpdateServerRequest struct { |
592 | 601 | Name *string `json:"name"` |
593 | 602 | } |
594 | 603 |
|
595 | | -// UpdateServer: update the parameters of an existing Apple silicon server, specified by its server ID. |
| 604 | +// UpdateServer: update a server. |
| 605 | +// Update the parameters of an existing Apple silicon server, specified by its server ID. |
596 | 606 | func (s *API) UpdateServer(req *UpdateServerRequest, opts ...scw.RequestOption) (*Server, error) { |
597 | 607 | var err error |
598 | 608 |
|
@@ -636,7 +646,8 @@ type DeleteServerRequest struct { |
636 | 646 | ServerID string `json:"-"` |
637 | 647 | } |
638 | 648 |
|
639 | | -// DeleteServer: delete an existing Apple silicon server, specified by its server ID. Deleting a server is permanent, and cannot be undone. Note that the minimum allocation period for Apple silicon-as-a-service is 24 hours, meaning you cannot delete your server prior to that. |
| 649 | +// DeleteServer: delete a server. |
| 650 | +// Delete an existing Apple silicon server, specified by its server ID. Deleting a server is permanent, and cannot be undone. Note that the minimum allocation period for Apple silicon-as-a-service is 24 hours, meaning you cannot delete your server prior to that. |
640 | 651 | func (s *API) DeleteServer(req *DeleteServerRequest, opts ...scw.RequestOption) error { |
641 | 652 | var err error |
642 | 653 |
|
@@ -673,7 +684,8 @@ type RebootServerRequest struct { |
673 | 684 | ServerID string `json:"-"` |
674 | 685 | } |
675 | 686 |
|
676 | | -// RebootServer: reboot an existing Apple silicon server, specified by its server ID. |
| 687 | +// RebootServer: reboot a server. |
| 688 | +// Reboot an existing Apple silicon server, specified by its server ID. |
677 | 689 | func (s *API) RebootServer(req *RebootServerRequest, opts ...scw.RequestOption) (*Server, error) { |
678 | 690 | var err error |
679 | 691 |
|
@@ -717,7 +729,8 @@ type ReinstallServerRequest struct { |
717 | 729 | ServerID string `json:"-"` |
718 | 730 | } |
719 | 731 |
|
720 | | -// ReinstallServer: reinstall an existing Apple silicon server (specified by its server ID) from a new image (OS). All the data on the disk is deleted and all configuration is reset to the defailt configuration values of the image (OS). |
| 732 | +// ReinstallServer: reinstall a server. |
| 733 | +// Reinstall an existing Apple silicon server (specified by its server ID) from a new image (OS). All the data on the disk is deleted and all configuration is reset to the defailt configuration values of the image (OS). |
721 | 734 | func (s *API) ReinstallServer(req *ReinstallServerRequest, opts ...scw.RequestOption) (*Server, error) { |
722 | 735 | var err error |
723 | 736 |
|
|
0 commit comments