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.
7527 7528 7529 |
# File 'lib/ovirtsdk4/services.rb', line 7527 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.
7516 7517 7518 |
# File 'lib/ovirtsdk4/services.rb', line 7516 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 |
# File 'lib/ovirtsdk4/services.rb', line 7538 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 |