Class: VCloudSdk::Xml::Catalog
- Inherits:
-
Wrapper
- Object
- Wrapper
- VCloudSdk::Xml::Catalog
show all
- Defined in:
- lib/cloud/vcloud/xml/wrapper_classes/catalog.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_item_link ⇒ Object
5
6
7
8
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/catalog.rb', line 5
def add_item_link
get_nodes("Link", {"type" => MEDIA_TYPE[:CATALOG_ITEM],
"rel"=>"add"}).first
end
|
#add_vapp_template_link ⇒ Object
10
11
12
13
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/catalog.rb', line 10
def add_vapp_template_link
get_nodes("Link", {"type" => MEDIA_TYPE[:UPLOAD_VAPP_TEMPLATE_PARAMS],
"rel"=>"add"}).first
end
|
#catalog_items(name = nil) ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/cloud/vcloud/xml/wrapper_classes/catalog.rb', line 15
def catalog_items(name = nil)
if name
get_nodes("CatalogItem", {"name" => name})
else
get_nodes("CatalogItem")
end
end
|