coolipy.models.security

Private key models for the Coolify API.

Classes

class PrivateKeyCreateModel (**data: Any)
Expand source code
class PrivateKeyCreateModel(CoolipyBaseModel):
    """Body for creating a private key."""

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

Body for creating a private key.

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
var private_key : str | None
class PrivateKeyModel (**data: Any)
Expand source code
class PrivateKeyModel(CoolipyBaseModel):
    """A private key as returned by the API."""

    id: int | None = None
    uuid: str | None = None
    name: str | None = None
    description: str | None = None
    private_key: str | None = None
    public_key: str | None = None
    fingerprint: str | None = None
    is_git_related: bool | None = None
    team_id: int | None = None
    created_at: datetime | None = None
    updated_at: datetime | None = None

A private key 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 fingerprint : str | None
var id : int | None
var model_config
var name : str | None
var private_key : str | None
var public_key : str | None
var team_id : int | None
var updated_at : datetime.datetime | None
var uuid : str | None
class PrivateKeyUpdateModel (**data: Any)
Expand source code
class PrivateKeyUpdateModel(CoolipyBaseModel):
    """Body for updating a private key."""

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

Body for updating a private key.

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
var private_key : str | None