{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-mysql/json-schema/microsoft-azure-mysql-backup-and-export-response-schema.json",
  "title": "BackupAndExportResponse",
  "description": "Represents BackupAndExportAPI Response",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-mysql-openapi.yml#/components/schemas/BackupAndExportResponse",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/BackupAndExportResponseProperties"
    },
    "error": {
      "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorDetail"
    },
    "name": {
      "type": "string",
      "description": "The name of the backup and export response.",
      "readOnly": true
    },
    "status": {
      "$ref": "#/$defs/OperationStatus"
    },
    "startTime": {
      "type": "string",
      "format": "date-time",
      "description": "Start time"
    },
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "End time"
    },
    "percentComplete": {
      "type": "number",
      "format": "double",
      "description": "Operation progress (0-100).",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "name"
  ],
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "BackupAndExportResponseProperties": {
      "type": "object",
      "description": "BackupAndExport Response Properties",
      "properties": {
        "datasourceSizeInBytes": {
          "type": "integer",
          "format": "int64",
          "description": "Size of datasource in bytes"
        },
        "dataTransferredInBytes": {
          "type": "integer",
          "format": "int64",
          "description": "Data transferred in bytes"
        },
        "backupMetadata": {
          "type": "string",
          "description": "Metadata related to backup to be stored for restoring resource in key-value pairs."
        }
      }
    },
    "OperationStatus": {
      "type": "string",
      "description": "The operation status",
      "enum": [
        "Pending",
        "InProgress",
        "Succeeded",
        "Failed",
        "CancelInProgress",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "OperationStatus",
        "modelAsString": false,
        "values": [
          {
            "name": "Pending",
            "value": "Pending",
            "description": "The operation has been accepted but hasn't started."
          },
          {
            "name": "InProgress",
            "value": "InProgress",
            "description": "The operation is running"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "The operation Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "The operation Failed"
          },
          {
            "name": "CancelInProgress",
            "value": "CancelInProgress",
            "description": "The cancellation in progress"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "The operation has been Canceled"
          }
        ]
      }
    }
  }
}