Resource: Membership
Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.
JSON representation |
---|
{ "name": string, "state": enum ( |
Fields | |
---|---|
name |
Resource name of the membership. Format: spaces/{space}/members/{member} |
state |
Output only. State of the membership. |
createTime |
Output only. The creation time of the membership, such as when a member joined or was invited to join a space. |
member |
A Google Chat user or app. Format: When When |
MembershipState
Specifies the member's relationship with a space.
Enums | |
---|---|
MEMBERSHIP_STATE_UNSPECIFIED |
Default, do not use. |
JOINED |
The user has joined the space. |
INVITED |
The user has been invited, is able to join the space, but currently has not joined. |
NOT_A_MEMBER |
The user is not a member of the space, has not been invited and is not able to join the space. |
Methods |
|
---|---|
|
Creates a human membership or app membership for the calling app. |
|
Returns a membership. |
|
Lists human memberships in a space. |