Class: Google::Apis::PubsubliteV1::SeekSubscriptionRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pubsublite_v1/classes.rb,
lib/google/apis/pubsublite_v1/representations.rb,
lib/google/apis/pubsublite_v1/representations.rb

Overview

Request for SeekSubscription.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SeekSubscriptionRequest

Returns a new instance of SeekSubscriptionRequest.



760
761
762
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 760

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#named_targetString

Seek to a named position with respect to the message backlog. Corresponds to the JSON property namedTarget

Returns:

  • (String)


752
753
754
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 752

def named_target
  @named_target
end

#time_targetGoogle::Apis::PubsubliteV1::TimeTarget

A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor. Corresponds to the JSON property timeTarget



758
759
760
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 758

def time_target
  @time_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



765
766
767
768
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 765

def update!(**args)
  @named_target = args[:named_target] if args.key?(:named_target)
  @time_target = args[:time_target] if args.key?(:time_target)
end