Class: Google::Apis::PubsubV1beta1a::ListTopicsResponse

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

Overview

Response for the ListTopics method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListTopicsResponse

Returns a new instance of ListTopicsResponse.



152
153
154
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 152

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

Instance Attribute Details

#next_page_tokenString

If not empty, indicates that there are more topics that match the request, and this value should be passed to the next ListTopicsRequest to continue. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


145
146
147
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 145

def next_page_token
  @next_page_token
end

#topicArray<Google::Apis::PubsubV1beta1a::Topic>

The resulting topics. Corresponds to the JSON property topic



150
151
152
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 150

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



157
158
159
160
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 157

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