Table of Contents

Class UsersResource.MessagesResource.ImportMediaUpload

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

Import media upload which supports resumable upload.

public class UsersResource.MessagesResource.ImportMediaUpload : ResumableUpload<Message, Message>
Inheritance
UsersResource.MessagesResource.ImportMediaUpload

Constructors

ImportMediaUpload(IClientService, Message, string, Stream, string)

Constructs a new Import media upload instance.

public ImportMediaUpload(IClientService service, Message body, string userId, Stream stream, string contentType)

Parameters

service IClientService
body Message
userId 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.MessagesResource.ImportMediaUpload.AltEnum? Alt { get; set; }

Property Value

UsersResource.MessagesResource.ImportMediaUpload.AltEnum?

Callback

JSONP

public virtual string Callback { get; set; }

Property Value

string

Deleted

Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.

public virtual bool? Deleted { get; set; }

Property Value

bool?

Fields

Selector specifying which fields to include in a partial response.

public virtual string Fields { get; set; }

Property Value

string

InternalDateSource

Source for Gmail's internal date of the message.

public virtual UsersResource.MessagesResource.ImportMediaUpload.InternalDateSourceEnum? InternalDateSource { get; set; }

Property Value

UsersResource.MessagesResource.ImportMediaUpload.InternalDateSourceEnum?

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

NeverMarkSpam

Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.

public virtual bool? NeverMarkSpam { get; set; }

Property Value

bool?

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?

ProcessForCalendar

Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.

public virtual bool? ProcessForCalendar { 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.MessagesResource.ImportMediaUpload.XgafvEnum? Xgafv { get; set; }

Property Value

UsersResource.MessagesResource.ImportMediaUpload.XgafvEnum?