{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-mysql/json-schema/microsoft-azure-mysql-operation-progress-result-schema.json",
  "title": "OperationProgressResult",
  "description": "Represents Operation Results API Response",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-mysql-subscriptions-api-openapi.yml#/components/schemas/OperationProgressResult",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/OperationProgressResponseType",
      "description": "The response properties specific to the operation"
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/OperationStatusResult"
    }
  ],
  "$defs": {
    "ErrorDetail": {
      "type": "object",
      "description": "The error detail.",
      "properties": {
        "code": {
          "type": "string",
          "description": "The error code.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "The error message.",
          "readOnly": true
        },
        "target": {
          "type": "string",
          "description": "The error target.",
          "readOnly": true
        },
        "details": {
          "type": "array",
          "description": "The error details.",
          "items": {
            "$ref": "#/$defs/ErrorDetail"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "message",
            "target"
          ]
        },
        "additionalInfo": {
          "type": "array",
          "description": "The error additional info.",
          "items": {
            "$ref": "#/$defs/ErrorAdditionalInfo"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        }
      }
    },
    "ObjectType": {
      "type": "string",
      "description": "Identifies the type of source operation",
      "enum": [
        "BackupAndExportResponse",
        "ImportFromStorageResponse"
      ],
      "x-ms-enum": {
        "name": "ObjectType",
        "modelAsString": true,
        "values": [
          {
            "name": "BackupAndExportResponse",
            "value": "BackupAndExportResponse"
          },
          {
            "name": "ImportFromStorageResponse",
            "value": "ImportFromStorageResponse"
          }
        ]
      }
    },
    "OperationProgressResponseType": {
      "type": "object",
      "description": "Represents the response properties specific to the operation",
      "properties": {
        "objectType": {
          "$ref": "#/$defs/ObjectType",
          "description": "Identifies the type of source operation"
        }
      },
      "required": [
        "objectType"
      ]
    },
    "OperationStatusResult": {
      "type": "object",
      "description": "The current status of an async operation.",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified ID for the async operation."
        },
        "resourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified ID of the resource against which the original async operation was started.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of the async operation."
        },
        "status": {
          "type": "string",
          "description": "Operation status."
        },
        "percentComplete": {
          "type": "number",
          "description": "Percent of the operation that is complete.",
          "minimum": 0,
          "maximum": 100
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time of the operation."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end time of the operation."
        },
        "operations": {
          "type": "array",
          "description": "The operations list.",
          "items": {
            "$ref": "#/$defs/OperationStatusResult"
          }
        },
        "error": {
          "$ref": "#/$defs/ErrorDetail",
          "description": "If present, details of the operation error."
        }
      },
      "required": [
        "status"
      ]
    }
  }
}