class Fog::HP::Network::FloatingIp
Public Instance Methods
associate_port(port_id, options={})
click to toggle source
# File lib/fog/hp/models/network/floating_ip.rb, line 22 def associate_port(port_id, options={}) requires :id merge_attributes(service.associate_floating_ip(id, port_id, options).body['floatingip']) true end
destroy()
click to toggle source
# File lib/fog/hp/models/network/floating_ip.rb, line 16 def destroy requires :id service.delete_floating_ip(id) true end
disassociate_port(options={})
click to toggle source
# File lib/fog/hp/models/network/floating_ip.rb, line 28 def disassociate_port(options={}) requires :id merge_attributes(service.disassociate_floating_ip(id, options).body['floatingip']) true end
save()
click to toggle source
# File lib/fog/hp/models/network/floating_ip.rb, line 34 def save requires :floating_network_id raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted? merge_attributes(service.create_floating_ip(floating_network_id, attributes).body['floatingip']) true end