| 1 |
from globus_sdk import response |
| 2 |
|
| 3 |
|
| 4 |
class IterableFlowsResponse(response.IterableResponse): |
| 5 |
""" |
| 6 |
An iterable response containing a "flows" array of flow definitions. |
| 7 |
|
| 8 |
This response type is returned by :meth:`FlowsClient.list_flows` and provides |
| 9 |
iteration over individual flow objects from a single page of results. |
| 10 |
|
| 11 |
When iterated over, yields individual flow dictionaries, where each flow |
| 12 |
typically contains: |
| 13 |
|
| 14 |
- ``id``: UUID of the flow |
| 15 |
- ``title``: Display title of the flow |
| 16 |
- ``definition``: The flow's JSON definition |
| 17 |
- ``input_schema``: JSON Schema for flow inputs |
| 18 |
- ``globus_auth_scope``: Auth scope string for the flow |
| 19 |
- ``created_at``: Timestamp of flow creation |
| 20 |
- ``updated_at``: Timestamp of last update |
| 21 |
""" |
| 22 |
|
| 23 |
default_iter_key = "flows" |
| 24 |
|
| 25 |
|
| 26 |
class IterableRunsResponse(response.IterableResponse): |
| 27 |
""" |
| 28 |
An iterable response containing a "runs" array of flow run records. |
| 29 |
|
| 30 |
This response type is returned by :meth:`FlowsClient.list_runs` and provides |
| 31 |
iteration over individual run objects from a single page of results. |
| 32 |
|
| 33 |
When iterated over, yields individual run dictionaries, where each run |
| 34 |
typically contains: |
| 35 |
|
| 36 |
- ``run_id``: UUID of the run |
| 37 |
- ``flow_id``: UUID of the flow this run belongs to |
| 38 |
- ``flow_title``: Title of the flow |
| 39 |
- ``status``: Current status of the run (e.g., "ACTIVE", "INACTIVE", |
| 40 |
"SUCCEEDED", "FAILED", "ENDED") |
| 41 |
- ``start_time``: Timestamp when the run was started |
| 42 |
- ``completion_time``: Timestamp when the run completed (if applicable) |
| 43 |
- ``run_owner``: Identity URN of the user who started the run |
| 44 |
""" |
| 45 |
|
| 46 |
default_iter_key = "runs" |
| 47 |
|
| 48 |
|
| 49 |
class IterableRunLogsResponse(response.IterableResponse): |
| 50 |
""" |
| 51 |
An iterable response containing an "entries" array of log entries. |
| 52 |
|
| 53 |
This response type is returned by :meth:`FlowsClient.get_run_logs` and provides |
| 54 |
iteration over individual log entries from a single page of results. |
| 55 |
|
| 56 |
When iterated over, yields individual log entry dictionaries, where each entry |
| 57 |
typically contains: |
| 58 |
|
| 59 |
- ``time``: Timestamp of the log entry |
| 60 |
- ``code``: Event code (e.g., "FlowStarted", "ActionStarted", "ActionCompleted") |
| 61 |
- ``description``: Human-readable description of the event |
| 62 |
- ``details``: Additional nested information about the event |
| 63 |
""" |
| 64 |
|
| 65 |
default_iter_key = "entries" |
| 66 |
|
| 67 |
|
| 68 |
class IterableRegisteredAPIsResponse(response.IterableResponse): |
| 69 |
""" |
| 70 |
An iterable response containing a "registered_apis" array of registered API records. |
| 71 |
|
| 72 |
This response type is returned by :meth:`FlowsClient.list_registered_apis` and |
| 73 |
provides iteration over individual registered API objects from a single page of |
| 74 |
results. |
| 75 |
|
| 76 |
When iterated over, yields individual registered API dictionaries, where each |
| 77 |
registered API typically contains: |
| 78 |
|
| 79 |
- ``id``: UUID of the registered API |
| 80 |
- ``name``: Display name of the registered API |
| 81 |
- ``description``: Description of the registered API |
| 82 |
- ``created_timestamp``: Timestamp of registered API creation |
| 83 |
- ``updated_timestamp``: Timestamp of last update |
| 84 |
""" |
| 85 |
|
| 86 |
default_iter_key = "registered_apis" |