module Revily::Client::PolicyRules

Public Instance Methods

create_policy_rule(assignment_id, loop_limit, options={}) click to toggle source
# File lib/revily/client/policy_rules.rb, line 15
def create_policy_rule(assignment_id, loop_limit, options={})
  post "policies", options.merge({name: name, loop_limit: loop_limit})
end
Also aliased as: create_rule
create_rule(assignment_id, loop_limit, options={})
Alias for: create_policy_rule
delete_policy_rule(policy_id, id, options={}) click to toggle source
# File lib/revily/client/policy_rules.rb, line 25
def delete_policy_rule(policy_id, id, options={})
  delete "policies/#{policy_id}/rules/#{id}", options
end
Also aliased as: delete_rule
delete_rule(policy_id, id, options={})
Alias for: delete_policy_rule
list_policy_rules(policy_id, options={})
Alias for: policy_rules
list_rules(policy_id, options={})
Alias for: policy_rules
policy_rule(policy_id, id, options={}) click to toggle source
# File lib/revily/client/policy_rules.rb, line 10
def policy_rule(policy_id, id, options={})
  get "policies/#{policy_id}/rules/#{id}", options
end
Also aliased as: rule
policy_rules(policy_id, options={}) click to toggle source
# File lib/revily/client/policy_rules.rb, line 4
def policy_rules(policy_id, options={})
  get "policies/#{policy_id}/rules", options
end
Also aliased as: list_policy_rules, list_rules
rule(policy_id, id, options={})
Alias for: policy_rule
update_policy_rule(policy_id, id, options={}) click to toggle source
# File lib/revily/client/policy_rules.rb, line 20
def update_policy_rule(policy_id, id, options={})
  patch "policies/#{policy_id}/rules/#{id}", options
end
Also aliased as: update_rule
update_rule(policy_id, id, options={})
Alias for: update_policy_rule