drive
v2
|
Update media upload which supports resumable upload. More...
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< 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... | |
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< ModifiedDateBehaviorEnum > | ModifiedDateBehavior [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... | |
Update media upload which supports resumable upload.
Data format for the response.
Enumerator | |
---|---|
Json | Responses with Content-Type of application/json |
Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.
|
inline |
Constructs a new Update media upload instance.
|
getset |
Comma-separated list of parent IDs to add.
|
getset |
Data format for the response.
[default: json]
|
getset |
This parameter is deprecated and has no function.
[default: false]
|
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]
|
getset |
Selector specifying which fields to include in a partial response.
|
get |
The ID of the file to update.
|
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.
|
getset |
Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.
|
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]
|
getset |
OAuth 2.0 token for the current user.
|
getset |
Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
[default: false]
|
getset |
If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
|
getset |
Whether to pin the new revision. A file can have a maximum of 200 pinned revisions.
[default: false]
|
getset |
Returns response with indentations and line breaks.
[default: true]
|
getset |
An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
getset |
Comma-separated list of parent IDs to remove.
|
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]
|
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]
|
getset |
Deprecated use supportsAllDrives instead.
[default: false]
|
getset |
The language of the timed text.
|
getset |
The timed text track name.
|
getset |
Whether to update the view date after successfully updating the file.
[default: true]
|
getset |
Whether to use the content as indexable text.
[default: false]
|
getset |
Deprecated. Please use quotaUser instead.