{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apache-flink/json-schema/apache-flink-asynchronous-operation-result-schema.json",
  "title": "AsynchronousOperationResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apache-flink-datasets-api-openapi.yml#/components/schemas/AsynchronousOperationResult",
  "type": "object",
  "properties": {
    "operation": {
      "oneOf": [
        {
          "$ref": "#/$defs/AsynchronousOperationInfo"
        },
        {
          "$ref": "#/$defs/CheckpointInfo"
        },
        {
          "$ref": "#/$defs/SavepointInfo"
        }
      ]
    },
    "status": {
      "$ref": "#/$defs/QueueStatus"
    }
  },
  "$defs": {
    "AsynchronousOperationInfo": {
      "type": "object",
      "properties": {
        "failure-cause": {
          "$ref": "#/$defs/SerializedThrowable"
        }
      }
    },
    "CheckpointInfo": {
      "type": "object",
      "properties": {
        "checkpointId": {
          "type": "integer",
          "format": "int64"
        },
        "failureCause": {
          "$ref": "#/$defs/SerializedThrowable"
        }
      }
    },
    "Id": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "COMPLETED"
      ]
    },
    "QueueStatus": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        }
      }
    },
    "SavepointInfo": {
      "type": "object",
      "properties": {
        "failure-cause": {
          "$ref": "#/$defs/SerializedThrowable"
        },
        "location": {
          "type": "string"
        }
      }
    },
    "SerializedThrowable": {
      "type": "object",
      "properties": {
        "serialized-throwable": {
          "type": "string",
          "format": "binary"
        }
      }
    }
  }
}