coolipy.models.projects

Project and environment models for the Coolify API.

Classes

class EnvironmentCreateModel (**data: Any)
Expand source code
class EnvironmentCreateModel(CoolipyBaseModel):
    """Body for creating an environment."""

    name: str | None = None

Body for creating an environment.

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 model_config
var name : str | None
class EnvironmentModel (**data: Any)
Expand source code
class EnvironmentModel(CoolipyBaseModel):
    """An environment as returned by the API."""

    id: int | None = None
    name: str | None = None
    project_id: int | None = None
    created_at: datetime | None = None
    updated_at: datetime | None = None
    description: str | None = None

An environment 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 created_at : datetime.datetime | None
var description : str | None
var id : int | None
var model_config
var name : str | None
var project_id : int | None
var updated_at : datetime.datetime | None
class EnvironmentUpdateModel (**data: Any)
Expand source code
class EnvironmentUpdateModel(CoolipyBaseModel):
    """Body for updating an environment."""

    name: str | None = None

Body for updating an environment.

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 model_config
var name : str | None
class ProjectCreateModel (**data: Any)
Expand source code
class ProjectCreateModel(CoolipyBaseModel):
    """Body for creating a project."""

    name: str | None = None
    description: str | None = None

Body for creating a project.

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 description : str | None
var model_config
var name : str | None
class ProjectModel (**data: Any)
Expand source code
class ProjectModel(CoolipyBaseModel):
    """A project as returned by the API."""

    id: int | None = None
    uuid: str | None = None
    name: str | None = None
    description: str | None = None

A project 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 description : str | None
var id : int | None
var model_config
var name : str | None
var uuid : str | None
class ProjectUpdateModel (**data: Any)
Expand source code
class ProjectUpdateModel(CoolipyBaseModel):
    """Body for updating a project."""

    name: str | None = None
    description: str | None = None

Body for updating a project.

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 description : str | None
var model_config
var name : str | None