Class LabelsResource.DeleteRequest
Permanently deletes a Label and related metadata on Drive Items. Once deleted, the Label and related Drive item metadata will be deleted. Only draft Labels, and disabled Labels may be deleted.
Inheritance
LabelsResource.DeleteRequest
Inherited Members
Namespace: Google.Apis.DriveLabels.v2beta
Assembly: Google.Apis.DriveLabels.v2beta.dll
Syntax
public class LabelsResource.DeleteRequest : DriveLabelsBaseServiceRequest<GoogleProtobufEmpty>, IClientServiceRequest<GoogleProtobufEmpty>, 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
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleProtobufEmpty>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleProtobufEmpty>.MethodName
Name
Required. Label resource name.
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
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DriveLabels.v2beta.Data.GoogleProtobufEmpty>.RestPath
UseAdminAccess
Set to true
in order to use the user's admin credentials. The server will verify the user is an admin
for the Label before allowing access.
Declaration
[RequestParameter("useAdminAccess", RequestParameterType.Query)]
public virtual bool? UseAdminAccess { get; set; }
Property Value
Type | Description |
---|---|
bool? |
WriteControlRequiredRevisionId
The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.
Declaration
[RequestParameter("writeControl.requiredRevisionId", RequestParameterType.Query)]
public virtual string WriteControlRequiredRevisionId { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()