Class: Google::Apis::PubsubliteV1::SeekSubscriptionRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::SeekSubscriptionRequest
- 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
-
#named_target ⇒ String
Seek to a named position with respect to the message backlog.
-
#time_target ⇒ Google::Apis::PubsubliteV1::TimeTarget
A target publish or event time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SeekSubscriptionRequest
constructor
A new instance of SeekSubscriptionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_target ⇒ String
Seek to a named position with respect to the message backlog.
Corresponds to the JSON property namedTarget
753 754 755 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 753 def named_target @named_target end |
#time_target ⇒ Google::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 |