Table of Contents

Class UsersResource.DraftsResource.UpdateMediaUpload

Namespace
Google.Apis.Gmail.v1
Assembly
Google.Apis.Gmail.v1.dll

Update media upload which supports resumable upload.

public class UsersResource.DraftsResource.UpdateMediaUpload : ResumableUpload<Draft, Draft>
Inheritance
UsersResource.DraftsResource.UpdateMediaUpload

Constructors

UpdateMediaUpload(IClientService, Draft, string, string, Stream, string)

Constructs a new Update media upload instance.

public UpdateMediaUpload(IClientService service, Draft body, string userId, string id, Stream stream, string contentType)

Parameters

service IClientService
body Draft
userId string
id string
stream Stream
contentType string

Remarks

Considerations regarding stream:

  • If stream is seekable, then the stream position will be reset to 0 before reading commences. If stream is not seekable, then it will be read from its current position.
  • Caller is responsible for maintaining the stream open until the upload is completed.
  • Caller is responsible for closing the stream.

Properties

AccessToken

OAuth access token.

public virtual string AccessToken { get; set; }

Property Value

string

Alt

Data format for response.

public virtual UsersResource.DraftsResource.UpdateMediaUpload.AltEnum? Alt { get; set; }

Property Value

UsersResource.DraftsResource.UpdateMediaUpload.AltEnum?

Callback

JSONP

public virtual string Callback { get; set; }

Property Value

string

Fields

Selector specifying which fields to include in a partial response.

public virtual string Fields { get; set; }

Property Value

string

Id

The ID of the draft to update.

public virtual string Id { get; }

Property Value

string

Key

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.

public virtual string Key { get; set; }

Property Value

string

OauthToken

OAuth 2.0 token for the current user.

public virtual string OauthToken { get; set; }

Property Value

string

PrettyPrint

Returns response with indentations and line breaks.

public virtual bool? PrettyPrint { get; set; }

Property Value

bool?

QuotaUser

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

public virtual string QuotaUser { get; set; }

Property Value

string

UploadProtocol

Upload protocol for media (e.g. "raw", "multipart").

public virtual string UploadProtocol { get; set; }

Property Value

string

UploadType

Legacy upload protocol for media (e.g. "media", "multipart").

public virtual string UploadType { get; set; }

Property Value

string

UserId

The user's email address. The special value me can be used to indicate the authenticated user.

public virtual string UserId { get; }

Property Value

string

Xgafv

V1 error format.

public virtual UsersResource.DraftsResource.UpdateMediaUpload.XgafvEnum? Xgafv { get; set; }

Property Value

UsersResource.DraftsResource.UpdateMediaUpload.XgafvEnum?