prefect.server.models.block_schemas
Functions for interacting with block schema ORM objects.
Intended for internal use by the Prefect REST API.
Functions
create_block_schema
session
: A database sessionblock_schema
: a block schema objectdefinitions
: Definitions of fields from block schema fields attribute. Used when recursively creating nested block schemas
- an ORM block schema model
delete_block_schema
session
: A database sessionblock_schema_id
: a block schema id
- whether or not the block schema was deleted
read_block_schema
session
: A database sessionblock_schema_id
: a block_schema id
- orm_models..BlockSchema: the block_schema
read_block_schemas
session
: A database sessionblock_schema_filter
: a block schema filter objectlimit
: query limitoffset
: query offset
- List[orm_models.BlockSchema]: the block_schemas
read_block_schema_by_checksum
session
: A database sessionchecksum
: a block_schema checksumversion
: A block_schema version
- orm_models.BlockSchema: the block_schema
read_available_block_capabilities
session
: A database session.
- List[str]: List of all available block capabilities.
create_block_schema_reference
session
: A database session.block_schema_reference
: A block schema reference object.
- orm_models.BlockSchemaReference: The created BlockSchemaReference