Class: OvirtSDK4::TemplateWatchdogService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Watchdog
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.
-
#update(watchdog, opts = {}) ⇒ Watchdog
Update the watchdog for the template identified by the given id.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Watchdog
Returns the representation of the object managed by this service.
28567 28568 28569 |
# File 'lib/ovirtsdk4/services.rb', line 28567 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
28592 28593 28594 |
# File 'lib/ovirtsdk4/services.rb', line 28592 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
28632 28633 28634 28635 28636 28637 |
# File 'lib/ovirtsdk4/services.rb', line 28632 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#update(watchdog, opts = {}) ⇒ Watchdog
Update the watchdog for the template identified by the given id.
28621 28622 28623 |
# File 'lib/ovirtsdk4/services.rb', line 28621 def update(watchdog, opts = {}) internal_update(watchdog, Watchdog, UPDATE, opts) end |