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.
22769 22770 22771 |
# File 'lib/ovirtsdk4/services.rb', line 22769 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.
22758 22759 22760 |
# File 'lib/ovirtsdk4/services.rb', line 22758 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 |
# File 'lib/ovirtsdk4/services.rb', line 22780 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 |