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

Inherits:
Object
  • Object
show all
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

Response for ListPartitionCursors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListPartitionCursorsResponse

Returns a new instance of ListPartitionCursorsResponse.



231
232
233
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 231

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)


224
225
226
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 224

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



229
230
231
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 229

def partition_cursors
  @partition_cursors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



236
237
238
239
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 236

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