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

Update media upload which supports resumable upload. More...

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

Public Types

enum  AltEnum { AltEnum.Json }
 Data format for the response. More...
 
enum  ModifiedDateBehaviorEnum {
  ModifiedDateBehaviorEnum.FromBody, ModifiedDateBehaviorEnum.FromBodyIfNeeded, ModifiedDateBehaviorEnum.FromBodyOrNow, ModifiedDateBehaviorEnum.NoChange,
  ModifiedDateBehaviorEnum.Now, ModifiedDateBehaviorEnum.NowIfNeeded
}
 Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate. More...
 

Public Member Functions

 UpdateMediaUpload (Google.Apis.Services.IClientService service, Google.Apis.Drive.v2.Data.File body, string fileId, System.IO.Stream stream, string contentType)
 Constructs a new Update 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 string FileId [get]
 The ID of the file to update. More...
 
virtual string AddParents [get, set]
 Comma-separated list of parent IDs to add. More...
 
virtual System.Nullable< bool > Convert [get, set]
 This parameter is deprecated and has no function. 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. If the item's owner makes a request to add a single parent, the item will be removed from all current folders and placed in the requested folder. Other requests that increase the number of parents will fail, except when the canAddMyDriveParent file capability is true and a single parent is being added. More...
 
virtual System.Nullable< ModifiedDateBehaviorEnumModifiedDateBehavior [get, set]
 Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate. More...
 
virtual System.Nullable< bool > NewRevision [get, set]
 Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the Drive Help Center. 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 new revision. A file can have a maximum of 200 pinned revisions. More...
 
virtual string RemoveParents [get, set]
 Comma-separated list of parent IDs to remove. More...
 
virtual System.Nullable< bool > SetModifiedDate [get, set]
 Whether to set the modified date using the value supplied in the request body. Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow, and false is equivalent to modifiedDateBehavior=now. To prevent any changes to the modified date set modifiedDateBehavior=noChange. 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 > UpdateViewedDate [get, set]
 Whether to update the view date after successfully updating the file. More...
 
virtual System.Nullable< bool > UseContentAsIndexableText [get, set]
 Whether to use the content as indexable text. More...
 

Detailed Description

Update media upload which supports resumable upload.

Member Enumeration Documentation

◆ AltEnum

Data format for the response.

Enumerator
Json 

Responses with Content-Type of application/json

◆ ModifiedDateBehaviorEnum

Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.

Enumerator
FromBody 

Set modifiedDate to the value provided in the body of the request. No change if no value was provided.

FromBodyIfNeeded 

Set modifiedDate to the value provided in the body of the request depending on other contents of the update.

FromBodyOrNow 

Set modifiedDate to the value provided in the body of the request, or to the current time if no value was provided.

NoChange 

Maintain the previous value of modifiedDate.

Now 

Set modifiedDate to the current time.

NowIfNeeded 

Set modifiedDate to the current time depending on contents of the update.

Constructor & Destructor Documentation

◆ UpdateMediaUpload()

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

Constructs a new Update media upload instance.

Property Documentation

◆ AddParents

virtual string Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.AddParents
getset

Comma-separated list of parent IDs to add.

◆ Alt

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

Data format for the response.

[default: json]

◆ Convert

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

This parameter is deprecated and has no function.

[default: false]

◆ EnforceSingleParent

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.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. If the item's owner makes a request to add a single parent, the item will be removed from all current folders and placed in the requested folder. Other requests that increase the number of parents will fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.

[default: false]

◆ Fields

virtual string Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.Fields
getset

Selector specifying which fields to include in a partial response.

◆ FileId

virtual string Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.FileId
get

The ID of the file to update.

◆ Key

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

◆ ModifiedDateBehavior

virtual System.Nullable<ModifiedDateBehaviorEnum> Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.ModifiedDateBehavior
getset

Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.

◆ NewRevision

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.NewRevision
getset

Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the Drive Help Center.

[default: true]

◆ OauthToken

virtual string Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.OauthToken
getset

OAuth 2.0 token for the current user.

◆ Ocr

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

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

[default: false]

◆ OcrLanguage

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

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

[default: false]

◆ PrettyPrint

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

Returns response with indentations and line breaks.

[default: true]

◆ QuotaUser

virtual string Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.QuotaUser
getset

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

◆ RemoveParents

virtual string Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.RemoveParents
getset

Comma-separated list of parent IDs to remove.

◆ SetModifiedDate

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.SetModifiedDate
getset

Whether to set the modified date using the value supplied in the request body. Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow, and false is equivalent to modifiedDateBehavior=now. To prevent any changes to the modified date set modifiedDateBehavior=noChange.

[default: false]

◆ SupportsAllDrives

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

Deprecated use supportsAllDrives instead.

[default: false]

◆ TimedTextLanguage

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

The language of the timed text.

◆ TimedTextTrackName

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

The timed text track name.

◆ UpdateViewedDate

virtual System.Nullable<bool> Google.Apis.Drive.v2.FilesResource.UpdateMediaUpload.UpdateViewedDate
getset

Whether to update the view date after successfully updating the file.

[default: true]

◆ UseContentAsIndexableText

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

Whether to use the content as indexable text.

[default: false]

◆ UserIp

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

Deprecated. Please use quotaUser instead.


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