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 |
Constructor and Description |
---|
Members() |
Modifier and Type | Method and Description |
---|---|
HangoutsChat.Spaces.Members.Create |
create(String parent,
Membership content)
Creates a human membership or app membership for the calling app.
|
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.
|
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 Membership
IOException
public 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 and `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`.IOException
public 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, you can
optionally use `spaces/{space}/members/app`. Format: `spaces/{space}/members/{member}` or
`spaces/{space}/members/app` When [authenticated as a
user](https://developers.google.com/chat/api/guides/auth/users), 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.IOException
public 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}IOException
Copyright © 2011–2024 Google. All rights reserved.