Skip to content

Commit 2ec24bb

Browse files
authored
docs: change doc format generation (#1589)
1 parent 6858369 commit 2ec24bb

File tree

27 files changed

+1107
-729
lines changed

27 files changed

+1107
-729
lines changed

api/account/v2/account_sdk.go

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

42-
// API: this API allows you to manage projects.
42+
// API: user related data.
43+
// This API allows you to manage projects.
4344
type API struct {
4445
client *scw.Client
4546
}
@@ -118,7 +119,8 @@ type CreateProjectRequest struct {
118119
Description *string `json:"description"`
119120
}
120121

121-
// CreateProject: generate a new Project for an Organization, specifying its configuration including name and description.
122+
// CreateProject: create a new Project for an Organization.
123+
// Generate a new Project for an Organization, specifying its configuration including name and description.
122124
func (s *API) CreateProject(req *CreateProjectRequest, opts ...scw.RequestOption) (*Project, error) {
123125
var err error
124126

@@ -163,7 +165,8 @@ type ListProjectsRequest struct {
163165
ProjectIDs []string `json:"-"`
164166
}
165167

166-
// ListProjects: list all Projects of an Organization. The response will include the total number of Projects as well as their associated Organizations, names and IDs. Other information include the creation and update date of the Project.
168+
// ListProjects: list all Projects of an Organization.
169+
// List all Projects of an Organization. The response will include the total number of Projects as well as their associated Organizations, names and IDs. Other information include the creation and update date of the Project.
167170
func (s *API) ListProjects(req *ListProjectsRequest, opts ...scw.RequestOption) (*ListProjectsResponse, error) {
168171
var err error
169172

@@ -206,7 +209,8 @@ type GetProjectRequest struct {
206209
ProjectID string `json:"-"`
207210
}
208211

209-
// GetProject: retrieve information about an existing Project, specified by its Project ID. Its full details, including ID, name and description, are returned in the response object.
212+
// GetProject: get an existing Project.
213+
// Retrieve information about an existing Project, specified by its Project ID. Its full details, including ID, name and description, are returned in the response object.
210214
func (s *API) GetProject(req *GetProjectRequest, opts ...scw.RequestOption) (*Project, error) {
211215
var err error
212216

@@ -239,7 +243,8 @@ type DeleteProjectRequest struct {
239243
ProjectID string `json:"-"`
240244
}
241245

242-
// DeleteProject: delete an existing Project, specified by its Project ID. The Project needs to be empty (meaning there are no resources left in it) to be deleted effectively. Note that deleting a Project is permanent, and cannot be undone.
246+
// DeleteProject: delete an existing Project.
247+
// Delete an existing Project, specified by its Project ID. The Project needs to be empty (meaning there are no resources left in it) to be deleted effectively. Note that deleting a Project is permanent, and cannot be undone.
243248
func (s *API) DeleteProject(req *DeleteProjectRequest, opts ...scw.RequestOption) error {
244249
var err error
245250

@@ -274,7 +279,8 @@ type UpdateProjectRequest struct {
274279
Description *string `json:"description"`
275280
}
276281

277-
// UpdateProject: update the parameters of an existing Project, specified by its Project ID. These parameters include the name and description.
282+
// UpdateProject: update Project.
283+
// Update the parameters of an existing Project, specified by its Project ID. These parameters include the name and description.
278284
func (s *API) UpdateProject(req *UpdateProjectRequest, opts ...scw.RequestOption) (*Project, error) {
279285
var err error
280286

api/account/v2alpha1/account_sdk.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ type SSHKeyCreationInfo struct {
124124
// Service API
125125

126126
type ListSSHKeysRequest struct {
127-
// OrderBy:
128-
// Default value: created_at_asc
127+
// OrderBy: default value: created_at_asc
129128
OrderBy ListSSHKeysRequestOrderBy `json:"-"`
130129

131130
Page *int32 `json:"-"`

api/applesilicon/v1alpha1/applesilicon_sdk.go

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

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).
4344
//
4445
// 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.
4546
//
@@ -239,7 +240,8 @@ type ServerType struct {
239240
// Stock: current stock.
240241
// Default value: unknown_stock
241242
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).
243245
MinimumLeaseDuration *scw.Duration `json:"minimum_lease_duration"`
244246
}
245247

@@ -273,7 +275,8 @@ type ListServerTypesRequest struct {
273275
Zone scw.Zone `json:"-"`
274276
}
275277

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`.
277280
func (s *API) ListServerTypes(req *ListServerTypesRequest, opts ...scw.RequestOption) (*ListServerTypesResponse, error) {
278281
var err error
279282

@@ -308,7 +311,8 @@ type GetServerTypeRequest struct {
308311
ServerType string `json:"-"`
309312
}
310313

311-
// GetServerType: get a server technical details.
314+
// GetServerType: get a server type.
315+
// Get a server technical details.
312316
func (s *API) GetServerType(req *GetServerTypeRequest, opts ...scw.RequestOption) (*ServerType, error) {
313317
var err error
314318

@@ -351,7 +355,8 @@ type CreateServerRequest struct {
351355
Type string `json:"type"`
352356
}
353357

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.
355360
func (s *API) CreateServer(req *CreateServerRequest, opts ...scw.RequestOption) (*Server, error) {
356361
var err error
357362

@@ -410,7 +415,8 @@ type ListServersRequest struct {
410415
PageSize *uint32 `json:"-"`
411416
}
412417

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.
414420
func (s *API) ListServers(req *ListServersRequest, opts ...scw.RequestOption) (*ListServersResponse, error) {
415421
var err error
416422

@@ -465,7 +471,8 @@ type ListOSRequest struct {
465471
Name *string `json:"-"`
466472
}
467473

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.
469476
func (s *API) ListOS(req *ListOSRequest, opts ...scw.RequestOption) (*ListOSResponse, error) {
470477
var err error
471478

@@ -512,7 +519,8 @@ type GetOSRequest struct {
512519
OsID string `json:"-"`
513520
}
514521

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.
516524
func (s *API) GetOS(req *GetOSRequest, opts ...scw.RequestOption) (*OS, error) {
517525
var err error
518526

@@ -551,7 +559,8 @@ type GetServerRequest struct {
551559
ServerID string `json:"-"`
552560
}
553561

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.
555564
func (s *API) GetServer(req *GetServerRequest, opts ...scw.RequestOption) (*Server, error) {
556565
var err error
557566

@@ -592,7 +601,8 @@ type UpdateServerRequest struct {
592601
Name *string `json:"name"`
593602
}
594603

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.
596606
func (s *API) UpdateServer(req *UpdateServerRequest, opts ...scw.RequestOption) (*Server, error) {
597607
var err error
598608

@@ -636,7 +646,8 @@ type DeleteServerRequest struct {
636646
ServerID string `json:"-"`
637647
}
638648

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.
640651
func (s *API) DeleteServer(req *DeleteServerRequest, opts ...scw.RequestOption) error {
641652
var err error
642653

@@ -673,7 +684,8 @@ type RebootServerRequest struct {
673684
ServerID string `json:"-"`
674685
}
675686

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.
677689
func (s *API) RebootServer(req *RebootServerRequest, opts ...scw.RequestOption) (*Server, error) {
678690
var err error
679691

@@ -717,7 +729,8 @@ type ReinstallServerRequest struct {
717729
ServerID string `json:"-"`
718730
}
719731

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).
721734
func (s *API) ReinstallServer(req *ReinstallServerRequest, opts ...scw.RequestOption) (*Server, error) {
722735
var err error
723736

0 commit comments

Comments
 (0)