Skip to content

Commit

Permalink
Fixed changes requested
Browse files Browse the repository at this point in the history
  • Loading branch information
Chase Austin committed May 11, 2022
1 parent 84d3a64 commit a8d3975
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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 @@ -45,7 +45,7 @@ func (f *IBMPICloudConnectionClient) Create(body *models.CloudConnectionCreate)
return nil, nil, fmt.Errorf("failed to Create Cloud Connection")
}

// Create a Cloud Connection
// Get a Cloud Connection
func (f *IBMPICloudConnectionClient) Get(id string) (*models.CloudConnection, error) {
params := p_cloud_cloud_connections.NewPcloudCloudconnectionsGetParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).
Expand Down Expand Up @@ -128,7 +128,7 @@ func (f *IBMPICloudConnectionClient) AddNetwork(id, networkID string) (*models.C
return nil, nil, nil
}

// Remove a Network from a Cloud Connection
// Delete a Network from a Cloud Connection
func (f *IBMPICloudConnectionClient) DeleteNetwork(id, networkID string) (*models.CloudConnection, *models.JobReference, error) {
params := p_cloud_cloud_connections.NewPcloudCloudconnectionsNetworksDeleteParams().
WithContext(f.ctx).WithTimeout(helpers.PIDeleteTimeOut).
Expand Down
8 changes: 4 additions & 4 deletions clients/instance/ibm-pi-dhcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewIBMPIDhcpClient(ctx context.Context, sess *ibmpisession.IBMPISession, cl
}
}

// Create a DHCP
// Create a DHCP server
func (f *IBMPIDhcpClient) Create(body *models.DHCPServerCreate) (*models.DHCPServer, error) {
params := p_cloud_service_d_h_c_p.NewPcloudDhcpPostParams().
WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).
Expand All @@ -39,7 +39,7 @@ func (f *IBMPIDhcpClient) Create(body *models.DHCPServerCreate) (*models.DHCPSer
return nil, fmt.Errorf("failed to Create DHCP")
}

// Get a DHCP
// Get a DHCP server
func (f *IBMPIDhcpClient) Get(id string) (*models.DHCPServerDetail, error) {
params := p_cloud_service_d_h_c_p.NewPcloudDhcpGetParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).
Expand All @@ -54,7 +54,7 @@ func (f *IBMPIDhcpClient) Get(id string) (*models.DHCPServerDetail, error) {
return resp.Payload, nil
}

// Get All DHCPs
// Get All DHCP servers
func (f *IBMPIDhcpClient) GetAll() (models.DHCPServers, error) {
params := p_cloud_service_d_h_c_p.NewPcloudDhcpGetallParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).
Expand All @@ -69,7 +69,7 @@ func (f *IBMPIDhcpClient) GetAll() (models.DHCPServers, error) {
return resp.Payload, nil
}

// Delete a DHCP
// Delete a DHCP server
func (f *IBMPIDhcpClient) Delete(id string) error {
params := p_cloud_service_d_h_c_p.NewPcloudDhcpDeleteParams().
WithContext(f.ctx).WithTimeout(helpers.PIDeleteTimeOut).
Expand Down
2 changes: 1 addition & 1 deletion clients/instance/ibm-pi-placement-groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewIBMPIPlacementGroupClient(ctx context.Context, sess *ibmpisession.IBMPIS
}
}

// Get a Placement Group
// Get a PI Placement Group
func (f *IBMPIPlacementGroupClient) Get(id string) (*models.PlacementGroup, error) {
params := p_cloud_placement_groups.NewPcloudPlacementgroupsGetParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).
Expand Down
2 changes: 1 addition & 1 deletion clients/instance/ibm-pi-vpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (f *IBMPIVpnConnectionClient) GetNetwork(id string) (*models.NetworkIDs, er
return resp.Payload, nil
}

// Add a Network to a VPN Connection
// Attach a Network to a VPN Connection
func (f *IBMPIVpnConnectionClient) AddNetwork(id, networkID string) (*models.JobReference, error) {
params := p_cloud_v_p_n_connections.NewPcloudVpnconnectionsNetworksPutParams().
WithContext(f.ctx).WithTimeout(helpers.PIUpdateTimeOut).
Expand Down

0 comments on commit a8d3975

Please sign in to comment.