fog--fog/lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb

26 lines
637 B
Ruby

module Fog
module Compute
class Cloudstack
class Real
# Configures a SRX firewall device
#
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/configureSrxFirewall.html]
def configure_srx_firewall(*args)
options = {}
if args[0].is_a? Hash
options = args[0]
options.merge!('command' => 'configureSrxFirewall')
else
options.merge!('command' => 'configureSrxFirewall',
'fwdeviceid' => args[0])
end
request(options)
end
end
end
end
end