diff --git a/.gitignore b/.gitignore index c5cab703b..c09e3f1a9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ test/ listApis.json public-api.json release +v3/generator/source.yaml diff --git a/v3/client.go b/v3/client.go index cb6f4da88..78b8fbdab 100755 --- a/v3/client.go +++ b/v3/client.go @@ -28,7 +28,7 @@ const ( BGSof1 URL = "https://api-bg-sof-1.exoscale.com/v2" ) -// Zones represents a list of all Exoscale Zone. +// Zones represents a list of all Exoscale zone. var Zones map[string]URL = map[string]URL{ "ch-gva-2": CHGva2, "ch-dk-2": CHDk2, @@ -85,7 +85,7 @@ func ClientOptWithTrace() ClientOpt { } } -// ClientOptWithURL returns a ClientOpt With a given zone. +// ClientOptWithURL returns a ClientOpt With a given zone URL. func ClientOptWithURL(url URL) ClientOpt { return func(c *Client) error { c.serverURL = string(url) @@ -143,7 +143,7 @@ func NewClient(apiKey, apiSecret string, opts ...ClientOpt) (*Client, error) { return client.WithRequestMiddleware(security.Intercept), nil } -// WithURL returns a copy of Client with new URL. +// WithURL returns a copy of Client with new zone URL. func (c *Client) WithURL(url URL) *Client { return &Client{ serverURL: string(url), diff --git a/v3/generator/client/client.tmpl b/v3/generator/client/client.tmpl index feda708ae..3d75d3308 100644 --- a/v3/generator/client/client.tmpl +++ b/v3/generator/client/client.tmpl @@ -56,7 +56,7 @@ func ClientOptWithTrace() ClientOpt { } } -// ClientOptWithURL returns a ClientOpt With a given zone. +// ClientOptWithURL returns a ClientOpt With a given zone URL. func ClientOptWithURL(url URL) ClientOpt { return func(c *Client) error { c.serverURL = string(url)