Class: Vcloud::Walker::Resource::VApp
- Defined in:
- lib/vcloud/walker/resource/vapp.rb
Instance Attribute Summary collapse
-
#deployed ⇒ Object
readonly
Returns the value of attribute deployed.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#network_config ⇒ Object
readonly
Returns the value of attribute network_config.
-
#network_section ⇒ Object
readonly
Returns the value of attribute network_section.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#vms ⇒ Object
readonly
Returns the value of attribute vms.
Instance Method Summary collapse
-
#initialize(fog_vapp) ⇒ VApp
constructor
A new instance of VApp.
Methods inherited from Entity
Constructor Details
#initialize(fog_vapp) ⇒ VApp
Returns a new instance of VApp.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 7 def initialize fog_vapp @name = fog_vapp[:name] @status = fog_vapp[:status] @description = fog_vapp[:Description] @deployed = fog_vapp[:deployed] @id = extract_id(fog_vapp[:href]) @network_config = extract_network_config(fog_vapp[:NetworkConfigSection][:NetworkConfig]) @network_section = fog_vapp[:'ovf:NetworkSection'][:'ovf:Network'] @vms = Resource::Vms.new(fog_vapp[:Children][:Vm]) @metadata = Vcloud::Core::Vapp.(id) end |
Instance Attribute Details
#deployed ⇒ Object (readonly)
Returns the value of attribute deployed.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def deployed @deployed end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def @metadata end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def name @name end |
#network_config ⇒ Object (readonly)
Returns the value of attribute network_config.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def network_config @network_config end |
#network_section ⇒ Object (readonly)
Returns the value of attribute network_section.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def network_section @network_section end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def status @status end |
#vms ⇒ Object (readonly)
Returns the value of attribute vms.
5 6 7 |
# File 'lib/vcloud/walker/resource/vapp.rb', line 5 def vms @vms end |