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