# Generated by ariadne-codegen
# Source: exponent/core/graphql/operations

from typing import Any, Literal, Optional

from pydantic import Field

from .base_model import BaseModel


class EnableCloudRepository(BaseModel):
    enable_cloud_repository: "EnableCloudRepositoryEnableCloudRepository" = Field(
        alias="enableCloudRepository"
    )


class EnableCloudRepositoryEnableCloudRepository(BaseModel):
    typename__: Literal["EnableCloudRepositoriesResult"] = Field(alias="__typename")
    results: list["EnableCloudRepositoryEnableCloudRepositoryResults"]


class EnableCloudRepositoryEnableCloudRepositoryResults(BaseModel):
    org_name: str = Field(alias="orgName")
    repo_name: str = Field(alias="repoName")
    success: bool
    error_message: Optional[str] = Field(alias="errorMessage")
    images: Optional[list["EnableCloudRepositoryEnableCloudRepositoryResultsImages"]]


class EnableCloudRepositoryEnableCloudRepositoryResultsImages(BaseModel):
    build_ref: str = Field(alias="buildRef")
    created_at: Any = Field(alias="createdAt")
    updated_at: Any = Field(alias="updatedAt")


EnableCloudRepository.model_rebuild()
EnableCloudRepositoryEnableCloudRepository.model_rebuild()
EnableCloudRepositoryEnableCloudRepositoryResults.model_rebuild()
