Class peagen.orm.pools.Pool
peagen.orm.pools.Pool
Bases: Base
, GUIDPk
, Bootstrappable
, Timestamped
, TenantBound
policy
class-attribute
instance-attribute
policy = acol(
storage=S(
as_mutable(JSON),
default=lambda: {
"allowed_cidrs": ["0.0.0.0/0"],
"max_instances": 100,
},
nullable=True,
)
)
DEFAULT_ROWS
class-attribute
instance-attribute
DEFAULT_ROWS = [
{
"id": DEFAULT_POOL_ID,
"name": DEFAULT_POOL_NAME,
"tenant_id": DEFAULT_TENANT_ID,
}
]