Class: OvirtSDK4::TemplateDiskAttachmentService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ DiskAttachment
Returns the details of the attachment.
-
#remove(opts = {}) ⇒ Object
Removes the disk from the template.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ DiskAttachment
Returns the details of the attachment.
26285 26286 26287 |
# File 'lib/ovirtsdk4/services.rb', line 26285 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Removes the disk from the template. The disk will only be removed if there are other existing copies of the disk on other storage domains.
A storage domain has to be specified to determine which of the copies should be removed (template disks can have copies on multiple storage domains).
DELETE /ovirt-engine/api/templates/{template:id}/diskattachments/{attachment:id}?storage_domain=072fbaa1-08f3-4a40-9f34-a5ca22dd1d74
26321 26322 26323 |
# File 'lib/ovirtsdk4/services.rb', line 26321 def remove(opts = {}) internal_remove(REMOVE, opts) end |