// GetPolicyObfuscation retrieves the data policy obfuscation types
GetPolicyObfuscation retrieves the data policy obfuscation types
// GetPolicyObfuscation retrieves the data policy obfuscation types
func (c *Client) GetPolicyObfuscation() ([]DataObfuscationType, error) {
	var response []string
	var redactions []DataObfuscationType
	resp, err := c.Do(http.MethodGet, "/api/protection/static/obfuscation", "", nil)
	if err != nil {
		return redactions, err
	}
	if err = c.ReadJSON(resp, &response); err != nil {
		return redactions, err
	}
	for _, r := range response {
		redactions = append(redactions, DataObfuscationType{RedactionType: r})
	}
	return redactions, nil
}
func ( c * Client ) GetPolicyObfuscation ( ) ( [ ] DataObfuscationType , error ) { var response [ ] string var redactions [ ] DataObfuscationType resp , err := c . Do ( http . MethodGet , " " , " " , nil ) if err != nil { return redactions , err } if err = c . ReadJSON ( resp , & response ) ; err != nil { return redactions , err } for _ , r := range response { redactions = append ( redactions , DataObfuscationType { RedactionType : r } ) } return redactions , nil }
GetPolicyObfuscation retrieves the data policy obfuscation types
GetPolicyObfuscation retrieves the data policy obfuscation types