Class: VCloudSdk::Xml::Org

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



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

def catalog_link(name)
  get_nodes(XML_TYPE[:LINK],
            { type: MEDIA_TYPE[:CATALOG],
              name: name },
            true).first
end

#catalogsObject



17
18
19
20
21
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/org.rb', line 17

def catalogs
  get_nodes(XML_TYPE[:LINK],
            { type: MEDIA_TYPE[:CATALOG] },
            true)
end

#disksObject



43
44
45
46
47
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/org.rb', line 43

def disks
  get_nodes(XML_TYPE[:LINK],
            { type: MEDIA_TYPE[:DISK] },
            true)
end

#network(name) ⇒ Object



36
37
38
39
40
41
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/org.rb', line 36

def network(name)
  get_nodes(XML_TYPE[:LINK],
            { type: MEDIA_TYPE[:ORG_NETWORK],
              name: name },
            true).first
end

#networksObject



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

def networks
  get_nodes(XML_TYPE[:LINK],
            { type: MEDIA_TYPE[:ORG_NETWORK] },
            true)
end


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

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

#vdcsObject



4
5
6
7
8
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/org.rb', line 4

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