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.
22870 22871 22872 |
# File 'lib/ovirtsdk4/services.rb', line 22870 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.
22859 22860 22861 |
# File 'lib/ovirtsdk4/services.rb', line 22859 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 |
# File 'lib/ovirtsdk4/services.rb', line 22881 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 |