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

Create media upload which supports resumable upload. More...

Inheritance diagram for Google.Apis.Drive.v3.FilesResource.CreateMediaUpload:

Public Types

enum  AltEnum { AltEnum.Json }
 Data format for the response. More...
 

Public Member Functions

 CreateMediaUpload (Google.Apis.Services.IClientService service, Google.Apis.Drive.v3.Data.File body, System.IO.Stream stream, string contentType)
 Constructs a new Create media upload instance. More...
 

Properties

virtual System.Nullable< AltEnumAlt [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...
 
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...
 

Detailed Description

Create media upload which supports resumable upload.

Member Enumeration Documentation

◆ AltEnum

Data format for the response.

Enumerator
Json 

Responses with Content-Type of application/json

Constructor & Destructor Documentation

◆ CreateMediaUpload()

Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.CreateMediaUpload ( Google.Apis.Services.IClientService  service,
Google.Apis.Drive.v3.Data.File  body,
System.IO.Stream  stream,
string  contentType 
)
inline

Constructs a new Create media upload instance.

Property Documentation

◆ Alt

virtual System.Nullable<AltEnum> Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.Alt
getset

Data format for the response.

[default: json]

◆ EnforceSingleParent

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.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]

◆ Fields

virtual string Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.Fields
getset

Selector specifying which fields to include in a partial response.

◆ IgnoreDefaultVisibility

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.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.CreateMediaUpload.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]

◆ Key

virtual string Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.Key
getset

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.

◆ OauthToken

virtual string Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.OauthToken
getset

OAuth 2.0 token for the current user.

◆ OcrLanguage

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

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

◆ PrettyPrint

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.PrettyPrint
getset

Returns response with indentations and line breaks.

[default: true]

◆ QuotaUser

virtual string Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.QuotaUser
getset

An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

◆ SupportsAllDrives

virtual System.Nullable<bool> Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.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.CreateMediaUpload.SupportsTeamDrives
getset

Deprecated use supportsAllDrives instead.

[default: false]

◆ UseContentAsIndexableText

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

Whether to use the uploaded content as indexable text.

[default: false]

◆ UserIp

virtual string Google.Apis.Drive.v3.FilesResource.CreateMediaUpload.UserIp
getset

Deprecated. Please use quotaUser instead.


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