Returns the members Resource.
Returns the messages Resource.
Returns a space.
list(pageToken=None, pageSize=None, x__xgafv=None)
Lists spaces the caller is a member of.
list_next(previous_request, previous_response)
Retrieves the next page of results.
get(name, x__xgafv=None)
Returns a space.
Args:
name: string, Required. Resource name of the space, in the form "spaces/*".
Example: spaces/AAAAMpdlehY (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A room or DM in Hangouts Chat.
"name": "A String", # Resource name of the space, in the form "spaces/*".
#
# Example: spaces/AAAAMpdlehYs
"threaded": True or False, # Whether the messages are threaded in this space.
"displayName": "A String", # Output only. The display name (only if the space is a room).
"type": "A String", # Output only. The type of a space.
# This is deprecated. Use `single_user_bot_dm` instead.
"singleUserBotDm": True or False, # Whether the space is a DM between a bot and a single human.
}
list(pageToken=None, pageSize=None, x__xgafv=None)
Lists spaces the caller is a member of.
Args:
pageToken: string, A token identifying a page of results the server should return.
pageSize: integer, Requested page size. The value is capped at 1000.
Server may return fewer results than requested.
If unspecified, server will default to 100.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{
"nextPageToken": "A String", # 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.
"spaces": [ # List of spaces in the requested (or first) page.
{ # A room or DM in Hangouts Chat.
"name": "A String", # Resource name of the space, in the form "spaces/*".
#
# Example: spaces/AAAAMpdlehYs
"threaded": True or False, # Whether the messages are threaded in this space.
"displayName": "A String", # Output only. The display name (only if the space is a room).
"type": "A String", # Output only. The type of a space.
# This is deprecated. Use `single_user_bot_dm` instead.
"singleUserBotDm": True or False, # Whether the space is a DM between a bot and a single human.
},
],
}
list_next(previous_request, previous_response)
Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.