// GetPolicy retrieves the specified policy
GetPolicy retrieves the specified policy
// GetPolicy retrieves the specified policy
func (c *Client) GetPolicy(id string) (DataPolicy, error) {
	var response DataPolicy
	path := fmt.Sprintf("%s/%s", policyPath, id)
	resp, err := c.Do(http.MethodGet, path, "", nil)
	if err != nil {
		return response, err
	}
	if err = c.ReadJSON(resp, &response); err != nil {
		return response, err
	}
	return response, nil
}
func ( c * Client ) GetPolicy ( id string ) ( DataPolicy , error ) { var response DataPolicy path := fmt . Sprintf ( " " , policyPath , id ) resp , err := c . Do ( http . MethodGet , path , " " , nil ) if err != nil { return response , err } if err = c . ReadJSON ( resp , & response ) ; err != nil { return response , err } return response , nil }
GetPolicy retrieves the specified policy
GetPolicy retrieves the specified policy