Class: OvirtSDK4::SchedulingPolicyUnitsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#list(opts = {}) ⇒ Array<SchedulingPolicyUnit>
Returns the list of scheduling policy units available in the system.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#unit_service(id) ⇒ SchedulingPolicyUnitService
Locates the
unitservice.
Methods inherited from Service
Instance Method Details
#list(opts = {}) ⇒ Array<SchedulingPolicyUnit>
Returns the list of scheduling policy units available in the system.
The order of the returned list of scheduling policy units isn’t guaranteed.
20493 20494 20495 |
# File 'lib/ovirtsdk4/services.rb', line 20493 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 |
# File 'lib/ovirtsdk4/services.rb', line 20515 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return unit_service(path) end return unit_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |
#unit_service(id) ⇒ SchedulingPolicyUnitService
Locates the unit service.
20504 20505 20506 |
# File 'lib/ovirtsdk4/services.rb', line 20504 def unit_service(id) SchedulingPolicyUnitService.new(self, id) end |