Class: Google::Apis::PubsubliteV1::ComputeHeadCursorRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::ComputeHeadCursorRequest
- 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
Compute the current head cursor for a partition.
Instance Attribute Summary collapse
-
#partition ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeHeadCursorRequest
constructor
A new instance of ComputeHeadCursorRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeHeadCursorRequest
Returns a new instance of ComputeHeadCursorRequest.
98 99 100 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 98 def initialize(**args) update!(**args) end |
Instance Attribute Details
#partition ⇒ Fixnum
Required. The partition for which we should compute the head cursor.
Corresponds to the JSON property partition
96 97 98 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 96 def partition @partition end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
103 104 105 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 103 def update!(**args) @partition = args[:partition] if args.key?(:partition) end |