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.
22994 22995 22996 |
# File 'lib/ovirtsdk4/services.rb', line 22994 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.
22983 22984 22985 |
# File 'lib/ovirtsdk4/services.rb', line 22983 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 |
# File 'lib/ovirtsdk4/services.rb', line 23005 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 |