code: func (c *Client) GetRules() ([]*Rule, error) {
  	path := fmt.Sprintf("/wafs/rules")
  	resp, err := c.Get(path, nil)
  	if err != nil {
  		return nil, err
  	}
  
  	data, err := jsonapi.UnmarshalManyPayload(resp.Body, rulesType)
  	if err != nil {
  		return nil, err
  	}
  
  	rules := make([]*Rule, len(data))
  	for i := range data {
  		typed, ok := data[i].(*Rule)
  		if !ok {
  			return nil, fmt.Errorf("got back a non-Rules response")
  		}
  		rules[i] = typed
  	}
  
  	return rules, nil
  }
docs: // GetRules returns the list of wafs for the configuration version.