Class: OvirtSDK4::AffinityLabelVmService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Vm
Retrieves details about a vm that has this label assigned.
-
#remove(opts = {}) ⇒ Object
Remove a label from a vm.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Vm
Retrieves details about a vm that has this label assigned.
1537 1538 1539 |
# File 'lib/ovirtsdk4/services.rb', line 1537 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Remove a label from a vm.
1560 1561 1562 |
# File 'lib/ovirtsdk4/services.rb', line 1560 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
1571 1572 1573 1574 1575 1576 |
# File 'lib/ovirtsdk4/services.rb', line 1571 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |