Sha256: 8eb7c93640da40a5d3f1c1dedefa41b5c4faea8cabb5c24a180b39a41e5543c7
Contents?: true
Size: 909 Bytes
Versions: 24
Compression:
Stored size: 909 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Deletes a firewall rule # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/deleteFirewallRule.html] def delete_firewall_rule(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'deleteFirewallRule') else options.merge!('command' => 'deleteFirewallRule', 'id' => args[0]) end request(options) end end class Mock def delete_firewall_rule(options={}) firewall_rule_id = options['id'] data[:firewall_rules].delete(firewall_rule_id) if data[:firewall_rules][firewall_rule_id] { 'deletefirewallruleresponse' => { 'success' => 'true' } } end end end end end
Version data entries
24 entries across 22 versions & 3 rubygems