Class: Google::Apis::PubsubliteV1::ListPartitionCursorsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pubsublite_v1/classes.rb,
generated/google/apis/pubsublite_v1/representations.rb,
generated/google/apis/pubsublite_v1/representations.rb

Overview

Response for ListPartitionCursors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListPartitionCursorsResponse

Returns a new instance of ListPartitionCursorsResponse.



193
194
195
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 193

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


186
187
188
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 186

def next_page_token
  @next_page_token
end

#partition_cursorsArray<Google::Apis::PubsubliteV1::PartitionCursor>

The partition cursors from this request. Corresponds to the JSON property partitionCursors



191
192
193
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 191

def partition_cursors
  @partition_cursors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



198
199
200
201
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 198

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