class Google::Apis::PubsubV1::CreateSnapshotRequest

Request for the `CreateSnapshot` method.

Attributes

labels[RW]

See [Creating and managing labels](cloud.google.com/pubsub/docs/labels) . Corresponds to the JSON property `labels` @return [Hash<String,String>]

subscription[RW]

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“. Corresponds to the JSON property `subscription` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 199
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/pubsub_v1/classes.rb, line 204
def update!(**args)
  @labels = args[:labels] if args.key?(:labels)
  @subscription = args[:subscription] if args.key?(:subscription)
end