Skip to content

Commit

Permalink
reviewable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM committed Oct 21, 2024
1 parent 83d2821 commit 317a80b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/private_cloud_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,15 @@ func (h *V1Client) CreateVsphereDNSMap(dnsMapBody *models.V1VsphereDNSMapping) (
}

// UpdateVsphereDNSMap update an existing DNS Mapping for a Private Cloud Gateway
func (h *V1Client) UpdateVsphereDNSMap(dnsMapId string, dnsMapBody *models.V1VsphereDNSMapping) error {
params := clientv1.NewV1VsphereDNSMappingUpdateParamsWithContext(h.ctx).WithUID(dnsMapId).WithBody(dnsMapBody)
func (h *V1Client) UpdateVsphereDNSMap(dnsMapID string, dnsMapBody *models.V1VsphereDNSMapping) error {
params := clientv1.NewV1VsphereDNSMappingUpdateParamsWithContext(h.ctx).WithUID(dnsMapID).WithBody(dnsMapBody)
_, err := h.Client.V1VsphereDNSMappingUpdate(params)
return err
}

// DeleteVsphereDNSMap delete an existing DNS Mapping for a Private Cloud Gateway
func (h *V1Client) DeleteVsphereDNSMap(dnsMapId string) error {
params := clientv1.NewV1VsphereDNSMappingDeleteParamsWithContext(h.ctx).WithUID(dnsMapId)
func (h *V1Client) DeleteVsphereDNSMap(dnsMapID string) error {
params := clientv1.NewV1VsphereDNSMappingDeleteParamsWithContext(h.ctx).WithUID(dnsMapID)
_, err := h.Client.V1VsphereDNSMappingDelete(params)
if err != nil {
return err
Expand All @@ -346,8 +346,8 @@ func (h *V1Client) DeleteVsphereDNSMap(dnsMapId string) error {
}

// GetVsphereDNSMap get an existing DNS Mapping for a Private Cloud Gateway
func (h *V1Client) GetVsphereDNSMap(dnsMapId string) (*models.V1VsphereDNSMapping, error) {
params := clientv1.NewV1VsphereDNSMappingGetParamsWithContext(h.ctx).WithUID(dnsMapId)
func (h *V1Client) GetVsphereDNSMap(dnsMapID string) (*models.V1VsphereDNSMapping, error) {
params := clientv1.NewV1VsphereDNSMappingGetParamsWithContext(h.ctx).WithUID(dnsMapID)
resp, err := h.Client.V1VsphereDNSMappingGet(params)
if err != nil {
return nil, err
Expand Down

0 comments on commit 317a80b

Please sign in to comment.