Coverage for /usr/local/lib/python3.12/site-packages/prefect/client/schemas/sorting.py: 100%
60 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 11:21 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 11:21 +0000
1from prefect.utilities.collections import AutoEnum 1a
4class FlowRunSort(AutoEnum): 1a
5 """Defines flow run sorting options."""
7 ID_DESC = AutoEnum.auto() 1a
8 START_TIME_ASC = AutoEnum.auto() 1a
9 START_TIME_DESC = AutoEnum.auto() 1a
10 EXPECTED_START_TIME_ASC = AutoEnum.auto() 1a
11 EXPECTED_START_TIME_DESC = AutoEnum.auto() 1a
12 NAME_ASC = AutoEnum.auto() 1a
13 NAME_DESC = AutoEnum.auto() 1a
14 NEXT_SCHEDULED_START_TIME_ASC = AutoEnum.auto() 1a
15 END_TIME_DESC = AutoEnum.auto() 1a
18class TaskRunSort(AutoEnum): 1a
19 """Defines task run sorting options."""
21 ID_DESC = AutoEnum.auto() 1a
22 EXPECTED_START_TIME_ASC = AutoEnum.auto() 1a
23 EXPECTED_START_TIME_DESC = AutoEnum.auto() 1a
24 NAME_ASC = AutoEnum.auto() 1a
25 NAME_DESC = AutoEnum.auto() 1a
26 NEXT_SCHEDULED_START_TIME_ASC = AutoEnum.auto() 1a
27 END_TIME_DESC = AutoEnum.auto() 1a
30class AutomationSort(AutoEnum): 1a
31 """Defines automation sorting options."""
33 CREATED_DESC = AutoEnum.auto() 1a
34 UPDATED_DESC = AutoEnum.auto() 1a
35 NAME_ASC = AutoEnum.auto() 1a
36 NAME_DESC = AutoEnum.auto() 1a
39class LogSort(AutoEnum): 1a
40 """Defines log sorting options."""
42 TIMESTAMP_ASC = AutoEnum.auto() 1a
43 TIMESTAMP_DESC = AutoEnum.auto() 1a
46class FlowSort(AutoEnum): 1a
47 """Defines flow sorting options."""
49 CREATED_DESC = AutoEnum.auto() 1a
50 UPDATED_DESC = AutoEnum.auto() 1a
51 NAME_ASC = AutoEnum.auto() 1a
52 NAME_DESC = AutoEnum.auto() 1a
55class DeploymentSort(AutoEnum): 1a
56 """Defines deployment sorting options."""
58 CREATED_DESC = AutoEnum.auto() 1a
59 UPDATED_DESC = AutoEnum.auto() 1a
60 NAME_ASC = AutoEnum.auto() 1a
61 NAME_DESC = AutoEnum.auto() 1a
62 CONCURRENCY_LIMIT_ASC = AutoEnum.auto() 1a
63 CONCURRENCY_LIMIT_DESC = AutoEnum.auto() 1a
66class ArtifactSort(AutoEnum): 1a
67 """Defines artifact sorting options."""
69 CREATED_DESC = AutoEnum.auto() 1a
70 UPDATED_DESC = AutoEnum.auto() 1a
71 ID_DESC = AutoEnum.auto() 1a
72 KEY_DESC = AutoEnum.auto() 1a
73 KEY_ASC = AutoEnum.auto() 1a
76class ArtifactCollectionSort(AutoEnum): 1a
77 """Defines artifact collection sorting options."""
79 CREATED_DESC = AutoEnum.auto() 1a
80 UPDATED_DESC = AutoEnum.auto() 1a
81 ID_DESC = AutoEnum.auto() 1a
82 KEY_DESC = AutoEnum.auto() 1a
83 KEY_ASC = AutoEnum.auto() 1a
86class VariableSort(AutoEnum): 1a
87 """Defines variables sorting options."""
89 CREATED_DESC = "CREATED_DESC" 1a
90 UPDATED_DESC = "UPDATED_DESC" 1a
91 NAME_DESC = "NAME_DESC" 1a
92 NAME_ASC = "NAME_ASC" 1a
95class BlockDocumentSort(AutoEnum): 1a
96 """Defines block document sorting options."""
98 NAME_DESC = AutoEnum.auto() 1a
99 NAME_ASC = AutoEnum.auto() 1a
100 BLOCK_TYPE_AND_NAME_ASC = AutoEnum.auto() 1a