Class: OvirtSDK4::ImagesService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#image_service(id) ⇒ ImageService
Locates the
image
service. -
#list(opts = {}) ⇒ Array<Image>
Returns the list of images available in the storage domain or provider.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#image_service(id) ⇒ ImageService
Locates the image
service.
13700 13701 13702 |
# File 'lib/ovirtsdk4/services.rb', line 13700 def image_service(id) ImageService.new(self, id) end |
#list(opts = {}) ⇒ Array<Image>
Returns the list of images available in the storage domain or provider.
The order of the returned list of images isn’t guaranteed.
13689 13690 13691 |
# File 'lib/ovirtsdk4/services.rb', line 13689 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 |
# File 'lib/ovirtsdk4/services.rb', line 13711 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return image_service(path) end return image_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |