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

Constructors

PermissionsResource(IClientService)

Constructs a new resource.

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

Methods

Create(Permission, string)

Creates a permission for a file or shared drive. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.

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

The body of the request.

string fileId

The ID of the file or shared drive.

Returns
Type Description
PermissionsResource.CreateRequest

Delete(string, string)

Deletes a permission. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't 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 of the file or shared drive.

string permissionId

The ID of the permission.

Returns
Type Description
PermissionsResource.DeleteRequest

Get(string, string)

Gets a permission by ID. For more information, see Share files, folders, and drives.

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

The ID of the file.

string permissionId

The ID of the permission.

Returns
Type Description
PermissionsResource.GetRequest

List(string)

Lists a file's or shared drive's permissions. For more information, see Share files, folders, and drives.

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

The ID of the file or shared drive.

Returns
Type Description
PermissionsResource.ListRequest

Update(Permission, string, string)

Updates a permission with patch semantics. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't 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 of the file or shared drive.

string permissionId

The ID of the permission.

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