# flytekit.models.domain

## Directory

### Classes

| Class | Description |
|-|-|
| [`Domain`](https://www.union.ai/docs/v1/flyte/api-reference/flytekit-sdk/packages/flytekit.models.domain/page.md#flytekitmodelsdomaindomain) | Domains are fixed and unique at the global level, and provide an abstraction to isolate resources and feature configuration for different deployment environments. |

## flytekit.models.domain.Domain

Domains are fixed and unique at the global level, and provide an abstraction to isolate resources and feature configuration for different deployment environments.

```python
class Domain(
    id,
    name,
)
```
| Parameter | Type | Description |
|-|-|-|
| `id` |  | |
| `name` |  | |

### Properties

| Property | Type | Description |
|-|-|-|
| `id` | `None` | A globally unique identifier associated with this domain. :rtype: Text |
| `is_empty` | `None` |  |
| `name` | `None` | A human-readable name for this domain. :rtype: Text |

### Methods

| Method | Description |
|-|-|
| [`from_flyte_idl()`](#from_flyte_idl) |  |
| [`serialize_to_string()`](#serialize_to_string) |  |
| [`short_string()`](#short_string) | :rtype: Text. |
| [`to_flyte_idl()`](#to_flyte_idl) | :rtype: flyteidl. |

#### from_flyte_idl()

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

#### serialize_to_string()

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

```python
def short_string()
```
:rtype: Text

#### to_flyte_idl()

```python
def to_flyte_idl()
```
:rtype: flyteidl.admin.project_pb2.Domain

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