Class: VCloudSdk::Xml::Org
- Inherits:
-
Wrapper
show all
- Defined in:
- lib/cloud/vcloud/xml/wrapper_classes/org.rb
Instance Method Summary
collapse
Methods inherited from Wrapper
#==, #[], #[]=, #add_child, #attribute_with_ns, #content, #content=, #create_child, #create_qualified_name, #create_xpath_query, #doc_namespaces, #error, #get_nodes, #href, #href_id, #initialize, #name, #name=, #to_s, #type, #urn, #xpath
Instance Method Details
#add_catalog_link ⇒ Object
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/org.rb', line 20
def add_catalog_link
link = get_nodes("Link",
{"rel" => "add",
"type" => ADMIN_MEDIA_TYPE[:ADMIN_CATALOG]},
true).first
if !link
raise "Couldn't find add catalog link in #{@root}"
end
return link
end
|
#catalog_link(name) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/org.rb', line 13
def catalog_link(name)
get_nodes("Link",
{ "type" => MEDIA_TYPE[:CATALOG],
"name" => name},
true).first
end
|
#vdc_link(name) ⇒ Object
6
7
8
9
10
11
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/org.rb', line 6
def vdc_link(name)
get_nodes("Link",
{ "type" => MEDIA_TYPE[:VDC],
"name" => name},
true).first
end
|