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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListTopicsResponse

Returns a new instance of ListTopicsResponse



162
163
164
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 162

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)


155
156
157
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 155

def next_page_token
  @next_page_token
end

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

The resulting topics. Corresponds to the JSON property topic



160
161
162
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 160

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



167
168
169
170
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 167

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