coolipy.models.deployments

Deployment models for the Coolify API.

Classes

class DeployResponse (**data: Any)
Expand source code
class DeployResponse(CoolipyBaseModel):
    """Response from the ``deploy`` endpoint."""

    deployments: list[DeploymentEntry] | None = None

Response from the deploy endpoint.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Ancestors

Class variables

var deployments : list[DeploymentEntry] | None
var model_config
class DeploymentEntry (**data: Any)
Expand source code
class DeploymentEntry(CoolipyBaseModel):
    """A single deployment result returned by the ``deploy`` endpoint."""

    message: str | None = None
    resource_uuid: str | None = None
    deployment_uuid: str | None = None

A single deployment result returned by the deploy endpoint.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Ancestors

Class variables

var deployment_uuid : str | None
var message : str | None
var model_config
var resource_uuid : str | None
class DeploymentModel (**data: Any)
Expand source code
class DeploymentModel(CoolipyBaseModel):
    """A deployment as returned by the API."""

    id: int | None = None
    application_id: str | None = None
    deployment_uuid: str | None = None
    pull_request_id: int | None = None
    docker_registry_image_tag: str | None = None
    configuration_hash: str | None = None
    configuration_snapshot: dict | None = None
    configuration_diff: dict | None = None
    force_rebuild: bool | None = None
    commit: str | None = None
    status: str | None = None
    is_webhook: bool | None = None
    is_api: bool | None = None
    created_at: datetime | None = None
    updated_at: datetime | None = None
    logs: str | None = None
    current_process_id: str | None = None
    restart_only: bool | None = None
    git_type: str | None = None
    server_id: int | None = None
    application_name: str | None = None
    server_name: str | None = None
    deployment_url: str | None = None
    destination_id: str | None = None
    only_this_server: bool | None = None
    rollback: bool | None = None
    commit_message: str | None = None

A deployment as returned by the API.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Ancestors

Class variables

var application_id : str | None
var application_name : str | None
var commit : str | None
var commit_message : str | None
var configuration_diff : dict | None
var configuration_hash : str | None
var configuration_snapshot : dict | None
var created_at : datetime.datetime | None
var current_process_id : str | None
var deployment_url : str | None
var deployment_uuid : str | None
var destination_id : str | None
var docker_registry_image_tag : str | None
var force_rebuild : bool | None
var git_type : str | None
var id : int | None
var is_api : bool | None
var is_webhook : bool | None
var logs : str | None
var model_config
var only_this_server : bool | None
var pull_request_id : int | None
var restart_only : bool | None
var rollback : bool | None
var server_id : int | None
var server_name : str | None
var status : str | None
var updated_at : datetime.datetime | None