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.



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

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)


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

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



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

def time_target
  @time_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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