Retrieves the list of permissions from the registry. Args: allow_cache: Whether to allow returning permissions from a cached registry. tags: Filter by tags. Returns: A list of permissions.
(
self, allow_cache: bool = False, tags: Optional[dict[str, str]] = None
)
| 4156 | ) |
| 4157 | |
| 4158 | def list_permissions( |
| 4159 | self, allow_cache: bool = False, tags: Optional[dict[str, str]] = None |
| 4160 | ) -> List[Permission]: |
| 4161 | """ |
| 4162 | Retrieves the list of permissions from the registry. |
| 4163 | |
| 4164 | Args: |
| 4165 | allow_cache: Whether to allow returning permissions from a cached registry. |
| 4166 | tags: Filter by tags. |
| 4167 | |
| 4168 | Returns: |
| 4169 | A list of permissions. |
| 4170 | """ |
| 4171 | return self.registry.list_permissions( |
| 4172 | self.project, allow_cache=allow_cache, tags=tags |
| 4173 | ) |
| 4174 | |
| 4175 | def get_permission(self, name: str) -> Permission: |
| 4176 | """ |
no outgoing calls