func (c *Client) ReValidateRole(ctx context.Context, accountNumber, provider string) (*RoleReValidationResult, error) {
	result := new(RoleReValidationResult)
	body := struct {
		Provider string `json:"provider"`
	}{
		Provider: provider,
	}

	jsonStr, err := json.Marshal(body)
	if err != nil {
		return nil, err
	}

	err = c.Do(ctx, http.MethodPost, fmt.Sprintf("cloudaccounts/%s/re-validate", accountNumber), bytes.NewBuffer(jsonStr), result)
	if err != nil {
		return nil, err
	}
	return result, nil
}
//ReValidateRole checks role validation and re-validate it
ReValidateRole checks role validation and re-validate it
// ReValidateRole checks role validation and re - validate it
func (c *Client) ReValidateRole(ctx context.Context, accountNumber, provider string) (*RoleReValidationResult, error) {
	result := new(RoleReValidationResult)
	body := struct {
		Provider string `json:"provider"`
	}{
		Provider: provider,
	}
	jsonStr, err := json.Marshal(body)
	if err != nil {
		return nil, err
	}
	err = c.Do(ctx, http.MethodPost, fmt.Sprintf("cloudaccounts/%s/re-validate", accountNumber), bytes.NewBuffer(jsonStr), result)
	if err != nil {
		return nil, err
	}
	return result, nil
}
func ( c * Client ) ReValidateRole ( ctx context . Context , accountNumber , provider string ) ( * RoleReValidationResult , error ) { result := new ( RoleReValidationResult ) body := struct { Provider string `json:"provider"` } { Provider : provider , } jsonStr , err := json . Marshal ( body ) if err != nil { return nil , err } err = c . Do ( ctx , http . MethodPost , fmt . Sprintf ( " " , accountNumber ) , bytes . NewBuffer ( jsonStr ) , result ) if err != nil { return nil , err } return result , nil }
ReValidateRole checks role validation and re-validate it
ReValidateRole checks role validation and re - validate it