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.



355
356
357
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 355

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)


348
349
350
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 348

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



353
354
355
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 353

def partition_cursors
  @partition_cursors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 360

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