From b9d2c09e3b86f0b5f0f0813cd1f6d4c42fcc6b07 Mon Sep 17 00:00:00 2001 From: Sivaanand Murugesan Date: Wed, 18 Dec 2024 16:26:11 +0530 Subject: [PATCH] PLT-1524: Added password_policy support in sdk. --- client/password_policy.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/client/password_policy.go b/client/password_policy.go index e69de29b..8b90090e 100644 --- a/client/password_policy.go +++ b/client/password_policy.go @@ -0,0 +1,13 @@ +package client + +import ( + clientv1 "github.com/spectrocloud/palette-sdk-go/api/client/v1" + "github.com/spectrocloud/palette-sdk-go/api/models" +) + +// UpdatePasswordPolicy updates a Password Policy. +func (h *V1Client) UpdatePasswordPolicy(tenantUID string, body *models.V1TenantPasswordPolicyEntity) error { + params := clientv1.NewV1TenantUIDPasswordPolicyUpdateParamsWithContext(h.ctx).WithTenantUID(tenantUID).WithBody(body) + _, err := h.Client.V1TenantUIDPasswordPolicyUpdate(params) + return err +}