Class: VCloudSdk::Xml::VApp
- Inherits:
-
Wrapper
- Object
- Wrapper
- VCloudSdk::Xml::VApp
show all
- Defined in:
- lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb
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
Instance Method Details
#description ⇒ Object
4
5
6
|
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 4
def description
get_nodes("Description").first.content
end
|
#discard_state ⇒ Object
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_section ⇒ Object
8
9
10
|
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 8
def network_config_section
get_nodes("NetworkConfigSection").first
end
|
#reboot_link ⇒ Object
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
|
#recompose_vapp_link ⇒ Object
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
|
#tasks ⇒ Object
16
17
18
|
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 16
def tasks
get_nodes(XML_TYPE[:TASK])
end
|
#vdc_link ⇒ Object
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
|
#vms ⇒ Object
36
37
38
|
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb', line 36
def vms
get_nodes("Vm")
end
|