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

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

The response for a list spaces request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListSpacesResponse

Returns a new instance of ListSpacesResponse.



3868
3869
3870
# File 'lib/google/apis/chat_v1/classes.rb', line 3868

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

Instance Attribute Details

#next_page_tokenString

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


3860
3861
3862
# File 'lib/google/apis/chat_v1/classes.rb', line 3860

def next_page_token
  @next_page_token
end

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

List of spaces in the requested (or first) page. Note: The permissionSettings field is not returned in the Space object for list requests. Corresponds to the JSON property spaces

Returns:



3866
3867
3868
# File 'lib/google/apis/chat_v1/classes.rb', line 3866

def spaces
  @spaces
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3873
3874
3875
3876
# File 'lib/google/apis/chat_v1/classes.rb', line 3873

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