Skip to content

Commit

Permalink
cloud-connection: Signature changed for AddNetwork & DeleteNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirendersingh19 authored and yussufsh committed Aug 23, 2022
1 parent f92f275 commit 8d60a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/instance/ibm-pi-cloud-connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (f *IBMPICloudConnectionClient) Delete(id string) (*models.JobReference, er
}

// Add a Network to a Cloud Connection
func (f *IBMPICloudConnectionClient) AddNetwork(id, networkID string) (*models.CloudConnection, *models.JobReference, error) {
func (f *IBMPICloudConnectionClient) AddNetwork(id, networkID string) (models.Object, *models.JobReference, error) {
params := p_cloud_cloud_connections.NewPcloudCloudconnectionsNetworksPutParams().
WithContext(f.ctx).WithTimeout(helpers.PIUpdateTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithCloudConnectionID(id).
Expand All @@ -129,7 +129,7 @@ func (f *IBMPICloudConnectionClient) AddNetwork(id, networkID string) (*models.C
}

// Delete a Network from a Cloud Connection
func (f *IBMPICloudConnectionClient) DeleteNetwork(id, networkID string) (*models.CloudConnection, *models.JobReference, error) {
func (f *IBMPICloudConnectionClient) DeleteNetwork(id, networkID string) (models.Object, *models.JobReference, error) {
params := p_cloud_cloud_connections.NewPcloudCloudconnectionsNetworksDeleteParams().
WithContext(f.ctx).WithTimeout(helpers.PIDeleteTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithCloudConnectionID(id).
Expand Down

0 comments on commit 8d60a4e

Please sign in to comment.