{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-integration-services/json-schema/microsoft-azure-integration-services-permission-binding-schema.json",
  "title": "PermissionBinding",
  "description": "The Permission binding resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-integration-services-permissionbindings-api-openapi.yml#/components/schemas/PermissionBinding",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "properties": {
    "properties": {
      "$ref": "#/$defs/PermissionBindingProperties",
      "description": "The properties of permission binding.",
      "x-ms-client-flatten": true
    },
    "systemData": {
      "$ref": "#/$defs/systemData",
      "description": "The system metadata relating to the Event Grid resource.",
      "type": "object",
      "readOnly": true
    }
  },
  "$defs": {
    "PermissionBindingProperties": {
      "description": "The properties of permission binding.",
      "type": "object",
      "properties": {
        "description": {
          "description": "Description for the Permission Binding resource.",
          "type": "string"
        },
        "topicSpaceName": {
          "description": "The name of the Topic Space resource that the permission is bound to.\nThe Topic space needs to be a resource under the same namespace the permission binding is a part of.",
          "type": "string"
        },
        "permission": {
          "description": "The allowed permission.",
          "enum": [
            "Publisher",
            "Subscriber"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "PermissionType",
            "modelAsString": true
          }
        },
        "clientGroupName": {
          "description": "The name of the client group resource that the permission is bound to.\nThe client group needs to be a resource under the same namespace the permission binding is a part of.",
          "type": "string"
        },
        "provisioningState": {
          "description": "Provisioning state of the PermissionBinding resource.",
          "enum": [
            "Creating",
            "Updating",
            "Deleting",
            "Succeeded",
            "Canceled",
            "Failed",
            "Deleted"
          ],
          "type": "string",
          "readOnly": true,
          "x-ms-enum": {
            "name": "PermissionBindingProvisioningState",
            "modelAsString": true
          }
        }
      }
    },
    "Resource": {
      "description": "Definition of a Resource.",
      "type": "object",
      "properties": {
        "id": {
          "description": "Fully qualified identifier of the resource.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "Name of the resource.",
          "type": "string",
          "readOnly": true
        },
        "type": {
          "description": "Type of the resource.",
          "type": "string",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "systemData": {
      "type": "object",
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)"
        }
      },
      "readOnly": true
    }
  }
}