Table of Contents

Class FilesResource.UpdateRequest

Namespace
Google.Apis.Drive.v3
Assembly
Google.Apis.Drive.v3.dll

Updates a file's metadata and/or content with patch semantics.

public class FilesResource.UpdateRequest : DriveBaseServiceRequest<File>
Inheritance
FilesResource.UpdateRequest
Inherited Members

Constructors

UpdateRequest(IClientService, File, string)

Constructs a new Update request.

public UpdateRequest(IClientService service, File body, string fileId)

Parameters

service IClientService
body File
fileId string

Properties

AddParents

A comma-separated list of parent IDs to add.

public virtual string AddParents { get; set; }

Property Value

string

FileId

The ID of the file.

public virtual string FileId { get; }

Property Value

string

HttpMethod

Gets the HTTP method.

public override string HttpMethod { get; }

Property Value

string

KeepRevisionForever

Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.

public virtual bool? KeepRevisionForever { get; set; }

Property Value

bool?

MethodName

Gets the method name.

public override string MethodName { get; }

Property Value

string

OcrLanguage

A language hint for OCR processing during image import (ISO 639-1 code).

public virtual string OcrLanguage { get; set; }

Property Value

string

RemoveParents

A comma-separated list of parent IDs to remove.

public virtual string RemoveParents { get; set; }

Property Value

string

RestPath

Gets the REST path.

public override string RestPath { get; }

Property Value

string

SupportsAllDrives

Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.

public virtual bool? SupportsAllDrives { get; set; }

Property Value

bool?

SupportsTeamDrives

Deprecated use supportsAllDrives instead.

public virtual bool? SupportsTeamDrives { get; set; }

Property Value

bool?

UseContentAsIndexableText

Whether to use the uploaded content as indexable text.

public virtual bool? UseContentAsIndexableText { get; set; }

Property Value

bool?

Methods

GetBody()

Returns the body of the request.

protected override object GetBody()

Returns

object

InitParameters()

Initializes Update parameter list.

protected override void InitParameters()