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.
24070 24071 24072 |
# File 'lib/ovirtsdk4/services.rb', line 24070 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.
24059 24060 24061 |
# File 'lib/ovirtsdk4/services.rb', line 24059 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
24081 24082 24083 24084 24085 24086 24087 24088 24089 24090 |
# File 'lib/ovirtsdk4/services.rb', line 24081 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 |