Sha256: 0e8392fd36c9274e5dc92d8f2ff6041d3612f63dd896ff2c8f473aac7018150c
Contents?: true
Size: 760 Bytes
Versions: 35
Compression:
Stored size: 760 Bytes
Contents
module Fog module HP class Network class Real # Delete an existing port # # ==== Parameters # * port_id<~String> - UUId for the port to delete def delete_port(port_id) request( :expects => 204, :method => 'DELETE', :path => "ports/#{port_id}" ) end end class Mock def delete_port(port_id) response = Excon::Response.new if list_ports.body['ports'].detect {|_| _['id'] == port_id} self.data[:ports].delete(port_id) response.status = 204 response else raise Fog::HP::Network::NotFound end end end end end end
Version data entries
35 entries across 35 versions & 2 rubygems