Class: VCloudSdk::Xml::RecomposeVAppParams

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/ruby_vcloud_sdk/xml/wrapper_classes/recompose_vapp_params.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

Constructor Details

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

Instance Method Details

#add_delete_item(entity_to_delete_href) ⇒ Object



32
33
34
35
36
37
38
39
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/recompose_vapp_params.rb', line 32

def add_delete_item(entity_to_delete_href)
  return unless entity_to_delete_href

  node_delete_item = create_child("DeleteItem")
  node_delete_item["href"] = entity_to_delete_href

  get_nodes("AllEULAsAccepted").first.node.after(node_delete_item)
end

#add_source_item(entity_to_add_href) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/recompose_vapp_params.rb', line 17

def add_source_item(entity_to_add_href)
  return unless entity_to_add_href

  node_sourced_item = create_child("SourcedItem",
                                   namespace.prefix,
                                   namespace.href)
  node_source = add_child("Source",
                          namespace.prefix,
                          namespace.href,
                          node_sourced_item)
  node_source["href"] = entity_to_add_href

  get_nodes("AllEULAsAccepted").first.node.before(node_sourced_item)
end

#all_eulas_accepted=(value) ⇒ Object



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

def all_eulas_accepted=(value)
  eulas_node = get_nodes("AllEULAsAccepted").first
  eulas_node.content = value
end

#descriptionObject



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

def description
  get_nodes("Description").first
end

#description=(desc) ⇒ Object



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

def description=(desc)
  description.content = desc
end