Sha256: 72a5c9beca9e297e2eb6a05c0798f8b242677020a3236bcd79afcb90d52075d3

Contents?: true

Size: 612 Bytes

Versions: 4

Compression:

Stored size: 612 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

    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-1.26.0 lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb
fog-1.25.0 lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb
nsidc-fog-1.24.1 lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb
fog-1.24.0 lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb