Sha256: 7b8d2df7eb4bdba1a1a2182211d1b2cd14c9d09b2e3fba46813568b1de8cc0dc

Contents?: true

Size: 505 Bytes

Versions: 41

Compression:

Stored size: 505 Bytes

Contents

module Yao::Resources
  class Network < Base
    friendly_attributes :name, :status, :shared, :tenant_id, :subnets, :admin_state_up
    map_attribute_to_attribute "provider:physical_network" => :physical_network
    map_attribute_to_attribute "provider:network_type"     => :type
    map_attribute_to_attribute "provider:segmentation_id"  => :segmentation_id

    alias shared? shared

    self.service        = "network"
    self.resource_name  = "network"
    self.resources_name = "networks"
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
yao-0.7.0 lib/yao/resources/network.rb
yao-0.6.3 lib/yao/resources/network.rb
yao-0.6.2 lib/yao/resources/network.rb
yao-0.6.1 lib/yao/resources/network.rb
yao-0.6.0 lib/yao/resources/network.rb
yao-0.5.0 lib/yao/resources/network.rb
yao-0.4.3 lib/yao/resources/network.rb
yao-0.4.2 lib/yao/resources/network.rb
yao-0.4.1 lib/yao/resources/network.rb
yao-0.4.0 lib/yao/resources/network.rb
yao-0.3.8 lib/yao/resources/network.rb
yao-0.3.7 lib/yao/resources/network.rb
yao-0.3.6 lib/yao/resources/network.rb
yao-0.3.5 lib/yao/resources/network.rb
yao-0.3.4 lib/yao/resources/network.rb
yao-0.3.3 lib/yao/resources/network.rb
yao-0.3.2 lib/yao/resources/network.rb
yao-0.3.1 lib/yao/resources/network.rb
yao-0.3.0 lib/yao/resources/network.rb
yao-0.2.13 lib/yao/resources/network.rb