Class: VCloudSdk::Xml::VApp

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb

Direct Known Subclasses

VAppTemplate

Instance Method Summary collapse

Methods inherited from Wrapper

#==, #[], #[]=, #add_child, #attribute, #content, #content=, #create_child, #create_qualified_name, #create_xpath_query, #doc_namespaces, #edit_link, #get_nodes, #href, #href=, #href_id, #initialize, #name, #name=, #power_off_link, #power_on_link, #remove_link, #running_tasks, #to_s, #type, #type=, #undeploy_link, #urn, #xpath

Constructor Details

This class inherits a constructor from VCloudSdk::Xml::Wrapper

Instance Method Details

#descriptionObject



4
5
6
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 4

def description
  get_nodes("Description").first.content
end

#discard_stateObject



20
21
22
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 20

def discard_state
  get_nodes("Link", {"rel" => "discardState"}, true).first
end

#network_config_sectionObject



8
9
10
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 8

def network_config_section
  get_nodes("NetworkConfigSection").first
end


12
13
14
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 12

def reboot_link
  get_nodes("Link", {"rel" => "power:reboot"}, true).first
end


24
25
26
27
28
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 24

def recompose_vapp_link
  link = get_nodes(XML_TYPE[:LINK],
                   { rel: "recompose" },
                   true).first
end

#tasksObject



16
17
18
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 16

def tasks
  get_nodes(XML_TYPE[:TASK])
end


30
31
32
33
34
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 30

def vdc_link
  get_nodes(XML_TYPE[:LINK],
            { type: MEDIA_TYPE[:VDC] },
            true).first
end

#vm(name) ⇒ Object



40
41
42
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 40

def vm(name)
  get_nodes("Vm", name: name).first
end

#vmsObject



36
37
38
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 36

def vms
  get_nodes("Vm")
end