coolipy.models.common
Shared models reused across multiple coolipy resources.
Classes
class BulkEnvsUpdate (**data: Any)-
Expand source code
class BulkEnvsUpdate(CoolipyBaseModel): """Body for bulk-updating environment variables.""" data: list[EnvironmentVariableCreate] = Field(default_factory=list)Body for bulk-updating environment variables.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var data : list[EnvironmentVariableCreate]var model_config
class DeploymentQueuedResponse (**data: Any)-
Expand source code
class DeploymentQueuedResponse(CoolipyBaseModel): """A response indicating a deployment was queued.""" message: str | None = None deployment_uuid: str | None = NoneA response indicating a deployment was queued.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var deployment_uuid : str | Nonevar message : str | Nonevar model_config
class Destination (**data: Any)-
Expand source code
class Destination(CoolipyBaseModel): """A Docker network destination attached to a server.""" uuid: str | None = None name: str | None = None network: str | None = None type: str | None = None server_uuid: str | None = None created_at: datetime | None = None updated_at: datetime | None = NoneA Docker network destination attached to a server.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var created_at : datetime.datetime | Nonevar model_configvar name : str | Nonevar network : str | Nonevar server_uuid : str | Nonevar type : str | Nonevar updated_at : datetime.datetime | Nonevar uuid : str | None
class DestinationCreate (**data: Any)-
Expand source code
class DestinationCreate(CoolipyBaseModel): """Body for creating a destination.""" name: str | None = None network: str | None = None type: str | None = NoneBody for creating a destination.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var model_configvar name : str | Nonevar network : str | Nonevar type : str | None
class EnvironmentVariable (**data: Any)-
Expand source code
class EnvironmentVariable(CoolipyBaseModel): """An environment variable as returned by the API.""" id: int | None = None uuid: str | None = None resourceable_type: str | None = None resourceable_id: int | None = None is_literal: bool | None = None is_multiline: bool | None = None is_preview: bool | None = None is_runtime: bool | None = None is_buildtime: bool | None = None is_shared: bool | None = None is_shown_once: bool | None = None key: str | None = None value: str | None = None real_value: str | None = None comment: str | None = None version: str | None = None created_at: datetime | None = None updated_at: datetime | None = NoneAn environment variable 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var comment : str | Nonevar created_at : datetime.datetime | Nonevar id : int | Nonevar is_buildtime : bool | Nonevar is_literal : bool | Nonevar is_multiline : bool | Nonevar is_preview : bool | Nonevar is_runtime : bool | Nonevar is_shown_once : bool | Nonevar key : str | Nonevar model_configvar real_value : str | Nonevar resourceable_id : int | Nonevar resourceable_type : str | Nonevar updated_at : datetime.datetime | Nonevar uuid : str | Nonevar value : str | Nonevar version : str | None
class EnvironmentVariableCreate (**data: Any)-
Expand source code
class EnvironmentVariableCreate(CoolipyBaseModel): """Body for creating an environment variable.""" key: str | None = None value: str | None = None is_preview: bool | None = None is_literal: bool | None = None is_multiline: bool | None = None is_shown_once: bool | None = NoneBody for creating an environment variable.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var is_literal : bool | Nonevar is_multiline : bool | Nonevar is_preview : bool | Nonevar is_shown_once : bool | Nonevar key : str | Nonevar model_configvar value : str | None
class EnvironmentVariableUpdate (**data: Any)-
Expand source code
class EnvironmentVariableUpdate(CoolipyBaseModel): """Body for updating an environment variable.""" key: str | None = None value: str | None = None is_preview: bool | None = None is_literal: bool | None = None is_multiline: bool | None = None is_shown_once: bool | None = NoneBody for updating an environment variable.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var is_literal : bool | Nonevar is_multiline : bool | Nonevar is_preview : bool | Nonevar is_shown_once : bool | Nonevar key : str | Nonevar model_configvar value : str | None
class Logs (**data: Any)-
Expand source code
class Logs(CoolipyBaseModel): """Log output returned by a logs endpoint.""" logs: str | None = NoneLog output returned by a logs 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var logs : str | Nonevar model_config
class MessageResponse (**data: Any)-
Expand source code
class MessageResponse(CoolipyBaseModel): """A response carrying a single ``message``.""" message: str | None = NoneA response carrying a single
message.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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var message : str | Nonevar model_config
class ScheduledTask (**data: Any)-
Expand source code
class ScheduledTask(CoolipyBaseModel): """A scheduled task as returned by the API.""" id: int | None = None uuid: str | None = None enabled: bool | None = None name: str | None = None command: str | None = None frequency: str | None = None container: str | None = None timeout: int | None = None created_at: datetime | None = None updated_at: datetime | None = NoneA scheduled task 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var command : str | Nonevar container : str | Nonevar created_at : datetime.datetime | Nonevar enabled : bool | Nonevar frequency : str | Nonevar id : int | Nonevar model_configvar name : str | Nonevar timeout : int | Nonevar updated_at : datetime.datetime | Nonevar uuid : str | None
class ScheduledTaskCreate (**data: Any)-
Expand source code
class ScheduledTaskCreate(CoolipyBaseModel): """Body for creating a scheduled task.""" enabled: bool | None = None name: str | None = None command: str | None = None frequency: str | None = None container: str | None = None timeout: int | None = NoneBody for creating a scheduled task.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var command : str | Nonevar container : str | Nonevar enabled : bool | Nonevar frequency : str | Nonevar model_configvar name : str | Nonevar timeout : int | None
class ScheduledTaskExecution (**data: Any)-
Expand source code
class ScheduledTaskExecution(CoolipyBaseModel): """An execution of a scheduled task.""" uuid: str | None = None status: str | None = None message: str | None = None retry_count: int | None = None duration: float | None = None started_at: datetime | None = None finished_at: datetime | None = None created_at: datetime | None = None updated_at: datetime | None = NoneAn execution of a scheduled task.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var created_at : datetime.datetime | Nonevar duration : float | Nonevar finished_at : datetime.datetime | Nonevar message : str | Nonevar model_configvar retry_count : int | Nonevar started_at : datetime.datetime | Nonevar status : str | Nonevar updated_at : datetime.datetime | Nonevar uuid : str | None
class ScheduledTaskUpdate (**data: Any)-
Expand source code
class ScheduledTaskUpdate(CoolipyBaseModel): """Body for updating a scheduled task.""" enabled: bool | None = None name: str | None = None command: str | None = None frequency: str | None = None container: str | None = None timeout: int | None = NoneBody for updating a scheduled task.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var command : str | Nonevar container : str | Nonevar enabled : bool | Nonevar frequency : str | Nonevar model_configvar name : str | Nonevar timeout : int | None
class StorageCreate (**data: Any)-
Expand source code
class StorageCreate(CoolipyBaseModel): """Body for creating a persistent or file storage.""" type: str | None = None name: str | None = None mount_path: str | None = None host_path: str | None = None content: str | None = None is_directory: bool | None = None fs_path: str | None = NoneBody for creating a persistent or file storage.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var content : str | Nonevar fs_path : str | Nonevar host_path : str | Nonevar is_directory : bool | Nonevar model_configvar mount_path : str | Nonevar name : str | Nonevar type : str | None
class StorageUpdate (**data: Any)-
Expand source code
class StorageUpdate(CoolipyBaseModel): """Body for updating a persistent or file storage.""" uuid: str | None = None id: int | None = None type: str | None = None is_preview_suffix_enabled: bool | None = None name: str | None = None mount_path: str | None = None host_path: str | None = None content: str | None = NoneBody for updating a persistent or file storage.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var content : str | Nonevar host_path : str | Nonevar id : int | Nonevar is_preview_suffix_enabled : bool | Nonevar model_configvar mount_path : str | Nonevar name : str | Nonevar type : str | Nonevar uuid : str | None
class Tag (**data: Any)-
Expand source code
class Tag(CoolipyBaseModel): """A tag attached to a resource.""" uuid: str | None = None name: str | None = None created_at: datetime | None = None updated_at: datetime | None = NoneA tag attached to a resource.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var created_at : datetime.datetime | Nonevar model_configvar name : str | Nonevar updated_at : datetime.datetime | Nonevar uuid : str | None
class TagCreate (**data: Any)-
Expand source code
class TagCreate(CoolipyBaseModel): """Body for creating a global tag.""" name: str | None = NoneBody for creating a global tag.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var model_configvar name : str | None
class TagUpdate (**data: Any)-
Expand source code
class TagUpdate(CoolipyBaseModel): """Body for updating a global tag.""" name: str | None = NoneBody for updating a global tag.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var model_configvar name : str | None
class TagsCreate (**data: Any)-
Expand source code
class TagsCreate(CoolipyBaseModel): """Body for adding one or more tags to a resource.""" tag_name: str | None = None tag_names: list[str] | None = NoneBody for adding one or more tags to a resource.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var model_configvar tag_name : str | Nonevar tag_names : list[str] | None
class UUIDResponse (**data: Any)-
Expand source code
class UUIDResponse(CoolipyBaseModel): """A response carrying a single ``uuid``.""" uuid: str | None = NoneA response carrying a single
uuid.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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var model_configvar uuid : str | None
class VolumeBackupScheduleRequest (**data: Any)-
Expand source code
class VolumeBackupScheduleRequest(CoolipyBaseModel): """Body for scheduling volume backups.""" frequency: str | None = None enabled: bool | None = None save_s3: bool | None = None disable_local_backup: bool | None = None stop_during_backup: bool | None = None s3_storage_uuid: str | None = None retention_amount_locally: int | None = None retention_days_locally: int | None = None retention_max_storage_locally: float | None = None retention_amount_s3: int | None = None retention_days_s3: int | None = None retention_max_storage_s3: float | None = None timeout: int | None = NoneBody for scheduling volume backups.
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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var disable_local_backup : bool | Nonevar enabled : bool | Nonevar frequency : str | Nonevar model_configvar retention_amount_locally : int | Nonevar retention_amount_s3 : int | Nonevar retention_days_locally : int | Nonevar retention_days_s3 : int | Nonevar retention_max_storage_locally : float | Nonevar retention_max_storage_s3 : float | Nonevar s3_storage_uuid : str | Nonevar save_s3 : bool | Nonevar stop_during_backup : bool | Nonevar timeout : int | None
class VolumeBackupScheduleResponse (**data: Any)-
Expand source code
class VolumeBackupScheduleResponse(CoolipyBaseModel): """A scheduled volume backup as returned by the API.""" uuid: str | None = None message: str | None = None storage_uuid: str | None = None storage_type: str | None = None frequency: str | None = None enabled: bool | None = None save_s3: bool | None = None disable_local_backup: bool | None = None stop_during_backup: bool | None = None s3_storage_uuid: str | None = None retention_amount_locally: int | None = None retention_days_locally: int | None = None retention_max_storage_locally: float | None = None retention_amount_s3: int | None = None retention_days_s3: int | None = None retention_max_storage_s3: float | None = None timeout: int | None = NoneA scheduled volume backup 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.selfis explicitly positional-only to allowselfas a field name.Ancestors
- CoolipyBaseModel
- pydantic.main.BaseModel
Class variables
var disable_local_backup : bool | Nonevar enabled : bool | Nonevar frequency : str | Nonevar message : str | Nonevar model_configvar retention_amount_locally : int | Nonevar retention_amount_s3 : int | Nonevar retention_days_locally : int | Nonevar retention_days_s3 : int | Nonevar retention_max_storage_locally : float | Nonevar retention_max_storage_s3 : float | Nonevar s3_storage_uuid : str | Nonevar save_s3 : bool | Nonevar stop_during_backup : bool | Nonevar storage_type : str | Nonevar storage_uuid : str | Nonevar timeout : int | Nonevar uuid : str | None