Class: OvirtSDK4::StorageDomainVmDiskAttachmentsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#attachment_service(id) ⇒ StorageDomainVmDiskAttachmentService
Reference to the service that manages a specific attachment.
-
#list(opts = {}) ⇒ Array<DiskAttachment>
List the disks that are attached to the virtual machine.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#attachment_service(id) ⇒ StorageDomainVmDiskAttachmentService
Reference to the service that manages a specific attachment.
24209 24210 24211 |
# File 'lib/ovirtsdk4/services.rb', line 24209 def (id) StorageDomainVmDiskAttachmentService.new(self, id) end |
#list(opts = {}) ⇒ Array<DiskAttachment>
List the disks that are attached to the virtual machine.
The order of the returned list of disk attachments isn’t guaranteed.
24198 24199 24200 |
# File 'lib/ovirtsdk4/services.rb', line 24198 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 |
# File 'lib/ovirtsdk4/services.rb', line 24220 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return (path) end return (path[0..(index - 1)]).service(path[(index + 1)..-1]) end |