{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-download-response-schema.json",
  "title": "DownloadResponse",
  "description": "Object that includes all the possible response for the download operation.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-appcomplianceautomation-api-openapi.yml#/components/schemas/DownloadResponse",
  "type": "object",
  "properties": {
    "resourceList": {
      "description": "List of the reports",
      "type": "array",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/ResourceItem"
      },
      "x-ms-identifiers": []
    },
    "complianceReport": {
      "description": "List of the compliance result",
      "type": "array",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/ComplianceReportItem"
      },
      "x-ms-identifiers": []
    },
    "compliancePdfReport": {
      "description": "compliance pdf report",
      "type": "object",
      "readOnly": true,
      "properties": {
        "sasUri": {
          "description": "uri of compliance pdf report",
          "type": "string",
          "readOnly": true,
          "x-ms-secret": true
        }
      }
    },
    "complianceDetailedPdfReport": {
      "description": "compliance detailed pdf report",
      "type": "object",
      "readOnly": true,
      "properties": {
        "sasUri": {
          "description": "uri of compliance detailed pdf report",
          "type": "string",
          "readOnly": true
        }
      }
    }
  },
  "$defs": {
    "ComplianceReportItem": {
      "type": "object",
      "description": "Object that includes all the content for single compliance result.",
      "properties": {
        "categoryName": {
          "type": "string",
          "description": "The category name.",
          "readOnly": true
        },
        "controlId": {
          "type": "string",
          "description": "The control Id - e.g. \"1\".",
          "readOnly": true
        },
        "controlName": {
          "type": "string",
          "description": "The control name.",
          "readOnly": true
        },
        "controlType": {
          "type": "string",
          "description": "The control type.",
          "$ref": "#/$defs/ControlType",
          "readOnly": true
        },
        "complianceState": {
          "type": "string",
          "enum": [
            "Healthy",
            "Unhealthy"
          ],
          "x-ms-enum": {
            "name": "ComplianceState",
            "modelAsString": true
          },
          "description": "The compliance result's status.",
          "readOnly": true
        },
        "policyId": {
          "type": "string",
          "description": "The compliance result mapped policy Id.",
          "readOnly": true
        },
        "policyDisplayName": {
          "type": "string",
          "description": "The policy's display name.",
          "readOnly": true
        },
        "policyDescription": {
          "type": "string",
          "description": "The policy's detail description.",
          "readOnly": true
        },
        "subscriptionId": {
          "type": "string",
          "description": "The compliance result mapped subscription Id.",
          "readOnly": true
        },
        "resourceGroup": {
          "type": "string",
          "description": "The compliance result mapped resource group.",
          "readOnly": true
        },
        "resourceType": {
          "type": "string",
          "description": "The compliance result mapped resource type.",
          "readOnly": true
        },
        "resourceId": {
          "type": "string",
          "description": "The compliance result mapped resource Id - e.g. \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1\".",
          "readOnly": true
        },
        "statusChangeDate": {
          "description": "The compliance result last changed date - e.g. \"2022-10-24T02:55:16.3274379Z\". For unavailable date, set it as \"N/A\".",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "ControlType": {
      "description": "Indicates the control type.",
      "enum": [
        "FullyAutomated",
        "PartiallyAutomated",
        "Manual"
      ],
      "readOnly": true,
      "type": "string",
      "x-ms-enum": {
        "name": "ControlType",
        "modelAsString": true
      }
    },
    "ResourceItem": {
      "type": "object",
      "description": "Resource Id.",
      "properties": {
        "subscriptionId": {
          "description": "The subscription Id of this resource.",
          "type": "string",
          "readOnly": true
        },
        "resourceGroup": {
          "description": "The resource group name of this resource.",
          "type": "string",
          "readOnly": true
        },
        "resourceType": {
          "description": "The resource type of this resource.",
          "type": "string",
          "readOnly": true
        },
        "resourceId": {
          "description": "The resource Id - e.g. \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1\".",
          "type": "string",
          "readOnly": true
        }
      }
    }
  }
}