{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-service-bus/json-schema/azure-service-bus-arm-disaster-recovery-schema.json",
  "title": "ArmDisasterRecovery",
  "description": "Single item in List or Get Alias(Disaster Recovery configuration) operation",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-service-bus-armdisasterrecoveries-api-openapi.yml#/components/schemas/ArmDisasterRecovery",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ArmDisasterRecoveryProperties",
      "description": "Properties required to the Create Or Update Alias(Disaster Recovery configurations)",
      "x-ms-client-flatten": true
    },
    "location": {
      "type": "string",
      "description": "The geo-location where the resource lives",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "ArmDisasterRecoveryProperties": {
      "type": "object",
      "description": "Properties required to the Create Or Update Alias(Disaster Recovery configurations)",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningStateDR",
          "description": "Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'",
          "readOnly": true
        },
        "pendingReplicationOperationsCount": {
          "type": "integer",
          "format": "int64",
          "description": "Number of entities pending to be replicated.",
          "readOnly": true
        },
        "partnerNamespace": {
          "type": "string",
          "description": "ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing"
        },
        "alternateName": {
          "type": "string",
          "description": "Primary/Secondary eventhub namespace name, which is part of GEO DR pairing"
        },
        "role": {
          "$ref": "#/$defs/RoleDisasterRecovery",
          "description": "role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'",
          "readOnly": true
        }
      }
    },
    "ProvisioningStateDR": {
      "type": "string",
      "description": "Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'",
      "enum": [
        "Accepted",
        "Succeeded",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "ProvisioningStateDR",
        "modelAsString": false
      }
    },
    "RoleDisasterRecovery": {
      "type": "string",
      "description": "role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'",
      "enum": [
        "Primary",
        "PrimaryNotReplicating",
        "Secondary"
      ],
      "x-ms-enum": {
        "name": "RoleDisasterRecovery",
        "modelAsString": false
      }
    }
  }
}