Class SpacesResource.MembersResource
The "members" collection of methods.
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.MembersResource
Constructors
MembersResource(IClientService)
Constructs a new resource.
Declaration
public MembersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Membership, string)
Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships for other Chat apps isn't supported. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires user authentication. For example usage, see: - Invite or add a user to a space. - Invite or add a Google Group to a space. - Add the Chat app to a space.
Declaration
public virtual SpacesResource.MembersResource.CreateRequest Create(Membership body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Membership | body | The body of the request. |
string | parent | Required. The resource name of the space for which to create the membership. Format: spaces/{space} |
Returns
Type | Description |
---|---|
SpacesResource.MembersResource.CreateRequest |
Delete(string)
Deletes a membership. For an example, see Remove a user or a Google Chat app from a space. Requires user authentication.
Declaration
public virtual SpacesResource.MembersResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | 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 |
Returns
Type | Description |
---|---|
SpacesResource.MembersResource.DeleteRequest |
Get(string)
Returns details about a membership. For an example, see Get details about a user's or Google Chat app's membership. Requires authentication. Supports app authentication and user authentication.
Declaration
public virtual SpacesResource.MembersResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the membership to retrieve. To get the app's own membership by using user
authentication, you can
optionally use |
Returns
Type | Description |
---|---|
SpacesResource.MembersResource.GetRequest |
List(string)
Lists memberships in a space. For an example, see List users and Google Chat apps in a space. Listing memberships with app authentication lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with User authentication lists memberships in spaces that the authenticated user has access to. Requires authentication. Supports app authentication and user authentication.
Declaration
public virtual SpacesResource.MembersResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space} |
Returns
Type | Description |
---|---|
SpacesResource.MembersResource.ListRequest |
Patch(Membership, string)
Updates a membership. For an example, see Update a user's membership in a space. Requires user authentication.
Declaration
public virtual SpacesResource.MembersResource.PatchRequest Patch(Membership body, string name)
Parameters
Type | Name | Description |
---|---|---|
Membership | body | The body of the request. |
string | name | Resource name of the membership, assigned by the server. Format: |
Returns
Type | Description |
---|---|
SpacesResource.MembersResource.PatchRequest |