Retrieves a permission from the registry. Args: name: Name of the permission. Returns: The specified permission. Raises: PermissionObjectNotFoundException: The permission could not be found.
(self, name: str)
| 4173 | ) |
| 4174 | |
| 4175 | def get_permission(self, name: str) -> Permission: |
| 4176 | """ |
| 4177 | Retrieves a permission from the registry. |
| 4178 | |
| 4179 | Args: |
| 4180 | name: Name of the permission. |
| 4181 | |
| 4182 | Returns: |
| 4183 | The specified permission. |
| 4184 | |
| 4185 | Raises: |
| 4186 | PermissionObjectNotFoundException: The permission could not be found. |
| 4187 | """ |
| 4188 | return self.registry.get_permission(name, self.project) |
| 4189 | |
| 4190 | def list_projects( |
| 4191 | self, allow_cache: bool = False, tags: Optional[dict[str, str]] = None |
no outgoing calls