Class RevisionsResource
The "revisions" collection of methods.
Inherited Members
Namespace: Google.Apis.Drive.v3
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class RevisionsResource
Constructors
RevisionsResource(IClientService)
Constructs a new resource.
Declaration
public RevisionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.
Declaration
public virtual RevisionsResource.DeleteRequest Delete(string fileId, string revisionId)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
string | revisionId | The ID of the revision. |
Returns
Type | Description |
---|---|
RevisionsResource.DeleteRequest |
Get(string, string)
Gets a revision's metadata or content by ID.
Declaration
public virtual RevisionsResource.GetRequest Get(string fileId, string revisionId)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
string | revisionId | The ID of the revision. |
Returns
Type | Description |
---|---|
RevisionsResource.GetRequest |
List(string)
Lists a file's revisions.
Declaration
public virtual RevisionsResource.ListRequest List(string fileId)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
Returns
Type | Description |
---|---|
RevisionsResource.ListRequest |
Update(Revision, string, string)
Updates a revision with patch semantics.
Declaration
public virtual RevisionsResource.UpdateRequest Update(Revision body, string fileId, string revisionId)
Parameters
Type | Name | Description |
---|---|---|
Revision | body | The body of the request. |
string | fileId | The ID of the file. |
string | revisionId | The ID of the revision. |
Returns
Type | Description |
---|---|
RevisionsResource.UpdateRequest |