gmail  v1
Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest Class Reference

Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message. More...

Inheritance diagram for Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest:
Google.Apis.Gmail.v1.GmailBaseServiceRequest< Google.Apis.Gmail.v1.Data.Message >

Public Types

enum  InternalDateSourceEnum { DateHeader, ReceivedTime }
 Source for Gmail's internal date of the message. More...
 

Public Member Functions

 InsertRequest (Google.Apis.Services.IClientService service, Google.Apis.Gmail.v1.Data.Message body, string userId)
 Constructs a new Insert request. More...
 

Protected Member Functions

override object GetBody ()
 summary>Gets the method name. More...
 
override void InitParameters ()
 Initializes Insert parameter list. More...
 
- Protected Member Functions inherited from Google.Apis.Gmail.v1.GmailBaseServiceRequest< Google.Apis.Gmail.v1.Data.Message >
 GmailBaseServiceRequest (Google.Apis.Services.IClientService service)
 Constructs a new GmailBaseServiceRequest instance. More...
 
override void InitParameters ()
 Initializes Gmail parameter list. More...
 

Properties

virtual string UserId [get]
 The user's email address. The special value me can be used to indicate the authenticated user. More...
 
virtual System.Nullable< bool > Deleted [get, set]
 Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts. More...
 
virtual System.Nullable< InternalDateSourceEnumInternalDateSource [get, set]
 Source for Gmail's internal date of the message. More...
 
override string MethodName [get]
 summary>Gets the HTTP method. More...
 
override string HttpMethod [get]
 summary>Gets the REST path. More...
 
override string RestPath [get]
 
- Properties inherited from Google.Apis.Gmail.v1.GmailBaseServiceRequest< Google.Apis.Gmail.v1.Data.Message >
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...
 

Detailed Description

Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.

Member Enumeration Documentation

◆ InternalDateSourceEnum

Source for Gmail's internal date of the message.

Constructor & Destructor Documentation

◆ InsertRequest()

Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest.InsertRequest ( Google.Apis.Services.IClientService  service,
Google.Apis.Gmail.v1.Data.Message  body,
string  userId 
)
inline

Constructs a new Insert request.

Member Function Documentation

◆ GetBody()

override object Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest.GetBody ( )
inlineprotected

summary>Gets the method name.

◆ InitParameters()

override void Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest.InitParameters ( )
inlineprotected

Initializes Insert parameter list.

Property Documentation

◆ Deleted

virtual System.Nullable<bool> Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest.Deleted
getset

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

[default: false]

◆ HttpMethod

override string Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest.HttpMethod
get

summary>Gets the REST path.

◆ InternalDateSource

virtual System.Nullable<InternalDateSourceEnum> Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest.InternalDateSource
getset

Source for Gmail's internal date of the message.

[default: receivedTime]

◆ MethodName

override string Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest.MethodName
get

summary>Gets the HTTP method.

◆ UserId

virtual string Google.Apis.Gmail.v1.UsersResource.MessagesResource.InsertRequest.UserId
get

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

[default: me]


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