Class: OvirtSDK4::InstanceTypeWatchdogService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Watchdog
Gets watchdog configuration of the instance type.
-
#remove(opts = {}) ⇒ Object
Remove a watchdog from the instance type.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(watchdog, opts = {}) ⇒ Watchdog
Updates the watchdog configuration of the instance type.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Watchdog
Gets watchdog configuration of the instance type.
14167 14168 14169 |
# File 'lib/ovirtsdk4/services.rb', line 14167 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Remove a watchdog from the instance type.
14192 14193 14194 |
# File 'lib/ovirtsdk4/services.rb', line 14192 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
14232 14233 14234 14235 14236 14237 |
# File 'lib/ovirtsdk4/services.rb', line 14232 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
Updates the watchdog configuration of the instance type.
14221 14222 14223 |
# File 'lib/ovirtsdk4/services.rb', line 14221 def update(watchdog, opts = {}) internal_update(watchdog, Watchdog, UPDATE, opts) end |