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
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
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
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