# flytekit.interfaces.cli_identifiers

## Directory

### Classes

| Class | Description |
|-|-|
| [`Identifier`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.interfaces.cli_identifiers/page.md#flytekitinterfacescli_identifiersidentifier) |  |
| [`TaskExecutionIdentifier`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.interfaces.cli_identifiers/page.md#flytekitinterfacescli_identifierstaskexecutionidentifier) |  |
| [`WorkflowExecutionIdentifier`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.interfaces.cli_identifiers/page.md#flytekitinterfacescli_identifiersworkflowexecutionidentifier) |  |

## flytekit.interfaces.cli_identifiers.Identifier

### Parameters

```python
class Identifier(
    resource_type,
    project,
    domain,
    name,
    version,
)
```
| Parameter | Type | Description |
|-|-|-|
| `resource_type` |  | |
| `project` |  | |
| `domain` |  | |
| `name` |  | |
| `version` |  | |

### Properties

| Property | Type | Description |
|-|-|-|
| `domain` | `None` |  |
| `is_empty` | `None` |  |
| `name` | `None` |  |
| `project` | `None` |  |
| `resource_type` | `None` | enum value from ResourceType |
| `version` | `None` |  |

### Methods

| Method | Description |
|-|-|
| [`from_flyte_idl()`](#from_flyte_idl) |  |
| [`from_python_std()`](#from_python_std) | Parses a string in the correct format into an identifier. |
| [`promote_from_model()`](#promote_from_model) |  |
| [`resource_type_name()`](#resource_type_name) |  |
| [`serialize_to_string()`](#serialize_to_string) |  |
| [`short_string()`](#short_string) |  |
| [`to_flyte_idl()`](#to_flyte_idl) |  |

#### from_flyte_idl()

```python
def from_flyte_idl(
    pb2_object,
)
```
| Parameter | Type | Description |
|-|-|-|
| `pb2_object` |  | |

**Returns:** Identifier

#### from_python_std()

```python
def from_python_std(
    string,
)
```
Parses a string in the correct format into an identifier

| Parameter | Type | Description |
|-|-|-|
| `string` |  | |

**Returns:** Identifier

#### promote_from_model()

```python
def promote_from_model(
    base_model,
)
```
| Parameter | Type | Description |
|-|-|-|
| `base_model` |  | |

**Returns:** Identifier

#### resource_type_name()

```python
def resource_type_name()
```
#### serialize_to_string()

```python
def serialize_to_string()
```
#### short_string()

```python
def short_string()
```
**Returns:** Text

#### to_flyte_idl()

```python
def to_flyte_idl()
```
**Returns:** flyteidl.core.identifier_pb2.Identifier

## flytekit.interfaces.cli_identifiers.TaskExecutionIdentifier

### Parameters

```python
class TaskExecutionIdentifier(
    task_id,
    node_execution_id,
    retry_attempt,
)
```
| Parameter | Type | Description |
|-|-|-|
| `task_id` |  | |
| `node_execution_id` |  | |
| `retry_attempt` |  | |

### Properties

| Property | Type | Description |
|-|-|-|
| `is_empty` | `None` |  |
| `node_execution_id` | `None` |  |
| `retry_attempt` | `None` |  |
| `task_id` | `None` |  |

### Methods

| Method | Description |
|-|-|
| [`from_flyte_idl()`](#from_flyte_idl) |  |
| [`from_python_std()`](#from_python_std) | Parses a string in the correct format into an identifier. |
| [`promote_from_model()`](#promote_from_model) |  |
| [`serialize_to_string()`](#serialize_to_string) |  |
| [`short_string()`](#short_string) |  |
| [`to_flyte_idl()`](#to_flyte_idl) |  |

#### from_flyte_idl()

```python
def from_flyte_idl(
    pb2_object,
)
```
| Parameter | Type | Description |
|-|-|-|
| `pb2_object` |  | |

**Returns:** TaskExecutionIdentifier

#### from_python_std()

```python
def from_python_std(
    string,
)
```
Parses a string in the correct format into an identifier

| Parameter | Type | Description |
|-|-|-|
| `string` |  | |

**Returns:** TaskExecutionIdentifier

#### promote_from_model()

```python
def promote_from_model(
    base_model,
)
```
| Parameter | Type | Description |
|-|-|-|
| `base_model` |  | |

**Returns:** TaskExecutionIdentifier

#### serialize_to_string()

```python
def serialize_to_string()
```
#### short_string()

```python
def short_string()
```
**Returns:** Text

#### to_flyte_idl()

```python
def to_flyte_idl()
```
**Returns:** flyteidl.core.identifier_pb2.TaskExecutionIdentifier

## flytekit.interfaces.cli_identifiers.WorkflowExecutionIdentifier

### Parameters

```python
class WorkflowExecutionIdentifier(
    project,
    domain,
    name,
)
```
| Parameter | Type | Description |
|-|-|-|
| `project` |  | |
| `domain` |  | |
| `name` |  | |

### Properties

| Property | Type | Description |
|-|-|-|
| `domain` | `None` |  |
| `is_empty` | `None` |  |
| `name` | `None` |  |
| `project` | `None` |  |

### Methods

| Method | Description |
|-|-|
| [`from_flyte_idl()`](#from_flyte_idl) |  |
| [`from_python_std()`](#from_python_std) | Parses a string in the correct format into an identifier. |
| [`promote_from_model()`](#promote_from_model) |  |
| [`serialize_to_string()`](#serialize_to_string) |  |
| [`short_string()`](#short_string) |  |
| [`to_flyte_idl()`](#to_flyte_idl) |  |

#### from_flyte_idl()

```python
def from_flyte_idl(
    pb2_object,
)
```
| Parameter | Type | Description |
|-|-|-|
| `pb2_object` |  | |

**Returns:** WorkflowExecutionIdentifier

#### from_python_std()

```python
def from_python_std(
    string,
)
```
Parses a string in the correct format into an identifier

| Parameter | Type | Description |
|-|-|-|
| `string` |  | |

**Returns:** WorkflowExecutionIdentifier

#### promote_from_model()

```python
def promote_from_model(
    base_model,
)
```
| Parameter | Type | Description |
|-|-|-|
| `base_model` |  | |

**Returns:** WorkflowExecutionIdentifier

#### serialize_to_string()

```python
def serialize_to_string()
```
#### short_string()

```python
def short_string()
```
**Returns:** Text

#### to_flyte_idl()

```python
def to_flyte_idl()
```
**Returns:** flyteidl.core.identifier_pb2.WorkflowExecutionIdentifier

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.interfaces.cli_identifiers.md
**HTML**: https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.interfaces.cli_identifiers/
