This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git
The following commit(s) were added to refs/heads/main by this push:
new 20cbd1c Fix spelling (#62)
20cbd1c is described below
commit 20cbd1c8e949fa72243aa4c94724b2a1b11bcf8d
Author: John Bampton <[email protected]>
AuthorDate: Thu May 25 19:10:32 2023 +1000
Fix spelling (#62)
---
cloudstack/NetworkService.go | 6 +++---
cloudstack/cloudstack.go | 6 +++---
generate/generate.go | 6 +++---
generate/listApis.json | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/cloudstack/NetworkService.go b/cloudstack/NetworkService.go
index ef913bd..70696e5 100644
--- a/cloudstack/NetworkService.go
+++ b/cloudstack/NetworkService.go
@@ -351,7 +351,7 @@ func (s *NetworkService)
NewAddOpenDaylightControllerParams(password string, phy
return p
}
-// Adds an OpenDyalight controler
+// Adds an OpenDaylight controller
func (s *NetworkService) AddOpenDaylightController(p
*AddOpenDaylightControllerParams) (*AddOpenDaylightControllerResponse, error) {
resp, err := s.cs.newRequest("addOpenDaylightController",
p.toURLValues())
if err != nil {
@@ -2210,7 +2210,7 @@ func (s *NetworkService)
NewDeleteOpenDaylightControllerParams(id string) *Delet
return p
}
-// Removes an OpenDyalight controler
+// Removes an OpenDaylight controller
func (s *NetworkService) DeleteOpenDaylightController(p
*DeleteOpenDaylightControllerParams) (*DeleteOpenDaylightControllerResponse,
error) {
resp, err := s.cs.newRequest("deleteOpenDaylightController",
p.toURLValues())
if err != nil {
@@ -4034,7 +4034,7 @@ func (s *NetworkService) GetOpenDaylightControllerByID(id
string, opts ...Option
return nil, l.Count, fmt.Errorf("There is more then one result for
OpenDaylightController UUID: %s!", id)
}
-// Lists OpenDyalight controllers
+// Lists OpenDaylight controllers
func (s *NetworkService) ListOpenDaylightControllers(p
*ListOpenDaylightControllersParams) (*ListOpenDaylightControllersResponse,
error) {
resp, err := s.cs.newRequest("listOpenDaylightControllers",
p.toURLValues())
if err != nil {
diff --git a/cloudstack/cloudstack.go b/cloudstack/cloudstack.go
index 31b1078..5efbe9f 100644
--- a/cloudstack/cloudstack.go
+++ b/cloudstack/cloudstack.go
@@ -446,21 +446,21 @@ func (cs *CloudStackClient) GetAsyncJobResult(jobid
string, timeout int64) (json
}
// Execute the request against a CS API. Will return the raw JSON data
returned by the API and nil if
-// no error occured. If the API returns an error the result will be nil and
the HTTP error code and CS
+// no error occurred. If the API returns an error the result will be nil and
the HTTP error code and CS
// error details. If a processing (code) error occurs the result will be nil
and the generated error
func (cs *CloudStackClient) newRequest(api string, params url.Values)
(json.RawMessage, error) {
return cs.newRawRequest(api, false, params)
}
// Execute the request against a CS API using POST. Will return the raw JSON
data returned by the API and
-// nil if no error occured. If the API returns an error the result will be nil
and the HTTP error code
+// nil if no error occurred. If the API returns an error the result will be
nil and the HTTP error code
// and CS error details. If a processing (code) error occurs the result will
be nil and the generated error
func (cs *CloudStackClient) newPostRequest(api string, params url.Values)
(json.RawMessage, error) {
return cs.newRawRequest(api, true, params)
}
// Execute a raw request against a CS API. Will return the raw JSON data
returned by the API and nil if
-// no error occured. If the API returns an error the result will be nil and
the HTTP error code and CS
+// no error occurred. If the API returns an error the result will be nil and
the HTTP error code and CS
// error details. If a processing (code) error occurs the result will be nil
and the generated error
func (cs *CloudStackClient) newRawRequest(api string, post bool, params
url.Values) (json.RawMessage, error) {
params.Set("apiKey", cs.apiKey)
diff --git a/generate/generate.go b/generate/generate.go
index 65ff684..6ac962f 100644
--- a/generate/generate.go
+++ b/generate/generate.go
@@ -515,21 +515,21 @@ func (as *allServices) GeneralCode() ([]byte, error) {
pn("}")
pn("")
pn("// Execute the request against a CS API. Will return the raw JSON
data returned by the API and nil if")
- pn("// no error occured. If the API returns an error the result will be
nil and the HTTP error code and CS")
+ pn("// no error occurred. If the API returns an error the result will
be nil and the HTTP error code and CS")
pn("// error details. If a processing (code) error occurs the result
will be nil and the generated error")
pn("func (cs *CloudStackClient) newRequest(api string, params
url.Values) (json.RawMessage, error) {")
pn(" return cs.newRawRequest(api, false, params)")
pn("}")
pn("")
pn("// Execute the request against a CS API using POST. Will return the
raw JSON data returned by the API and")
- pn("// nil if no error occured. If the API returns an error the result
will be nil and the HTTP error code")
+ pn("// nil if no error occurred. If the API returns an error the result
will be nil and the HTTP error code")
pn("// and CS error details. If a processing (code) error occurs the
result will be nil and the generated error")
pn("func (cs *CloudStackClient) newPostRequest(api string, params
url.Values) (json.RawMessage, error) {")
pn(" return cs.newRawRequest(api, true, params)")
pn("}")
pn("")
pn("// Execute a raw request against a CS API. Will return the raw JSON
data returned by the API and nil if")
- pn("// no error occured. If the API returns an error the result will be
nil and the HTTP error code and CS")
+ pn("// no error occurred. If the API returns an error the result will
be nil and the HTTP error code and CS")
pn("// error details. If a processing (code) error occurs the result
will be nil and the generated error")
pn("func (cs *CloudStackClient) newRawRequest(api string, post bool,
params url.Values) (json.RawMessage, error) {")
pn(" params.Set(\"apiKey\", cs.apiKey)")
diff --git a/generate/listApis.json b/generate/listApis.json
index f611d98..e5e40ea 100644
--- a/generate/listApis.json
+++ b/generate/listApis.json
@@ -39940,7 +39940,7 @@
]
},
{
- "description": "Lists OpenDyalight controllers",
+ "description": "Lists OpenDaylight controllers",
"isasync": false,
"name": "listOpenDaylightControllers",
"params": [
@@ -50031,7 +50031,7 @@
"since": "4.15.0"
},
{
- "description": "Removes an OpenDyalight controler",
+ "description": "Removes an OpenDaylight controller",
"isasync": true,
"name": "deleteOpenDaylightController",
"params": [
@@ -109117,7 +109117,7 @@
]
},
{
- "description": "Adds an OpenDyalight controler",
+ "description": "Adds an OpenDaylight controller",
"isasync": true,
"name": "addOpenDaylightController",
"params": [