Skip to content

Commit 84e9d4d

Browse files
authored
chore: fix typos (scaleway#2812)
1 parent b63df0c commit 84e9d4d

File tree

16 files changed

+44
-33
lines changed

16 files changed

+44
-33
lines changed

api/applesilicon/v1alpha1/applesilicon_sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ type OS struct {
499499
// Deprecated: CompatibleServerTypes: list of compatible server types. Deprecated.
500500
CompatibleServerTypes *[]string `json:"compatible_server_types,omitempty"`
501501

502-
// ReleaseNotesURL: url of the release notes for the OS image or softwares pre-installed.
502+
// ReleaseNotesURL: url of the release notes for the OS image or software pre-installed.
503503
ReleaseNotesURL string `json:"release_notes_url"`
504504

505505
// Description: a summary of the OS image content and configuration.
@@ -1531,7 +1531,7 @@ func (s *API) RebootServer(req *RebootServerRequest, opts ...scw.RequestOption)
15311531
return &resp, nil
15321532
}
15331533

1534-
// 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).
1534+
// 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 default configuration values of the image (OS).
15351535
func (s *API) ReinstallServer(req *ReinstallServerRequest, opts ...scw.RequestOption) (*Server, error) {
15361536
var err error
15371537

api/baremetal/v1/baremetal_sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,10 +1531,10 @@ type BMCAccess struct {
15311531
// URL: URL to access to the server console.
15321532
URL string `json:"url"`
15331533

1534-
// Login: the login to use for the BMC (Baseboard Management Controller) access authentification.
1534+
// Login: the login to use for the BMC (Baseboard Management Controller) access authentication.
15351535
Login string `json:"login"`
15361536

1537-
// Password: the password to use for the BMC (Baseboard Management Controller) access authentification.
1537+
// Password: the password to use for the BMC (Baseboard Management Controller) access authentication.
15381538
Password string `json:"password"`
15391539

15401540
// ExpiresAt: the date after which the BMC (Baseboard Management Controller) access will be closed.

api/block/v1/block_sdk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ type ListSnapshotsResponse struct {
721721
// Snapshots: paginated returned list of snapshots.
722722
Snapshots []*Snapshot `json:"snapshots"`
723723

724-
// TotalCount: total number of snpashots in the project.
724+
// TotalCount: total number of snapshots in the project.
725725
TotalCount uint64 `json:"total_count"`
726726
}
727727

api/block/v1alpha1/block_sdk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ type ListSnapshotsResponse struct {
742742
// Snapshots: paginated returned list of snapshots.
743743
Snapshots []*Snapshot `json:"snapshots"`
744744

745-
// TotalCount: total number of snpashots in the project.
745+
// TotalCount: total number of snapshots in the project.
746746
TotalCount uint64 `json:"total_count"`
747747
}
748748

api/cockpit/v1/cockpit_sdk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ func (r *ListGrafanaProductDashboardsResponse) UnsafeAppend(res any) (uint64, er
11061106
return uint64(len(results.Dashboards)), nil
11071107
}
11081108

1109-
// ListGrafanaUsersResponse: Ouptut returned when listing Grafana users.
1109+
// ListGrafanaUsersResponse: Output returned when listing Grafana users.
11101110
type ListGrafanaUsersResponse struct {
11111111
// TotalCount: total count of Grafana users.
11121112
TotalCount uint64 `json:"total_count"`

api/container/v1beta1/container_sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ type Cron struct {
10141014
// ContainerID: UUID of the container invoked by this cron.
10151015
ContainerID string `json:"container_id"`
10161016

1017-
// Schedule: uNIX cron shedule.
1017+
// Schedule: uNIX cron schedule.
10181018
Schedule string `json:"schedule"`
10191019

10201020
// Args: arguments to pass with the cron.
@@ -1272,7 +1272,7 @@ type CreateCronRequest struct {
12721272
// ContainerID: UUID of the container to invoke by the cron.
12731273
ContainerID string `json:"container_id"`
12741274

1275-
// Schedule: uNIX cron shedule.
1275+
// Schedule: uNIX cron schedule.
12761276
Schedule string `json:"schedule"`
12771277

12781278
// Args: arguments to pass with the cron.

api/dedibox/v1/dedibox_sdk.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3592,7 +3592,7 @@ type Log struct {
35923592
// Group: rPN V2 group.
35933593
Group *RpnV2Group `json:"group"`
35943594

3595-
// Member: rPN V2 member (if appliable).
3595+
// Member: rPN V2 member (if applicable).
35963596
Member *RpnV2Member `json:"member"`
35973597

35983598
// Action: which action was performed.
@@ -3822,10 +3822,10 @@ type BMCAccess struct {
38223822
// URL: URL to access to the server console.
38233823
URL string `json:"url"`
38243824

3825-
// Login: the login to use for the BMC (Baseboard Management Controller) access authentification.
3825+
// Login: the login to use for the BMC (Baseboard Management Controller) access authentication.
38263826
Login string `json:"login"`
38273827

3828-
// Password: the password to use for the BMC (Baseboard Management Controller) access authentification.
3828+
// Password: the password to use for the BMC (Baseboard Management Controller) access authentication.
38293829
Password string `json:"password"`
38303830

38313831
// ExpiresAt: the date after which the BMC (Baseboard Management Controller) access will be closed.
@@ -5315,7 +5315,7 @@ type Rescue struct {
53155315
// Password: password of the rescue.
53165316
Password string `json:"password"`
53175317

5318-
// Protocol: protocol of the resuce.
5318+
// Protocol: protocol of the rescue.
53195319
// Default value: vnc
53205320
Protocol RescueProtocol `json:"protocol"`
53215321
}

api/domain/v2beta1/domain_sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3934,7 +3934,7 @@ func (s *API) RestoreDNSZoneVersion(req *RestoreDNSZoneVersionRequest, opts ...s
39343934
return &resp, nil
39353935
}
39363936

3937-
// GetSSLCertificate: Get the DNS zone's TLS certificate. If you do not have a certificate, the ouptut returns `no certificate found`.
3937+
// GetSSLCertificate: Get the DNS zone's TLS certificate. If you do not have a certificate, the output returns `no certificate found`.
39383938
func (s *API) GetSSLCertificate(req *GetSSLCertificateRequest, opts ...scw.RequestOption) (*SSLCertificate, error) {
39393939
var err error
39403940

@@ -4680,7 +4680,7 @@ func (s *RegistrarAPI) DisableDomainAutoRenew(req *RegistrarAPIDisableDomainAuto
46804680
return &resp, nil
46814681
}
46824682

4683-
// GetDomainAuthCode: Retrieve the authorization code to tranfer an unlocked domain. The output returns an error if the domain is locked.
4683+
// GetDomainAuthCode: Retrieve the authorization code to transfer an unlocked domain. The output returns an error if the domain is locked.
46844684
// Some TLDs may have a different procedure to retrieve the authorization code. In that case, the information displays in the message field.
46854685
func (s *RegistrarAPI) GetDomainAuthCode(req *RegistrarAPIGetDomainAuthCodeRequest, opts ...scw.RequestOption) (*GetDomainAuthCodeResponse, error) {
46864686
var err error

api/environmental_footprint/v1alpha1/environmental_footprint_sdk.go

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,20 @@ var (
4141
type ProductCategory string
4242

4343
const (
44+
// Unknown product category.
4445
ProductCategoryUnknownProductCategory = ProductCategory("unknown_product_category")
45-
ProductCategoryAppleSilicon = ProductCategory("apple_silicon")
46-
ProductCategoryBlockStorage = ProductCategory("block_storage")
47-
ProductCategoryDedibox = ProductCategory("dedibox")
48-
ProductCategoryElasticMetal = ProductCategory("elastic_metal")
49-
ProductCategoryInstances = ProductCategory("instances")
50-
ProductCategoryObjectStorage = ProductCategory("object_storage")
46+
// The Apple Silicon product category.
47+
ProductCategoryAppleSilicon = ProductCategory("apple_silicon")
48+
// The Block Storage product category.
49+
ProductCategoryBlockStorage = ProductCategory("block_storage")
50+
// The Dedibox product category.
51+
ProductCategoryDedibox = ProductCategory("dedibox")
52+
// The Elastic Metal product category.
53+
ProductCategoryElasticMetal = ProductCategory("elastic_metal")
54+
// The Instances product category.
55+
ProductCategoryInstances = ProductCategory("instances")
56+
// The Object Storage product category.
57+
ProductCategoryObjectStorage = ProductCategory("object_storage")
5158
)
5259

5360
func (enum ProductCategory) String() string {
@@ -130,10 +137,14 @@ func (enum *ReportType) UnmarshalJSON(data []byte) error {
130137
type ServiceCategory string
131138

132139
const (
140+
// Unknown service category.
133141
ServiceCategoryUnknownServiceCategory = ServiceCategory("unknown_service_category")
134-
ServiceCategoryBaremetal = ServiceCategory("baremetal")
135-
ServiceCategoryCompute = ServiceCategory("compute")
136-
ServiceCategoryStorage = ServiceCategory("storage")
142+
// The Bare Metal service category.
143+
ServiceCategoryBaremetal = ServiceCategory("baremetal")
144+
// The Compute service category.
145+
ServiceCategoryCompute = ServiceCategory("compute")
146+
// The Storage service category.
147+
ServiceCategoryStorage = ServiceCategory("storage")
137148
)
138149

139150
func (enum ServiceCategory) String() string {

api/function/v1beta1/function_sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ type Domain struct {
10031003
// URL: URL of the function.
10041004
URL string `json:"url"`
10051005

1006-
// Status: state of the doamin.
1006+
// Status: state of the domain.
10071007
// Default value: unknown
10081008
Status DomainStatus `json:"status"`
10091009

@@ -1275,7 +1275,7 @@ type CreateDomainRequest struct {
12751275
// Region: region to target. If none is passed will use default region from the config.
12761276
Region scw.Region `json:"-"`
12771277

1278-
// Hostname: hostame to create.
1278+
// Hostname: hostname to create.
12791279
Hostname string `json:"hostname"`
12801280

12811281
// FunctionID: UUID of the function to associate the domain with.

0 commit comments

Comments
 (0)