# flytekitplugins.dbt.schema

## Directory

### Classes

| Class | Description |
|-|-|
| [`BaseDBTInput`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/page.md#flytekitpluginsdbtschemabasedbtinput) | Base class for DBT Task Input. |
| [`BaseDBTOutput`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/page.md#flytekitpluginsdbtschemabasedbtoutput) | Base class for output of DBT task. |
| [`DBTFreshnessInput`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/page.md#flytekitpluginsdbtschemadbtfreshnessinput) | Input to DBT Freshness task. |
| [`DBTFreshnessOutput`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/page.md#flytekitpluginsdbtschemadbtfreshnessoutput) | Output of DBT Freshness task. |
| [`DBTRunInput`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/page.md#flytekitpluginsdbtschemadbtruninput) | Input to DBT Run task. |
| [`DBTRunOutput`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/page.md#flytekitpluginsdbtschemadbtrunoutput) | Output of DBT run task. |
| [`DBTTestInput`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/page.md#flytekitpluginsdbtschemadbttestinput) | Input to DBT Test task. |
| [`DBTTestOutput`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/page.md#flytekitpluginsdbtschemadbttestoutput) | Output of DBT test task. |

## flytekitplugins.dbt.schema.BaseDBTInput

Base class for DBT Task Input.

Attributes
----------
project_dir : str
    Path to directory containing the DBT ``dbt_project.yml``.
profiles_dir : str
    Path to directory containing the DBT ``profiles.yml``.
profile : str
    Profile name to be used for the DBT task. It will override value in ``dbt_project.yml``.
target : str
    Target to load for the given profile (default=None).
output_path : str
    Path to directory where compiled files (e.g. models) will be written when running the task (default=target).
ignore_handled_error : bool
    Ignore handled error (exit code = 1) returned by DBT, see https://docs.getdbt.com/reference/exit-codes (default=False).
flags : dict
    Dictionary containing CLI flags to be added to the ``dbt run`` command (default=False).

```python
class BaseDBTInput(
    project_dir: str,
    profiles_dir: str,
    profile: str,
    target: str,
    output_path: str,
    ignore_handled_error: bool,
    flags: dict,
)
```
| Parameter | Type | Description |
|-|-|-|
| `project_dir` | `str` | |
| `profiles_dir` | `str` | |
| `profile` | `str` | |
| `target` | `str` | |
| `output_path` | `str` | |
| `ignore_handled_error` | `bool` | |
| `flags` | `dict` | |

### Methods

| Method | Description |
|-|-|
| [`from_dict()`](#from_dict) |  |
| [`from_json()`](#from_json) |  |
| [`schema()`](#schema) |  |
| [`to_args()`](#to_args) | Convert the instance of BaseDBTInput into list of arguments. |
| [`to_dict()`](#to_dict) |  |
| [`to_json()`](#to_json) |  |

#### from_dict()

```python
def from_dict(
    kvs: typing.Union[dict, list, str, int, float, bool, NoneType],
    infer_missing,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `kvs` | `typing.Union[dict, list, str, int, float, bool, NoneType]` | |
| `infer_missing` |  | |

#### from_json()

```python
def from_json(
    s: typing.Union[str, bytes, bytearray],
    parse_float,
    parse_int,
    parse_constant,
    infer_missing,
    kw,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `s` | `typing.Union[str, bytes, bytearray]` | |
| `parse_float` |  | |
| `parse_int` |  | |
| `parse_constant` |  | |
| `infer_missing` |  | |
| `kw` |  | |

#### schema()

```python
def schema(
    infer_missing: bool,
    only,
    exclude,
    many: bool,
    context,
    load_only,
    dump_only,
    partial: bool,
    unknown,
) -> SchemaType[A]
```
| Parameter | Type | Description |
|-|-|-|
| `infer_missing` | `bool` | |
| `only` |  | |
| `exclude` |  | |
| `many` | `bool` | |
| `context` |  | |
| `load_only` |  | |
| `dump_only` |  | |
| `partial` | `bool` | |
| `unknown` |  | |

#### to_args()

```python
def to_args()
```
Convert the instance of BaseDBTInput into list of arguments.

Returns
-------
List[str]
    List of arguments.

#### to_dict()

```python
def to_dict(
    encode_json,
) -> typing.Dict[str, typing.Union[dict, list, str, int, float, bool, NoneType]]
```
| Parameter | Type | Description |
|-|-|-|
| `encode_json` |  | |

#### to_json()

```python
def to_json(
    skipkeys: bool,
    ensure_ascii: bool,
    check_circular: bool,
    allow_nan: bool,
    indent: typing.Union[int, str, NoneType],
    separators: typing.Tuple[str, str],
    default: typing.Callable,
    sort_keys: bool,
    kw,
) -> str
```
| Parameter | Type | Description |
|-|-|-|
| `skipkeys` | `bool` | |
| `ensure_ascii` | `bool` | |
| `check_circular` | `bool` | |
| `allow_nan` | `bool` | |
| `indent` | `typing.Union[int, str, NoneType]` | |
| `separators` | `typing.Tuple[str, str]` | |
| `default` | `typing.Callable` | |
| `sort_keys` | `bool` | |
| `kw` |  | |

## flytekitplugins.dbt.schema.BaseDBTOutput

Base class for output of DBT task.

Attributes
----------
command : str
    Complete CLI command and flags that was executed by DBT Task.
exit_code : int
    Exit code returned by DBT CLI.

```python
class BaseDBTOutput(
    command: str,
    exit_code: int,
)
```
| Parameter | Type | Description |
|-|-|-|
| `command` | `str` | |
| `exit_code` | `int` | |

### Methods

| Method | Description |
|-|-|
| [`from_dict()`](#from_dict) |  |
| [`from_json()`](#from_json) |  |
| [`schema()`](#schema) |  |
| [`to_dict()`](#to_dict) |  |
| [`to_json()`](#to_json) |  |

#### from_dict()

```python
def from_dict(
    kvs: typing.Union[dict, list, str, int, float, bool, NoneType],
    infer_missing,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `kvs` | `typing.Union[dict, list, str, int, float, bool, NoneType]` | |
| `infer_missing` |  | |

#### from_json()

```python
def from_json(
    s: typing.Union[str, bytes, bytearray],
    parse_float,
    parse_int,
    parse_constant,
    infer_missing,
    kw,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `s` | `typing.Union[str, bytes, bytearray]` | |
| `parse_float` |  | |
| `parse_int` |  | |
| `parse_constant` |  | |
| `infer_missing` |  | |
| `kw` |  | |

#### schema()

```python
def schema(
    infer_missing: bool,
    only,
    exclude,
    many: bool,
    context,
    load_only,
    dump_only,
    partial: bool,
    unknown,
) -> SchemaType[A]
```
| Parameter | Type | Description |
|-|-|-|
| `infer_missing` | `bool` | |
| `only` |  | |
| `exclude` |  | |
| `many` | `bool` | |
| `context` |  | |
| `load_only` |  | |
| `dump_only` |  | |
| `partial` | `bool` | |
| `unknown` |  | |

#### to_dict()

```python
def to_dict(
    encode_json,
) -> typing.Dict[str, typing.Union[dict, list, str, int, float, bool, NoneType]]
```
| Parameter | Type | Description |
|-|-|-|
| `encode_json` |  | |

#### to_json()

```python
def to_json(
    skipkeys: bool,
    ensure_ascii: bool,
    check_circular: bool,
    allow_nan: bool,
    indent: typing.Union[int, str, NoneType],
    separators: typing.Tuple[str, str],
    default: typing.Callable,
    sort_keys: bool,
    kw,
) -> str
```
| Parameter | Type | Description |
|-|-|-|
| `skipkeys` | `bool` | |
| `ensure_ascii` | `bool` | |
| `check_circular` | `bool` | |
| `allow_nan` | `bool` | |
| `indent` | `typing.Union[int, str, NoneType]` | |
| `separators` | `typing.Tuple[str, str]` | |
| `default` | `typing.Callable` | |
| `sort_keys` | `bool` | |
| `kw` |  | |

## flytekitplugins.dbt.schema.DBTFreshnessInput

Input to DBT Freshness task.

Attributes
----------
select : List[str]
    List of model to be executed (default : None).
exclude : List[str]
    List of model to be excluded (default : None).

```python
class DBTFreshnessInput(
    project_dir: str,
    profiles_dir: str,
    profile: str,
    target: str,
    output_path: str,
    ignore_handled_error: bool,
    flags: dict,
    select: typing.Optional[typing.List[str]],
    exclude: typing.Optional[typing.List[str]],
)
```
| Parameter | Type | Description |
|-|-|-|
| `project_dir` | `str` | |
| `profiles_dir` | `str` | |
| `profile` | `str` | |
| `target` | `str` | |
| `output_path` | `str` | |
| `ignore_handled_error` | `bool` | |
| `flags` | `dict` | |
| `select` | `typing.Optional[typing.List[str]]` | |
| `exclude` | `typing.Optional[typing.List[str]]` | |

### Methods

| Method | Description |
|-|-|
| [`from_dict()`](#from_dict) |  |
| [`from_json()`](#from_json) |  |
| [`schema()`](#schema) |  |
| [`to_args()`](#to_args) | Convert the instance of DBTFreshnessInput into list of arguments. |
| [`to_dict()`](#to_dict) |  |
| [`to_json()`](#to_json) |  |

#### from_dict()

```python
def from_dict(
    kvs: typing.Union[dict, list, str, int, float, bool, NoneType],
    infer_missing,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `kvs` | `typing.Union[dict, list, str, int, float, bool, NoneType]` | |
| `infer_missing` |  | |

#### from_json()

```python
def from_json(
    s: typing.Union[str, bytes, bytearray],
    parse_float,
    parse_int,
    parse_constant,
    infer_missing,
    kw,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `s` | `typing.Union[str, bytes, bytearray]` | |
| `parse_float` |  | |
| `parse_int` |  | |
| `parse_constant` |  | |
| `infer_missing` |  | |
| `kw` |  | |

#### schema()

```python
def schema(
    infer_missing: bool,
    only,
    exclude,
    many: bool,
    context,
    load_only,
    dump_only,
    partial: bool,
    unknown,
) -> SchemaType[A]
```
| Parameter | Type | Description |
|-|-|-|
| `infer_missing` | `bool` | |
| `only` |  | |
| `exclude` |  | |
| `many` | `bool` | |
| `context` |  | |
| `load_only` |  | |
| `dump_only` |  | |
| `partial` | `bool` | |
| `unknown` |  | |

#### to_args()

```python
def to_args()
```
Convert the instance of DBTFreshnessInput into list of arguments.

Returns
-------
List[str]
    List of arguments.

#### to_dict()

```python
def to_dict(
    encode_json,
) -> typing.Dict[str, typing.Union[dict, list, str, int, float, bool, NoneType]]
```
| Parameter | Type | Description |
|-|-|-|
| `encode_json` |  | |

#### to_json()

```python
def to_json(
    skipkeys: bool,
    ensure_ascii: bool,
    check_circular: bool,
    allow_nan: bool,
    indent: typing.Union[int, str, NoneType],
    separators: typing.Tuple[str, str],
    default: typing.Callable,
    sort_keys: bool,
    kw,
) -> str
```
| Parameter | Type | Description |
|-|-|-|
| `skipkeys` | `bool` | |
| `ensure_ascii` | `bool` | |
| `check_circular` | `bool` | |
| `allow_nan` | `bool` | |
| `indent` | `typing.Union[int, str, NoneType]` | |
| `separators` | `typing.Tuple[str, str]` | |
| `default` | `typing.Callable` | |
| `sort_keys` | `bool` | |
| `kw` |  | |

## flytekitplugins.dbt.schema.DBTFreshnessOutput

Output of DBT Freshness task.

Attributes
----------
raw_sources : str
    Raw value of DBT's ``sources.json``.

```python
class DBTFreshnessOutput(
    command: str,
    exit_code: int,
    raw_sources: str,
)
```
| Parameter | Type | Description |
|-|-|-|
| `command` | `str` | |
| `exit_code` | `int` | |
| `raw_sources` | `str` | |

### Methods

| Method | Description |
|-|-|
| [`from_dict()`](#from_dict) |  |
| [`from_json()`](#from_json) |  |
| [`schema()`](#schema) |  |
| [`to_dict()`](#to_dict) |  |
| [`to_json()`](#to_json) |  |

#### from_dict()

```python
def from_dict(
    kvs: typing.Union[dict, list, str, int, float, bool, NoneType],
    infer_missing,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `kvs` | `typing.Union[dict, list, str, int, float, bool, NoneType]` | |
| `infer_missing` |  | |

#### from_json()

```python
def from_json(
    s: typing.Union[str, bytes, bytearray],
    parse_float,
    parse_int,
    parse_constant,
    infer_missing,
    kw,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `s` | `typing.Union[str, bytes, bytearray]` | |
| `parse_float` |  | |
| `parse_int` |  | |
| `parse_constant` |  | |
| `infer_missing` |  | |
| `kw` |  | |

#### schema()

```python
def schema(
    infer_missing: bool,
    only,
    exclude,
    many: bool,
    context,
    load_only,
    dump_only,
    partial: bool,
    unknown,
) -> SchemaType[A]
```
| Parameter | Type | Description |
|-|-|-|
| `infer_missing` | `bool` | |
| `only` |  | |
| `exclude` |  | |
| `many` | `bool` | |
| `context` |  | |
| `load_only` |  | |
| `dump_only` |  | |
| `partial` | `bool` | |
| `unknown` |  | |

#### to_dict()

```python
def to_dict(
    encode_json,
) -> typing.Dict[str, typing.Union[dict, list, str, int, float, bool, NoneType]]
```
| Parameter | Type | Description |
|-|-|-|
| `encode_json` |  | |

#### to_json()

```python
def to_json(
    skipkeys: bool,
    ensure_ascii: bool,
    check_circular: bool,
    allow_nan: bool,
    indent: typing.Union[int, str, NoneType],
    separators: typing.Tuple[str, str],
    default: typing.Callable,
    sort_keys: bool,
    kw,
) -> str
```
| Parameter | Type | Description |
|-|-|-|
| `skipkeys` | `bool` | |
| `ensure_ascii` | `bool` | |
| `check_circular` | `bool` | |
| `allow_nan` | `bool` | |
| `indent` | `typing.Union[int, str, NoneType]` | |
| `separators` | `typing.Tuple[str, str]` | |
| `default` | `typing.Callable` | |
| `sort_keys` | `bool` | |
| `kw` |  | |

## flytekitplugins.dbt.schema.DBTRunInput

Input to DBT Run task.

Attributes
----------
select : List[str]
    List of model to be executed (default=None).
exclude : List[str]
    List of model to be excluded (default=None).

```python
class DBTRunInput(
    project_dir: str,
    profiles_dir: str,
    profile: str,
    target: str,
    output_path: str,
    ignore_handled_error: bool,
    flags: dict,
    select: typing.Optional[typing.List[str]],
    exclude: typing.Optional[typing.List[str]],
)
```
| Parameter | Type | Description |
|-|-|-|
| `project_dir` | `str` | |
| `profiles_dir` | `str` | |
| `profile` | `str` | |
| `target` | `str` | |
| `output_path` | `str` | |
| `ignore_handled_error` | `bool` | |
| `flags` | `dict` | |
| `select` | `typing.Optional[typing.List[str]]` | |
| `exclude` | `typing.Optional[typing.List[str]]` | |

### Methods

| Method | Description |
|-|-|
| [`from_dict()`](#from_dict) |  |
| [`from_json()`](#from_json) |  |
| [`schema()`](#schema) |  |
| [`to_args()`](#to_args) | Convert the instance of BaseDBTInput into list of arguments. |
| [`to_dict()`](#to_dict) |  |
| [`to_json()`](#to_json) |  |

#### from_dict()

```python
def from_dict(
    kvs: typing.Union[dict, list, str, int, float, bool, NoneType],
    infer_missing,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `kvs` | `typing.Union[dict, list, str, int, float, bool, NoneType]` | |
| `infer_missing` |  | |

#### from_json()

```python
def from_json(
    s: typing.Union[str, bytes, bytearray],
    parse_float,
    parse_int,
    parse_constant,
    infer_missing,
    kw,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `s` | `typing.Union[str, bytes, bytearray]` | |
| `parse_float` |  | |
| `parse_int` |  | |
| `parse_constant` |  | |
| `infer_missing` |  | |
| `kw` |  | |

#### schema()

```python
def schema(
    infer_missing: bool,
    only,
    exclude,
    many: bool,
    context,
    load_only,
    dump_only,
    partial: bool,
    unknown,
) -> SchemaType[A]
```
| Parameter | Type | Description |
|-|-|-|
| `infer_missing` | `bool` | |
| `only` |  | |
| `exclude` |  | |
| `many` | `bool` | |
| `context` |  | |
| `load_only` |  | |
| `dump_only` |  | |
| `partial` | `bool` | |
| `unknown` |  | |

#### to_args()

```python
def to_args()
```
Convert the instance of BaseDBTInput into list of arguments.

Returns
-------
List[str]
    List of arguments.

#### to_dict()

```python
def to_dict(
    encode_json,
) -> typing.Dict[str, typing.Union[dict, list, str, int, float, bool, NoneType]]
```
| Parameter | Type | Description |
|-|-|-|
| `encode_json` |  | |

#### to_json()

```python
def to_json(
    skipkeys: bool,
    ensure_ascii: bool,
    check_circular: bool,
    allow_nan: bool,
    indent: typing.Union[int, str, NoneType],
    separators: typing.Tuple[str, str],
    default: typing.Callable,
    sort_keys: bool,
    kw,
) -> str
```
| Parameter | Type | Description |
|-|-|-|
| `skipkeys` | `bool` | |
| `ensure_ascii` | `bool` | |
| `check_circular` | `bool` | |
| `allow_nan` | `bool` | |
| `indent` | `typing.Union[int, str, NoneType]` | |
| `separators` | `typing.Tuple[str, str]` | |
| `default` | `typing.Callable` | |
| `sort_keys` | `bool` | |
| `kw` |  | |

## flytekitplugins.dbt.schema.DBTRunOutput

Output of DBT run task.

Attributes
----------
raw_run_result : str
    Raw value of DBT's ``run_result.json``.
raw_manifest : str
    Raw value of DBT's ``manifest.json``.

```python
class DBTRunOutput(
    command: str,
    exit_code: int,
    raw_run_result: str,
    raw_manifest: str,
)
```
| Parameter | Type | Description |
|-|-|-|
| `command` | `str` | |
| `exit_code` | `int` | |
| `raw_run_result` | `str` | |
| `raw_manifest` | `str` | |

### Methods

| Method | Description |
|-|-|
| [`from_dict()`](#from_dict) |  |
| [`from_json()`](#from_json) |  |
| [`schema()`](#schema) |  |
| [`to_dict()`](#to_dict) |  |
| [`to_json()`](#to_json) |  |

#### from_dict()

```python
def from_dict(
    kvs: typing.Union[dict, list, str, int, float, bool, NoneType],
    infer_missing,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `kvs` | `typing.Union[dict, list, str, int, float, bool, NoneType]` | |
| `infer_missing` |  | |

#### from_json()

```python
def from_json(
    s: typing.Union[str, bytes, bytearray],
    parse_float,
    parse_int,
    parse_constant,
    infer_missing,
    kw,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `s` | `typing.Union[str, bytes, bytearray]` | |
| `parse_float` |  | |
| `parse_int` |  | |
| `parse_constant` |  | |
| `infer_missing` |  | |
| `kw` |  | |

#### schema()

```python
def schema(
    infer_missing: bool,
    only,
    exclude,
    many: bool,
    context,
    load_only,
    dump_only,
    partial: bool,
    unknown,
) -> SchemaType[A]
```
| Parameter | Type | Description |
|-|-|-|
| `infer_missing` | `bool` | |
| `only` |  | |
| `exclude` |  | |
| `many` | `bool` | |
| `context` |  | |
| `load_only` |  | |
| `dump_only` |  | |
| `partial` | `bool` | |
| `unknown` |  | |

#### to_dict()

```python
def to_dict(
    encode_json,
) -> typing.Dict[str, typing.Union[dict, list, str, int, float, bool, NoneType]]
```
| Parameter | Type | Description |
|-|-|-|
| `encode_json` |  | |

#### to_json()

```python
def to_json(
    skipkeys: bool,
    ensure_ascii: bool,
    check_circular: bool,
    allow_nan: bool,
    indent: typing.Union[int, str, NoneType],
    separators: typing.Tuple[str, str],
    default: typing.Callable,
    sort_keys: bool,
    kw,
) -> str
```
| Parameter | Type | Description |
|-|-|-|
| `skipkeys` | `bool` | |
| `ensure_ascii` | `bool` | |
| `check_circular` | `bool` | |
| `allow_nan` | `bool` | |
| `indent` | `typing.Union[int, str, NoneType]` | |
| `separators` | `typing.Tuple[str, str]` | |
| `default` | `typing.Callable` | |
| `sort_keys` | `bool` | |
| `kw` |  | |

## flytekitplugins.dbt.schema.DBTTestInput

Input to DBT Test task.

Attributes
----------
select : List[str]
    List of model to be executed (default : None).
exclude : List[str]
    List of model to be excluded (default : None).

```python
class DBTTestInput(
    project_dir: str,
    profiles_dir: str,
    profile: str,
    target: str,
    output_path: str,
    ignore_handled_error: bool,
    flags: dict,
    select: typing.Optional[typing.List[str]],
    exclude: typing.Optional[typing.List[str]],
)
```
| Parameter | Type | Description |
|-|-|-|
| `project_dir` | `str` | |
| `profiles_dir` | `str` | |
| `profile` | `str` | |
| `target` | `str` | |
| `output_path` | `str` | |
| `ignore_handled_error` | `bool` | |
| `flags` | `dict` | |
| `select` | `typing.Optional[typing.List[str]]` | |
| `exclude` | `typing.Optional[typing.List[str]]` | |

### Methods

| Method | Description |
|-|-|
| [`from_dict()`](#from_dict) |  |
| [`from_json()`](#from_json) |  |
| [`schema()`](#schema) |  |
| [`to_args()`](#to_args) | Convert the instance of DBTTestInput into list of arguments. |
| [`to_dict()`](#to_dict) |  |
| [`to_json()`](#to_json) |  |

#### from_dict()

```python
def from_dict(
    kvs: typing.Union[dict, list, str, int, float, bool, NoneType],
    infer_missing,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `kvs` | `typing.Union[dict, list, str, int, float, bool, NoneType]` | |
| `infer_missing` |  | |

#### from_json()

```python
def from_json(
    s: typing.Union[str, bytes, bytearray],
    parse_float,
    parse_int,
    parse_constant,
    infer_missing,
    kw,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `s` | `typing.Union[str, bytes, bytearray]` | |
| `parse_float` |  | |
| `parse_int` |  | |
| `parse_constant` |  | |
| `infer_missing` |  | |
| `kw` |  | |

#### schema()

```python
def schema(
    infer_missing: bool,
    only,
    exclude,
    many: bool,
    context,
    load_only,
    dump_only,
    partial: bool,
    unknown,
) -> SchemaType[A]
```
| Parameter | Type | Description |
|-|-|-|
| `infer_missing` | `bool` | |
| `only` |  | |
| `exclude` |  | |
| `many` | `bool` | |
| `context` |  | |
| `load_only` |  | |
| `dump_only` |  | |
| `partial` | `bool` | |
| `unknown` |  | |

#### to_args()

```python
def to_args()
```
Convert the instance of DBTTestInput into list of arguments.

Returns
-------
List[str]
    List of arguments.

#### to_dict()

```python
def to_dict(
    encode_json,
) -> typing.Dict[str, typing.Union[dict, list, str, int, float, bool, NoneType]]
```
| Parameter | Type | Description |
|-|-|-|
| `encode_json` |  | |

#### to_json()

```python
def to_json(
    skipkeys: bool,
    ensure_ascii: bool,
    check_circular: bool,
    allow_nan: bool,
    indent: typing.Union[int, str, NoneType],
    separators: typing.Tuple[str, str],
    default: typing.Callable,
    sort_keys: bool,
    kw,
) -> str
```
| Parameter | Type | Description |
|-|-|-|
| `skipkeys` | `bool` | |
| `ensure_ascii` | `bool` | |
| `check_circular` | `bool` | |
| `allow_nan` | `bool` | |
| `indent` | `typing.Union[int, str, NoneType]` | |
| `separators` | `typing.Tuple[str, str]` | |
| `default` | `typing.Callable` | |
| `sort_keys` | `bool` | |
| `kw` |  | |

## flytekitplugins.dbt.schema.DBTTestOutput

Output of DBT test task.

Attributes
----------
raw_run_result : str
    Raw value of DBT's ``run_result.json``.
raw_manifest : str
    Raw value of DBT's ``manifest.json``.

```python
class DBTTestOutput(
    command: str,
    exit_code: int,
    raw_run_result: str,
    raw_manifest: str,
)
```
| Parameter | Type | Description |
|-|-|-|
| `command` | `str` | |
| `exit_code` | `int` | |
| `raw_run_result` | `str` | |
| `raw_manifest` | `str` | |

### Methods

| Method | Description |
|-|-|
| [`from_dict()`](#from_dict) |  |
| [`from_json()`](#from_json) |  |
| [`schema()`](#schema) |  |
| [`to_dict()`](#to_dict) |  |
| [`to_json()`](#to_json) |  |

#### from_dict()

```python
def from_dict(
    kvs: typing.Union[dict, list, str, int, float, bool, NoneType],
    infer_missing,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `kvs` | `typing.Union[dict, list, str, int, float, bool, NoneType]` | |
| `infer_missing` |  | |

#### from_json()

```python
def from_json(
    s: typing.Union[str, bytes, bytearray],
    parse_float,
    parse_int,
    parse_constant,
    infer_missing,
    kw,
) -> ~A
```
| Parameter | Type | Description |
|-|-|-|
| `s` | `typing.Union[str, bytes, bytearray]` | |
| `parse_float` |  | |
| `parse_int` |  | |
| `parse_constant` |  | |
| `infer_missing` |  | |
| `kw` |  | |

#### schema()

```python
def schema(
    infer_missing: bool,
    only,
    exclude,
    many: bool,
    context,
    load_only,
    dump_only,
    partial: bool,
    unknown,
) -> SchemaType[A]
```
| Parameter | Type | Description |
|-|-|-|
| `infer_missing` | `bool` | |
| `only` |  | |
| `exclude` |  | |
| `many` | `bool` | |
| `context` |  | |
| `load_only` |  | |
| `dump_only` |  | |
| `partial` | `bool` | |
| `unknown` |  | |

#### to_dict()

```python
def to_dict(
    encode_json,
) -> typing.Dict[str, typing.Union[dict, list, str, int, float, bool, NoneType]]
```
| Parameter | Type | Description |
|-|-|-|
| `encode_json` |  | |

#### to_json()

```python
def to_json(
    skipkeys: bool,
    ensure_ascii: bool,
    check_circular: bool,
    allow_nan: bool,
    indent: typing.Union[int, str, NoneType],
    separators: typing.Tuple[str, str],
    default: typing.Callable,
    sort_keys: bool,
    kw,
) -> str
```
| Parameter | Type | Description |
|-|-|-|
| `skipkeys` | `bool` | |
| `ensure_ascii` | `bool` | |
| `check_circular` | `bool` | |
| `allow_nan` | `bool` | |
| `indent` | `typing.Union[int, str, NoneType]` | |
| `separators` | `typing.Tuple[str, str]` | |
| `default` | `typing.Callable` | |
| `sort_keys` | `bool` | |
| `kw` |  | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema.md
**HTML**: https://www.union.ai/docs/v1/flyte/api-reference/plugins/dbt/packages/flytekitplugins.dbt.schema/
