Skip to content

space

konigle.models.cloud.space

Pydantic models for BentoCloud Space and Deployment resources.

Deployment

Bases: BaseResource

A single deploy attempt for a Space.

Returned by SpaceManager.deploy() and SpaceManager.promote(). Poll job_id via JobManager.get() to track progress.

created_at = Field(..., title='Created At', description='Timestamp when the deployment was created.') class-attribute instance-attribute

Timestamp when the deployment was created.

display_name = Field(..., title='Display Name', description='Human-readable label for this deployment.') class-attribute instance-attribute

Human-readable label for this deployment.

id = Field(..., title='ID', description='UUID used as the release folder name on the server.') class-attribute instance-attribute

UUID used as the release folder name on the server.

job_id = Field(..., title='Job ID', description='UUID of the tracking Job. Poll this to follow progress.') class-attribute instance-attribute

UUID of the tracking Job.

space_id = Field(..., title='Space ID', description='ID of the Space this deployment targets.') class-attribute instance-attribute

ID of the Space this deployment targets.

Space

Bases: BaseResource

A deployment environment (uat or production) for a WebApp.

Deploy a ZIP archive to a Space via SpaceManager.deploy(). Promote the uat Space to production via SpaceManager.promote().

created_at = Field(..., title='Created At', description='Creation timestamp.') class-attribute instance-attribute

Creation timestamp.

custom_domain = Field(default='', title='Custom Domain', description='Customer-supplied domain. Empty when not mapped.') class-attribute instance-attribute

Customer-supplied domain.

custom_domain_status = Field(default='unmapped', title='Custom Domain Status', description='Lifecycle state of the custom domain: pending, active, failed, unmapped.') class-attribute instance-attribute

Lifecycle state of the custom domain mapping.

id = Field(..., title='ID', description='Snowflake primary key.') class-attribute instance-attribute

Snowflake primary key.

last_deployed_at = Field(default=None, title='Last Deployed At', description='Timestamp of the most recent deployment.') class-attribute instance-attribute

Timestamp of the most recent deployment.

last_deployment_status = Field(default=None, title='Last Deployment Status', description='Outcome of the most recent deployment.') class-attribute instance-attribute

Outcome of the most recent deployment.

platform_domain = Field(default='', title='Platform Domain', description='Platform-assigned subdomain.') class-attribute instance-attribute

Platform-assigned subdomain.

space_type = Field(..., title='Space Type', description='Whether this is the uat or production environment.') class-attribute instance-attribute

Whether this is the uat or production environment.

status = Field(..., title='Status', description='Lifecycle status: provisioning, running, stopped, error.') class-attribute instance-attribute

Lifecycle status.

webapp = Field(default=None, title='WebApp ID', description='ID of the parent WebApp. Present in list responses; may be absent in serializer responses.') class-attribute instance-attribute

ID of the parent WebApp.