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.
16069 16070 16071 |
# File 'lib/ovirtsdk4/services.rb', line 16069 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.
16058 16059 16060 |
# File 'lib/ovirtsdk4/services.rb', line 16058 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 |
# File 'lib/ovirtsdk4/services.rb', line 16080 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 |