Sha256: 0f39fdf2ae177ed9ecc8d8140ed96c48738203c0537ad5603eb3e9fb3993aeec
Contents?: true
Size: 882 Bytes
Versions: 37
Compression:
Stored size: 882 Bytes
Contents
module Fog module Compute class HPV2 class Real # Release an existing floating IP address # # ==== Parameters # * 'address_id'<~String> - UUId of floating IP address to release # def release_address(address_id) request( :expects => 202, :method => 'DELETE', :path => "os-floating-ips/#{address_id}" ) end end class Mock def release_address(address_id) response = Excon::Response.new if self.data[:addresses][address_id] self.data[:last_modified][:addresses].delete(address_id) self.data[:addresses].delete(address_id) response.status = 202 else raise Fog::Compute::HPV2::NotFound end response end end end end end
Version data entries
37 entries across 37 versions & 2 rubygems