gogol-gmail-0.4.0: Google Gmail SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Gmail.Users.Messages.Import

Contents

Description

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.

See: Gmail API Reference for gmail.users.messages.import.

Synopsis

REST Resource

type UsersMessagesImportResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("import" :> (QueryParam "processForCalendar" Bool :> (QueryParam "deleted" Bool :> (QueryParam "neverMarkSpam" Bool :> (QueryParam "internalDateSource" UsersMessagesImportInternalDateSource :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Post '[JSON] Message)))))))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("import" :> (QueryParam "processForCalendar" Bool :> (QueryParam "deleted" Bool :> (QueryParam "neverMarkSpam" Bool :> (QueryParam "internalDateSource" UsersMessagesImportInternalDateSource :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Message :> Post '[JSON] Message)))))))))))))) Source #

A resource alias for gmail.users.messages.import method which the UsersMessagesImport request conforms to.

Creating a Request

usersMessagesImport Source #

Creates a value of UsersMessagesImport with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersMessagesImport Source #

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.

See: usersMessagesImport smart constructor.

Instances
Eq UsersMessagesImport Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

Data UsersMessagesImport Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UsersMessagesImport -> c UsersMessagesImport #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UsersMessagesImport #

toConstr :: UsersMessagesImport -> Constr #

dataTypeOf :: UsersMessagesImport -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UsersMessagesImport) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UsersMessagesImport) #

gmapT :: (forall b. Data b => b -> b) -> UsersMessagesImport -> UsersMessagesImport #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UsersMessagesImport -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UsersMessagesImport -> r #

gmapQ :: (forall d. Data d => d -> u) -> UsersMessagesImport -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UsersMessagesImport -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UsersMessagesImport -> m UsersMessagesImport #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersMessagesImport -> m UsersMessagesImport #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersMessagesImport -> m UsersMessagesImport #

Show UsersMessagesImport Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

Generic UsersMessagesImport Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

Associated Types

type Rep UsersMessagesImport :: Type -> Type #

GoogleRequest UsersMessagesImport Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

Associated Types

type Rs UsersMessagesImport :: Type #

type Scopes UsersMessagesImport :: [Symbol] #

GoogleRequest (MediaUpload UsersMessagesImport) Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

type Rep UsersMessagesImport Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

type Rep UsersMessagesImport = D1 (MetaData "UsersMessagesImport" "Network.Google.Resource.Gmail.Users.Messages.Import" "gogol-gmail-0.4.0-EDJmLuxza63I9QV4rXNgT4" False) (C1 (MetaCons "UsersMessagesImport'" PrefixI True) ((S1 (MetaSel (Just "_umiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Message) :*: (S1 (MetaSel (Just "_umiUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_umiProcessForCalendar") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) :*: (S1 (MetaSel (Just "_umiDeleted") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "_umiNeverMarkSpam") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_umiInternalDateSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UsersMessagesImportInternalDateSource)))))
type Scopes UsersMessagesImport Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

type Scopes UsersMessagesImport = "https://mail.google.com/" ': ("https://www.googleapis.com/auth/gmail.insert" ': ("https://www.googleapis.com/auth/gmail.modify" ': ([] :: [Symbol])))
type Rs UsersMessagesImport Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

type Scopes (MediaUpload UsersMessagesImport) Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

type Rs (MediaUpload UsersMessagesImport) Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Import

Request Lenses

umiPayload :: Lens' UsersMessagesImport Message Source #

Multipart request metadata.

umiUserId :: Lens' UsersMessagesImport Text Source #

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

umiProcessForCalendar :: Lens' UsersMessagesImport Bool Source #

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

umiDeleted :: Lens' UsersMessagesImport Bool Source #

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

umiNeverMarkSpam :: Lens' UsersMessagesImport Bool Source #

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