|
12764 | 12764 | "$ref": "#/definitions/v1Callback", |
12765 | 12765 | "description": "Information on how this callback should be invoked (e.g. its URL and type)." |
12766 | 12766 | }, |
| 12767 | + "status": { |
| 12768 | + "$ref": "#/definitions/v1CallbackExecutionStatus", |
| 12769 | + "description": "A general status for this callback, indicates whether it is currently running or in one of the terminal statuses." |
| 12770 | + }, |
12767 | 12771 | "state": { |
12768 | | - "$ref": "#/definitions/v1CallbackExecutionState", |
12769 | | - "description": "Current state of the callback execution." |
| 12772 | + "$ref": "#/definitions/v1CallbackState", |
| 12773 | + "description": "The detailed state of this callback, provides more granular information than the general status." |
12770 | 12774 | }, |
12771 | 12775 | "attempt": { |
12772 | 12776 | "type": "integer", |
|
12828 | 12832 | "type": "string", |
12829 | 12833 | "description": "Run ID of the callback execution." |
12830 | 12834 | }, |
12831 | | - "state": { |
12832 | | - "$ref": "#/definitions/v1CallbackExecutionState", |
12833 | | - "description": "Current state of the callback execution." |
| 12835 | + "status": { |
| 12836 | + "$ref": "#/definitions/v1CallbackExecutionStatus", |
| 12837 | + "description": "Only running and terminal statuses appear here. More detailed information in CallbackExecutionInfo but not\navailable in the list response." |
12834 | 12838 | }, |
12835 | 12839 | "createTime": { |
12836 | 12840 | "type": "string", |
@@ -12869,17 +12873,17 @@ |
12869 | 12873 | }, |
12870 | 12874 | "description": "The outcome of a completed callback execution: either success or a failure." |
12871 | 12875 | }, |
12872 | | - "v1CallbackExecutionState": { |
| 12876 | + "v1CallbackExecutionStatus": { |
12873 | 12877 | "type": "string", |
12874 | 12878 | "enum": [ |
12875 | | - "CALLBACK_EXECUTION_STATE_UNSPECIFIED", |
12876 | | - "CALLBACK_EXECUTION_STATE_RUNNING", |
12877 | | - "CALLBACK_EXECUTION_STATE_SUCCEEDED", |
12878 | | - "CALLBACK_EXECUTION_STATE_FAILED", |
12879 | | - "CALLBACK_EXECUTION_STATE_TERMINATED" |
| 12879 | + "CALLBACK_EXECUTION_STATUS_UNSPECIFIED", |
| 12880 | + "CALLBACK_EXECUTION_STATUS_RUNNING", |
| 12881 | + "CALLBACK_EXECUTION_STATUS_SUCCEEDED", |
| 12882 | + "CALLBACK_EXECUTION_STATUS_FAILED", |
| 12883 | + "CALLBACK_EXECUTION_STATUS_TERMINATED" |
12880 | 12884 | ], |
12881 | | - "default": "CALLBACK_EXECUTION_STATE_UNSPECIFIED", |
12882 | | - "description": "Terminal status of a standalone callback execution.\n\n - CALLBACK_EXECUTION_STATE_UNSPECIFIED: Default value, unspecified status.\n - CALLBACK_EXECUTION_STATE_RUNNING: Callback execution is running.\n - CALLBACK_EXECUTION_STATE_SUCCEEDED: Callback has succeeded.\n - CALLBACK_EXECUTION_STATE_FAILED: Callback has failed.\n - CALLBACK_EXECUTION_STATE_TERMINATED: Callback was terminated via TerminateCallbackExecution." |
| 12885 | + "default": "CALLBACK_EXECUTION_STATUS_UNSPECIFIED", |
| 12886 | + "description": "Status of a callback execution.\nThe status is updated once, when the callback is originally scheduled, and again when the callback reaches a terminal\nstatus.\n\n - CALLBACK_EXECUTION_STATUS_UNSPECIFIED: Default value, unspecified status.\n - CALLBACK_EXECUTION_STATUS_RUNNING: Callback execution is running.\n - CALLBACK_EXECUTION_STATUS_SUCCEEDED: Callback has succeeded.\n - CALLBACK_EXECUTION_STATUS_FAILED: Callback has failed.\n - CALLBACK_EXECUTION_STATUS_TERMINATED: Callback was terminated via TerminateCallbackExecution." |
12883 | 12887 | }, |
12884 | 12888 | "v1CallbackInfo": { |
12885 | 12889 | "type": "object", |
|
15985 | 15989 | "v1PollCallbackExecutionResponse": { |
15986 | 15990 | "type": "object", |
15987 | 15991 | "properties": { |
| 15992 | + "runId": { |
| 15993 | + "type": "string", |
| 15994 | + "description": "The run ID of the callback, useful when run_id was not specified in the request." |
| 15995 | + }, |
15988 | 15996 | "outcome": { |
15989 | 15997 | "$ref": "#/definitions/v1CallbackExecutionOutcome" |
15990 | 15998 | } |
|
0 commit comments