drive  v3
Public Member Functions | Protected Member Functions | Properties | List of all members
Google.Apis.Drive.v3.FilesResource.CreateRequest Class Reference

Creates a new file. More...

Inheritance diagram for Google.Apis.Drive.v3.FilesResource.CreateRequest:
Google.Apis.Drive.v3.DriveBaseServiceRequest< Google.Apis.Drive.v3.Data.File >

Public Member Functions

 CreateRequest (Google.Apis.Services.IClientService service, Google.Apis.Drive.v3.Data.File body)
 Constructs a new Create request. More...
 

Protected Member Functions

override object GetBody ()
 summary>Gets the method name. More...
 
override void InitParameters ()
 Initializes Create parameter list. More...
 
- Protected Member Functions inherited from Google.Apis.Drive.v3.DriveBaseServiceRequest< Google.Apis.Drive.v3.Data.File >
 DriveBaseServiceRequest (Google.Apis.Services.IClientService service)
 Constructs a new DriveBaseServiceRequest instance. More...
 
override void InitParameters ()
 Initializes Drive parameter list. More...
 

Properties

virtual System.Nullable< bool > EnforceSingleParent [get, set]
 Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. Requests that specify more than one parent will fail. More...
 
virtual System.Nullable< bool > IgnoreDefaultVisibility [get, set]
 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. More...
 
virtual System.Nullable< bool > KeepRevisionForever [get, set]
 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. More...
 
virtual string OcrLanguage [get, set]
 A language hint for OCR processing during image import (ISO 639-1 code). More...
 
virtual System.Nullable< bool > SupportsAllDrives [get, set]
 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. More...
 
virtual System.Nullable< bool > SupportsTeamDrives [get, set]
 Deprecated use supportsAllDrives instead. More...
 
virtual System.Nullable< bool > UseContentAsIndexableText [get, set]
 Whether to use the uploaded content as indexable text. More...
 
override string MethodName [get]
 summary>Gets the HTTP method. More...
 
override string HttpMethod [get]
 summary>Gets the REST path. More...
 
override string RestPath [get]
 
- Properties inherited from Google.Apis.Drive.v3.DriveBaseServiceRequest< Google.Apis.Drive.v3.Data.File >
virtual System.Nullable< AltEnum > Alt [get, set]
 Data format for the response. More...
 
virtual string Fields [get, set]
 Selector specifying which fields to include in a partial response. More...
 
virtual string Key [get, set]
 API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. More...
 
virtual string OauthToken [get, set]
 OAuth 2.0 token for the current user. More...
 
virtual System.Nullable< bool > PrettyPrint [get, set]
 Returns response with indentations and line breaks. More...
 
virtual string QuotaUser [get, set]
 An opaque string that represents a user for quota purposes. Must not exceed 40 characters. More...
 
virtual string UserIp [get, set]
 Deprecated. Please use quotaUser instead. More...
 

Detailed Description

Creates a new file.

Constructor & Destructor Documentation

◆ CreateRequest()

Google.Apis.Drive.v3.FilesResource.CreateRequest.CreateRequest ( Google.Apis.Services.IClientService  service,
Google.Apis.Drive.v3.Data.File  body 
)
inline

Constructs a new Create request.

Member Function Documentation

◆ GetBody()

override object Google.Apis.Drive.v3.FilesResource.CreateRequest.GetBody ( )
inlineprotected

summary>Gets the method name.

◆ InitParameters()

override void Google.Apis.Drive.v3.FilesResource.CreateRequest.InitParameters ( )
inlineprotected

Initializes Create parameter list.

Property Documentation

◆ EnforceSingleParent

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateRequest.EnforceSingleParent
getset

Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. Requests that specify more than one parent will fail.

[default: false]

◆ HttpMethod

override string Google.Apis.Drive.v3.FilesResource.CreateRequest.HttpMethod
get

summary>Gets the REST path.

◆ IgnoreDefaultVisibility

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateRequest.IgnoreDefaultVisibility
getset

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.

[default: false]

◆ KeepRevisionForever

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateRequest.KeepRevisionForever
getset

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.

[default: false]

◆ MethodName

override string Google.Apis.Drive.v3.FilesResource.CreateRequest.MethodName
get

summary>Gets the HTTP method.

◆ OcrLanguage

virtual string Google.Apis.Drive.v3.FilesResource.CreateRequest.OcrLanguage
getset

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

◆ SupportsAllDrives

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateRequest.SupportsAllDrives
getset

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.

[default: false]

◆ SupportsTeamDrives

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateRequest.SupportsTeamDrives
getset

Deprecated use supportsAllDrives instead.

[default: false]

◆ UseContentAsIndexableText

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateRequest.UseContentAsIndexableText
getset

Whether to use the uploaded content as indexable text.

[default: false]


The documentation for this class was generated from the following file: