Class PermissionsResource
The "permissions" collection of methods.
Inheritance
Inherited Members
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.
Declaration
public virtual PermissionsResource.DeleteRequest Delete(string fileId, string permissionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileId | The ID for the file or shared drive. |
System.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 |
---|---|---|
System.String | fileId | The ID for the file or shared drive. |
System.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 |
---|---|---|
System.String | 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.
Declaration
public virtual PermissionsResource.InsertRequest Insert(Permission body, string fileId)
Parameters
Type | Name | Description |
---|---|---|
Permission | body | The body of the request. |
System.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 |
---|---|---|
System.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.
Declaration
public virtual PermissionsResource.PatchRequest Patch(Permission body, string fileId, string permissionId)
Parameters
Type | Name | Description |
---|---|---|
Permission | body | The body of the request. |
System.String | fileId | The ID for the file or shared drive. |
System.String | permissionId | The ID for the permission. |
Returns
Type | Description |
---|---|
PermissionsResource.PatchRequest |
Update(Permission, String, String)
Updates a permission.
Declaration
public virtual PermissionsResource.UpdateRequest Update(Permission body, string fileId, string permissionId)
Parameters
Type | Name | Description |
---|---|---|
Permission | body | The body of the request. |
System.String | fileId | The ID for the file or shared drive. |
System.String | permissionId | The ID for the permission. |
Returns
Type | Description |
---|---|
PermissionsResource.UpdateRequest |