module Yao::Resources class FloatingIP < Base include PortAssociationable include ProjectAssociationable friendly_attributes :router_id, :description, :dns_domain, :dns_name, :revision_number, :floating_network_id, :fixed_ip_address, :floating_ip_address, :status, :port_details, :tags, :port_forwardings self.service = "network" self.resource_name = "floatingip" self.resources_name = "floatingips" # @return [Yao::Resources::Router] def router @router ||= Yao::Router.get(router_id) end end end