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.



317
318
319
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 317

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)


310
311
312
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 310

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



315
316
317
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 315

def partition_cursors
  @partition_cursors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



322
323
324
325
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 322

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