Table of Contents

Class FilesResource.CopyRequest

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

Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied.

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

service IClientService
body File
fileId string

Properties

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. Requests that specify more than one parent fail.

public virtual bool? EnforceSingleParent { get; set; }

Property Value

bool?

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

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?

IncludePermissionsForView

Specifies which additional view's permissions to include in the response. Only 'published' is supported.

public virtual string IncludePermissionsForView { get; set; }

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

RestPath

Gets the REST path.

public override string RestPath { get; }

Property Value

string

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?

Methods

GetBody()

Returns the body of the request.

protected override object GetBody()

Returns

object

InitParameters()

Initializes Copy parameter list.

protected override void InitParameters()