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