Skip to content

Commit

Permalink
PLT-876:Added update appliance meta support in sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM committed Dec 5, 2023
1 parent 830fc09 commit 5b756ab
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/appliance.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ func (h *V1Client) UpdateAppliance(uid string, appliance *models.V1EdgeHostDevic
return nil
}

func (h *V1Client) UpdateApplianceMeta(uid string, appliance *models.V1EdgeHostDeviceMetaUpdateEntity) error {
client, err := h.GetClusterClient()
if err != nil {
return err
}
params := clusterC.NewV1EdgeHostDevicesUIDMetaUpdateParams().WithContext(h.Ctx).WithBody(appliance).WithUID(uid)
_, err = client.V1EdgeHostDevicesUIDMetaUpdate(params)
if err != nil {
return err
}

return nil
}

func (h *V1Client) DeleteAppliance(uid string) error {
client, err := h.GetClusterClient()
if err != nil {
Expand Down

0 comments on commit 5b756ab

Please sign in to comment.