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.EmailMigration

Contents

Description

Email Migration API lets you migrate emails of users to Google backends.

See: Email Migration API v2 Reference

Synopsis

Service Configuration

emailMigrationService :: ServiceConfig Source #

Default request referring to version email_migration_v2 of the Email Migration API v2. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

emailMigrationScope :: Proxy '["https://www.googleapis.com/auth/email.migration"] Source #

Manage email messages of users on your domain

API Declaration

type EmailMigrationAPI = MailInsertResource Source #

Represents the entirety of the methods and resources available for the Email Migration API v2 service.

Resources

emailMigration.mail.insert

Types

MailItem

data MailItem Source #

JSON template for MailItem object in Email Migration API.

See: mailItem smart constructor.

Instances

Eq MailItem Source # 
Data MailItem Source # 

Methods

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

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

toConstr :: MailItem -> Constr #

dataTypeOf :: MailItem -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MailItem Source # 
Generic MailItem Source # 

Associated Types

type Rep MailItem :: * -> * #

Methods

from :: MailItem -> Rep MailItem x #

to :: Rep MailItem x -> MailItem #

ToJSON MailItem Source # 
FromJSON MailItem Source # 
type Rep MailItem Source # 

mailItem :: MailItem Source #

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

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

miIsDeleted :: Lens' MailItem (Maybe Bool) Source #

Boolean indicating if the mail is deleted (used in Vault)

miIsDraft :: Lens' MailItem (Maybe Bool) Source #

Boolean indicating if the mail is draft

miIsStarred :: Lens' MailItem (Maybe Bool) Source #

Boolean indicating if the mail is starred

miKind :: Lens' MailItem Text Source #

Kind of resource this is.

miIsUnread :: Lens' MailItem (Maybe Bool) Source #

Boolean indicating if the mail is unread

miLabels :: Lens' MailItem [Text] Source #

List of labels (strings)

miIsInbox :: Lens' MailItem (Maybe Bool) Source #

Boolean indicating if the mail is in inbox

miIsTrash :: Lens' MailItem (Maybe Bool) Source #

Boolean indicating if the mail is in trash

miIsSent :: Lens' MailItem (Maybe Bool) Source #

Boolean indicating if the mail is in 'sent mails'