(self, request: RegistryServer_pb2.ApplyEntityRequest, context)
| 181 | self.proxied_registry = registry |
| 182 | |
| 183 | def ApplyEntity(self, request: RegistryServer_pb2.ApplyEntityRequest, context): |
| 184 | entity = cast( |
| 185 | Entity, |
| 186 | assert_permissions_to_update( |
| 187 | resource=Entity.from_proto(request.entity), |
| 188 | getter=self.proxied_registry.get_entity, |
| 189 | project=request.project, |
| 190 | ), |
| 191 | ) |
| 192 | self.proxied_registry.apply_entity( |
| 193 | entity=entity, |
| 194 | project=request.project, |
| 195 | commit=request.commit, |
| 196 | ) |
| 197 | |
| 198 | return Empty() |
| 199 | |
| 200 | def GetEntity(self, request: RegistryServer_pb2.GetEntityRequest, context): |
| 201 | return assert_permissions( |
nothing calls this directly
no test coverage detected