Class SpacesResource.DeleteRequest
Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like
messages posted in the space and memberships in the space—are also deleted. For an example, see Delete a
space. Supports the following types of
authentication: - App
authentication with
administrator approval in Developer
Preview - User
authentication You can
authenticate and authorize this method with administrator privileges by setting the use_admin_access
field
in the request.
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.DeleteRequest : HangoutsChatBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, 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 space to delete. Format: spaces/{space}
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.delete
OAuth 2.0
scope.
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()