{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-report-resource-list-schema.json",
  "title": "ReportResourceList",
  "description": "Object that includes an array of resources and a possible link for next set.",
  "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/ReportResourceList",
  "type": "object",
  "properties": {
    "value": {
      "description": "List of the reports",
      "type": "array",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/ReportResource"
      }
    },
    "nextLink": {
      "description": "The URL the client should use to fetch the next page (per server side paging).\nIt's null for now, added for future use.",
      "type": "string"
    }
  },
  "$defs": {
    "OverviewStatus": {
      "description": "The overview of the compliance result for one report.",
      "type": "object",
      "properties": {
        "passedCount": {
          "format": "int32",
          "type": "integer",
          "description": "The count of all passed full automation control."
        },
        "failedCount": {
          "format": "int32",
          "type": "integer",
          "description": "The count of all failed full automation control."
        },
        "manualCount": {
          "format": "int32",
          "type": "integer",
          "description": "The count of all manual control."
        }
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Resource provisioning states.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled",
        "Creating",
        "Deleting",
        "Updating"
      ],
      "readOnly": true,
      "x-ms-enum": {
        "name": "provisioningState",
        "modelAsString": true
      }
    },
    "ReportComplianceStatus": {
      "type": "object",
      "readOnly": true,
      "description": "A list which includes all the compliance result for one report.",
      "properties": {
        "m365": {
          "description": "The Microsoft 365 certification name.",
          "$ref": "#/$defs/OverviewStatus"
        }
      }
    },
    "ReportProperties": {
      "type": "object",
      "description": "Report's properties.",
      "required": [
        "timeZone",
        "triggerTime",
        "resources"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Report id in database.",
          "readOnly": true
        },
        "status": {
          "description": "Report status.",
          "enum": [
            "Active",
            "Failed",
            "Disabled"
          ],
          "readOnly": true,
          "type": "string",
          "x-ms-enum": {
            "name": "ReportStatus",
            "modelAsString": true
          }
        },
        "tenantId": {
          "type": "string",
          "description": "Report's tenant id.",
          "readOnly": true
        },
        "reportName": {
          "description": "Report name.",
          "type": "string",
          "readOnly": true
        },
        "offerGuid": {
          "description": "Report offer Guid.",
          "type": "string"
        },
        "timeZone": {
          "type": "string",
          "description": "Report collection trigger time's time zone, the available list can be obtained by executing \"Get-TimeZone -ListAvailable\" in PowerShell.\nAn example of valid timezone id is \"Pacific Standard Time\"."
        },
        "triggerTime": {
          "format": "date-time",
          "description": "Report collection trigger time.",
          "type": "string"
        },
        "nextTriggerTime": {
          "format": "date-time",
          "type": "string",
          "description": "Report next collection trigger time.",
          "readOnly": true
        },
        "lastTriggerTime": {
          "format": "date-time",
          "type": "string",
          "description": "Report last collection trigger time.",
          "readOnly": true
        },
        "subscriptions": {
          "type": "array",
          "description": "List of subscription Ids.",
          "items": {
            "type": "string",
            "description": "Single subscription Id."
          },
          "readOnly": true
        },
        "resources": {
          "type": "array",
          "description": "List of resource data.",
          "items": {
            "description": "Single resource metadata.",
            "$ref": "#/$defs/ResourceMetadata"
          },
          "x-ms-identifiers": [
            "resourceId"
          ]
        },
        "complianceStatus": {
          "readOnly": true,
          "description": "Report compliance status.",
          "$ref": "#/$defs/ReportComplianceStatus"
        },
        "provisioningState": {
          "readOnly": true,
          "description": "Azure lifecycle management",
          "$ref": "#/$defs/ProvisioningState"
        }
      }
    },
    "ReportResource": {
      "type": "object",
      "description": "A class represent an AppComplianceAutomation report resource.",
      "allOf": [
        {
          "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
        }
      ],
      "properties": {
        "properties": {
          "description": "Report property.",
          "$ref": "#/$defs/ReportProperties"
        }
      },
      "required": [
        "properties"
      ]
    },
    "ResourceMetadata": {
      "type": "object",
      "description": "Single resource Id's metadata.",
      "required": [
        "resourceId"
      ],
      "properties": {
        "resourceId": {
          "description": "Resource Id - e.g. \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1\".",
          "type": "string"
        },
        "resourceType": {
          "description": "Resource type.",
          "type": "string"
        },
        "resourceKind": {
          "description": "Resource kind.",
          "type": "string"
        },
        "resourceName": {
          "description": "Resource name.",
          "type": "string"
        },
        "tags": {
          "type": "object",
          "description": "Resource's tag type.",
          "additionalProperties": {
            "description": "Tag properties.",
            "type": "string"
          }
        }
      }
    }
  }
}