Sha256: 028f166d8468753c0b3e5c7fe43f638cf39f68844ba72b091ff11d742db9a0df
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
module Yao::Resources class Network < Base include ProjectAssociationable 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" # @return [Array<Yao::Resources::Port>] def ports @ports ||= Yao::Port.list(network_id: id) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yao-0.19.0 | lib/yao/resources/network.rb |
yao-0.18.0 | lib/yao/resources/network.rb |
yao-0.17.0 | lib/yao/resources/network.rb |
yao-0.16.0 | lib/yao/resources/network.rb |