Show / Hide Table of Contents

Class PermissionsResource

The "permissions" collection of methods.

Inheritance
object
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.Drive.v2
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class PermissionsResource

Constructors

PermissionsResource(IClientService)

Constructs a new resource.

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

Methods

Delete(string, string)

Deletes a permission from a file or shared drive. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.

Declaration
public virtual PermissionsResource.DeleteRequest Delete(string fileId, string permissionId)
Parameters
Type Name Description
string fileId

The ID for the file or shared drive.

string permissionId

The ID for the permission.

Returns
Type Description
PermissionsResource.DeleteRequest

Get(string, string)

Gets a permission by ID.

Declaration
public virtual PermissionsResource.GetRequest Get(string fileId, string permissionId)
Parameters
Type Name Description
string fileId

The ID for the file or shared drive.

string permissionId

The ID for the permission.

Returns
Type Description
PermissionsResource.GetRequest

GetIdForEmail(string)

Returns the permission ID for an email address.

Declaration
public virtual PermissionsResource.GetIdForEmailRequest GetIdForEmail(string email)
Parameters
Type Name Description
string email

The email address for which to return a permission ID

Returns
Type Description
PermissionsResource.GetIdForEmailRequest

Insert(Permission, string)

Inserts a permission for a file or shared drive. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.

Declaration
public virtual PermissionsResource.InsertRequest Insert(Permission body, string fileId)
Parameters
Type Name Description
Permission body

The body of the request.

string fileId

The ID for the file or shared drive.

Returns
Type Description
PermissionsResource.InsertRequest

List(string)

Lists a file's or shared drive's permissions.

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

The ID for the file or shared drive.

Returns
Type Description
PermissionsResource.ListRequest

Patch(Permission, string, string)

Updates a permission using patch semantics. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.

Declaration
public virtual PermissionsResource.PatchRequest Patch(Permission body, string fileId, string permissionId)
Parameters
Type Name Description
Permission body

The body of the request.

string fileId

The ID for the file or shared drive.

string permissionId

The ID for the permission.

Returns
Type Description
PermissionsResource.PatchRequest

Update(Permission, string, string)

Updates a permission. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.

Declaration
public virtual PermissionsResource.UpdateRequest Update(Permission body, string fileId, string permissionId)
Parameters
Type Name Description
Permission body

The body of the request.

string fileId

The ID for the file or shared drive.

string permissionId

The ID for the permission.

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