Get the list of groups in this project. .. note:: If groups have not been pulled, they will be pulled upon calling this. .. note:: This function is only available to accounts with admin status on the Remote :return: List of Group objects :raises: RuntimeError if there was an error pull
(self)
| 426 | |
| 427 | @property |
| 428 | def groups(self) -> List['group.Group']: |
| 429 | """ |
| 430 | Get the list of groups in this project. |
| 431 | |
| 432 | .. note:: If groups have not been pulled, they will be pulled upon calling this. |
| 433 | |
| 434 | .. note:: This function is only available to accounts with admin status on the Remote |
| 435 | |
| 436 | :return: List of Group objects |
| 437 | :raises: RuntimeError if there was an error pulling groups |
| 438 | """ |
| 439 | if not self.has_pulled_groups: |
| 440 | self.pull_groups() |
| 441 | |
| 442 | count = ctypes.c_size_t() |
| 443 | value = core.BNRemoteGetGroups(self._handle, count) |
| 444 | if value is None: |
| 445 | raise RuntimeError(util._last_error()) |
| 446 | result = [] |
| 447 | for i in range(count.value): |
| 448 | result.append(group.Group(value[i])) |
| 449 | return result |
| 450 | |
| 451 | def get_group_by_id(self, id: int) -> Optional['group.Group']: |
| 452 | """ |
nothing calls this directly
no test coverage detected