(
registry_proto: RegistryProto, name: str, project: str
)
| 247 | |
| 248 | |
| 249 | def get_data_source( |
| 250 | registry_proto: RegistryProto, name: str, project: str |
| 251 | ) -> DataSource: |
| 252 | for data_source in registry_proto.data_sources: |
| 253 | if data_source.project == project and data_source.name == name: |
| 254 | return DataSource.from_proto(data_source) |
| 255 | raise DataSourceObjectNotFoundException(name, project=project) |
| 256 | |
| 257 | |
| 258 | def get_entity(registry_proto: RegistryProto, name: str, project: str) -> Entity: |
nothing calls this directly
no test coverage detected