Skip to content

Commit 0bae521

Browse files
authored
docs(apple): reworked apple silicon api doc (#1584)
1 parent a6606c1 commit 0bae521

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

api/applesilicon/v1alpha1/applesilicon_sdk.go

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var (
3939
_ = namegenerator.GetRandomName
4040
)
4141

42-
// API: scaleway Apple silicon M1 as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation).
42+
// API: scaleway Apple silicon as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation).
4343
//
4444
// 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.
4545
//
@@ -163,33 +163,33 @@ func (enum *ServerTypeStock) UnmarshalJSON(data []byte) error {
163163

164164
// ListOSResponse: list os response.
165165
type ListOSResponse struct {
166-
// TotalCount: total number of os.
166+
// TotalCount: total number of OS.
167167
TotalCount uint32 `json:"total_count"`
168168
// Os: list of OS.
169169
Os []*OS `json:"os"`
170170
}
171171

172172
// ListServerTypesResponse: list server types response.
173173
type ListServerTypesResponse struct {
174-
// ServerTypes: the available server types.
174+
// ServerTypes: available server types.
175175
ServerTypes []*ServerType `json:"server_types"`
176176
}
177177

178178
// ListServersResponse: list servers response.
179179
type ListServersResponse struct {
180-
// TotalCount: the total number of servers.
180+
// TotalCount: total number of servers.
181181
TotalCount uint32 `json:"total_count"`
182-
// Servers: the paginated returned servers.
182+
// Servers: paginated returned servers.
183183
Servers []*Server `json:"servers"`
184184
}
185185

186186
// OS: os.
187187
type OS struct {
188-
// ID: the OS unique ID.
188+
// ID: unique ID of the OS.
189189
ID string `json:"id"`
190-
// Name: the OS name.
190+
// Name: oS name.
191191
Name string `json:"name"`
192-
// Label: the OS name as it should be displayed.
192+
// Label: oS name as it should be displayed.
193193
Label string `json:"label"`
194194
// ImageURL: URL of the image.
195195
ImageURL string `json:"image_url"`
@@ -216,13 +216,13 @@ type Server struct {
216216
// Status: current status of the server.
217217
// Default value: unknown_status
218218
Status ServerStatus `json:"status"`
219-
// CreatedAt: the date at which the server was created.
219+
// CreatedAt: date on which the server was created.
220220
CreatedAt *time.Time `json:"created_at"`
221-
// UpdatedAt: the date at which the server was last updated.
221+
// UpdatedAt: date on which the server was last updated.
222222
UpdatedAt *time.Time `json:"updated_at"`
223-
// DeletableAt: the date at which the server was last deleted.
223+
// DeletableAt: date on which the server was last deleted.
224224
DeletableAt *time.Time `json:"deletable_at"`
225-
// Zone: the zone of the server.
225+
// Zone: zone of the server.
226226
Zone scw.Zone `json:"zone"`
227227
}
228228

@@ -273,7 +273,7 @@ type ListServerTypesRequest struct {
273273
Zone scw.Zone `json:"-"`
274274
}
275275

276-
// ListServerTypes: list all server types technical details.
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`.
277277
func (s *API) ListServerTypes(req *ListServerTypesRequest, opts ...scw.RequestOption) (*ListServerTypesResponse, error) {
278278
var err error
279279

@@ -351,7 +351,7 @@ type CreateServerRequest struct {
351351
Type string `json:"type"`
352352
}
353353

354-
// CreateServer: create a server.
354+
// CreateServer: create a new server in the targeted zone, specifying its configuration including name and type.
355355
func (s *API) CreateServer(req *CreateServerRequest, opts ...scw.RequestOption) (*Server, error) {
356356
var err error
357357

@@ -396,21 +396,21 @@ func (s *API) CreateServer(req *CreateServerRequest, opts ...scw.RequestOption)
396396
type ListServersRequest struct {
397397
// Zone: zone to target. If none is passed will use default zone from the config.
398398
Zone scw.Zone `json:"-"`
399-
// OrderBy: the sort order of the returned servers.
399+
// OrderBy: sort order of the returned servers.
400400
// Default value: created_at_asc
401401
OrderBy ListServersRequestOrderBy `json:"-"`
402-
// ProjectID: list only servers of this project ID.
402+
// ProjectID: only list servers of this project ID.
403403
ProjectID *string `json:"-"`
404-
// OrganizationID: list only servers of this organization ID.
404+
// OrganizationID: only list servers of this Organization ID.
405405
OrganizationID *string `json:"-"`
406-
// Page: a positive integer to choose the page to return.
406+
// Page: positive integer to choose the page to return.
407407
Page *int32 `json:"-"`
408-
// PageSize: a positive integer lower or equal to 100 to select the number of items to return.
408+
// PageSize: positive integer lower or equal to 100 to select the number of items to return.
409409
// Default value: 50
410410
PageSize *uint32 `json:"-"`
411411
}
412412

413-
// ListServers: list all servers.
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.
414414
func (s *API) ListServers(req *ListServersRequest, opts ...scw.RequestOption) (*ListServersResponse, error) {
415415
var err error
416416

@@ -454,18 +454,18 @@ func (s *API) ListServers(req *ListServersRequest, opts ...scw.RequestOption) (*
454454
type ListOSRequest struct {
455455
// Zone: zone to target. If none is passed will use default zone from the config.
456456
Zone scw.Zone `json:"-"`
457-
// Page: a positive integer to choose the page to return.
457+
// Page: positive integer to choose the page to return.
458458
Page *int32 `json:"-"`
459-
// PageSize: a positive integer lower or equal to 100 to select the number of items to return.
459+
// PageSize: positive integer lower or equal to 100 to select the number of items to return.
460460
// Default value: 50
461461
PageSize *uint32 `json:"-"`
462-
// ServerType: list of compatible server type.
462+
// ServerType: list of compatible server types.
463463
ServerType *string `json:"-"`
464-
// Name: filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12").
464+
// Name: filter OS by name (note that "11.1" will return "11.1.2" and "11.1" but not "12")).
465465
Name *string `json:"-"`
466466
}
467467

468-
// ListOS: list all Operating System (OS).
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.
469469
func (s *API) ListOS(req *ListOSRequest, opts ...scw.RequestOption) (*ListOSResponse, error) {
470470
var err error
471471

@@ -512,7 +512,7 @@ type GetOSRequest struct {
512512
OsID string `json:"-"`
513513
}
514514

515-
// GetOS: get an Operating System (OS).
515+
// GetOS: get an Operating System (OS). The response will include the OS's unique ID as well as its name and label.
516516
func (s *API) GetOS(req *GetOSRequest, opts ...scw.RequestOption) (*OS, error) {
517517
var err error
518518

@@ -551,7 +551,7 @@ type GetServerRequest struct {
551551
ServerID string `json:"-"`
552552
}
553553

554-
// GetServer: get a server.
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.
555555
func (s *API) GetServer(req *GetServerRequest, opts ...scw.RequestOption) (*Server, error) {
556556
var err error
557557

@@ -592,7 +592,7 @@ type UpdateServerRequest struct {
592592
Name *string `json:"name"`
593593
}
594594

595-
// UpdateServer: update a server.
595+
// UpdateServer: update the parameters of an existing Apple silicon server, specified by its server ID.
596596
func (s *API) UpdateServer(req *UpdateServerRequest, opts ...scw.RequestOption) (*Server, error) {
597597
var err error
598598

@@ -636,7 +636,7 @@ type DeleteServerRequest struct {
636636
ServerID string `json:"-"`
637637
}
638638

639-
// DeleteServer: delete a server.
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.
640640
func (s *API) DeleteServer(req *DeleteServerRequest, opts ...scw.RequestOption) error {
641641
var err error
642642

@@ -673,7 +673,7 @@ type RebootServerRequest struct {
673673
ServerID string `json:"-"`
674674
}
675675

676-
// RebootServer: reboot a server.
676+
// RebootServer: reboot an existing Apple silicon server, specified by its server ID.
677677
func (s *API) RebootServer(req *RebootServerRequest, opts ...scw.RequestOption) (*Server, error) {
678678
var err error
679679

@@ -717,7 +717,7 @@ type ReinstallServerRequest struct {
717717
ServerID string `json:"-"`
718718
}
719719

720-
// ReinstallServer: reinstall a server.
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).
721721
func (s *API) ReinstallServer(req *ReinstallServerRequest, opts ...scw.RequestOption) (*Server, error) {
722722
var err error
723723

0 commit comments

Comments
 (0)