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.
27401 27402 27403 |
# File 'lib/ovirtsdk4/services.rb', line 27401 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 HTTP/1.1
27436 27437 27438 |
# File 'lib/ovirtsdk4/services.rb', line 27436 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
27447 27448 27449 27450 27451 27452 |
# File 'lib/ovirtsdk4/services.rb', line 27447 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |