Skip to content

Commit

Permalink
PLT-1524: Added password_policy support in sdk.
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM committed Dec 18, 2024
1 parent fc21cdc commit b9d2c09
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions client/password_policy.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit b9d2c09

Please sign in to comment.