Class RevisionsResource
The "revisions" collection of methods.
Inherited Members
Namespace: Google.Apis.Drive.v2
Assembly: Google.Apis.Drive.v2.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, 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 specific revision.
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. Important: The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.
Declaration
public virtual RevisionsResource.ListRequest List(string fileId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileId | The ID of the file. |
Returns
| Type | Description |
|---|---|
| RevisionsResource.ListRequest |
Patch(Revision, string, string)
Updates a revision.
Declaration
public virtual RevisionsResource.PatchRequest Patch(Revision body, string fileId, string revisionId)
Parameters
| Type | Name | Description |
|---|---|---|
| Revision | body | The body of the request. |
| string | fileId | The ID for the file. |
| string | revisionId | The ID for the revision. |
Returns
| Type | Description |
|---|---|
| RevisionsResource.PatchRequest |
Update(Revision, string, string)
Updates a revision.
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 for the file. |
| string | revisionId | The ID for the revision. |
Returns
| Type | Description |
|---|---|
| RevisionsResource.UpdateRequest |