Sha256: 0b19058feafd1a343ba5f9a7cea5778a87d7f21935ae6cff46060d3e87a5eaaf

Contents?: true

Size: 916 Bytes

Versions: 20

Compression:

Stored size: 916 Bytes

Contents

module Fog
  module OpenStack
    class Network
      class Real
        # Delete a security group rule
        #
        # ==== Parameters
        # * 'security_group_rule_id'<~String> - UUID of the security group rule to delete
        def delete_security_group_rule(security_group_rule_id)
          request(
            :expects => 204,
            :method  => "DELETE",
            :path    => "security-group-rules/#{security_group_rule_id}"
          )
        end
      end

      class Mock
        def delete_security_group_rule(security_group_rule_id)
          response = Excon::Response.new
          if data[:security_group_rules][security_group_rule_id]
            data[:security_group_rules].delete(security_group_rule_id)
            response.status = 204
            response
          else
            raise Fog::OpenStack::Network::NotFound
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.1.2 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-fork-99 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.1.0 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.1.0.pre lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.11 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.10 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.9 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.8 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.7 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.6 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.5 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.4 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.3 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.2 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.1 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-1.0.0 lib/fog/openstack/network/requests/delete_security_group_rule.rb
fog-openstack-0.3.1 lib/fog/openstack/network/requests/delete_security_group_rule.rb