Class UsersResource.MessagesResource.ImportRequest
Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.
Inheritance
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class ImportRequest : GmailBaseServiceRequest<Message>, IClientServiceRequest<Message>, IClientServiceRequest
Constructors
ImportRequest(IClientService, Message, String)
Constructs a new Import request.
Declaration
public ImportRequest(IClientService service, Message body, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Message | body | |
| System.String | userId |
Properties
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.
Declaration
[RequestParameter("deleted", RequestParameterType.Query)]
public virtual bool? Deleted { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
InternalDateSource
Source for Gmail's internal date of the message.
Declaration
[RequestParameter("internalDateSource", RequestParameterType.Query)]
public virtual UsersResource.MessagesResource.ImportRequest.InternalDateSourceEnum? InternalDateSource { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<UsersResource.MessagesResource.ImportRequest.InternalDateSourceEnum> |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
NeverMarkSpam
Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.
Declaration
[RequestParameter("neverMarkSpam", RequestParameterType.Query)]
public virtual bool? NeverMarkSpam { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
ProcessForCalendar
Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.
Declaration
[RequestParameter("processForCalendar", RequestParameterType.Query)]
public virtual bool? ProcessForCalendar { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
UserId
The user's email address. The special value me can be used to indicate the authenticated user.
Declaration
[RequestParameter("userId", RequestParameterType.Path)]
public virtual string UserId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
InitParameters()
Initializes Import parameter list.
Declaration
protected override void InitParameters()