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.2.12 lib/yao/resources/network.rb
yao-0.2.11 lib/yao/resources/network.rb
yao-0.2.10 lib/yao/resources/network.rb
yao-0.2.9 lib/yao/resources/network.rb
yao-0.2.8 lib/yao/resources/network.rb
yao-0.2.7 lib/yao/resources/network.rb
yao-0.2.6 lib/yao/resources/network.rb
yao-0.2.5 lib/yao/resources/network.rb
yao-0.2.4 lib/yao/resources/network.rb
yao-0.2.2 lib/yao/resources/network.rb
yao-0.2.1 lib/yao/resources/network.rb
yao-0.2.0 lib/yao/resources/network.rb
yao-0.2.0.rc1 lib/yao/resources/network.rb
yao-0.1.1 lib/yao/resources/network.rb
yao-0.1.0 lib/yao/resources/network.rb
yao-0.0.6 lib/yao/resources/network.rb
yao-0.0.5 lib/yao/resources/network.rb
yao-0.0.4 lib/yao/resources/network.rb
yao-0.0.3 lib/yao/resources/network.rb
yao-0.0.2 lib/yao/resources/network.rb