Class: OvirtSDK4::TemplateDiskService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#copy(opts = {}) ⇒ Object
Copy the specified disk attached to the template to a specific storage domain.
-
#export(opts = {}) ⇒ Object
Executes the
exportmethod. -
#get(opts = {}) ⇒ Disk
Returns the representation of the object managed by this service.
-
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#copy(opts = {}) ⇒ Object
Copy the specified disk attached to the template to a specific storage domain.
27268 27269 27270 |
# File 'lib/ovirtsdk4/services.rb', line 27268 def copy(opts = {}) internal_action(:copy, nil, COPY, opts) end |
#export(opts = {}) ⇒ Object
Executes the export method.
27300 27301 27302 |
# File 'lib/ovirtsdk4/services.rb', line 27300 def export(opts = {}) internal_action(:export, nil, EXPORT, opts) end |
#get(opts = {}) ⇒ Disk
Returns the representation of the object managed by this service.
27329 27330 27331 |
# File 'lib/ovirtsdk4/services.rb', line 27329 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
27354 27355 27356 |
# File 'lib/ovirtsdk4/services.rb', line 27354 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
27365 27366 27367 27368 27369 27370 |
# File 'lib/ovirtsdk4/services.rb', line 27365 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |