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.
17441 17442 17443 |
# File 'lib/ovirtsdk4/services.rb', line 17441 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.
17430 17431 17432 |
# File 'lib/ovirtsdk4/services.rb', line 17430 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 |
# File 'lib/ovirtsdk4/services.rb', line 17452 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 |