(
self, request: RegistryServer_pb2.ListPermissionsRequest, context
)
| 1044 | ).to_proto() |
| 1045 | |
| 1046 | def ListPermissions( |
| 1047 | self, request: RegistryServer_pb2.ListPermissionsRequest, context |
| 1048 | ): |
| 1049 | paginated_permissions, pagination_metadata = apply_pagination_and_sorting( |
| 1050 | permitted_resources( |
| 1051 | resources=cast( |
| 1052 | list[FeastObject], |
| 1053 | self.proxied_registry.list_permissions( |
| 1054 | project=request.project, |
| 1055 | allow_cache=request.allow_cache, |
| 1056 | tags=dict(request.tags), |
| 1057 | ), |
| 1058 | ), |
| 1059 | actions=AuthzedAction.DESCRIBE, |
| 1060 | ), |
| 1061 | pagination=request.pagination, |
| 1062 | sorting=request.sorting, |
| 1063 | ) |
| 1064 | |
| 1065 | return RegistryServer_pb2.ListPermissionsResponse( |
| 1066 | permissions=[permission.to_proto() for permission in paginated_permissions], |
| 1067 | pagination=pagination_metadata, |
| 1068 | ) |
| 1069 | |
| 1070 | def DeletePermission( |
| 1071 | self, request: RegistryServer_pb2.DeletePermissionRequest, context |
nothing calls this directly
no test coverage detected