{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-operation-resource-schema.json",
  "title": "OperationResource",
  "description": "Operation Resource",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupvaultresources-api-openapi.yml#/components/schemas/OperationResource",
  "type": "object",
  "properties": {
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "End time of the operation"
    },
    "error": {
      "$ref": "#/$defs/Error",
      "description": "Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines.\nThe full set of optional properties (e.g. inner errors / details) can be found in the `Error Response` section."
    },
    "id": {
      "type": "string",
      "description": "It should match what is used to GET the operation result"
    },
    "name": {
      "type": "string",
      "description": "It must match the last segment of the `id` field, and will typically be a GUID / system generated value."
    },
    "properties": {
      "$ref": "#/$defs/OperationExtendedInfo",
      "description": "End time of the operation"
    },
    "startTime": {
      "type": "string",
      "format": "date-time",
      "description": "Start time of the operation"
    },
    "status": {
      "type": "string"
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "description": "The resource management error response.",
      "properties": {
        "additionalInfo": {
          "type": "array",
          "description": "The error additional info.",
          "items": {
            "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorAdditionalInfo"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        },
        "code": {
          "type": "string",
          "description": "The error code.",
          "readOnly": true
        },
        "details": {
          "type": "array",
          "description": "The error details.",
          "items": {
            "$ref": "#/$defs/Error"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        },
        "message": {
          "type": "string",
          "description": "The error message.",
          "readOnly": true
        },
        "target": {
          "type": "string",
          "description": "The error target.",
          "readOnly": true
        }
      }
    },
    "OperationExtendedInfo": {
      "type": "object",
      "description": "Operation Extended Info",
      "properties": {
        "objectType": {
          "type": "string",
          "description": "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."
        }
      },
      "required": [
        "objectType"
      ]
    }
  }
}