Sha256: 4d289604c60fc708b28f29bed796d74209cb905086b23152d70884c359cdbe32

Contents?: true

Size: 710 Bytes

Versions: 15

Compression:

Stored size: 710 Bytes

Contents

module Yao::Resources
  class FloatingIP < Base

    include PortAssociationable
    include TenantAssociationable

    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"

    def router
      @router ||= Yao::Router.get(router_id)
    end

    def project
      @project ||= Yao::Tenant.get(project_id)
    end
    alias :tenant :project
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
yao-0.13.4 lib/yao/resources/floating_ip.rb
yao-0.13.3 lib/yao/resources/floating_ip.rb
yao-0.13.2 lib/yao/resources/floating_ip.rb
yao-0.13.1 lib/yao/resources/floating_ip.rb
yao-0.13.0 lib/yao/resources/floating_ip.rb
yao-0.12.0 lib/yao/resources/floating_ip.rb
yao-0.11.3 lib/yao/resources/floating_ip.rb
yao-0.11.2 lib/yao/resources/floating_ip.rb
yao-0.11.1 lib/yao/resources/floating_ip.rb
yao-0.11.0 lib/yao/resources/floating_ip.rb
yao-0.10.1 lib/yao/resources/floating_ip.rb
yao-0.10.0 lib/yao/resources/floating_ip.rb
yao-0.9.1 lib/yao/resources/floating_ip.rb
yao-0.9.0 lib/yao/resources/floating_ip.rb
yao-0.8.0 lib/yao/resources/floating_ip.rb