Class: OvirtSDK4::StorageDomainTemplatesService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#list(opts = {}) ⇒ Array<Template>
Returns the list of templates availalbe in the storage domain.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#template_service(id) ⇒ StorageDomainTemplateService
Locates the
template
service.
Methods inherited from Service
Instance Method Details
#list(opts = {}) ⇒ Array<Template>
Returns the list of templates availalbe in the storage domain.
The order of the returned list of templates isn’t guaranteed.
23794 23795 23796 |
# File 'lib/ovirtsdk4/services.rb', line 23794 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 |
# File 'lib/ovirtsdk4/services.rb', line 23816 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return template_service(path) end return template_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |
#template_service(id) ⇒ StorageDomainTemplateService
Locates the template
service.
23805 23806 23807 |
# File 'lib/ovirtsdk4/services.rb', line 23805 def template_service(id) StorageDomainTemplateService.new(self, id) end |