Retrieves an entity. Args: name: Name of entity. allow_registry_cache: (Optional) Whether to allow returning this entity from a cached registry Returns: The specified entity. Raises: EntityNotFoundException: The enti
(self, name: str, allow_registry_cache: bool = False)
| 684 | ) |
| 685 | |
| 686 | def get_entity(self, name: str, allow_registry_cache: bool = False) -> Entity: |
| 687 | """ |
| 688 | Retrieves an entity. |
| 689 | |
| 690 | Args: |
| 691 | name: Name of entity. |
| 692 | allow_registry_cache: (Optional) Whether to allow returning this entity from a cached registry |
| 693 | |
| 694 | Returns: |
| 695 | The specified entity. |
| 696 | |
| 697 | Raises: |
| 698 | EntityNotFoundException: The entity could not be found. |
| 699 | """ |
| 700 | return self.registry.get_entity( |
| 701 | name, self.project, allow_cache=allow_registry_cache |
| 702 | ) |
| 703 | |
| 704 | def get_feature_service( |
| 705 | self, name: str, allow_cache: bool = False |
no outgoing calls