Class: Google::Apis::ChatV1::ListSpacesResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListSpacesResponse

Returns a new instance of ListSpacesResponse.


653
654
655
# File 'generated/google/apis/chat_v1/classes.rb', line 653

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

Instance Attribute Details

#next_page_tokenString

Continuation token to retrieve the next page of results. It will be empty for the last page of results. Tokens expire in an hour. An error is thrown if an expired token is passed. Corresponds to the JSON property nextPageToken

Returns:

  • (String)

646
647
648
# File 'generated/google/apis/chat_v1/classes.rb', line 646

def next_page_token
  @next_page_token
end

#spacesArray<Google::Apis::ChatV1::Space>

List of spaces in the requested (or first) page. Corresponds to the JSON property spaces

Returns:


651
652
653
# File 'generated/google/apis/chat_v1/classes.rb', line 651

def spaces
  @spaces
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


658
659
660
661
# File 'generated/google/apis/chat_v1/classes.rb', line 658

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