{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-mysql/json-schema/microsoft-azure-mysql-advanced-threat-protection-for-update-schema.json",
  "title": "AdvancedThreatProtectionForUpdate",
  "description": "Parameters allowed to update advanced threat protection for a server.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-mysql-advancedthreatprotectionsettings-api-openapi.yml#/components/schemas/AdvancedThreatProtectionForUpdate",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/AdvancedThreatProtectionUpdateProperties",
      "description": "Resource update properties.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "AdvancedThreatProtectionState": {
      "type": "string",
      "description": "Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled on the server.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "AdvancedThreatProtectionState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "AdvancedThreatProtectionUpdateProperties": {
      "type": "object",
      "description": "Properties of Advanced Threat Protection that can be updated.",
      "properties": {
        "state": {
          "$ref": "#/$defs/AdvancedThreatProtectionState",
          "description": "Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server."
        }
      },
      "required": [
        "state"
      ]
    }
  }
}