prefect.server.schemas.responses

Schemas for special responses from the Prefect REST API.

Classes

SetStateStatus

Enumerates return statuses for setting run states. Methods:

auto

auto() -> str
Exposes enum.auto() to avoid requiring a second import to use AutoEnum

StateAcceptDetails

Details associated with an ACCEPT state transition. Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

StateRejectDetails

Details associated with a REJECT state transition. Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

StateAbortDetails

Details associated with an ABORT state transition. Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

StateWaitDetails

Details associated with a WAIT state transition. Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

HistoryResponseState

Represents a single state’s history over an interval. Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

HistoryResponse

Represents a history of aggregation states over an interval Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

validate_timestamps

validate_timestamps(cls, values: dict) -> dict

OrchestrationResult

A container for the output of state orchestration. Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

WorkerFlowRunResponse

Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

FlowRunResponse

Methods:

model_validate

model_validate(cls: Type[Self], obj: Any) -> Self

TaskRunResponse

DeploymentResponse

Methods:

model_validate

model_validate(cls: Type[Self], obj: Any) -> Self

WorkQueueResponse

Methods:

model_validate

model_validate(cls: Type[Self], obj: Any) -> Self

WorkQueueWithStatus

Combines a work queue and its status details into a single object Methods:

model_validate

model_validate(cls: Type[Self], obj: Any) -> Self

WorkerResponse

Methods:

model_validate

model_validate(cls: Type[Self], obj: Any) -> Self

GlobalConcurrencyLimitResponse

A response object for global concurrency limits.

FlowPaginationResponse

FlowRunPaginationResponse

TaskRunPaginationResponse

DeploymentPaginationResponse

SchemaValuePropertyError

SchemaValueIndexError

SchemaValuesValidationResponse