Class: Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse

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

Overview

Response for the ListTopicSubscriptions method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListTopicSubscriptionsResponse

Returns a new instance of ListTopicSubscriptionsResponse.



234
235
236
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 234

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

Instance Attribute Details

#next_page_tokenString

If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new ListTopicSubscriptionsRequest to get more subscriptions. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


227
228
229
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 227

def next_page_token
  @next_page_token
end

#subscriptionsArray<String>

The names of the subscriptions that match the request. Corresponds to the JSON property subscriptions

Returns:

  • (Array<String>)


232
233
234
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 232

def subscriptions
  @subscriptions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



239
240
241
242
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 239

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