Class: OvirtSDK4::AffinityLabelHostService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Host
Retrieves details about a host that has this label assigned.
-
#remove(opts = {}) ⇒ Object
Remove a label from a host.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Host
Retrieves details about a host that has this label assigned.
1939 1940 1941 |
# File 'lib/ovirtsdk4/services.rb', line 1939 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Remove a label from a host.
1962 1963 1964 |
# File 'lib/ovirtsdk4/services.rb', line 1962 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
1973 1974 1975 1976 1977 1978 |
# File 'lib/ovirtsdk4/services.rb', line 1973 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |