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.
59 60 61 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 59 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
57 58 59 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 57 def partition @partition end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
64 65 66 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 64 def update!(**args) @partition = args[:partition] if args.key?(:partition) end |