{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-notification-hubs/json-schema/microsoft-azure-notification-hubs-private-endpoint-connection-resource-schema.json",
  "title": "PrivateEndpointConnectionResource",
  "description": "Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-notification-hubs-private-link-api-openapi.yml#/components/schemas/PrivateEndpointConnectionResource",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "properties": {
    "properties": {
      "$ref": "#/$defs/PrivateEndpointConnectionProperties"
    }
  },
  "$defs": {
    "PrivateEndpointConnectionProperties": {
      "description": "Private Endpoint Connection properties.",
      "type": "object",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/PrivateEndpointConnectionProvisioningState"
        },
        "privateEndpoint": {
          "$ref": "#/$defs/RemotePrivateEndpointConnection"
        },
        "groupIds": {
          "description": "List of group ids. For Notification Hubs, it always contains a single \"namespace\" element.",
          "type": "array",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "privateLinkServiceConnectionState": {
          "$ref": "#/$defs/RemotePrivateLinkServiceConnectionState"
        }
      }
    },
    "PrivateEndpointConnectionProvisioningState": {
      "description": "State of Private Endpoint Connection.",
      "enum": [
        "Unknown",
        "Succeeded",
        "Creating",
        "Updating",
        "UpdatingByProxy",
        "Deleting",
        "DeletingByProxy",
        "Deleted"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "PrivateEndpointConnectionProvisioningState",
        "modelAsString": true
      }
    },
    "PrivateLinkConnectionStatus": {
      "description": "State of Private Link Connection.",
      "enum": [
        "Disconnected",
        "Pending",
        "Approved",
        "Rejected"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "PrivateLinkConnectionStatus",
        "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"
        }
      ]
    },
    "RemotePrivateEndpointConnection": {
      "description": "Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection.",
      "type": "object",
      "properties": {
        "id": {
          "description": "ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace.",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "RemotePrivateLinkServiceConnectionState": {
      "description": "State of the Private Link Service connection.",
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/$defs/PrivateLinkConnectionStatus"
        },
        "description": {
          "description": "Human-friendly description.",
          "type": "string",
          "readOnly": true
        },
        "actionsRequired": {
          "description": "Human-friendly description of required actions.",
          "type": "string",
          "readOnly": true
        }
      }
    }
  }
}