public class GmailusersmessagesimportOperation
extends com.mulesoft.connectivity.rest.commons.api.operation.BaseRestOperation
| Constructor and Description |
|---|
GmailusersmessagesimportOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
gmailusersmessagesimport(com.mulesoft.connectivity.rest.commons.api.configuration.RestConfiguration config,
com.mulesoft.connectivity.rest.commons.api.connection.RestConnection connection,
String userIdUriParam,
InternalDateSourceQueryParamEnum internalDateSourceQueryParam,
boolean neverMarkSpamQueryParam,
boolean processForCalendarQueryParam,
boolean deletedQueryParam,
org.mule.runtime.api.metadata.TypedValue<InputStream> gmailusersmessagesimportBody,
com.mulesoft.connectivity.rest.commons.api.operation.EntityRequestParameters parameters,
com.mulesoft.connectivity.rest.commons.api.operation.ConfigurationOverrides overrides,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> callback)
Imports a message into only this user's mailbox, with standard email delivery scanning and
classification similar to receiving via SMTP.
|
addParameterToBindingContext, doRequest, doVoidRequest, getDefaultResponseMediaType, getExpressionLanguage, getRequestBindings, getRequestBodyDataType, getRequestBuilderWithBindings, getResponseBindings, resolveDefaultResponseMediaType, withMultipart@Throws(value=com.mulesoft.connectivity.rest.commons.api.error.RequestErrorTypeProvider.class) @DisplayName(value="Import Message") @Summary(value="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. Note: This function doesn\'t trigger forwarding rules or filters set up by the user.") @MediaType(value="application/json") @OutputResolver(output=GmailusersmessagesimportOutputMetadataResolver.class) public void gmailusersmessagesimport(@Config com.mulesoft.connectivity.rest.commons.api.configuration.RestConfiguration config, @Connection com.mulesoft.connectivity.rest.commons.api.connection.RestConnection connection, @DisplayName(value="User Id") @Summary(value="The user\'s email address. The special value `me` can be used to indicate the authenticated user.") String userIdUriParam, @Optional @DisplayName(value="Internal Date Source") @Summary(value="Source for Gmail\'s internal date of the message.") InternalDateSourceQueryParamEnum internalDateSourceQueryParam, @Optional @DisplayName(value="Never Mark Spam") @Summary(value="Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.") boolean neverMarkSpamQueryParam, @Optional @DisplayName(value="Process For Calendar") @Summary(value="Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.") boolean processForCalendarQueryParam, @Optional @DisplayName(value="deleted") @Summary(value="Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.") boolean deletedQueryParam, @Content(primary=true) @DisplayName(value="Body") @Summary(value="An email message.") @TypeResolver(value=GmailusersmessagesimportInputMetadataResolver.class) org.mule.runtime.api.metadata.TypedValue<InputStream> gmailusersmessagesimportBody, @ParameterGroup(name="Request Parameters") com.mulesoft.connectivity.rest.commons.api.operation.EntityRequestParameters parameters, @ParameterGroup(name="Connector Overrides") com.mulesoft.connectivity.rest.commons.api.operation.ConfigurationOverrides overrides, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper, org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> callback)
This operation makes an HTTP POST request to the /gmail/v1/users/{userId}/messages/import endpoint
config - the configuration to useconnection - the connection to useuserIdUriParam - The user's email address. The special value `me` can be used to indicate
the authenticated user.internalDateSourceQueryParam - Source for Gmail's internal date of the message.neverMarkSpamQueryParam - Ignore the Gmail spam classifier decision and never mark this
email as SPAM in the mailbox.processForCalendarQueryParam - Process calendar invites in the email and add any extracted
meetings to the Google Calendar for this user.deletedQueryParam - Mark the email as permanently deleted (not TRASH) and only visible in
Google Vault to a Vault administrator. Only used for G Suite accounts.gmailusersmessagesimportBody - the content to useparameters - the EntityRequestParametersoverrides - the ConfigurationOverridesstreamingHelper - the StreamingHelpercallback - the operation's CompletionCallbackCopyright © 2023 MuleSoft, Inc.. All rights reserved.