{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-service-bus/json-schema/azure-service-bus-sbauthorization-rule-schema.json",
  "title": "SBAuthorizationRule",
  "description": "Description of a namespace authorization rule.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-service-bus-disasterrecoveryconfigs-api-openapi.yml#/components/schemas/SBAuthorizationRule",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/SBAuthorizationRuleProperties",
      "description": "AuthorizationRule properties.",
      "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": {
    "AccessRights": {
      "type": "string",
      "enum": [
        "Manage",
        "Send",
        "Listen"
      ],
      "x-ms-enum": {
        "name": "AccessRights",
        "modelAsString": false
      }
    },
    "SBAuthorizationRuleProperties": {
      "type": "object",
      "description": "AuthorizationRule properties.",
      "properties": {
        "rights": {
          "type": "array",
          "description": "The rights associated with the rule.",
          "items": {
            "$ref": "#/$defs/AccessRights"
          }
        }
      },
      "required": [
        "rights"
      ]
    }
  }
}