Skip to content

Commit 24ce8ec

Browse files
authored
doc: update generated godoc (#481)
1 parent c564250 commit 24ce8ec

File tree

5 files changed

+56
-52
lines changed

5 files changed

+56
-52
lines changed

api/account/v2alpha1/account_sdk.go

+12-8
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var (
3939
_ = namegenerator.GetRandomName
4040
)
4141

42-
// API: this API allows to manage your scaleway account
42+
// API: account API
4343
type API struct {
4444
client *scw.Client
4545
}
@@ -146,7 +146,7 @@ type ListSSHKeysRequest struct {
146146
ProjectID *string `json:"-"`
147147
}
148148

149-
// ListSSHKeys: list all SSH keys
149+
// ListSSHKeys: list all SSH keys of your organization
150150
func (s *API) ListSSHKeys(req *ListSSHKeysRequest, opts ...scw.RequestOption) (*ListSSHKeysResponse, error) {
151151
var err error
152152

@@ -211,9 +211,9 @@ type CreateSSHKeyRequest struct {
211211
ProjectID *string `json:"project_id,omitempty"`
212212
}
213213

214-
// CreateSSHKey: add a SSH key to your Scaleway account
214+
// CreateSSHKey: add a SSH key to your organization
215215
//
216-
// Add a SSH key to your Scaleway account.
216+
// Add a SSH key to your organization.
217217
func (s *API) CreateSSHKey(req *CreateSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error) {
218218
var err error
219219

@@ -252,7 +252,9 @@ type GetSSHKeyRequest struct {
252252
SSHKeyID string `json:"-"`
253253
}
254254

255-
// GetSSHKey: get SSH key details
255+
// GetSSHKey: get a SSH key from your organization
256+
//
257+
// Get a SSH key from your organization.
256258
func (s *API) GetSSHKey(req *GetSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error) {
257259
var err error
258260

@@ -281,7 +283,9 @@ type UpdateSSHKeyRequest struct {
281283
Name *string `json:"name"`
282284
}
283285

284-
// UpdateSSHKey: update an SSH key
286+
// UpdateSSHKey: update a SSH key on your organization
287+
//
288+
// Update a SSH key on your organization.
285289
func (s *API) UpdateSSHKey(req *UpdateSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error) {
286290
var err error
287291

@@ -313,9 +317,9 @@ type DeleteSSHKeyRequest struct {
313317
SSHKeyID string `json:"-"`
314318
}
315319

316-
// DeleteSSHKey: remove a SSH key from your Scaleway account
320+
// DeleteSSHKey: remove a SSH key from your organization
317321
//
318-
// Remove a SSH key from your Scaleway account.
322+
// Remove a SSH key from your organization.
319323
func (s *API) DeleteSSHKey(req *DeleteSSHKeyRequest, opts ...scw.RequestOption) error {
320324
var err error
321325

api/baremetal/v1/baremetal_sdk.go

+14-14
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,9 @@ type ListServersRequest struct {
614614
OrganizationID *string `json:"-"`
615615
}
616616

617-
// ListServers: list servers
617+
// ListServers: list baremetal servers
618618
//
619-
// List all created servers.
619+
// List baremetal servers.
620620
func (s *API) ListServers(req *ListServersRequest, opts ...scw.RequestOption) (*ListServersResponse, error) {
621621
var err error
622622

@@ -684,7 +684,7 @@ type GetServerRequest struct {
684684
ServerID string `json:"-"`
685685
}
686686

687-
// GetServer: get server
687+
// GetServer: get a specific baremetal server
688688
//
689689
// Get the server associated with the given ID.
690690
func (s *API) GetServer(req *GetServerRequest, opts ...scw.RequestOption) (*Server, error) {
@@ -732,9 +732,9 @@ type CreateServerRequest struct {
732732
Tags []string `json:"tags"`
733733
}
734734

735-
// CreateServer: create server
735+
// CreateServer: create a baremetal server
736736
//
737-
// Create a new server. Once the server is created, you probably want to install an OS.
737+
// Create a new baremetal server. Once the server is created, you probably want to install an OS.
738738
func (s *API) CreateServer(req *CreateServerRequest, opts ...scw.RequestOption) (*Server, error) {
739739
var err error
740740

@@ -784,7 +784,7 @@ type UpdateServerRequest struct {
784784
Tags *[]string `json:"tags"`
785785
}
786786

787-
// UpdateServer: update server
787+
// UpdateServer: update a baremetal server
788788
//
789789
// Update the server associated with the given ID.
790790
func (s *API) UpdateServer(req *UpdateServerRequest, opts ...scw.RequestOption) (*Server, error) {
@@ -835,7 +835,7 @@ type InstallServerRequest struct {
835835
SSHKeyIDs []string `json:"ssh_key_ids"`
836836
}
837837

838-
// InstallServer: install server
838+
// InstallServer: install a baremetal server
839839
//
840840
// Install an OS on the server associated with the given ID.
841841
func (s *API) InstallServer(req *InstallServerRequest, opts ...scw.RequestOption) (*Server, error) {
@@ -920,7 +920,7 @@ type DeleteServerRequest struct {
920920
ServerID string `json:"-"`
921921
}
922922

923-
// DeleteServer: delete server
923+
// DeleteServer: delete a baremetal server
924924
//
925925
// Delete the server associated with the given ID.
926926
func (s *API) DeleteServer(req *DeleteServerRequest, opts ...scw.RequestOption) (*Server, error) {
@@ -964,7 +964,7 @@ type RebootServerRequest struct {
964964
BootType ServerBootType `json:"boot_type"`
965965
}
966966

967-
// RebootServer: reboot server
967+
// RebootServer: reboot a baremetal server
968968
//
969969
// Reboot the server associated with the given ID, use boot param to reboot in rescue.
970970
func (s *API) RebootServer(req *RebootServerRequest, opts ...scw.RequestOption) (*Server, error) {
@@ -1009,7 +1009,7 @@ type StartServerRequest struct {
10091009
ServerID string `json:"-"`
10101010
}
10111011

1012-
// StartServer: start server
1012+
// StartServer: start a baremetal server
10131013
//
10141014
// Start the server associated with the given ID.
10151015
func (s *API) StartServer(req *StartServerRequest, opts ...scw.RequestOption) (*Server, error) {
@@ -1054,7 +1054,7 @@ type StopServerRequest struct {
10541054
ServerID string `json:"-"`
10551055
}
10561056

1057-
// StopServer: stop server
1057+
// StopServer: stop a baremetal server
10581058
//
10591059
// Stop the server associated with the given ID.
10601060
func (s *API) StopServer(req *StopServerRequest, opts ...scw.RequestOption) (*Server, error) {
@@ -1468,7 +1468,7 @@ type ListOSRequest struct {
14681468
OfferID *string `json:"-"`
14691469
}
14701470

1471-
// ListOS: list OS
1471+
// ListOS: list all available OS that can be install on a baremetal server
14721472
//
14731473
// List all available OS that can be install on a baremetal server.
14741474
func (s *API) ListOS(req *ListOSRequest, opts ...scw.RequestOption) (*ListOSResponse, error) {
@@ -1530,11 +1530,11 @@ func (r *ListOSResponse) UnsafeAppend(res interface{}) (uint32, error) {
15301530

15311531
type GetOSRequest struct {
15321532
Zone scw.Zone `json:"-"`
1533-
// OsID: ID of the researched OS
1533+
// OsID: ID of the OS
15341534
OsID string `json:"-"`
15351535
}
15361536

1537-
// GetOS: get OS
1537+
// GetOS: get an OS with a given ID
15381538
//
15391539
// Return specific OS for the given ID.
15401540
func (s *API) GetOS(req *GetOSRequest, opts ...scw.RequestOption) (*OS, error) {

0 commit comments

Comments
 (0)