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.
8275 8276 8277 |
# File 'lib/ovirtsdk4/services.rb', line 8275 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.
8264 8265 8266 |
# File 'lib/ovirtsdk4/services.rb', line 8264 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 |
# File 'lib/ovirtsdk4/services.rb', line 8286 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 |