Class PermissionsResource
The "permissions" collection of methods.
Inherited Members
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. Warning: Concurrent permissions operations on the same file are not 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. 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 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.
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.
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. 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 of the file or shared drive. |
string | permissionId | The ID of the permission. |
Returns
Type | Description |
---|---|
PermissionsResource.UpdateRequest |