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 +}