Show / Hide Table of Contents

Class LabelsResource.PermissionsResource

The "permissions" collection of methods.

Inheritance
object
LabelsResource.PermissionsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DriveLabels.v2
Assembly: Google.Apis.DriveLabels.v2.dll
Syntax
public class LabelsResource.PermissionsResource

Constructors

PermissionsResource(IClientService)

Constructs a new resource.

Declaration
public PermissionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

BatchDelete(GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest, string)

Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

Declaration
public virtual LabelsResource.PermissionsResource.BatchDeleteRequest BatchDelete(GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest body, string parent)
Parameters
Type Name Description
GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest body

The body of the request.

string parent

Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.

Returns
Type Description
LabelsResource.PermissionsResource.BatchDeleteRequest

BatchUpdate(GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest, string)

Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

Declaration
public virtual LabelsResource.PermissionsResource.BatchUpdateRequest BatchUpdate(GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest body, string parent)
Parameters
Type Name Description
GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest body

The body of the request.

string parent

Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.

Returns
Type Description
LabelsResource.PermissionsResource.BatchUpdateRequest

Create(GoogleAppsDriveLabelsV2LabelPermission, string)

Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

Declaration
public virtual LabelsResource.PermissionsResource.CreateRequest Create(GoogleAppsDriveLabelsV2LabelPermission body, string parent)
Parameters
Type Name Description
GoogleAppsDriveLabelsV2LabelPermission body

The body of the request.

string parent

Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}

Returns
Type Description
LabelsResource.PermissionsResource.CreateRequest

Delete(string)

Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

Declaration
public virtual LabelsResource.PermissionsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. Label Permission resource name.

Returns
Type Description
LabelsResource.PermissionsResource.DeleteRequest

List(string)

Lists a Label's permissions.

Declaration
public virtual LabelsResource.PermissionsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label}

Returns
Type Description
LabelsResource.PermissionsResource.ListRequest
In this article
Back to top Generated by DocFX