Class FilesResource.CreateRequest
Creates a new file.
public class FilesResource.CreateRequest : DriveBaseServiceRequest<File>
- Inheritance
-
FilesResource.CreateRequest
- Inherited Members
Constructors
CreateRequest(IClientService, File)
Constructs a new Create request.
public CreateRequest(IClientService service, File body)
Parameters
service
IClientServicebody
File
Properties
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?
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 Create parameter list.
protected override void InitParameters()