{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-create-snapshot-request-schema.json",
  "title": "CreateSnapshotRequest",
  "description": "Request for the `CreateSnapshot` method.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-pubsub-pubsub-projects-api-openapi.yml#/components/schemas/CreateSnapshotRequest",
  "type": "object",
  "properties": {
    "labels": {
      "type": "object",
      "description": "Optional. See [Creating and managing labels](https://cloud.google.com/pubsub/docs/labels).",
      "additionalProperties": {
        "type": "string"
      }
    },
    "tags": {
      "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\" See https://{$universe.dns_names.final_documentation_domain}/pubsub/docs/tags for more information on using tags with Pub/Sub resources.",
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "subscription": {
      "type": "string",
      "description": "Required. The subscription whose backlog the snapshot retains. Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely, this is defined as the messages in the subscription's backlog that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as well as: (b) Any messages published to the subscription's topic following the successful completion of the CreateSnapshot request. Format is `projects/{project}/subscriptions/{sub}`."
    }
  }
}