Class FilesResource.CopyRequest
Creates a copy of a file and applies any requested updates with patch semantics.
public class FilesResource.CopyRequest : DriveBaseServiceRequest<File>
- Inheritance
-
FilesResource.CopyRequest
- Inherited Members
Constructors
CopyRequest(IClientService, File, string)
Constructs a new Copy request.
public CopyRequest(IClientService service, File body, string fileId)
Parameters
Properties
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
IgnoreDefaultVisibility
Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
public virtual bool? IgnoreDefaultVisibility { get; set; }
Property Value
- bool?
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
RestPath
Gets the REST path.
public override string RestPath { get; }
Property Value
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?
Methods
GetBody()
Returns the body of the request.
protected override object GetBody()
Returns
InitParameters()
Initializes Copy parameter list.
protected override void InitParameters()