prefect.server.models.block_types
Functions for interacting with block type ORM objects.
Intended for internal use by the Prefect REST API.
Functions
create_block_type
session
: A database sessionblock_type
: a block type object
- an ORM block type model
read_block_type
session
: A database sessionblock_type_id
: a block_type id
- an ORM block type model
read_block_type_by_slug
session
: A database sessionblock_type_slug
: a block type slug
- an ORM block type model
read_block_types
- List[BlockType]: List of
update_block_type
session
: A database sessionblock_type_id
: Data to update block type withblock_type
: A block type id
- True if the block type was updated
delete_block_type
session
: A database sessionblock_type_id
: A block type id
- True if the block type was updated