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.
26108 26109 26110 |
# File 'lib/ovirtsdk4/services.rb', line 26108 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}//{attachment:id}?storage_domain=072fbaa1-08f3-4a40-9f34-a5ca22dd1d74
26144 26145 26146 |
# File 'lib/ovirtsdk4/services.rb', line 26144 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
26155 26156 26157 26158 26159 26160 |
# File 'lib/ovirtsdk4/services.rb', line 26155 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |