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.
16142 16143 16144 |
# File 'lib/ovirtsdk4/services.rb', line 16142 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.
16131 16132 16133 |
# File 'lib/ovirtsdk4/services.rb', line 16131 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 |
# File 'lib/ovirtsdk4/services.rb', line 16153 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 |