# generated by datamodel-codegen:
#   filename:  union.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from typing import Optional, Union

from pydantic import BaseModel, Field

from . import bar, foo


class ExecutionContext(BaseModel):
    __root__: Union[foo.JobRun, bar.JobRun] = Field(
        ..., description='Execution Configuration.'
    )


class App(BaseModel):
    runtime: Optional[ExecutionContext] = Field(
        None, description='Execution Configuration.'
    )
