# Generated by ariadne-codegen
# Source: operations/

from typing import Any, Optional

from pydantic import Field

from .base_model import BaseModel
from .enums import DeploymentStatus, GitProvider


class Deployment(BaseModel):
    deployment: "DeploymentDeployment"


class DeploymentDeployment(BaseModel):
    id: Any = Field(alias="_id")
    git_provider: GitProvider = Field(alias="gitProvider")
    repo_owner: str = Field(alias="repoOwner")
    repo_name: str = Field(alias="repoName")
    ref: str
    commit_sha: str = Field(alias="commitSHA")
    commit_message: str = Field(alias="commitMessage")
    project_id: Any = Field(alias="projectID")
    service_id: Any = Field(alias="serviceID")
    environment_id: Any = Field(alias="environmentID")
    status: DeploymentStatus
    created_at: Any = Field(alias="createdAt")
    plan_type: Optional[str] = Field(alias="planType")
    plan_meta: Optional[Any] = Field(alias="planMeta")
    scheduled_at: Optional[Any] = Field(alias="scheduledAt")
    started_at: Optional[Any] = Field(alias="startedAt")
    finished_at: Optional[Any] = Field(alias="finishedAt")
    canceled_at: Optional[Any] = Field(alias="canceledAt")
    serverless: Optional[bool]


Deployment.model_rebuild()
