Class SpacesResource.MembersResource.DeleteRequest
Deletes a membership. For an example, see Remove a user or a Google Chat app from a
space. Supports the following types of
authentication: - App
authentication with
administrator approval in Developer
Preview and the authorization scope: -
https://www.googleapis.com/auth/chat.app.memberships - User
authentication with one
of the following authorization scopes: - https://www.googleapis.com/auth/chat.memberships -
https://www.googleapis.com/auth/chat.memberships.app (to remove the calling app from the space) -
https://www.googleapis.com/auth/chat.import (import mode spaces only) - User authentication grants
administrator privileges when an administrator account authenticates, use_admin_access is true, and
the following authorization scope is used: - https://www.googleapis.com/auth/chat.admin.memberships To
delete memberships for space managers, the requester must be a space manager. If you're using app
authentication the
application must be the space creator.
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.MembersResource.DeleteRequest : HangoutsChatBaseServiceRequest<Membership>, IClientServiceRequest<Membership>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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 or
the chat.memberships.app scope with app
authentication 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.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
UseAdminAccess
Optional. When true, the method runs using the user's Google Workspace administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces
conversations privilege. Requires the
chat.admin.memberships OAuth 2.0
scope.
Deleting app memberships in a space isn't supported using admin access.
Declaration
[RequestParameter("useAdminAccess", RequestParameterType.Query)]
public virtual bool? UseAdminAccess { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()