The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
flytekit.core.reference
Directory
Methods
| Method | Description |
|---|---|
get_reference_entity() |
See the documentation for flytekit.reference_task and flytekit.reference_workflow as well. |
Methods
get_reference_entity()
def get_reference_entity(
resource_type: int,
project: str,
domain: str,
name: str,
version: str,
inputs: Dict[str, Type],
outputs: Dict[str, Type],
)See the documentation for {{< py_class_ref flytekit.reference_task >}} and {{< py_class_ref flytekit.reference_workflow >}} as well.
This function is the general form of the two aforementioned functions. It’s better for programmatic usage, as the interface is passed in as arguments instead of analyzed from type annotations.
<!– .. literalinclude:: ../../../tests/flytekit/unit/core/test_references.py :start-after: # docs_ref_start :end-before: # docs_ref_end :language: python :dedent: 4 –>
ref_entity = get_reference_entity(
_identifier_model.ResourceType.WORKFLOW,
"project",
"dev",
"my.other.workflow",
"abc123",
inputs=kwtypes(a=str, b=int),
outputs={},
)| Parameter | Type | Description |
|---|---|---|
resource_type |
int |
This is the type of entity it is. Must be one of {{< py_class_ref flytekit.models.core.identifier.ResourceType >}} |
project |
str |
The project the entity you’re looking for has been registered in. |
domain |
str |
The domain the entity you’re looking for has been registered in. |
name |
str |
The name of the registered entity |
version |
str |
The version the entity you’re looking for has been registered with. |
inputs |
Dict[str, Type] |
An ordered dictionary of input names as strings to their Python types. |
outputs |
Dict[str, Type] |
An ordered dictionary of output names as strings to their Python types. |