Skip to content

Latest commit

History

History
33 lines (24 loc) · 1.74 KB

File metadata and controls

33 lines (24 loc) · 1.74 KB

TaskInstanceCollectionResponse

Task instance collection response supporting both offset and cursor pagination. A single flat model is used instead of a discriminated union (Annotated[Offset | Cursor, Field(discriminator=...)]) because the OpenAPI oneOf + discriminator construct is not handled correctly by @hey-api/openapi-ts / @7nohe/openapi-react-query-codegen: return types degrade to unknown in JSDoc and can produce incorrect TypeScript types (see hey-api/hey-api#1613, #3270).

Properties

NameTypeDescriptionNotes
next_cursorstr[optional]
previous_cursorstr[optional]
task_instancesList[TaskInstanceResponse]
total_entriesint[optional]

Example

fromairflow_client.client.models.task_instance_collection_responseimportTaskInstanceCollectionResponse# TODO update the JSON string belowjson="{}"# create an instance of TaskInstanceCollectionResponse from a JSON stringtask_instance_collection_response_instance=TaskInstanceCollectionResponse.from_json(json)
# print the JSON string representation of the objectprint(TaskInstanceCollectionResponse.to_json())
# convert the object into a dicttask_instance_collection_response_dict=task_instance_collection_response_instance.to_dict()
# create an instance of TaskInstanceCollectionResponse from a dicttask_instance_collection_response_from_dict=TaskInstanceCollectionResponse.from_dict(task_instance_collection_response_dict)

[Back to Model list][Back to API list][Back to README]