Class: OvirtSDK4::StorageDomainContentDisksService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#disk_service(id) ⇒ StorageDomainContentDiskService
Locates the
disk
service. -
#list(opts = {}) ⇒ Array<Disk>
Returns the list of disks available in the storage domain.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#disk_service(id) ⇒ StorageDomainContentDiskService
Locates the disk
service.
22898 22899 22900 |
# File 'lib/ovirtsdk4/services.rb', line 22898 def disk_service(id) StorageDomainContentDiskService.new(self, id) end |
#list(opts = {}) ⇒ Array<Disk>
Returns the list of disks available in the storage domain.
The order of the returned list of disks is guaranteed only if the sortby
clause is included in
the search
parameter.
22887 22888 22889 |
# File 'lib/ovirtsdk4/services.rb', line 22887 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 |
# File 'lib/ovirtsdk4/services.rb', line 22909 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return disk_service(path) end return disk_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |