{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-operation-response-schema.json",
  "title": "OperationResponse",
  "description": "Response for long running operation",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-account-api-openapi.yml#/components/schemas/OperationResponse",
  "required": [
    "status"
  ],
  "type": "object",
  "properties": {
    "endTime": {
      "format": "date-time",
      "description": "start time",
      "type": "string"
    },
    "error": {
      "$ref": "#/$defs/DataShareErrorInfo",
      "description": "The error property when status is failed."
    },
    "startTime": {
      "format": "date-time",
      "description": "start time",
      "type": "string"
    },
    "status": {
      "description": "Operation state of the long running operation.",
      "enum": [
        "Accepted",
        "InProgress",
        "TransientFailure",
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "status",
        "modelAsString": true
      }
    }
  },
  "$defs": {
    "DataShareErrorInfo": {
      "description": "The data share error body model.",
      "required": [
        "code",
        "message"
      ],
      "type": "object",
      "properties": {
        "code": {
          "description": "Code of the error",
          "type": "string"
        },
        "details": {
          "description": "Nested details of the error model",
          "uniqueItems": false,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataShareErrorInfo"
          }
        },
        "message": {
          "description": "Message of the error",
          "type": "string"
        },
        "target": {
          "description": "Target of the error",
          "type": "string"
        }
      }
    }
  }
}