Class: Google::Apis::ChatV1::ListSectionsResponse

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

Overview

Response message for listing sections.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListSectionsResponse

Returns a new instance of ListSectionsResponse.



4815
4816
4817
# File 'lib/google/apis/chat_v1/classes.rb', line 4815

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

Instance Attribute Details

#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)


4808
4809
4810
# File 'lib/google/apis/chat_v1/classes.rb', line 4808

def next_page_token
  @next_page_token
end

#sectionsArray<Google::Apis::ChatV1::GoogleChatV1Section>

The sections from the specified user. Corresponds to the JSON property sections



4813
4814
4815
# File 'lib/google/apis/chat_v1/classes.rb', line 4813

def sections
  @sections
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4820
4821
4822
4823
# File 'lib/google/apis/chat_v1/classes.rb', line 4820

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