{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-geo-backup-policy-schema.json",
  "title": "GeoBackupPolicy",
  "description": "A Geo backup policy.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-geobackuppolicies-api-openapi.yml#/components/schemas/GeoBackupPolicy",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/GeoBackupPolicyProperties",
      "description": "Resource properties.",
      "x-ms-client-flatten": true
    },
    "location": {
      "type": "string",
      "description": "Backup policy location.",
      "readOnly": true
    },
    "kind": {
      "type": "string",
      "description": "Kind of geo backup policy.  This is metadata used for the Azure portal experience.",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "GeoBackupPolicyProperties": {
      "type": "object",
      "description": "The properties of the geo backup policy.",
      "properties": {
        "state": {
          "$ref": "#/$defs/GeoBackupPolicyState",
          "description": "The state of the geo backup policy."
        },
        "storageType": {
          "type": "string",
          "description": "The storage type of the geo backup policy.",
          "readOnly": true
        }
      },
      "required": [
        "state"
      ]
    },
    "GeoBackupPolicyState": {
      "type": "string",
      "description": "The state of the geo backup policy.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "GeoBackupPolicyState",
        "modelAsString": false,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}