Class: OvirtSDK4::StorageDomainVmsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#list(opts = {}) ⇒ Array<Vm>
Returns the list of virtual machines of the export storage domain.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#vm_service(id) ⇒ StorageDomainVmService
Locates the
vm
service.
Methods inherited from Service
Instance Method Details
#list(opts = {}) ⇒ Array<Vm>
Returns the list of virtual machines of the export storage domain.
The order of the returned list of virtual machines isn’t guaranteed.
24279 24280 24281 |
# File 'lib/ovirtsdk4/services.rb', line 24279 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 |
# File 'lib/ovirtsdk4/services.rb', line 24301 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return vm_service(path) end return vm_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |
#vm_service(id) ⇒ StorageDomainVmService
Locates the vm
service.
24290 24291 24292 |
# File 'lib/ovirtsdk4/services.rb', line 24290 def vm_service(id) StorageDomainVmService.new(self, id) end |