Class: VCloudSdk::Xml::AdminCatalog

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



13
14
15
16
17
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_catalog.rb', line 13

def add_item_link
  get_nodes(XML_TYPE[:LINK],
            { type: ADMIN_MEDIA_TYPE[:CATALOG_ITEM],
              rel: XML_TYPE[:ADD] }).first
end

#catalog_items(name = nil) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_catalog.rb', line 19

def catalog_items(name = nil)
  if name
    get_nodes(XML_TYPE[:CATALOGITEM], { name: name })
  else
    get_nodes(XML_TYPE[:CATALOGITEM])
  end
end

#descriptionObject



5
6
7
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_catalog.rb', line 5

def description
  get_nodes("Description").first
end

#description=(desc) ⇒ Object



9
10
11
# File 'lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_catalog.rb', line 9

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