From af15478f217d9b0fab34dcda13fe55b0f320b91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Swen=20Br=C3=BCseke?= Date: Fri, 19 Jan 2024 13:46:36 +0100 Subject: [PATCH 01/10] add TODO --- TODO.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..154b4cb --- /dev/null +++ b/TODO.md @@ -0,0 +1,15 @@ +Our goal is to add the follwoing api call to cloudstack-go: +https://cloudstack.apache.org/api/apidocs-4.18/apis/createConsoleEndpoint.html + +Request parameters +virtualmachineid (mandatory) ID of the VM +token (optional) extra security token, valid when the extra validation is enabled + +Response tags +details details in case of an error +success true if the console endpoint is generated properly +url the console url +websocket the console websocket options + +If I understand it correctly the correct file to add this api call is this file: +cloudstack-go/blob/main/cloudstack/VirtualMachineService.go \ No newline at end of file From 5b786690edca9ea42c93445becae00588043ce8a Mon Sep 17 00:00:00 2001 From: matiaschapresto Date: Mon, 5 Feb 2024 17:41:56 +0100 Subject: [PATCH 02/10] add console endpoint to layout --- cloudstack/ConsoleEndpointService.go | 139 ++++++++++++++++++++++ cloudstack/ConsoleEndpointService_mock.go | 82 +++++++++++++ cloudstack/cloudstack.go | 11 ++ generate/layout.go | 3 + test/ConsoleEndpointService_test.go | 50 ++++++++ 5 files changed, 285 insertions(+) create mode 100644 cloudstack/ConsoleEndpointService.go create mode 100644 cloudstack/ConsoleEndpointService_mock.go create mode 100644 test/ConsoleEndpointService_test.go diff --git a/cloudstack/ConsoleEndpointService.go b/cloudstack/ConsoleEndpointService.go new file mode 100644 index 0000000..7dfc369 --- /dev/null +++ b/cloudstack/ConsoleEndpointService.go @@ -0,0 +1,139 @@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// + +package cloudstack + +import ( + "encoding/json" + "net/url" + "strconv" +) + +type ConsoleEndpointServiceIface interface { + CreateConsoleEndpoint(p *CreateConsoleEndpointParams) (*CreateConsoleEndpointResponse, error) + NewCreateConsoleEndpointParams(virtualmachineid string) *CreateConsoleEndpointParams +} + +type CreateConsoleEndpointParams struct { + p map[string]interface{} +} + +func (p *CreateConsoleEndpointParams) toURLValues() url.Values { + u := url.Values{} + if p.p == nil { + return u + } + if v, found := p.p["token"]; found { + u.Set("token", v.(string)) + } + if v, found := p.p["virtualmachineid"]; found { + u.Set("virtualmachineid", v.(string)) + } + return u +} + +func (p *CreateConsoleEndpointParams) SetToken(v string) { + if p.p == nil { + p.p = make(map[string]interface{}) + } + p.p["token"] = v +} + +func (p *CreateConsoleEndpointParams) GetToken() (string, bool) { + if p.p == nil { + p.p = make(map[string]interface{}) + } + value, ok := p.p["token"].(string) + return value, ok +} + +func (p *CreateConsoleEndpointParams) SetVirtualmachineid(v string) { + if p.p == nil { + p.p = make(map[string]interface{}) + } + p.p["virtualmachineid"] = v +} + +func (p *CreateConsoleEndpointParams) GetVirtualmachineid() (string, bool) { + if p.p == nil { + p.p = make(map[string]interface{}) + } + value, ok := p.p["virtualmachineid"].(string) + return value, ok +} + +// You should always use this function to get a new CreateConsoleEndpointParams instance, +// as then you are sure you have configured all required params +func (s *ConsoleEndpointService) NewCreateConsoleEndpointParams(virtualmachineid string) *CreateConsoleEndpointParams { + p := &CreateConsoleEndpointParams{} + p.p = make(map[string]interface{}) + p.p["virtualmachineid"] = virtualmachineid + return p +} + +// Create a console endpoint to connect to a VM console +func (s *ConsoleEndpointService) CreateConsoleEndpoint(p *CreateConsoleEndpointParams) (*CreateConsoleEndpointResponse, error) { + resp, err := s.cs.newRequest("createConsoleEndpoint", p.toURLValues()) + if err != nil { + return nil, err + } + + var r CreateConsoleEndpointResponse + if err := json.Unmarshal(resp, &r); err != nil { + return nil, err + } + + return &r, nil +} + +type CreateConsoleEndpointResponse struct { + Details string `json:"details"` + JobID string `json:"jobid"` + Jobstatus int `json:"jobstatus"` + Success bool `json:"success"` + Url string `json:"url"` + Websocket string `json:"websocket"` +} + +func (r *CreateConsoleEndpointResponse) UnmarshalJSON(b []byte) error { + var m map[string]interface{} + err := json.Unmarshal(b, &m) + if err != nil { + return err + } + + if success, ok := m["success"].(string); ok { + m["success"] = success == "true" + b, err = json.Marshal(m) + if err != nil { + return err + } + } + + if ostypeid, ok := m["ostypeid"].(float64); ok { + m["ostypeid"] = strconv.Itoa(int(ostypeid)) + b, err = json.Marshal(m) + if err != nil { + return err + } + } + + type alias CreateConsoleEndpointResponse + return json.Unmarshal(b, (*alias)(r)) +} diff --git a/cloudstack/ConsoleEndpointService_mock.go b/cloudstack/ConsoleEndpointService_mock.go new file mode 100644 index 0000000..eae0f8b --- /dev/null +++ b/cloudstack/ConsoleEndpointService_mock.go @@ -0,0 +1,82 @@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// + +// Code generated by MockGen. DO NOT EDIT. +// Source: ./cloudstack/ConsoleEndpointService.go + +// Package cloudstack is a generated GoMock package. +package cloudstack + +import ( + reflect "reflect" + + gomock "github.com/golang/mock/gomock" +) + +// MockConsoleEndpointServiceIface is a mock of ConsoleEndpointServiceIface interface. +type MockConsoleEndpointServiceIface struct { + ctrl *gomock.Controller + recorder *MockConsoleEndpointServiceIfaceMockRecorder +} + +// MockConsoleEndpointServiceIfaceMockRecorder is the mock recorder for MockConsoleEndpointServiceIface. +type MockConsoleEndpointServiceIfaceMockRecorder struct { + mock *MockConsoleEndpointServiceIface +} + +// NewMockConsoleEndpointServiceIface creates a new mock instance. +func NewMockConsoleEndpointServiceIface(ctrl *gomock.Controller) *MockConsoleEndpointServiceIface { + mock := &MockConsoleEndpointServiceIface{ctrl: ctrl} + mock.recorder = &MockConsoleEndpointServiceIfaceMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockConsoleEndpointServiceIface) EXPECT() *MockConsoleEndpointServiceIfaceMockRecorder { + return m.recorder +} + +// CreateConsoleEndpoint mocks base method. +func (m *MockConsoleEndpointServiceIface) CreateConsoleEndpoint(p *CreateConsoleEndpointParams) (*CreateConsoleEndpointResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateConsoleEndpoint", p) + ret0, _ := ret[0].(*CreateConsoleEndpointResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateConsoleEndpoint indicates an expected call of CreateConsoleEndpoint. +func (mr *MockConsoleEndpointServiceIfaceMockRecorder) CreateConsoleEndpoint(p interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConsoleEndpoint", reflect.TypeOf((*MockConsoleEndpointServiceIface)(nil).CreateConsoleEndpoint), p) +} + +// NewCreateConsoleEndpointParams mocks base method. +func (m *MockConsoleEndpointServiceIface) NewCreateConsoleEndpointParams(virtualmachineid string) *CreateConsoleEndpointParams { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NewCreateConsoleEndpointParams", virtualmachineid) + ret0, _ := ret[0].(*CreateConsoleEndpointParams) + return ret0 +} + +// NewCreateConsoleEndpointParams indicates an expected call of NewCreateConsoleEndpointParams. +func (mr *MockConsoleEndpointServiceIfaceMockRecorder) NewCreateConsoleEndpointParams(virtualmachineid interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewCreateConsoleEndpointParams", reflect.TypeOf((*MockConsoleEndpointServiceIface)(nil).NewCreateConsoleEndpointParams), virtualmachineid) +} diff --git a/cloudstack/cloudstack.go b/cloudstack/cloudstack.go index ec12c7e..7ad5892 100644 --- a/cloudstack/cloudstack.go +++ b/cloudstack/cloudstack.go @@ -115,6 +115,7 @@ type CloudStackClient struct { CloudIdentifier CloudIdentifierServiceIface Cluster ClusterServiceIface Configuration ConfigurationServiceIface + ConsoleEndpoint ConsoleEndpointServiceIface Custom CustomServiceIface DiskOffering DiskOfferingServiceIface Domain DomainServiceIface @@ -221,6 +222,7 @@ func newClient(apiurl string, apikey string, secret string, async bool, verifyss cs.CloudIdentifier = NewCloudIdentifierService(cs) cs.Cluster = NewClusterService(cs) cs.Configuration = NewConfigurationService(cs) + cs.ConsoleEndpoint = NewConsoleEndpointService(cs) cs.Custom = NewCustomService(cs) cs.DiskOffering = NewDiskOfferingService(cs) cs.Domain = NewDomainService(cs) @@ -300,6 +302,7 @@ func newMockClient(ctrl *gomock.Controller) *CloudStackClient { cs.CloudIdentifier = NewMockCloudIdentifierServiceIface(ctrl) cs.Cluster = NewMockClusterServiceIface(ctrl) cs.Configuration = NewMockConfigurationServiceIface(ctrl) + cs.ConsoleEndpoint = NewMockConsoleEndpointServiceIface(ctrl) cs.Custom = NewMockCustomServiceIface(ctrl) cs.DiskOffering = NewMockDiskOfferingServiceIface(ctrl) cs.Domain = NewMockDomainServiceIface(ctrl) @@ -867,6 +870,14 @@ func NewConfigurationService(cs *CloudStackClient) ConfigurationServiceIface { return &ConfigurationService{cs: cs} } +type ConsoleEndpointService struct { + cs *CloudStackClient +} + +func NewConsoleEndpointService(cs *CloudStackClient) ConsoleEndpointServiceIface { + return &ConsoleEndpointService{cs: cs} +} + type CustomService struct { cs *CloudStackClient } diff --git a/generate/layout.go b/generate/layout.go index 2c85187..5dd2ee8 100644 --- a/generate/layout.go +++ b/generate/layout.go @@ -725,4 +725,7 @@ var layout = apiInfo{ "listManagementServersMetrics", "listDbMetrics", }, + "ConsoleEndpointService": { + "createConsoleEndpoint", + }, } diff --git a/test/ConsoleEndpointService_test.go b/test/ConsoleEndpointService_test.go new file mode 100644 index 0000000..dbdb24f --- /dev/null +++ b/test/ConsoleEndpointService_test.go @@ -0,0 +1,50 @@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// + +package test + +import ( + "testing" + + "github.com/apache/cloudstack-go/v2/cloudstack" +) + +func TestConsoleEndpointService(t *testing.T) { + service := "ConsoleEndpointService" + response, err := readData(service) + if err != nil { + t.Skipf("Skipping test as %v", err) + } + server := CreateTestServer(t, response) + client := cloudstack.NewClient(server.URL, "APIKEY", "SECRETKEY", true) + defer server.Close() + + testcreateConsoleEndpoint := func(t *testing.T) { + if _, ok := response["createConsoleEndpoint"]; !ok { + t.Skipf("Skipping as no json response is provided in testdata") + } + p := client.ConsoleEndpoint.NewCreateConsoleEndpointParams("virtualmachineid") + _, err := client.ConsoleEndpoint.CreateConsoleEndpoint(p) + if err != nil { + t.Errorf(err.Error()) + } + } + t.Run("CreateConsoleEndpoint", testcreateConsoleEndpoint) + +} From aafb382d5c245f22158af7668e6db51f96703598 Mon Sep 17 00:00:00 2001 From: sbrueseke Date: Wed, 7 Feb 2024 11:23:10 +0100 Subject: [PATCH 03/10] Delete TODO.md --- TODO.md | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 TODO.md diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 154b4cb..0000000 --- a/TODO.md +++ /dev/null @@ -1,15 +0,0 @@ -Our goal is to add the follwoing api call to cloudstack-go: -https://cloudstack.apache.org/api/apidocs-4.18/apis/createConsoleEndpoint.html - -Request parameters -virtualmachineid (mandatory) ID of the VM -token (optional) extra security token, valid when the extra validation is enabled - -Response tags -details details in case of an error -success true if the console endpoint is generated properly -url the console url -websocket the console websocket options - -If I understand it correctly the correct file to add this api call is this file: -cloudstack-go/blob/main/cloudstack/VirtualMachineService.go \ No newline at end of file From b9fe84ca164831f7958f6dfce08c1f5c32521b02 Mon Sep 17 00:00:00 2001 From: matiaschapresto Date: Thu, 15 Feb 2024 19:13:01 +0100 Subject: [PATCH 04/10] change module name --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index f57ee0e..606df86 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/apache/cloudstack-go/v2 +module github.com/sbrueseke/cloudstack-go/v2 go 1.17 From 0c00638d985e8f494104d0a61fe3f7da48c15760 Mon Sep 17 00:00:00 2001 From: matiaschapresto Date: Wed, 21 Feb 2024 18:05:34 +0100 Subject: [PATCH 05/10] fix websocket generation --- cloudstack/ConsoleEndpointService.go | 12 ++++++------ cloudstack/NetworkService.go | 6 +++--- examples/AddHost.go | 2 +- examples/CreateDeleteDomain.go | 2 +- examples/HostOperations.go | 2 +- examples/mock_test.go | 2 +- generate/generate.go | 2 ++ go.sum | 2 ++ test/APIDiscoveryService_test.go | 2 +- test/AccountService_test.go | 2 +- test/AddressService_test.go | 2 +- test/AffinityGroupService_test.go | 2 +- test/AlertService_test.go | 2 +- test/AnnotationService_test.go | 2 +- test/AsyncjobService_test.go | 2 +- test/AuthenticationService_test.go | 2 +- test/AutoScaleService_test.go | 2 +- test/BaremetalService_test.go | 2 +- test/BigSwitchBCFService_test.go | 2 +- test/BrocadeVCSService_test.go | 2 +- test/CertificateService_test.go | 2 +- test/CloudIdentifierService_test.go | 2 +- test/ClusterService_test.go | 2 +- test/ConfigurationService_test.go | 2 +- test/ConsoleEndpointService_test.go | 2 +- test/DiskOfferingService_test.go | 2 +- test/DomainService_test.go | 2 +- test/EventService_test.go | 2 +- test/FirewallService_test.go | 2 +- test/GuestOSService_test.go | 2 +- test/HostService_test.go | 2 +- test/HypervisorService_test.go | 2 +- test/ISOService_test.go | 2 +- test/ImageStoreService_test.go | 2 +- test/InfrastructureUsageService_test.go | 2 +- test/InternalLBService_test.go | 2 +- test/KubernetesService_test.go | 2 +- test/LDAPService_test.go | 2 +- test/LimitService_test.go | 2 +- test/LoadBalancerService_test.go | 2 +- test/NATService_test.go | 2 +- test/NetworkACLService_test.go | 2 +- test/NetworkDeviceService_test.go | 2 +- test/NetworkOfferingService_test.go | 2 +- test/NetworkService_test.go | 2 +- test/NicService_test.go | 2 +- test/NiciraNVPService_test.go | 2 +- test/OutofbandManagementService_test.go | 2 +- test/OvsElementService_test.go | 2 +- test/PodService_test.go | 2 +- test/PoolService_test.go | 2 +- test/PortableIPService_test.go | 2 +- test/ProjectService_test.go | 2 +- test/QuotaService_test.go | 2 +- test/RegionService_test.go | 2 +- test/ResourcemetadataService_test.go | 2 +- test/ResourcetagsService_test.go | 2 +- test/RoleService_test.go | 2 +- test/RouterService_test.go | 2 +- test/SSHService_test.go | 2 +- test/SecurityGroupService_test.go | 2 +- test/ServiceOfferingService_test.go | 2 +- test/SnapshotService_test.go | 2 +- test/StoragePoolService_test.go | 2 +- test/StratosphereSSPService_test.go | 2 +- test/SwiftService_test.go | 2 +- test/SystemCapacityService_test.go | 2 +- test/SystemVMService_test.go | 2 +- test/TemplateService_test.go | 2 +- test/UCSService_test.go | 2 +- test/UsageService_test.go | 2 +- test/UserService_test.go | 2 +- test/VLANService_test.go | 2 +- test/VMGroupService_test.go | 2 +- test/VPCService_test.go | 2 +- test/VPNService_test.go | 2 +- test/VirtualMachineService_test.go | 2 +- test/VolumeService_test.go | 2 +- test/ZoneService_test.go | 2 +- test/cloudstack_test.go | 2 +- 80 files changed, 89 insertions(+), 85 deletions(-) diff --git a/cloudstack/ConsoleEndpointService.go b/cloudstack/ConsoleEndpointService.go index 7dfc369..5fc5f90 100644 --- a/cloudstack/ConsoleEndpointService.go +++ b/cloudstack/ConsoleEndpointService.go @@ -103,12 +103,12 @@ func (s *ConsoleEndpointService) CreateConsoleEndpoint(p *CreateConsoleEndpointP } type CreateConsoleEndpointResponse struct { - Details string `json:"details"` - JobID string `json:"jobid"` - Jobstatus int `json:"jobstatus"` - Success bool `json:"success"` - Url string `json:"url"` - Websocket string `json:"websocket"` + Details string `json:"details"` + JobID string `json:"jobid"` + Jobstatus int `json:"jobstatus"` + Success bool `json:"success"` + Url string `json:"url"` + Websocket map[string]interface{} `json:"websocket"` } func (r *CreateConsoleEndpointResponse) UnmarshalJSON(b []byte) error { diff --git a/cloudstack/NetworkService.go b/cloudstack/NetworkService.go index 1db91b5..929dd90 100644 --- a/cloudstack/NetworkService.go +++ b/cloudstack/NetworkService.go @@ -351,7 +351,7 @@ func (s *NetworkService) NewAddOpenDaylightControllerParams(password string, phy return p } -// Adds an OpenDaylight controller +// Adds an OpenDyalight controler func (s *NetworkService) AddOpenDaylightController(p *AddOpenDaylightControllerParams) (*AddOpenDaylightControllerResponse, error) { resp, err := s.cs.newRequest("addOpenDaylightController", p.toURLValues()) if err != nil { @@ -2229,7 +2229,7 @@ func (s *NetworkService) NewDeleteOpenDaylightControllerParams(id string) *Delet return p } -// Removes an OpenDaylight controller +// Removes an OpenDyalight controler func (s *NetworkService) DeleteOpenDaylightController(p *DeleteOpenDaylightControllerParams) (*DeleteOpenDaylightControllerResponse, error) { resp, err := s.cs.newRequest("deleteOpenDaylightController", p.toURLValues()) if err != nil { @@ -4075,7 +4075,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 OpenDaylight controllers +// Lists OpenDyalight controllers func (s *NetworkService) ListOpenDaylightControllers(p *ListOpenDaylightControllersParams) (*ListOpenDaylightControllersResponse, error) { resp, err := s.cs.newRequest("listOpenDaylightControllers", p.toURLValues()) if err != nil { diff --git a/examples/AddHost.go b/examples/AddHost.go index f9af25e..72f10b9 100644 --- a/examples/AddHost.go +++ b/examples/AddHost.go @@ -24,7 +24,7 @@ import ( "fmt" "log" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func AddHost() { diff --git a/examples/CreateDeleteDomain.go b/examples/CreateDeleteDomain.go index 2053257..21128ae 100644 --- a/examples/CreateDeleteDomain.go +++ b/examples/CreateDeleteDomain.go @@ -24,7 +24,7 @@ import ( "fmt" "log" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func CreateDomain() { diff --git a/examples/HostOperations.go b/examples/HostOperations.go index dde9c5f..da74c11 100644 --- a/examples/HostOperations.go +++ b/examples/HostOperations.go @@ -23,7 +23,7 @@ import ( "encoding/json" "log" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func PerformHostOperations() { diff --git a/examples/mock_test.go b/examples/mock_test.go index b965c3a..efd48ea 100644 --- a/examples/mock_test.go +++ b/examples/mock_test.go @@ -22,8 +22,8 @@ package main import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" "github.com/golang/mock/gomock" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func Test_Mock(t *testing.T) { diff --git a/generate/generate.go b/generate/generate.go index 0a5b09a..fd3310b 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -2166,6 +2166,8 @@ func mapType(aName string, pName string, pType string) string { return "OutOfBandManagementResponse" case "hostharesponse": return "HAForHostResponse" + case "consoleendpointwebsocketresponse": + return "map[string]interface{}" default: return "string" } diff --git a/go.sum b/go.sum index 62a95a8..c32f011 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/apache/cloudstack-go/v2 v2.15.0 h1:oojn1qx0+wBwrFSSmA2rL8XjWd4BXqwYo0RVCrAXoHk= +github.com/apache/cloudstack-go/v2 v2.15.0/go.mod h1:Mc+tXpujtslBuZFk5atoGT2LanVxOrXS2GGgidAoz1A= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= diff --git a/test/APIDiscoveryService_test.go b/test/APIDiscoveryService_test.go index ccd60d1..97ccfa1 100644 --- a/test/APIDiscoveryService_test.go +++ b/test/APIDiscoveryService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAPIDiscoveryService(t *testing.T) { diff --git a/test/AccountService_test.go b/test/AccountService_test.go index be0bbf8..3d462fe 100644 --- a/test/AccountService_test.go +++ b/test/AccountService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAccountService(t *testing.T) { diff --git a/test/AddressService_test.go b/test/AddressService_test.go index 48009ec..1daf14e 100644 --- a/test/AddressService_test.go +++ b/test/AddressService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAddressService(t *testing.T) { diff --git a/test/AffinityGroupService_test.go b/test/AffinityGroupService_test.go index ecddf8e..29ce701 100644 --- a/test/AffinityGroupService_test.go +++ b/test/AffinityGroupService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAffinityGroupService(t *testing.T) { diff --git a/test/AlertService_test.go b/test/AlertService_test.go index e409fe2..a238318 100644 --- a/test/AlertService_test.go +++ b/test/AlertService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAlertService(t *testing.T) { diff --git a/test/AnnotationService_test.go b/test/AnnotationService_test.go index 8784c8f..a29f0c0 100644 --- a/test/AnnotationService_test.go +++ b/test/AnnotationService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAnnotationService(t *testing.T) { diff --git a/test/AsyncjobService_test.go b/test/AsyncjobService_test.go index e89c2bf..a7dbc2d 100644 --- a/test/AsyncjobService_test.go +++ b/test/AsyncjobService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAsyncjobService(t *testing.T) { diff --git a/test/AuthenticationService_test.go b/test/AuthenticationService_test.go index 891b0a5..b2ac8cc 100644 --- a/test/AuthenticationService_test.go +++ b/test/AuthenticationService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAuthenticationService(t *testing.T) { diff --git a/test/AutoScaleService_test.go b/test/AutoScaleService_test.go index 9105c42..9d8a990 100644 --- a/test/AutoScaleService_test.go +++ b/test/AutoScaleService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestAutoScaleService(t *testing.T) { diff --git a/test/BaremetalService_test.go b/test/BaremetalService_test.go index a8f4b8b..a5d46e3 100644 --- a/test/BaremetalService_test.go +++ b/test/BaremetalService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestBaremetalService(t *testing.T) { diff --git a/test/BigSwitchBCFService_test.go b/test/BigSwitchBCFService_test.go index 87d377f..e7e8d6a 100644 --- a/test/BigSwitchBCFService_test.go +++ b/test/BigSwitchBCFService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestBigSwitchBCFService(t *testing.T) { diff --git a/test/BrocadeVCSService_test.go b/test/BrocadeVCSService_test.go index bbd6685..1cbf5cc 100644 --- a/test/BrocadeVCSService_test.go +++ b/test/BrocadeVCSService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestBrocadeVCSService(t *testing.T) { diff --git a/test/CertificateService_test.go b/test/CertificateService_test.go index 1a6caae..56bfdc8 100644 --- a/test/CertificateService_test.go +++ b/test/CertificateService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestCertificateService(t *testing.T) { diff --git a/test/CloudIdentifierService_test.go b/test/CloudIdentifierService_test.go index 6173ff8..ad6bf77 100644 --- a/test/CloudIdentifierService_test.go +++ b/test/CloudIdentifierService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestCloudIdentifierService(t *testing.T) { diff --git a/test/ClusterService_test.go b/test/ClusterService_test.go index 93595aa..6908de2 100644 --- a/test/ClusterService_test.go +++ b/test/ClusterService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestClusterService(t *testing.T) { diff --git a/test/ConfigurationService_test.go b/test/ConfigurationService_test.go index 456d8dd..30a8f47 100644 --- a/test/ConfigurationService_test.go +++ b/test/ConfigurationService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestConfigurationService(t *testing.T) { diff --git a/test/ConsoleEndpointService_test.go b/test/ConsoleEndpointService_test.go index dbdb24f..6391921 100644 --- a/test/ConsoleEndpointService_test.go +++ b/test/ConsoleEndpointService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestConsoleEndpointService(t *testing.T) { diff --git a/test/DiskOfferingService_test.go b/test/DiskOfferingService_test.go index 49f47c3..264b514 100644 --- a/test/DiskOfferingService_test.go +++ b/test/DiskOfferingService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestDiskOfferingService(t *testing.T) { diff --git a/test/DomainService_test.go b/test/DomainService_test.go index 8d2617d..9271732 100644 --- a/test/DomainService_test.go +++ b/test/DomainService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestDomainService(t *testing.T) { diff --git a/test/EventService_test.go b/test/EventService_test.go index a38ad53..39b8574 100644 --- a/test/EventService_test.go +++ b/test/EventService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestEventService(t *testing.T) { diff --git a/test/FirewallService_test.go b/test/FirewallService_test.go index 6e00e0c..7b7251d 100644 --- a/test/FirewallService_test.go +++ b/test/FirewallService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestFirewallService(t *testing.T) { diff --git a/test/GuestOSService_test.go b/test/GuestOSService_test.go index 3c49077..4f7da06 100644 --- a/test/GuestOSService_test.go +++ b/test/GuestOSService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestGuestOSService(t *testing.T) { diff --git a/test/HostService_test.go b/test/HostService_test.go index 30b32c3..14ae167 100644 --- a/test/HostService_test.go +++ b/test/HostService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestHostService(t *testing.T) { diff --git a/test/HypervisorService_test.go b/test/HypervisorService_test.go index 27facfb..835dead 100644 --- a/test/HypervisorService_test.go +++ b/test/HypervisorService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestHypervisorService(t *testing.T) { diff --git a/test/ISOService_test.go b/test/ISOService_test.go index a2a541a..7d5198f 100644 --- a/test/ISOService_test.go +++ b/test/ISOService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestISOService(t *testing.T) { diff --git a/test/ImageStoreService_test.go b/test/ImageStoreService_test.go index 1b04fa1..23e37c5 100644 --- a/test/ImageStoreService_test.go +++ b/test/ImageStoreService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestImageStoreService(t *testing.T) { diff --git a/test/InfrastructureUsageService_test.go b/test/InfrastructureUsageService_test.go index a852f82..1309f63 100644 --- a/test/InfrastructureUsageService_test.go +++ b/test/InfrastructureUsageService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestInfrastructureUsageService(t *testing.T) { diff --git a/test/InternalLBService_test.go b/test/InternalLBService_test.go index c389f2d..dd507ab 100644 --- a/test/InternalLBService_test.go +++ b/test/InternalLBService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestInternalLBService(t *testing.T) { diff --git a/test/KubernetesService_test.go b/test/KubernetesService_test.go index 3f60975..4fba4a6 100644 --- a/test/KubernetesService_test.go +++ b/test/KubernetesService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestKubernetesService(t *testing.T) { diff --git a/test/LDAPService_test.go b/test/LDAPService_test.go index eb3632d..8392bb2 100644 --- a/test/LDAPService_test.go +++ b/test/LDAPService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestLDAPService(t *testing.T) { diff --git a/test/LimitService_test.go b/test/LimitService_test.go index 57d1991..024a842 100644 --- a/test/LimitService_test.go +++ b/test/LimitService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestLimitService(t *testing.T) { diff --git a/test/LoadBalancerService_test.go b/test/LoadBalancerService_test.go index ac7dd43..42ba188 100644 --- a/test/LoadBalancerService_test.go +++ b/test/LoadBalancerService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestLoadBalancerService(t *testing.T) { diff --git a/test/NATService_test.go b/test/NATService_test.go index b79e1d6..f58c601 100644 --- a/test/NATService_test.go +++ b/test/NATService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestNATService(t *testing.T) { diff --git a/test/NetworkACLService_test.go b/test/NetworkACLService_test.go index cfa7024..8fb9665 100644 --- a/test/NetworkACLService_test.go +++ b/test/NetworkACLService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestNetworkACLService(t *testing.T) { diff --git a/test/NetworkDeviceService_test.go b/test/NetworkDeviceService_test.go index fdc4b55..dabc82d 100644 --- a/test/NetworkDeviceService_test.go +++ b/test/NetworkDeviceService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestNetworkDeviceService(t *testing.T) { diff --git a/test/NetworkOfferingService_test.go b/test/NetworkOfferingService_test.go index 164e1c0..fdee62d 100644 --- a/test/NetworkOfferingService_test.go +++ b/test/NetworkOfferingService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestNetworkOfferingService(t *testing.T) { diff --git a/test/NetworkService_test.go b/test/NetworkService_test.go index 1bff3c2..ec8583b 100644 --- a/test/NetworkService_test.go +++ b/test/NetworkService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestNetworkService(t *testing.T) { diff --git a/test/NicService_test.go b/test/NicService_test.go index e61039c..dbcb744 100644 --- a/test/NicService_test.go +++ b/test/NicService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestNicService(t *testing.T) { diff --git a/test/NiciraNVPService_test.go b/test/NiciraNVPService_test.go index 86e90cc..9170360 100644 --- a/test/NiciraNVPService_test.go +++ b/test/NiciraNVPService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestNiciraNVPService(t *testing.T) { diff --git a/test/OutofbandManagementService_test.go b/test/OutofbandManagementService_test.go index 96d7683..28b96a4 100644 --- a/test/OutofbandManagementService_test.go +++ b/test/OutofbandManagementService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestOutofbandManagementService(t *testing.T) { diff --git a/test/OvsElementService_test.go b/test/OvsElementService_test.go index 485afb4..605c441 100644 --- a/test/OvsElementService_test.go +++ b/test/OvsElementService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestOvsElementService(t *testing.T) { diff --git a/test/PodService_test.go b/test/PodService_test.go index 9e58ed5..450aa9d 100644 --- a/test/PodService_test.go +++ b/test/PodService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestPodService(t *testing.T) { diff --git a/test/PoolService_test.go b/test/PoolService_test.go index 8d2337e..deb4bd4 100644 --- a/test/PoolService_test.go +++ b/test/PoolService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestPoolService(t *testing.T) { diff --git a/test/PortableIPService_test.go b/test/PortableIPService_test.go index c1001fa..80c76ea 100644 --- a/test/PortableIPService_test.go +++ b/test/PortableIPService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestPortableIPService(t *testing.T) { diff --git a/test/ProjectService_test.go b/test/ProjectService_test.go index 467f02b..39fb9c9 100644 --- a/test/ProjectService_test.go +++ b/test/ProjectService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestProjectService(t *testing.T) { diff --git a/test/QuotaService_test.go b/test/QuotaService_test.go index 8d1c04f..c4f0fe1 100644 --- a/test/QuotaService_test.go +++ b/test/QuotaService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestQuotaService(t *testing.T) { diff --git a/test/RegionService_test.go b/test/RegionService_test.go index 1cf2ed0..9d34f68 100644 --- a/test/RegionService_test.go +++ b/test/RegionService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestRegionService(t *testing.T) { diff --git a/test/ResourcemetadataService_test.go b/test/ResourcemetadataService_test.go index 3c1f520..f641ada 100644 --- a/test/ResourcemetadataService_test.go +++ b/test/ResourcemetadataService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestResourcemetadataService(t *testing.T) { diff --git a/test/ResourcetagsService_test.go b/test/ResourcetagsService_test.go index 77d5e2a..d2241f4 100644 --- a/test/ResourcetagsService_test.go +++ b/test/ResourcetagsService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestResourcetagsService(t *testing.T) { diff --git a/test/RoleService_test.go b/test/RoleService_test.go index 6ec14ad..c376d6d 100644 --- a/test/RoleService_test.go +++ b/test/RoleService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestRoleService(t *testing.T) { diff --git a/test/RouterService_test.go b/test/RouterService_test.go index 7557c41..0325f03 100644 --- a/test/RouterService_test.go +++ b/test/RouterService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestRouterService(t *testing.T) { diff --git a/test/SSHService_test.go b/test/SSHService_test.go index d3ade54..af78afe 100644 --- a/test/SSHService_test.go +++ b/test/SSHService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestSSHService(t *testing.T) { diff --git a/test/SecurityGroupService_test.go b/test/SecurityGroupService_test.go index bd30cbf..d870bd2 100644 --- a/test/SecurityGroupService_test.go +++ b/test/SecurityGroupService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestSecurityGroupService(t *testing.T) { diff --git a/test/ServiceOfferingService_test.go b/test/ServiceOfferingService_test.go index a587610..5955cce 100644 --- a/test/ServiceOfferingService_test.go +++ b/test/ServiceOfferingService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestServiceOfferingService(t *testing.T) { diff --git a/test/SnapshotService_test.go b/test/SnapshotService_test.go index db6edc4..e12d2ba 100644 --- a/test/SnapshotService_test.go +++ b/test/SnapshotService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestSnapshotService(t *testing.T) { diff --git a/test/StoragePoolService_test.go b/test/StoragePoolService_test.go index 439ca0a..3117884 100644 --- a/test/StoragePoolService_test.go +++ b/test/StoragePoolService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestStoragePoolService(t *testing.T) { diff --git a/test/StratosphereSSPService_test.go b/test/StratosphereSSPService_test.go index 4edd2bf..0b52450 100644 --- a/test/StratosphereSSPService_test.go +++ b/test/StratosphereSSPService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestStratosphereSSPService(t *testing.T) { diff --git a/test/SwiftService_test.go b/test/SwiftService_test.go index b2fd697..6fe30df 100644 --- a/test/SwiftService_test.go +++ b/test/SwiftService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestSwiftService(t *testing.T) { diff --git a/test/SystemCapacityService_test.go b/test/SystemCapacityService_test.go index 7f6e5bd..ac6b753 100644 --- a/test/SystemCapacityService_test.go +++ b/test/SystemCapacityService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestSystemCapacityService(t *testing.T) { diff --git a/test/SystemVMService_test.go b/test/SystemVMService_test.go index e958d72..976c66a 100644 --- a/test/SystemVMService_test.go +++ b/test/SystemVMService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestSystemVMService(t *testing.T) { diff --git a/test/TemplateService_test.go b/test/TemplateService_test.go index 555482f..dd156bf 100644 --- a/test/TemplateService_test.go +++ b/test/TemplateService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestTemplateService(t *testing.T) { diff --git a/test/UCSService_test.go b/test/UCSService_test.go index 9df5d66..4f2332e 100644 --- a/test/UCSService_test.go +++ b/test/UCSService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestUCSService(t *testing.T) { diff --git a/test/UsageService_test.go b/test/UsageService_test.go index bd7a1e3..9e5c6b5 100644 --- a/test/UsageService_test.go +++ b/test/UsageService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestUsageService(t *testing.T) { diff --git a/test/UserService_test.go b/test/UserService_test.go index 4ec0cba..39e841b 100644 --- a/test/UserService_test.go +++ b/test/UserService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestUserService(t *testing.T) { diff --git a/test/VLANService_test.go b/test/VLANService_test.go index dec4713..3509ba1 100644 --- a/test/VLANService_test.go +++ b/test/VLANService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestVLANService(t *testing.T) { diff --git a/test/VMGroupService_test.go b/test/VMGroupService_test.go index 711b178..1be4a61 100644 --- a/test/VMGroupService_test.go +++ b/test/VMGroupService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestVMGroupService(t *testing.T) { diff --git a/test/VPCService_test.go b/test/VPCService_test.go index a1ca156..966f8cb 100644 --- a/test/VPCService_test.go +++ b/test/VPCService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestVPCService(t *testing.T) { diff --git a/test/VPNService_test.go b/test/VPNService_test.go index 20cb349..2b2530c 100644 --- a/test/VPNService_test.go +++ b/test/VPNService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestVPNService(t *testing.T) { diff --git a/test/VirtualMachineService_test.go b/test/VirtualMachineService_test.go index 3fb706c..fbd48a7 100644 --- a/test/VirtualMachineService_test.go +++ b/test/VirtualMachineService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestVirtualMachineService(t *testing.T) { diff --git a/test/VolumeService_test.go b/test/VolumeService_test.go index 1ff7efd..8377960 100644 --- a/test/VolumeService_test.go +++ b/test/VolumeService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestVolumeService(t *testing.T) { diff --git a/test/ZoneService_test.go b/test/ZoneService_test.go index 8cbb310..c7461a5 100644 --- a/test/ZoneService_test.go +++ b/test/ZoneService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func TestZoneService(t *testing.T) { diff --git a/test/cloudstack_test.go b/test/cloudstack_test.go index 46f03d5..cda9b70 100644 --- a/test/cloudstack_test.go +++ b/test/cloudstack_test.go @@ -28,7 +28,7 @@ import ( "net/url" "testing" - "github.com/apache/cloudstack-go/v2/cloudstack" + "github.com/sbrueseke/cloudstack-go/v2/cloudstack" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" From e94fc6d170af0f66401b11034daba1a5c8308c65 Mon Sep 17 00:00:00 2001 From: matiaschapresto Date: Mon, 26 Feb 2024 17:04:03 +0100 Subject: [PATCH 06/10] add wrapper object --- cloudstack/ConsoleEndpointService.go | 7 +++++-- generate/generate.go | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cloudstack/ConsoleEndpointService.go b/cloudstack/ConsoleEndpointService.go index 5fc5f90..800ff90 100644 --- a/cloudstack/ConsoleEndpointService.go +++ b/cloudstack/ConsoleEndpointService.go @@ -94,10 +94,13 @@ func (s *ConsoleEndpointService) CreateConsoleEndpoint(p *CreateConsoleEndpointP return nil, err } - var r CreateConsoleEndpointResponse - if err := json.Unmarshal(resp, &r); err != nil { + var nested struct { + Response CreateConsoleEndpointResponse `json:"consoleendpoint"` + } + if err := json.Unmarshal(resp, &nested); err != nil { return nil, err } + r := nested.Response return &r, nil } diff --git a/generate/generate.go b/generate/generate.go index fd3310b..73739ff 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -83,6 +83,7 @@ var nestedResponse = map[string]string{ "getCloudIdentifier": "cloudidentifier", "getKubernetesClusterConfig": "clusterconfig", "getPathForVolume": "apipathforvolume", + "createConsoleEndpoint": "consoleendpoint", } // longToStringConvertedParams is a prefilled map with the list of From a0bbfde3729d21a7ba401558306c3c82c530db36 Mon Sep 17 00:00:00 2001 From: matiaschapresto Date: Thu, 29 Feb 2024 18:19:05 +0100 Subject: [PATCH 07/10] revert internal links --- examples/AddHost.go | 2 +- examples/CreateDeleteDomain.go | 2 +- examples/HostOperations.go | 2 +- examples/mock_test.go | 2 +- go.mod | 2 +- test/APIDiscoveryService_test.go | 2 +- test/AccountService_test.go | 2 +- test/AddressService_test.go | 2 +- test/AffinityGroupService_test.go | 2 +- test/AlertService_test.go | 2 +- test/AnnotationService_test.go | 2 +- test/AsyncjobService_test.go | 2 +- test/AuthenticationService_test.go | 2 +- test/AutoScaleService_test.go | 2 +- test/BaremetalService_test.go | 2 +- test/BigSwitchBCFService_test.go | 2 +- test/BrocadeVCSService_test.go | 2 +- test/CertificateService_test.go | 2 +- test/CloudIdentifierService_test.go | 2 +- test/ClusterService_test.go | 2 +- test/ConfigurationService_test.go | 2 +- test/ConsoleEndpointService_test.go | 2 +- test/DiskOfferingService_test.go | 2 +- test/DomainService_test.go | 2 +- test/EventService_test.go | 2 +- test/FirewallService_test.go | 2 +- test/GuestOSService_test.go | 2 +- test/HostService_test.go | 2 +- test/HypervisorService_test.go | 2 +- test/ISOService_test.go | 2 +- test/ImageStoreService_test.go | 2 +- test/InfrastructureUsageService_test.go | 2 +- test/InternalLBService_test.go | 2 +- test/KubernetesService_test.go | 2 +- test/LDAPService_test.go | 2 +- test/LimitService_test.go | 2 +- test/LoadBalancerService_test.go | 2 +- test/NATService_test.go | 2 +- test/NetworkACLService_test.go | 2 +- test/NetworkDeviceService_test.go | 2 +- test/NetworkOfferingService_test.go | 2 +- test/NetworkService_test.go | 2 +- test/NicService_test.go | 2 +- test/NiciraNVPService_test.go | 2 +- test/OutofbandManagementService_test.go | 2 +- test/OvsElementService_test.go | 2 +- test/PodService_test.go | 2 +- test/PoolService_test.go | 2 +- test/PortableIPService_test.go | 2 +- test/ProjectService_test.go | 2 +- test/QuotaService_test.go | 2 +- test/RegionService_test.go | 2 +- test/ResourcemetadataService_test.go | 2 +- test/ResourcetagsService_test.go | 2 +- test/RoleService_test.go | 2 +- test/RouterService_test.go | 2 +- test/SSHService_test.go | 2 +- test/SecurityGroupService_test.go | 2 +- test/ServiceOfferingService_test.go | 2 +- test/SnapshotService_test.go | 2 +- test/StoragePoolService_test.go | 2 +- test/StratosphereSSPService_test.go | 2 +- test/SwiftService_test.go | 2 +- test/SystemCapacityService_test.go | 2 +- test/SystemVMService_test.go | 2 +- test/TemplateService_test.go | 2 +- test/UCSService_test.go | 2 +- test/UsageService_test.go | 2 +- test/UserService_test.go | 2 +- test/VLANService_test.go | 2 +- test/VMGroupService_test.go | 2 +- test/VPCService_test.go | 2 +- test/VPNService_test.go | 2 +- test/VirtualMachineService_test.go | 2 +- test/VolumeService_test.go | 2 +- test/ZoneService_test.go | 2 +- test/cloudstack_test.go | 2 +- 77 files changed, 77 insertions(+), 77 deletions(-) diff --git a/examples/AddHost.go b/examples/AddHost.go index 72f10b9..f9af25e 100644 --- a/examples/AddHost.go +++ b/examples/AddHost.go @@ -24,7 +24,7 @@ import ( "fmt" "log" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func AddHost() { diff --git a/examples/CreateDeleteDomain.go b/examples/CreateDeleteDomain.go index 21128ae..2053257 100644 --- a/examples/CreateDeleteDomain.go +++ b/examples/CreateDeleteDomain.go @@ -24,7 +24,7 @@ import ( "fmt" "log" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func CreateDomain() { diff --git a/examples/HostOperations.go b/examples/HostOperations.go index da74c11..dde9c5f 100644 --- a/examples/HostOperations.go +++ b/examples/HostOperations.go @@ -23,7 +23,7 @@ import ( "encoding/json" "log" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func PerformHostOperations() { diff --git a/examples/mock_test.go b/examples/mock_test.go index efd48ea..b965c3a 100644 --- a/examples/mock_test.go +++ b/examples/mock_test.go @@ -22,8 +22,8 @@ package main import ( "testing" + "github.com/apache/cloudstack-go/v2/cloudstack" "github.com/golang/mock/gomock" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" ) func Test_Mock(t *testing.T) { diff --git a/go.mod b/go.mod index 4f32459..adbe784 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/sbrueseke/cloudstack-go/v2 +module github.com/apache/cloudstack-go/v2 go 1.17 diff --git a/test/APIDiscoveryService_test.go b/test/APIDiscoveryService_test.go index 97ccfa1..ccd60d1 100644 --- a/test/APIDiscoveryService_test.go +++ b/test/APIDiscoveryService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAPIDiscoveryService(t *testing.T) { diff --git a/test/AccountService_test.go b/test/AccountService_test.go index 3d462fe..be0bbf8 100644 --- a/test/AccountService_test.go +++ b/test/AccountService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAccountService(t *testing.T) { diff --git a/test/AddressService_test.go b/test/AddressService_test.go index 1daf14e..48009ec 100644 --- a/test/AddressService_test.go +++ b/test/AddressService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAddressService(t *testing.T) { diff --git a/test/AffinityGroupService_test.go b/test/AffinityGroupService_test.go index 29ce701..ecddf8e 100644 --- a/test/AffinityGroupService_test.go +++ b/test/AffinityGroupService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAffinityGroupService(t *testing.T) { diff --git a/test/AlertService_test.go b/test/AlertService_test.go index a238318..e409fe2 100644 --- a/test/AlertService_test.go +++ b/test/AlertService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAlertService(t *testing.T) { diff --git a/test/AnnotationService_test.go b/test/AnnotationService_test.go index a29f0c0..8784c8f 100644 --- a/test/AnnotationService_test.go +++ b/test/AnnotationService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAnnotationService(t *testing.T) { diff --git a/test/AsyncjobService_test.go b/test/AsyncjobService_test.go index a7dbc2d..e89c2bf 100644 --- a/test/AsyncjobService_test.go +++ b/test/AsyncjobService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAsyncjobService(t *testing.T) { diff --git a/test/AuthenticationService_test.go b/test/AuthenticationService_test.go index b2ac8cc..891b0a5 100644 --- a/test/AuthenticationService_test.go +++ b/test/AuthenticationService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAuthenticationService(t *testing.T) { diff --git a/test/AutoScaleService_test.go b/test/AutoScaleService_test.go index 9d8a990..9105c42 100644 --- a/test/AutoScaleService_test.go +++ b/test/AutoScaleService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestAutoScaleService(t *testing.T) { diff --git a/test/BaremetalService_test.go b/test/BaremetalService_test.go index a5d46e3..a8f4b8b 100644 --- a/test/BaremetalService_test.go +++ b/test/BaremetalService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestBaremetalService(t *testing.T) { diff --git a/test/BigSwitchBCFService_test.go b/test/BigSwitchBCFService_test.go index e7e8d6a..87d377f 100644 --- a/test/BigSwitchBCFService_test.go +++ b/test/BigSwitchBCFService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestBigSwitchBCFService(t *testing.T) { diff --git a/test/BrocadeVCSService_test.go b/test/BrocadeVCSService_test.go index 1cbf5cc..bbd6685 100644 --- a/test/BrocadeVCSService_test.go +++ b/test/BrocadeVCSService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestBrocadeVCSService(t *testing.T) { diff --git a/test/CertificateService_test.go b/test/CertificateService_test.go index 56bfdc8..1a6caae 100644 --- a/test/CertificateService_test.go +++ b/test/CertificateService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestCertificateService(t *testing.T) { diff --git a/test/CloudIdentifierService_test.go b/test/CloudIdentifierService_test.go index ad6bf77..6173ff8 100644 --- a/test/CloudIdentifierService_test.go +++ b/test/CloudIdentifierService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestCloudIdentifierService(t *testing.T) { diff --git a/test/ClusterService_test.go b/test/ClusterService_test.go index 6908de2..93595aa 100644 --- a/test/ClusterService_test.go +++ b/test/ClusterService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestClusterService(t *testing.T) { diff --git a/test/ConfigurationService_test.go b/test/ConfigurationService_test.go index 30a8f47..456d8dd 100644 --- a/test/ConfigurationService_test.go +++ b/test/ConfigurationService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestConfigurationService(t *testing.T) { diff --git a/test/ConsoleEndpointService_test.go b/test/ConsoleEndpointService_test.go index 6391921..dbdb24f 100644 --- a/test/ConsoleEndpointService_test.go +++ b/test/ConsoleEndpointService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestConsoleEndpointService(t *testing.T) { diff --git a/test/DiskOfferingService_test.go b/test/DiskOfferingService_test.go index 264b514..49f47c3 100644 --- a/test/DiskOfferingService_test.go +++ b/test/DiskOfferingService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestDiskOfferingService(t *testing.T) { diff --git a/test/DomainService_test.go b/test/DomainService_test.go index 9271732..8d2617d 100644 --- a/test/DomainService_test.go +++ b/test/DomainService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestDomainService(t *testing.T) { diff --git a/test/EventService_test.go b/test/EventService_test.go index 39b8574..a38ad53 100644 --- a/test/EventService_test.go +++ b/test/EventService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestEventService(t *testing.T) { diff --git a/test/FirewallService_test.go b/test/FirewallService_test.go index 7b7251d..6e00e0c 100644 --- a/test/FirewallService_test.go +++ b/test/FirewallService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestFirewallService(t *testing.T) { diff --git a/test/GuestOSService_test.go b/test/GuestOSService_test.go index 4f7da06..3c49077 100644 --- a/test/GuestOSService_test.go +++ b/test/GuestOSService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestGuestOSService(t *testing.T) { diff --git a/test/HostService_test.go b/test/HostService_test.go index 14ae167..30b32c3 100644 --- a/test/HostService_test.go +++ b/test/HostService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestHostService(t *testing.T) { diff --git a/test/HypervisorService_test.go b/test/HypervisorService_test.go index 835dead..27facfb 100644 --- a/test/HypervisorService_test.go +++ b/test/HypervisorService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestHypervisorService(t *testing.T) { diff --git a/test/ISOService_test.go b/test/ISOService_test.go index 7d5198f..a2a541a 100644 --- a/test/ISOService_test.go +++ b/test/ISOService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestISOService(t *testing.T) { diff --git a/test/ImageStoreService_test.go b/test/ImageStoreService_test.go index 23e37c5..1b04fa1 100644 --- a/test/ImageStoreService_test.go +++ b/test/ImageStoreService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestImageStoreService(t *testing.T) { diff --git a/test/InfrastructureUsageService_test.go b/test/InfrastructureUsageService_test.go index 1309f63..a852f82 100644 --- a/test/InfrastructureUsageService_test.go +++ b/test/InfrastructureUsageService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestInfrastructureUsageService(t *testing.T) { diff --git a/test/InternalLBService_test.go b/test/InternalLBService_test.go index dd507ab..c389f2d 100644 --- a/test/InternalLBService_test.go +++ b/test/InternalLBService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestInternalLBService(t *testing.T) { diff --git a/test/KubernetesService_test.go b/test/KubernetesService_test.go index 4fba4a6..3f60975 100644 --- a/test/KubernetesService_test.go +++ b/test/KubernetesService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestKubernetesService(t *testing.T) { diff --git a/test/LDAPService_test.go b/test/LDAPService_test.go index 8392bb2..eb3632d 100644 --- a/test/LDAPService_test.go +++ b/test/LDAPService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestLDAPService(t *testing.T) { diff --git a/test/LimitService_test.go b/test/LimitService_test.go index 024a842..57d1991 100644 --- a/test/LimitService_test.go +++ b/test/LimitService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestLimitService(t *testing.T) { diff --git a/test/LoadBalancerService_test.go b/test/LoadBalancerService_test.go index 42ba188..ac7dd43 100644 --- a/test/LoadBalancerService_test.go +++ b/test/LoadBalancerService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestLoadBalancerService(t *testing.T) { diff --git a/test/NATService_test.go b/test/NATService_test.go index f58c601..b79e1d6 100644 --- a/test/NATService_test.go +++ b/test/NATService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestNATService(t *testing.T) { diff --git a/test/NetworkACLService_test.go b/test/NetworkACLService_test.go index 8fb9665..cfa7024 100644 --- a/test/NetworkACLService_test.go +++ b/test/NetworkACLService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestNetworkACLService(t *testing.T) { diff --git a/test/NetworkDeviceService_test.go b/test/NetworkDeviceService_test.go index dabc82d..fdc4b55 100644 --- a/test/NetworkDeviceService_test.go +++ b/test/NetworkDeviceService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestNetworkDeviceService(t *testing.T) { diff --git a/test/NetworkOfferingService_test.go b/test/NetworkOfferingService_test.go index fdee62d..164e1c0 100644 --- a/test/NetworkOfferingService_test.go +++ b/test/NetworkOfferingService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestNetworkOfferingService(t *testing.T) { diff --git a/test/NetworkService_test.go b/test/NetworkService_test.go index ec8583b..1bff3c2 100644 --- a/test/NetworkService_test.go +++ b/test/NetworkService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestNetworkService(t *testing.T) { diff --git a/test/NicService_test.go b/test/NicService_test.go index dbcb744..e61039c 100644 --- a/test/NicService_test.go +++ b/test/NicService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestNicService(t *testing.T) { diff --git a/test/NiciraNVPService_test.go b/test/NiciraNVPService_test.go index 9170360..86e90cc 100644 --- a/test/NiciraNVPService_test.go +++ b/test/NiciraNVPService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestNiciraNVPService(t *testing.T) { diff --git a/test/OutofbandManagementService_test.go b/test/OutofbandManagementService_test.go index 28b96a4..96d7683 100644 --- a/test/OutofbandManagementService_test.go +++ b/test/OutofbandManagementService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestOutofbandManagementService(t *testing.T) { diff --git a/test/OvsElementService_test.go b/test/OvsElementService_test.go index 605c441..485afb4 100644 --- a/test/OvsElementService_test.go +++ b/test/OvsElementService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestOvsElementService(t *testing.T) { diff --git a/test/PodService_test.go b/test/PodService_test.go index 450aa9d..9e58ed5 100644 --- a/test/PodService_test.go +++ b/test/PodService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestPodService(t *testing.T) { diff --git a/test/PoolService_test.go b/test/PoolService_test.go index deb4bd4..8d2337e 100644 --- a/test/PoolService_test.go +++ b/test/PoolService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestPoolService(t *testing.T) { diff --git a/test/PortableIPService_test.go b/test/PortableIPService_test.go index 80c76ea..c1001fa 100644 --- a/test/PortableIPService_test.go +++ b/test/PortableIPService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestPortableIPService(t *testing.T) { diff --git a/test/ProjectService_test.go b/test/ProjectService_test.go index 39fb9c9..467f02b 100644 --- a/test/ProjectService_test.go +++ b/test/ProjectService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestProjectService(t *testing.T) { diff --git a/test/QuotaService_test.go b/test/QuotaService_test.go index c4f0fe1..8d1c04f 100644 --- a/test/QuotaService_test.go +++ b/test/QuotaService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestQuotaService(t *testing.T) { diff --git a/test/RegionService_test.go b/test/RegionService_test.go index 9d34f68..1cf2ed0 100644 --- a/test/RegionService_test.go +++ b/test/RegionService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestRegionService(t *testing.T) { diff --git a/test/ResourcemetadataService_test.go b/test/ResourcemetadataService_test.go index f641ada..3c1f520 100644 --- a/test/ResourcemetadataService_test.go +++ b/test/ResourcemetadataService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestResourcemetadataService(t *testing.T) { diff --git a/test/ResourcetagsService_test.go b/test/ResourcetagsService_test.go index d2241f4..77d5e2a 100644 --- a/test/ResourcetagsService_test.go +++ b/test/ResourcetagsService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestResourcetagsService(t *testing.T) { diff --git a/test/RoleService_test.go b/test/RoleService_test.go index c376d6d..6ec14ad 100644 --- a/test/RoleService_test.go +++ b/test/RoleService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestRoleService(t *testing.T) { diff --git a/test/RouterService_test.go b/test/RouterService_test.go index 0325f03..7557c41 100644 --- a/test/RouterService_test.go +++ b/test/RouterService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestRouterService(t *testing.T) { diff --git a/test/SSHService_test.go b/test/SSHService_test.go index af78afe..d3ade54 100644 --- a/test/SSHService_test.go +++ b/test/SSHService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestSSHService(t *testing.T) { diff --git a/test/SecurityGroupService_test.go b/test/SecurityGroupService_test.go index d870bd2..bd30cbf 100644 --- a/test/SecurityGroupService_test.go +++ b/test/SecurityGroupService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestSecurityGroupService(t *testing.T) { diff --git a/test/ServiceOfferingService_test.go b/test/ServiceOfferingService_test.go index 5955cce..a587610 100644 --- a/test/ServiceOfferingService_test.go +++ b/test/ServiceOfferingService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestServiceOfferingService(t *testing.T) { diff --git a/test/SnapshotService_test.go b/test/SnapshotService_test.go index e12d2ba..db6edc4 100644 --- a/test/SnapshotService_test.go +++ b/test/SnapshotService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestSnapshotService(t *testing.T) { diff --git a/test/StoragePoolService_test.go b/test/StoragePoolService_test.go index 3117884..439ca0a 100644 --- a/test/StoragePoolService_test.go +++ b/test/StoragePoolService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestStoragePoolService(t *testing.T) { diff --git a/test/StratosphereSSPService_test.go b/test/StratosphereSSPService_test.go index 0b52450..4edd2bf 100644 --- a/test/StratosphereSSPService_test.go +++ b/test/StratosphereSSPService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestStratosphereSSPService(t *testing.T) { diff --git a/test/SwiftService_test.go b/test/SwiftService_test.go index 6fe30df..b2fd697 100644 --- a/test/SwiftService_test.go +++ b/test/SwiftService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestSwiftService(t *testing.T) { diff --git a/test/SystemCapacityService_test.go b/test/SystemCapacityService_test.go index ac6b753..7f6e5bd 100644 --- a/test/SystemCapacityService_test.go +++ b/test/SystemCapacityService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestSystemCapacityService(t *testing.T) { diff --git a/test/SystemVMService_test.go b/test/SystemVMService_test.go index 976c66a..e958d72 100644 --- a/test/SystemVMService_test.go +++ b/test/SystemVMService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestSystemVMService(t *testing.T) { diff --git a/test/TemplateService_test.go b/test/TemplateService_test.go index dd156bf..555482f 100644 --- a/test/TemplateService_test.go +++ b/test/TemplateService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestTemplateService(t *testing.T) { diff --git a/test/UCSService_test.go b/test/UCSService_test.go index 4f2332e..9df5d66 100644 --- a/test/UCSService_test.go +++ b/test/UCSService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestUCSService(t *testing.T) { diff --git a/test/UsageService_test.go b/test/UsageService_test.go index 9e5c6b5..bd7a1e3 100644 --- a/test/UsageService_test.go +++ b/test/UsageService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestUsageService(t *testing.T) { diff --git a/test/UserService_test.go b/test/UserService_test.go index 39e841b..4ec0cba 100644 --- a/test/UserService_test.go +++ b/test/UserService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestUserService(t *testing.T) { diff --git a/test/VLANService_test.go b/test/VLANService_test.go index 3509ba1..dec4713 100644 --- a/test/VLANService_test.go +++ b/test/VLANService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestVLANService(t *testing.T) { diff --git a/test/VMGroupService_test.go b/test/VMGroupService_test.go index 1be4a61..711b178 100644 --- a/test/VMGroupService_test.go +++ b/test/VMGroupService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestVMGroupService(t *testing.T) { diff --git a/test/VPCService_test.go b/test/VPCService_test.go index 966f8cb..a1ca156 100644 --- a/test/VPCService_test.go +++ b/test/VPCService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestVPCService(t *testing.T) { diff --git a/test/VPNService_test.go b/test/VPNService_test.go index 2b2530c..20cb349 100644 --- a/test/VPNService_test.go +++ b/test/VPNService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestVPNService(t *testing.T) { diff --git a/test/VirtualMachineService_test.go b/test/VirtualMachineService_test.go index fbd48a7..3fb706c 100644 --- a/test/VirtualMachineService_test.go +++ b/test/VirtualMachineService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestVirtualMachineService(t *testing.T) { diff --git a/test/VolumeService_test.go b/test/VolumeService_test.go index 8377960..1ff7efd 100644 --- a/test/VolumeService_test.go +++ b/test/VolumeService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestVolumeService(t *testing.T) { diff --git a/test/ZoneService_test.go b/test/ZoneService_test.go index c7461a5..8cbb310 100644 --- a/test/ZoneService_test.go +++ b/test/ZoneService_test.go @@ -22,7 +22,7 @@ package test import ( "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" ) func TestZoneService(t *testing.T) { diff --git a/test/cloudstack_test.go b/test/cloudstack_test.go index cda9b70..46f03d5 100644 --- a/test/cloudstack_test.go +++ b/test/cloudstack_test.go @@ -28,7 +28,7 @@ import ( "net/url" "testing" - "github.com/sbrueseke/cloudstack-go/v2/cloudstack" + "github.com/apache/cloudstack-go/v2/cloudstack" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" From 2587ea09e29ee3b3d1f94c53abebfcc7cc2a4aba Mon Sep 17 00:00:00 2001 From: matiaschapresto Date: Thu, 29 Feb 2024 18:21:03 +0100 Subject: [PATCH 08/10] revert internal links --- go.sum | 2 -- 1 file changed, 2 deletions(-) diff --git a/go.sum b/go.sum index c32f011..62a95a8 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/apache/cloudstack-go/v2 v2.15.0 h1:oojn1qx0+wBwrFSSmA2rL8XjWd4BXqwYo0RVCrAXoHk= -github.com/apache/cloudstack-go/v2 v2.15.0/go.mod h1:Mc+tXpujtslBuZFk5atoGT2LanVxOrXS2GGgidAoz1A= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= From 8ae8a08ae0e7e063cd834ee85113aa39571d4f8f Mon Sep 17 00:00:00 2001 From: sbrueseke Date: Fri, 1 Mar 2024 10:43:27 +0100 Subject: [PATCH 09/10] spelling --- cloudstack/NetworkService.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudstack/NetworkService.go b/cloudstack/NetworkService.go index 929dd90..5188958 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 controler func (s *NetworkService) AddOpenDaylightController(p *AddOpenDaylightControllerParams) (*AddOpenDaylightControllerResponse, error) { resp, err := s.cs.newRequest("addOpenDaylightController", p.toURLValues()) if err != nil { @@ -2229,7 +2229,7 @@ func (s *NetworkService) NewDeleteOpenDaylightControllerParams(id string) *Delet return p } -// Removes an OpenDyalight controler +// Removes an OpenDaylight controler func (s *NetworkService) DeleteOpenDaylightController(p *DeleteOpenDaylightControllerParams) (*DeleteOpenDaylightControllerResponse, error) { resp, err := s.cs.newRequest("deleteOpenDaylightController", p.toURLValues()) if err != nil { @@ -4075,7 +4075,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 { From 66a28622e83cd4eb0bb37c6587190d44295dc329 Mon Sep 17 00:00:00 2001 From: sbrueseke Date: Fri, 1 Mar 2024 10:46:09 +0100 Subject: [PATCH 10/10] spelling --- cloudstack/NetworkService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudstack/NetworkService.go b/cloudstack/NetworkService.go index 5188958..1db91b5 100644 --- a/cloudstack/NetworkService.go +++ b/cloudstack/NetworkService.go @@ -351,7 +351,7 @@ func (s *NetworkService) NewAddOpenDaylightControllerParams(password string, phy return p } -// Adds an OpenDaylight controler +// Adds an OpenDaylight controller func (s *NetworkService) AddOpenDaylightController(p *AddOpenDaylightControllerParams) (*AddOpenDaylightControllerResponse, error) { resp, err := s.cs.newRequest("addOpenDaylightController", p.toURLValues()) if err != nil { @@ -2229,7 +2229,7 @@ func (s *NetworkService) NewDeleteOpenDaylightControllerParams(id string) *Delet return p } -// Removes an OpenDaylight controler +// Removes an OpenDaylight controller func (s *NetworkService) DeleteOpenDaylightController(p *DeleteOpenDaylightControllerParams) (*DeleteOpenDaylightControllerResponse, error) { resp, err := s.cs.newRequest("deleteOpenDaylightController", p.toURLValues()) if err != nil {