Class FilesResource.UpdateRequest
Updates a file's metadata and/or content. This method supports 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
Properties
AddParents
A comma-separated list of parent IDs to add.
public virtual string AddParents { get; set; }
Property Value
EnforceSingleParent
Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item is removed from all current folders and placed in the requested folder. Other requests that increase the number of parents fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.
public virtual bool? EnforceSingleParent { get; set; }
Property Value
- bool?
FileId
The ID of the file.
public virtual string FileId { get; }
Property Value
HttpMethod
Gets the HTTP method.
public override string HttpMethod { get; }
Property Value
IncludePermissionsForView
Specifies which additional view's permissions to include in the response. Only 'published' is supported.
public virtual string IncludePermissionsForView { get; set; }
Property Value
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
OcrLanguage
A language hint for OCR processing during image import (ISO 639-1 code).
public virtual string OcrLanguage { get; set; }
Property Value
RemoveParents
A comma-separated list of parent IDs to remove.
public virtual string RemoveParents { get; set; }
Property Value
RestPath
Gets the REST path.
public override string RestPath { get; }
Property Value
SupportsAllDrives
Whether the requesting application supports both My Drives and 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
InitParameters()
Initializes Update parameter list.
protected override void InitParameters()