def batch_rules(rules, forward_to_replicas = false, clear_existing_rules = false, request_options = {})
      client.post("#{Protocol.batch_rules_uri(name)}?forwardToReplicas=#{forward_to_replicas}&clearExistingRules=#{clear_existing_rules}", rules.to_json, :batch, request_options)
    end
def batch_rules(rules, forward_to_replicas = false, clear_existing_rules = false, request_options = {})
      client.post("#{Protocol.batch_rules_uri(name)}?forwardToReplicas=#{forward_to_replicas}&clearExistingRules=#{clear_existing_rules}", rules.to_json, :batch, request_options)
    end
Add/Update an array of rules

 @param rules the array of rules to add/update
 @param forward_to_replicas should we forward the delete to replica indices
 @param clear_existing_rules should we clear the existing rules before adding the new ones
 @param request_options contains extra parameters to send with your query