Class: OvirtSDK4::OpenstackImagesService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#image_service(id) ⇒ OpenstackImageService
Returns a reference to the service that manages a specific image.
-
#list(opts = {}) ⇒ Array<OpenStackImage>
Lists the images of a Glance image storage domain.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#image_service(id) ⇒ OpenstackImageService
Returns a reference to the service that manages a specific image.
17305 17306 17307 |
# File 'lib/ovirtsdk4/services.rb', line 17305 def image_service(id) OpenstackImageService.new(self, id) end |
#list(opts = {}) ⇒ Array<OpenStackImage>
Lists the images of a Glance image storage domain.
The order of the returned list of images isn’t guaranteed.
17294 17295 17296 |
# File 'lib/ovirtsdk4/services.rb', line 17294 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 |
# File 'lib/ovirtsdk4/services.rb', line 17316 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 |