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.
760 761 762 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 760 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
752 753 754 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 752 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
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 |