Skip to content

webapp

konigle.models.cloud.webapp

Pydantic models for BentoCloud WebApp resources.

WebApp

Bases: BaseResource

A customer web application hosted on a Computer.

Creating a WebApp automatically provisions two Spaces: uat and production.

computer = Field(default=None, title='Computer ID', description='ID of the Computer this webapp runs on. Present in list responses; may be absent in create responses.') class-attribute instance-attribute

ID of the Computer this webapp runs on.

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

Creation timestamp.

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

Human-readable label.

emoji = Field(default='', title='Emoji', description='Optional emoji avatar.') class-attribute instance-attribute

Optional emoji avatar.

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

Snowflake primary key.

name = Field(..., title='Name', description='Globally unique slug used as the base for platform subdomains.') class-attribute instance-attribute

Globally unique slug.

runtime = Field(..., title='Runtime', description='Application runtime environment.') class-attribute instance-attribute

Application runtime environment.

WebAppCreate

Bases: CreateModel

Input model for creating a new WebApp.

Example
from konigle.models.cloud import WebAppCreate

data = WebAppCreate(
    computer_id="123456",
    name="my-app",
    display_name="My App",
    runtime="python3",
)
webapp, job_id = client.webapps.create(data)

cache = Field(default=None, title='Cache', description="Cache type to provision, e.g. 'redis'. Omit for no cache.") class-attribute instance-attribute

Cache type to provision, or None.

computer_id = Field(..., title='Computer ID', description='ID of the Computer to host this webapp.') class-attribute instance-attribute

ID of the Computer to host this webapp.

database = Field(default=None, title='Database', description="Database type to provision, e.g. 'postgres'. Omit for no database.") class-attribute instance-attribute

Database type to provision, or None.

display_name = Field(default=None, title='Display Name', description='Human-readable label. Defaults to name.') class-attribute instance-attribute

Human-readable label.

emoji = Field(default='', title='Emoji', description='Optional emoji avatar.') class-attribute instance-attribute

Optional emoji avatar.

name = Field(..., title='Name', description='Globally unique slug used as the base for subdomains.') class-attribute instance-attribute

Globally unique slug.

runtime = Field(..., title='Runtime', description='Application runtime environment.') class-attribute instance-attribute

Application runtime environment.

web_server = Field(..., title='Web Server', description="Web server type, e.g. 'nginx'.") class-attribute instance-attribute

Web server type.