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

Insert media upload which supports resumable upload. More...

Inheritance diagram for Google.Apis.Drive.v2.FilesResource.InsertMediaUpload:

Public Types

enum  AltEnum { AltEnum.Json }
 Data format for the response. More...
 
enum  VisibilityEnum { VisibilityEnum.DEFAULT__, VisibilityEnum.PRIVATE__ }
 The visibility of the new file. This parameter is only relevant when convert=false. More...
 

Public Member Functions

 InsertMediaUpload (Google.Apis.Services.IClientService service, Google.Apis.Drive.v2.Data.File body, System.IO.Stream stream, string contentType)
 Constructs a new Insert 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 > Convert [get, set]
 Whether to convert this file to the corresponding Google Docs format. 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 > Ocr [get, set]
 Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. More...
 
virtual string OcrLanguage [get, set]
 If ocr is true, hints at the language to use. Valid values are BCP 47 codes. More...
 
virtual System.Nullable< bool > Pinned [get, set]
 Whether to pin the head revision of the uploaded file. A file can have a maximum of 200 pinned revisions. 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 string TimedTextLanguage [get, set]
 The language of the timed text. More...
 
virtual string TimedTextTrackName [get, set]
 The timed text track name. More...
 
virtual System.Nullable< bool > UseContentAsIndexableText [get, set]
 Whether to use the content as indexable text. More...
 
virtual System.Nullable< VisibilityEnumVisibility [get, set]
 The visibility of the new file. This parameter is only relevant when convert=false. More...
 

Detailed Description

Insert media upload which supports resumable upload.

Member Enumeration Documentation

◆ AltEnum

Data format for the response.

Enumerator
Json 

Responses with Content-Type of application/json

◆ VisibilityEnum

The visibility of the new file. This parameter is only relevant when convert=false.

Enumerator
DEFAULT__ 

The visibility of the new file is determined by the user's default visibility/sharing policies.

PRIVATE__ 

The new file will be visible to only the owner.

Constructor & Destructor Documentation

◆ InsertMediaUpload()

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

Constructs a new Insert media upload instance.

Property Documentation

◆ Alt

virtual System.Nullable<AltEnum> Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.Alt
getset

Data format for the response.

[default: json]

◆ Convert

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.Convert
getset

Whether to convert this file to the corresponding Google Docs format.

[default: false]

◆ EnforceSingleParent

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.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.v2.FilesResource.InsertMediaUpload.Fields
getset

Selector specifying which fields to include in a partial response.

◆ Key

virtual string Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.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.v2.FilesResource.InsertMediaUpload.OauthToken
getset

OAuth 2.0 token for the current user.

◆ Ocr

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.Ocr
getset

Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

[default: false]

◆ OcrLanguage

virtual string Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.OcrLanguage
getset

If ocr is true, hints at the language to use. Valid values are BCP 47 codes.

◆ Pinned

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.Pinned
getset

Whether to pin the head revision of the uploaded file. A file can have a maximum of 200 pinned revisions.

[default: false]

◆ PrettyPrint

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.PrettyPrint
getset

Returns response with indentations and line breaks.

[default: true]

◆ QuotaUser

virtual string Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.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.v2.FilesResource.InsertMediaUpload.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.v2.FilesResource.InsertMediaUpload.SupportsTeamDrives
getset

Deprecated use supportsAllDrives instead.

[default: false]

◆ TimedTextLanguage

virtual string Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.TimedTextLanguage
getset

The language of the timed text.

◆ TimedTextTrackName

virtual string Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.TimedTextTrackName
getset

The timed text track name.

◆ UseContentAsIndexableText

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.UseContentAsIndexableText
getset

Whether to use the content as indexable text.

[default: false]

◆ UserIp

virtual string Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.UserIp
getset

Deprecated. Please use quotaUser instead.

◆ Visibility

virtual System.Nullable<VisibilityEnum> Google.Apis.Drive.v2.FilesResource.InsertMediaUpload.Visibility
getset

The visibility of the new file. This parameter is only relevant when convert=false.

[default: DEFAULT]


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