{
  "description": "Subscription describes an pub/sub event subscription.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "spec": {
      "description": "SubscriptionSpec is the spec for an event subscription.",
      "properties": {
        "bulkSubscribe": {
          "description": "BulkSubscribe encapsulates the bulk subscription configuration for a topic.",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "maxAwaitDurationMs": {
              "format": "int32",
              "type": "integer"
            },
            "maxMessagesCount": {
              "format": "int32",
              "type": "integer"
            }
          },
          "required": [
            "enabled"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "deadLetterTopic": {
          "type": "string"
        },
        "metadata": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "pubsubname": {
          "type": "string"
        },
        "route": {
          "type": "string"
        },
        "topic": {
          "type": "string"
        }
      },
      "required": [
        "pubsubname",
        "route",
        "topic"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
