(self, entity: Entity, project: str, commit: bool = True)
| 415 | ) |
| 416 | |
| 417 | def apply_entity(self, entity: Entity, project: str, commit: bool = True): |
| 418 | return self._apply_object( |
| 419 | table=entities, |
| 420 | project=project, |
| 421 | id_field_name="entity_name", |
| 422 | obj=entity, |
| 423 | proto_field_name="entity_proto", |
| 424 | ) |
| 425 | |
| 426 | def _get_entity(self, name: str, project: str) -> Entity: |
| 427 | return self._get_object( |