(self, name: str, project: str)
| 436 | ) |
| 437 | |
| 438 | def _get_any_feature_view(self, name: str, project: str) -> BaseFeatureView: |
| 439 | fv = self._get_object( |
| 440 | table=feature_views, |
| 441 | name=name, |
| 442 | project=project, |
| 443 | proto_class=FeatureViewProto, |
| 444 | python_class=FeatureView, |
| 445 | id_field_name="feature_view_name", |
| 446 | proto_field_name="feature_view_proto", |
| 447 | not_found_exception=None, |
| 448 | ) |
| 449 | |
| 450 | if not fv: |
| 451 | fv = self._get_object( |
| 452 | table=on_demand_feature_views, |
| 453 | name=name, |
| 454 | project=project, |
| 455 | proto_class=OnDemandFeatureViewProto, |
| 456 | python_class=OnDemandFeatureView, |
| 457 | id_field_name="feature_view_name", |
| 458 | proto_field_name="feature_view_proto", |
| 459 | not_found_exception=None, |
| 460 | ) |
| 461 | |
| 462 | if not fv: |
| 463 | fv = self._get_object( |
| 464 | table=stream_feature_views, |
| 465 | name=name, |
| 466 | project=project, |
| 467 | proto_class=StreamFeatureViewProto, |
| 468 | python_class=StreamFeatureView, |
| 469 | id_field_name="feature_view_name", |
| 470 | proto_field_name="feature_view_proto", |
| 471 | not_found_exception=None, |
| 472 | ) |
| 473 | |
| 474 | if not fv: |
| 475 | fv = self._get_object( |
| 476 | table=label_views, |
| 477 | name=name, |
| 478 | project=project, |
| 479 | proto_class=LabelViewProto, |
| 480 | python_class=LabelView, |
| 481 | id_field_name="feature_view_name", |
| 482 | proto_field_name="feature_view_proto", |
| 483 | not_found_exception=FeatureViewNotFoundException, |
| 484 | ) |
| 485 | return fv |
| 486 | |
| 487 | def _list_all_feature_views( |
| 488 | self, project: str, tags: Optional[dict[str, str]], **kwargs |
no test coverage detected