Sha256: 6b4be5b0643c408dc6941199008370ba4aafcd98c94b32e5ad697c7bad4880da

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 Bytes

Contents

module Yao::Resources
  class Network < Base
    include TenantAssociationable

    friendly_attributes :name, :status, :shared, :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

5 entries across 5 versions & 1 rubygems

Version Path
yao-0.10.1 lib/yao/resources/network.rb
yao-0.10.0 lib/yao/resources/network.rb
yao-0.9.1 lib/yao/resources/network.rb
yao-0.9.0 lib/yao/resources/network.rb
yao-0.8.0 lib/yao/resources/network.rb