(
self, request: RegistryServer_pb2.ApplyPermissionRequest, context
)
| 1016 | ).to_proto() |
| 1017 | |
| 1018 | def ApplyPermission( |
| 1019 | self, request: RegistryServer_pb2.ApplyPermissionRequest, context |
| 1020 | ): |
| 1021 | permission = cast( |
| 1022 | Permission, |
| 1023 | assert_permissions_to_update( |
| 1024 | resource=Permission.from_proto(request.permission), |
| 1025 | getter=self.proxied_registry.get_permission, |
| 1026 | project=request.project, |
| 1027 | ), |
| 1028 | ) |
| 1029 | self.proxied_registry.apply_permission( |
| 1030 | permission=permission, |
| 1031 | project=request.project, |
| 1032 | commit=request.commit, |
| 1033 | ) |
| 1034 | return Empty() |
| 1035 | |
| 1036 | def GetPermission(self, request: RegistryServer_pb2.GetPermissionRequest, context): |
| 1037 | return assert_permissions( |
nothing calls this directly
no test coverage detected