Skip to main content

prefect.client.schemas.actions

Classes

StateCreate

Data used by the Prefect REST API to create a new state.

FlowCreate

Data used by the Prefect REST API to create a flow.

FlowUpdate

Data used by the Prefect REST API to update a flow.

DeploymentScheduleCreate

Methods:

from_schedule

validate_active

validate_max_scheduled_runs

DeploymentScheduleUpdate

Methods:

validate_max_scheduled_runs

DeploymentCreate

Data used by the Prefect REST API to create a deployment. Methods:

check_valid_configuration

Check that the combination of base_job_template defaults and job_variables conforms to the specified schema.

convert_to_strings

remove_old_fields

DeploymentUpdate

Data used by the Prefect REST API to update a deployment. Methods:

check_valid_configuration

Check that the combination of base_job_template defaults and job_variables conforms to the specified schema.

remove_old_fields

DeploymentBranch

Methods:

validate_branch_length

FlowRunUpdate

Data used by the Prefect REST API to update a flow run.

TaskRunCreate

Data used by the Prefect REST API to create a task run

TaskRunUpdate

Data used by the Prefect REST API to update a task run

FlowRunCreate

Data used by the Prefect REST API to create a flow run.

DeploymentFlowRunCreate

Data used by the Prefect REST API to create a flow run from a deployment. Methods:

convert_parameters_to_plain_data

serialize_parameters

Serialize datetime types as ISO strings instead of timestamps. PrefectBaseModel has ser_json_timedelta=‘float’ to serialize timedeltas as floats, but this also causes datetime/date/time to serialize as timestamps. This serializer overrides that behavior for datetime types while preserving float serialization for timedeltas.

SavedSearchCreate

Data used by the Prefect REST API to create a saved search.

ConcurrencyLimitCreate

Data used by the Prefect REST API to create a concurrency limit.

ConcurrencyLimitV2Create

Data used by the Prefect REST API to create a v2 concurrency limit.

ConcurrencyLimitV2Update

Data used by the Prefect REST API to update a v2 concurrency limit.

BlockTypeCreate

Data used by the Prefect REST API to create a block type.

BlockTypeUpdate

Data used by the Prefect REST API to update a block type. Methods:

updatable_fields

BlockSchemaCreate

Data used by the Prefect REST API to create a block schema.

BlockDocumentCreate

Data used by the Prefect REST API to create a block document. Methods:

validate_name_is_present_if_not_anonymous

BlockDocumentUpdate

Data used by the Prefect REST API to update a block document.

BlockDocumentReferenceCreate

Data used to create block document reference.

LogCreate

Data used by the Prefect REST API to create a log. Methods:

model_dump

The worker_id field is only included in logs sent to Prefect Cloud. If it’s unset, we should not include it in the log payload.

WorkPoolCreate

Data used by the Prefect REST API to create a work pool.

WorkPoolUpdate

Data used by the Prefect REST API to update a work pool.

WorkQueueCreate

Data used by the Prefect REST API to create a work queue.

WorkQueueUpdate

Data used by the Prefect REST API to update a work queue.

ArtifactCreate

Data used by the Prefect REST API to create an artifact.

ArtifactUpdate

Data used by the Prefect REST API to update an artifact.

VariableCreate

Data used by the Prefect REST API to create a Variable.

VariableUpdate

Data used by the Prefect REST API to update a Variable.

GlobalConcurrencyLimitCreate

Data used by the Prefect REST API to create a global concurrency limit.

GlobalConcurrencyLimitUpdate

Data used by the Prefect REST API to update a global concurrency limit.