{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-notification-hubs/json-schema/microsoft-azure-notification-hubs-shared-access-authorization-rule-resource-schema.json",
  "title": "SharedAccessAuthorizationRuleResource",
  "description": "Response for POST requests that return single SharedAccessAuthorizationRule.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-notification-hubs-hubs-api-openapi.yml#/components/schemas/SharedAccessAuthorizationRuleResource",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "properties": {
    "properties": {
      "$ref": "#/$defs/SharedAccessAuthorizationRuleProperties"
    },
    "location": {
      "description": "Deprecated - only for compatibility.",
      "type": "string",
      "x-ms-mutability": [
        "create",
        "read"
      ]
    },
    "tags": {
      "description": "Deprecated - only for compatibility.",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "AccessRights": {
      "description": "Defines values for AccessRights.",
      "enum": [
        "Manage",
        "Send",
        "Listen"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "AccessRights",
        "modelAsString": true
      }
    },
    "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"
        }
      ]
    },
    "SharedAccessAuthorizationRuleProperties": {
      "description": "SharedAccessAuthorizationRule properties.",
      "required": [
        "rights"
      ],
      "type": "object",
      "properties": {
        "rights": {
          "description": "Gets or sets the rights associated with the rule.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AccessRights"
          }
        },
        "primaryKey": {
          "description": "Gets a base64-encoded 256-bit primary key for signing and\nvalidating the SAS token.",
          "type": "string",
          "x-ms-secret": true
        },
        "secondaryKey": {
          "description": "Gets a base64-encoded 256-bit primary key for signing and\nvalidating the SAS token.",
          "type": "string",
          "x-ms-secret": true
        },
        "keyName": {
          "description": "Gets a string that describes the authorization rule.",
          "type": "string",
          "readOnly": true
        },
        "modifiedTime": {
          "format": "date-time",
          "description": "Gets the last modified time for this rule",
          "type": "string",
          "readOnly": true
        },
        "createdTime": {
          "format": "date-time",
          "description": "Gets the created time for this rule",
          "type": "string",
          "readOnly": true
        },
        "claimType": {
          "description": "Gets a string that describes the claim type",
          "type": "string",
          "readOnly": true
        },
        "claimValue": {
          "description": "Gets a string that describes the claim value",
          "type": "string",
          "readOnly": true
        },
        "revision": {
          "format": "int32",
          "description": "Gets the revision number for the rule",
          "type": "integer",
          "readOnly": true
        }
      }
    }
  }
}