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.
14124 14125 14126 |
# File 'lib/ovirtsdk4/services.rb', line 14124 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Remove a watchdog from the instance type.
14149 14150 14151 |
# File 'lib/ovirtsdk4/services.rb', line 14149 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
14189 14190 14191 14192 14193 14194 |
# File 'lib/ovirtsdk4/services.rb', line 14189 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.
14178 14179 14180 |
# File 'lib/ovirtsdk4/services.rb', line 14178 def update(watchdog, opts = {}) internal_update(watchdog, Watchdog, UPDATE, opts) end |