class Yao::Resources::FloatingIP
Public Class Methods
associate_port(id, port_id)
click to toggle source
@param id [String] ID of floating_ip @param port_id [String] ID of port @return [Yao::Resources::FloatingIP]
# File lib/yao/resources/floating_ip.rb, line 42 def associate_port(id, port_id) update(id, port_id: port_id) end
disassociate_port(id)
click to toggle source
@param id [String] ID of floating_ip @return [Yao::Resources::FloatingIP]
# File lib/yao/resources/floating_ip.rb, line 48 def disassociate_port(id) update(id, port_id: nil) end
Public Instance Methods
associate_port(port)
click to toggle source
@param [Yao::Resources::Port] @return [Yao::Resources::FloatingIP]
# File lib/yao/resources/floating_ip.rb, line 28 def associate_port(port) self.class.associate_port(id, port.id) end
disassociate_port()
click to toggle source
@return [Yao::Resources::FloatingIP]
# File lib/yao/resources/floating_ip.rb, line 33 def disassociate_port self.class.disassociate_port(id) end
router()
click to toggle source
@return [Yao::Resources::Router]
# File lib/yao/resources/floating_ip.rb, line 22 def router @router ||= Yao::Router.get(router_id) end