Class: Google::Apis::VersionhistoryV1::ListChannelsResponse

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

Overview

Response message for ListChannels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListChannelsResponse

Returns a new instance of ListChannelsResponse.



97
98
99
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 97

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

Instance Attribute Details

#channelsArray<Google::Apis::VersionhistoryV1::Channel>

The list of channels. Corresponds to the JSON property channels



89
90
91
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 89

def channels
  @channels
end

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


95
96
97
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 95

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



102
103
104
105
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 102

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