From 5b756abc1887b379ddc12ecb30211b6be417ab83 Mon Sep 17 00:00:00 2001 From: Sivaanand Murugesan Date: Tue, 5 Dec 2023 15:15:59 +0530 Subject: [PATCH] PLT-876:Added update appliance meta support in sdk --- client/appliance.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/client/appliance.go b/client/appliance.go index 0f3ece52..ac751901 100644 --- a/client/appliance.go +++ b/client/appliance.go @@ -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 {