public class HangoutsChat.Spaces.Members extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
HangoutsChat.Spaces.Members.Create |
class |
HangoutsChat.Spaces.Members.Delete |
class |
HangoutsChat.Spaces.Members.Get |
class |
HangoutsChat.Spaces.Members.List |
class |
HangoutsChat.Spaces.Members.Patch |
| Constructor and Description |
|---|
Members() |
| Modifier and Type | Method and Description |
|---|---|
HangoutsChat.Spaces.Members.Create |
create(String parent,
Membership content)
Creates a membership for the calling Chat app, a user, or a Google Group.
|
HangoutsChat.Spaces.Members.Delete |
delete(String name)
Deletes a membership.
|
HangoutsChat.Spaces.Members.Get |
get(String name)
Returns details about a membership.
|
HangoutsChat.Spaces.Members.List |
list(String parent)
Lists memberships in a space.
|
HangoutsChat.Spaces.Members.Patch |
patch(String name,
Membership content)
Updates a membership.
|
public HangoutsChat.Spaces.Members.Create create(String parent, Membership content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource name of the space for which to create the membership. Format: spaces/{space}content - the MembershipIOExceptionpublic HangoutsChat.Spaces.Members.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Resource name of the membership to delete. Chat apps can delete human users' or their own
memberships. Chat apps can't delete other apps' memberships. When deleting a human
membership, requires the `chat.memberships` scope with [user
authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
user) or the `chat.memberships.app` scope with [app
authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
app) and the `spaces/{space}/members/{member}` format. You can use the email as an alias
for `{member}`. For example, `spaces/{space}/members/example@gmail.com` where
`example@gmail.com` is the email of the Google Chat user. When deleting an app membership,
requires the `chat.memberships.app` scope and `spaces/{space}/members/app` format. Format:
`spaces/{space}/members/{member}` or `spaces/{space}/members/app`.IOExceptionpublic HangoutsChat.Spaces.Members.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Resource name of the membership to retrieve. To get the app's own membership [by using
user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-
chat-user), you can optionally use `spaces/{space}/members/app`. Format:
`spaces/{space}/members/{member}` or `spaces/{space}/members/app` You can use the user's
email as an alias for `{member}`. For example, `spaces/{space}/members/example@gmail.com`
where `example@gmail.com` is the email of the Google Chat user.IOExceptionpublic HangoutsChat.Spaces.Members.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource name of the space for which to fetch a membership list. Format:
spaces/{space}IOExceptionpublic HangoutsChat.Spaces.Members.Patch patch(String name, Membership content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Identifier. Resource name of the membership, assigned by the server. Format:
`spaces/{space}/members/{member}`content - the MembershipIOExceptionCopyright © 2011–2025 Google. All rights reserved.