Class UsersResource.MessagesResource.InsertRequest
Directly inserts a message into only this user's mailbox similar to IMAP APPEND
, bypassing most
scanning and classification. Does not send a message.
Inheritance
UsersResource.MessagesResource.InsertRequest
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class UsersResource.MessagesResource.InsertRequest : GmailBaseServiceRequest<Message>, IClientServiceRequest<Message>, IClientServiceRequest
Constructors
InsertRequest(IClientService, Message, string)
Constructs a new Insert request.
Declaration
public InsertRequest(IClientService service, Message body, string userId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Message | body | |
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 Google Workspace accounts.
Declaration
[RequestParameter("deleted", RequestParameterType.Query)]
public virtual bool? Deleted { get; set; }
Property Value
Type | Description |
---|---|
bool? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
InternalDateSource
Source for Gmail's internal date of the message.
Declaration
[RequestParameter("internalDateSource", RequestParameterType.Query)]
public virtual UsersResource.MessagesResource.InsertRequest.InternalDateSourceEnum? InternalDateSource { get; set; }
Property Value
Type | Description |
---|---|
UsersResource.MessagesResource.InsertRequest.InternalDateSourceEnum? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Insert parameter list.
Declaration
protected override void InitParameters()