{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cost-management/json-schema/microsoft-azure-cost-management-generate-detailed-cost-report-operation-statuses-schema.json",
  "title": "GenerateDetailedCostReportOperationStatuses",
  "description": "The status of the long running operation for cost detailed report.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-cost-management-generatedetailedcostreportoperationstatus-api-openapi.yml#/components/schemas/GenerateDetailedCostReportOperationStatuses",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/DownloadURL",
      "description": "The properties of the usage file generated.",
      "x-ms-client-flatten": true
    },
    "status": {
      "$ref": "#/$defs/Status",
      "description": "The status of the long running operation."
    },
    "startTime": {
      "type": "string",
      "description": "The startTime of the operation."
    },
    "endTime": {
      "type": "string",
      "description": "The endTime of the operation."
    },
    "error": {
      "$ref": "#/$defs/ErrorDetails",
      "description": "The details of the error."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "DownloadURL": {
      "type": "object",
      "description": "The URL to download the generated report.",
      "properties": {
        "expiryTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
          "readOnly": true
        },
        "validTill": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z."
        },
        "downloadUrl": {
          "type": "string",
          "description": "The URL to download the generated report."
        }
      }
    },
    "ErrorDetails": {
      "type": "object",
      "description": "The details of the error.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Error code.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "Error message indicating why the operation failed.",
          "readOnly": true
        }
      }
    },
    "ReportOperationStatusType": {
      "type": "string",
      "description": "The status of the long running operation.",
      "enum": [
        "InProgress",
        "Completed",
        "Failed",
        "Queued",
        "NoDataFound",
        "ReadyToDownload",
        "TimedOut"
      ],
      "x-ms-enum": {
        "name": "ReportOperationStatusType",
        "modelAsString": true,
        "values": [
          {
            "name": "InProgress",
            "value": "InProgress"
          },
          {
            "name": "Completed",
            "value": "Completed"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Queued",
            "value": "Queued"
          },
          {
            "name": "NoDataFound",
            "value": "NoDataFound"
          },
          {
            "name": "ReadyToDownload",
            "value": "ReadyToDownload"
          },
          {
            "name": "TimedOut",
            "value": "TimedOut"
          }
        ]
      }
    },
    "Status": {
      "type": "object",
      "description": "The status of the long running operation.",
      "properties": {
        "status": {
          "$ref": "#/$defs/ReportOperationStatusType",
          "description": "The status of the long running operation."
        }
      }
    }
  }
}