Class: OvirtSDK4::DomainGroupsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#group_service(id) ⇒ DomainGroupService
Locates the
group
service. -
#list(opts = {}) ⇒ Array<Group>
Returns the list of groups.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#group_service(id) ⇒ DomainGroupService
Locates the group
service.
7489 7490 7491 |
# File 'lib/ovirtsdk4/services.rb', line 7489 def group_service(id) DomainGroupService.new(self, id) end |
#list(opts = {}) ⇒ Array<Group>
Returns the list of groups.
The order of the returned list of groups isn’t guaranteed.
7478 7479 7480 |
# File 'lib/ovirtsdk4/services.rb', line 7478 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 |
# File 'lib/ovirtsdk4/services.rb', line 7500 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return group_service(path) end return group_service(path[0..(index - 1)]).service(path[(index +1)..-1]) end |