Class: Google::Apis::ManagedkafkaV1::ListTopicsResponse

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

Overview

Response for ListTopics.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListTopicsResponse

Returns a new instance of ListTopicsResponse.



1217
1218
1219
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1217

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)


1209
1210
1211
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1209

def next_page_token
  @next_page_token
end

#topicsArray<Google::Apis::ManagedkafkaV1::Topic>

The list of topics in the requested parent. The order of the topics is unspecified. Corresponds to the JSON property topics



1215
1216
1217
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1215

def topics
  @topics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1222
1223
1224
1225
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1222

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