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
unit
service.
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.
20769 20770 20771 |
# File 'lib/ovirtsdk4/services.rb', line 20769 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 |
# File 'lib/ovirtsdk4/services.rb', line 20791 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.
20780 20781 20782 |
# File 'lib/ovirtsdk4/services.rb', line 20780 def unit_service(id) SchedulingPolicyUnitService.new(self, id) end |