// GetPolicies retrieves data policies from Lenses
GetPolicies retrieves data policies from Lenses
// GetPolicies retrieves data policies from Lenses
func (c *Client) GetPolicies() ([]DataPolicy, error) {
	var response []DataPolicy
	resp, err := c.Do(http.MethodGet, policyPath, "", nil)
	if err != nil {
		return response, err
	}
	if err = c.ReadJSON(resp, &response); err != nil {
		return response, err
	}
	return response, nil
}
func ( c * Client ) GetPolicies ( ) ( [ ] DataPolicy , error ) { var response [ ] DataPolicy resp , err := c . Do ( http . MethodGet , policyPath , " " , nil ) if err != nil { return response , err } if err = c . ReadJSON ( resp , & response ) ; err != nil { return response , err } return response , nil }
GetPolicies retrieves data policies from Lenses
GetPolicies retrieves data policies from Lenses