{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-postgresql/json-schema/microsoft-azure-postgresql-advanced-threat-protection-settings-list-schema.json",
  "title": "AdvancedThreatProtectionSettingsList",
  "description": "List of advanced threat protection settings for a server.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-postgresql-openapi.yml#/components/schemas/AdvancedThreatProtectionSettingsList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The AdvancedThreatProtectionSettingsModel items on this page",
      "items": {
        "$ref": "#/$defs/AdvancedThreatProtectionSettingsModel"
      },
      "readOnly": true
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "AdvancedThreatProtectionSettingsModel": {
      "type": "object",
      "description": "Advanced threat protection settings of the server.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/AdvancedThreatProtectionSettingsProperties"
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "AdvancedThreatProtectionSettingsProperties": {
      "type": "object",
      "description": "Properties of advanced threat protection state for a server.",
      "properties": {
        "state": {
          "$ref": "#/$defs/ThreatProtectionState"
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Specifies the creation time (UTC) of the policy.",
          "readOnly": true
        }
      },
      "required": [
        "state"
      ]
    },
    "ThreatProtectionState": {
      "type": "string",
      "description": "Specifies the state of the advanced threat protection, whether it is enabled, disabled, or a state has not been applied yet on the server.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "ThreatProtectionState",
        "modelAsString": false
      }
    }
  }
}