gogol-admin-emailmigration-0.3.0: Google Email Migration API v2 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.EmailMigration.Mail.Insert

Contents

Description

Insert Mail into Google's Gmail backends

See: Email Migration API v2 Reference for emailMigration.mail.insert.

Synopsis

REST Resource

type MailInsertResource = ("email" :> ("v2" :> ("users" :> (Capture "userKey" Text :> ("mail" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MailItem :> Post '[JSON] ()))))))) :<|> ("upload" :> ("email" :> ("v2" :> ("users" :> (Capture "userKey" Text :> ("mail" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] MailItem :> Post '[JSON] ()))))))))) Source #

A resource alias for emailMigration.mail.insert method which the MailInsert request conforms to.

Creating a Request

mailInsert Source #

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

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

data MailInsert Source #

Insert Mail into Google's Gmail backends

See: mailInsert smart constructor.

Instances

Eq MailInsert Source # 
Data MailInsert Source # 

Methods

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

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

toConstr :: MailInsert -> Constr #

dataTypeOf :: MailInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MailInsert Source # 
Generic MailInsert Source # 

Associated Types

type Rep MailInsert :: * -> * #

GoogleRequest MailInsert Source # 

Associated Types

type Rs MailInsert :: * #

type Scopes MailInsert :: [Symbol] #

GoogleRequest (MediaUpload MailInsert) Source # 
type Rep MailInsert Source # 
type Rep MailInsert = D1 (MetaData "MailInsert" "Network.Google.Resource.EmailMigration.Mail.Insert" "gogol-admin-emailmigration-0.3.0-DJFZZubDFnLHKHrqJ4bl17" False) (C1 (MetaCons "MailInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_miPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MailItem)) (S1 (MetaSel (Just Symbol "_miUserKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes MailInsert Source # 
type Scopes MailInsert = (:) Symbol "https://www.googleapis.com/auth/email.migration" ([] Symbol)
type Rs MailInsert Source # 
type Rs MailInsert = ()
type Scopes (MediaUpload MailInsert) Source # 
type Rs (MediaUpload MailInsert) Source # 

Request Lenses

miPayload :: Lens' MailInsert MailItem Source #

Multipart request metadata.

miUserKey :: Lens' MailInsert Text Source #

The email or immutable id of the user