Class: Google::Apis::PubsubliteV1::ListTopicSubscriptionsResponse

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 ListTopicSubscriptions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListTopicSubscriptionsResponse

Returns a new instance of ListTopicSubscriptionsResponse.



462
463
464
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 462

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

Instance Attribute Details

#next_page_tokenString

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


454
455
456
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 454

def next_page_token
  @next_page_token
end

#subscriptionsArray<String>

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified. Corresponds to the JSON property subscriptions

Returns:

  • (Array<String>)


460
461
462
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 460

def subscriptions
  @subscriptions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



467
468
469
470
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 467

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