func (c *Client) SetRules(rules *Rules, params map[string]string) error {
	body, err := json.Marshal(rules)
	if err != nil {
		log.Printf("%v\n", err)
		return err
	}

	_, err = c.api.Call("PUT", c.Url+"/.settings/rules", c.Auth, body, params)

	return err
}
func (c *Client) SetRules(rules *Rules, params map[string]string) error {
	body, err := json.Marshal(rules)
	if err != nil {
		log.Printf("%v\n", err)
		return err
	}

	_, err = c.api.Call("PUT", c.Url+"/.settings/rules", c.Auth, body, params)

	return err
}
func ( c * Client ) SetRules ( rules * Rules , params map [ string ] string ) error { body , err := json . Marshal ( rules ) if err != nil { log . Printf ( " \n " , err ) return err } _ , err = c . api . Call ( " " , c . Url + " " , c . Auth , body , params ) return err }
// SetRules overwrites the existing security rules with the new rules given.
SetRules overwrites the existing security rules with the new rules given .