PostgresDataApi
laktory.models.resources.databricks.PostgresDataApi
¤
Bases: PostgresDataApiBase
Lakebase Autoscaling (Postgres) Data API
REST API over the schemas of a database. spec must set at least one
field on create, typically db_schemas (the schemas must exist). Can also
be declared as the data_api of a PostgresDatabase.
Examples:
import io
from laktory import models
api_yaml = '''
parent: projects/app/branches/production/databases/app-db
spec:
db_schemas:
- public
db_max_rows: 1000
'''
api = models.resources.databricks.PostgresDataApi.model_validate_yaml(
io.StringIO(api_yaml)
)
| BASE | DESCRIPTION |
|---|---|
parent
|
Database exposed by the API (
TYPE:
|
provider_config
|
Configure the provider for management through account provider
TYPE:
|
spec
|
The desired Data API configuration
TYPE:
|
laktory.models.resources.databricks.postgresdataapi.PostgresDataApiProviderConfig
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
workspace_id
|
Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with
TYPE:
|
laktory.models.resources.databricks.postgresdataapi.PostgresDataApiSpec
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
db_aggregates_enabled
|
Actual aggregate function setting read from the database
TYPE:
|
db_extra_search_path
|
Actual extra search path schemas read from the database
TYPE:
|
db_max_rows
|
Actual max rows setting read from the database
TYPE:
|
db_schemas
|
Actual exposed schemas read from the database
TYPE:
|
jwt_cache_max_lifetime
|
Actual JWT cache max lifetime read from the database
TYPE:
|
jwt_role_claim_key
|
Actual JWT role claim key read from the database
TYPE:
|
openapi_mode
|
Actual OpenAPI mode read from the database. Possible values are:
TYPE:
|
server_cors_allowed_origins
|
Actual CORS allowed origins read from the database
TYPE:
|
server_timing_enabled
|
Actual Server-Timing header setting read from the database
TYPE:
|