gogol-gmail-0.3.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.Gmail

Contents

Description

Access Gmail mailboxes including sending user email.

See: Gmail API Reference

Synopsis

Service Configuration

gmailService :: ServiceConfig #

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

OAuth Scopes

gmailSettingsBasicScope :: Proxy '["https://www.googleapis.com/auth/gmail.settings.basic"] #

Manage your basic mail settings

mailGoogleComScope :: Proxy '["https://mail.google.com/"] #

View and manage your mail

gmailModifyScope :: Proxy '["https://www.googleapis.com/auth/gmail.modify"] #

View and modify but not delete your email

gmailMetadataScope :: Proxy '["https://www.googleapis.com/auth/gmail.metadata"] #

View your email message metadata such as labels and headers, but not the email body

gmailLabelsScope :: Proxy '["https://www.googleapis.com/auth/gmail.labels"] #

Manage mailbox labels

gmailSettingsSharingScope :: Proxy '["https://www.googleapis.com/auth/gmail.settings.sharing"] #

Manage your sensitive mail settings, including who can manage your mail

gmailSendScope :: Proxy '["https://www.googleapis.com/auth/gmail.send"] #

Send email on your behalf

gmailInsertScope :: Proxy '["https://www.googleapis.com/auth/gmail.insert"] #

Insert mail into your mailbox

gmailComposeScope :: Proxy '["https://www.googleapis.com/auth/gmail.compose"] #

Manage drafts and send emails

gmailReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/gmail.readonly"] #

View your emails messages and settings

API Declaration

type GmailAPI = UsersHistoryListResource :<|> (UsersSettingsForwardingAddressesListResource :<|> (UsersSettingsForwardingAddressesGetResource :<|> (UsersSettingsForwardingAddressesCreateResource :<|> (UsersSettingsForwardingAddressesDeleteResource :<|> (UsersSettingsFiltersListResource :<|> (UsersSettingsFiltersGetResource :<|> (UsersSettingsFiltersCreateResource :<|> (UsersSettingsFiltersDeleteResource :<|> (UsersSettingsSendAsVerifyResource :<|> (UsersSettingsSendAsListResource :<|> (UsersSettingsSendAsPatchResource :<|> (UsersSettingsSendAsGetResource :<|> (UsersSettingsSendAsCreateResource :<|> (UsersSettingsSendAsDeleteResource :<|> (UsersSettingsSendAsUpdateResource :<|> (UsersSettingsUpdateImapResource :<|> (UsersSettingsGetVacationResource :<|> (UsersSettingsGetAutoForwardingResource :<|> (UsersSettingsUpdateAutoForwardingResource :<|> (UsersSettingsUpdateVacationResource :<|> (UsersSettingsGetImapResource :<|> (UsersSettingsUpdatePopResource :<|> (UsersSettingsGetPopResource :<|> (UsersDraftsListResource :<|> (UsersDraftsGetResource :<|> (UsersDraftsCreateResource :<|> (UsersDraftsSendResource :<|> (UsersDraftsDeleteResource :<|> (UsersDraftsUpdateResource :<|> (UsersLabelsListResource :<|> (UsersLabelsPatchResource :<|> (UsersLabelsGetResource :<|> (UsersLabelsCreateResource :<|> (UsersLabelsDeleteResource :<|> (UsersLabelsUpdateResource :<|> (UsersThreadsListResource :<|> (UsersThreadsGetResource :<|> (UsersThreadsTrashResource :<|> (UsersThreadsUntrashResource :<|> (UsersThreadsModifyResource :<|> (UsersThreadsDeleteResource :<|> (UsersMessagesAttachmentsGetResource :<|> (UsersMessagesInsertResource :<|> (UsersMessagesListResource :<|> (UsersMessagesGetResource :<|> (UsersMessagesTrashResource :<|> (UsersMessagesSendResource :<|> (UsersMessagesBatchModifyResource :<|> (UsersMessagesUntrashResource :<|> (UsersMessagesImportResource :<|> (UsersMessagesBatchDeleteResource :<|> (UsersMessagesModifyResource :<|> (UsersMessagesDeleteResource :<|> (UsersGetProFileResource :<|> (UsersStopResource :<|> UsersWatchResource))))))))))))))))))))))))))))))))))))))))))))))))))))))) #

Represents the entirety of the methods and resources available for the Gmail API service.

Resources

gmail.users.drafts.create

gmail.users.drafts.delete

gmail.users.drafts.get

gmail.users.drafts.list

gmail.users.drafts.send

gmail.users.drafts.update

gmail.users.getProfile

gmail.users.history.list

gmail.users.labels.create

gmail.users.labels.delete

gmail.users.labels.get

gmail.users.labels.list

gmail.users.labels.patch

gmail.users.labels.update

gmail.users.messages.attachments.get

gmail.users.messages.batchDelete

gmail.users.messages.batchModify

gmail.users.messages.delete

gmail.users.messages.get

gmail.users.messages.import

gmail.users.messages.insert

gmail.users.messages.list

gmail.users.messages.modify

gmail.users.messages.send

gmail.users.messages.trash

gmail.users.messages.untrash

gmail.users.settings.filters.create

gmail.users.settings.filters.delete

gmail.users.settings.filters.get

gmail.users.settings.filters.list

gmail.users.settings.forwardingAddresses.create

gmail.users.settings.forwardingAddresses.delete

gmail.users.settings.forwardingAddresses.get

gmail.users.settings.forwardingAddresses.list

gmail.users.settings.getAutoForwarding

gmail.users.settings.getImap

gmail.users.settings.getPop

gmail.users.settings.getVacation

gmail.users.settings.sendAs.create

gmail.users.settings.sendAs.delete

gmail.users.settings.sendAs.get

gmail.users.settings.sendAs.list

gmail.users.settings.sendAs.patch

gmail.users.settings.sendAs.update

gmail.users.settings.sendAs.verify

gmail.users.settings.updateAutoForwarding

gmail.users.settings.updateImap

gmail.users.settings.updatePop

gmail.users.settings.updateVacation

gmail.users.stop

gmail.users.threads.delete

gmail.users.threads.get

gmail.users.threads.list

gmail.users.threads.modify

gmail.users.threads.trash

gmail.users.threads.untrash

gmail.users.watch

Types

BatchDeleteMessagesRequest

data BatchDeleteMessagesRequest #

Instances

Eq BatchDeleteMessagesRequest # 
Data BatchDeleteMessagesRequest # 

Methods

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

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

toConstr :: BatchDeleteMessagesRequest -> Constr #

dataTypeOf :: BatchDeleteMessagesRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BatchDeleteMessagesRequest # 
Generic BatchDeleteMessagesRequest # 
ToJSON BatchDeleteMessagesRequest # 
FromJSON BatchDeleteMessagesRequest # 
type Rep BatchDeleteMessagesRequest # 
type Rep BatchDeleteMessagesRequest = D1 (MetaData "BatchDeleteMessagesRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" True) (C1 (MetaCons "BatchDeleteMessagesRequest'" PrefixI True) (S1 (MetaSel (Just Symbol "_bdmrIds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Text]))))

batchDeleteMessagesRequest :: BatchDeleteMessagesRequest #

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

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

bdmrIds :: Lens' BatchDeleteMessagesRequest [Text] #

The IDs of the messages to delete.

FilterCriteriaSizeComparison

data FilterCriteriaSizeComparison #

How the message size in bytes should be in relation to the size field.

Constructors

Larger
larger
Smaller
smaller
Unspecified
unspecified

Instances

Enum FilterCriteriaSizeComparison # 
Eq FilterCriteriaSizeComparison # 
Data FilterCriteriaSizeComparison # 

Methods

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

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

toConstr :: FilterCriteriaSizeComparison -> Constr #

dataTypeOf :: FilterCriteriaSizeComparison -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord FilterCriteriaSizeComparison # 
Read FilterCriteriaSizeComparison # 
Show FilterCriteriaSizeComparison # 
Generic FilterCriteriaSizeComparison # 
Hashable FilterCriteriaSizeComparison # 
ToJSON FilterCriteriaSizeComparison # 
FromJSON FilterCriteriaSizeComparison # 
FromHttpApiData FilterCriteriaSizeComparison # 
ToHttpApiData FilterCriteriaSizeComparison # 
type Rep FilterCriteriaSizeComparison # 
type Rep FilterCriteriaSizeComparison = D1 (MetaData "FilterCriteriaSizeComparison" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "Larger" PrefixI False) U1) ((:+:) (C1 (MetaCons "Smaller" PrefixI False) U1) (C1 (MetaCons "Unspecified" PrefixI False) U1)))

UsersMessagesGetFormat

data UsersMessagesGetFormat #

The format to return the message in.

Constructors

Full
full
Metadata
metadata
Minimal
minimal
Raw
raw

Instances

Enum UsersMessagesGetFormat # 
Eq UsersMessagesGetFormat # 
Data UsersMessagesGetFormat # 

Methods

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

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

toConstr :: UsersMessagesGetFormat -> Constr #

dataTypeOf :: UsersMessagesGetFormat -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord UsersMessagesGetFormat # 
Read UsersMessagesGetFormat # 
Show UsersMessagesGetFormat # 
Generic UsersMessagesGetFormat # 
Hashable UsersMessagesGetFormat # 
ToJSON UsersMessagesGetFormat # 
FromJSON UsersMessagesGetFormat # 
FromHttpApiData UsersMessagesGetFormat # 
ToHttpApiData UsersMessagesGetFormat # 
type Rep UsersMessagesGetFormat # 
type Rep UsersMessagesGetFormat = D1 (MetaData "UsersMessagesGetFormat" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) ((:+:) (C1 (MetaCons "Full" PrefixI False) U1) (C1 (MetaCons "Metadata" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Minimal" PrefixI False) U1) (C1 (MetaCons "Raw" PrefixI False) U1)))

ModifyThreadRequest

data ModifyThreadRequest #

Instances

Eq ModifyThreadRequest # 
Data ModifyThreadRequest # 

Methods

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

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

toConstr :: ModifyThreadRequest -> Constr #

dataTypeOf :: ModifyThreadRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ModifyThreadRequest # 
Generic ModifyThreadRequest # 
ToJSON ModifyThreadRequest # 
FromJSON ModifyThreadRequest # 
type Rep ModifyThreadRequest # 
type Rep ModifyThreadRequest = D1 (MetaData "ModifyThreadRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ModifyThreadRequest'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mtrRemoveLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_mtrAddLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))))

modifyThreadRequest :: ModifyThreadRequest #

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

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

mtrRemoveLabelIds :: Lens' ModifyThreadRequest [Text] #

A list of IDs of labels to remove from this thread.

mtrAddLabelIds :: Lens' ModifyThreadRequest [Text] #

A list of IDs of labels to add to this thread.

ListFiltersResponse

data ListFiltersResponse #

Response for the ListFilters method.

See: listFiltersResponse smart constructor.

Instances

Eq ListFiltersResponse # 
Data ListFiltersResponse # 

Methods

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

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

toConstr :: ListFiltersResponse -> Constr #

dataTypeOf :: ListFiltersResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListFiltersResponse # 
Generic ListFiltersResponse # 
ToJSON ListFiltersResponse # 
FromJSON ListFiltersResponse # 
type Rep ListFiltersResponse # 
type Rep ListFiltersResponse = D1 (MetaData "ListFiltersResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" True) (C1 (MetaCons "ListFiltersResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_lfrFilter") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Filter]))))

listFiltersResponse :: ListFiltersResponse #

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

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

lfrFilter :: Lens' ListFiltersResponse [Filter] #

List of a user's filters.

ModifyMessageRequest

data ModifyMessageRequest #

Instances

Eq ModifyMessageRequest # 
Data ModifyMessageRequest # 

Methods

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

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

toConstr :: ModifyMessageRequest -> Constr #

dataTypeOf :: ModifyMessageRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ModifyMessageRequest # 
Generic ModifyMessageRequest # 
ToJSON ModifyMessageRequest # 
FromJSON ModifyMessageRequest # 
type Rep ModifyMessageRequest # 
type Rep ModifyMessageRequest = D1 (MetaData "ModifyMessageRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ModifyMessageRequest'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mmrRemoveLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_mmrAddLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))))

modifyMessageRequest :: ModifyMessageRequest #

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

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

mmrRemoveLabelIds :: Lens' ModifyMessageRequest [Text] #

A list IDs of labels to remove from this message.

mmrAddLabelIds :: Lens' ModifyMessageRequest [Text] #

A list of IDs of labels to add to this message.

ListForwardingAddressesResponse

data ListForwardingAddressesResponse #

Response for the ListForwardingAddresses method.

See: listForwardingAddressesResponse smart constructor.

Instances

Eq ListForwardingAddressesResponse # 
Data ListForwardingAddressesResponse # 

Methods

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

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

toConstr :: ListForwardingAddressesResponse -> Constr #

dataTypeOf :: ListForwardingAddressesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListForwardingAddressesResponse # 
Generic ListForwardingAddressesResponse # 
ToJSON ListForwardingAddressesResponse # 
FromJSON ListForwardingAddressesResponse # 
type Rep ListForwardingAddressesResponse # 
type Rep ListForwardingAddressesResponse = D1 (MetaData "ListForwardingAddressesResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" True) (C1 (MetaCons "ListForwardingAddressesResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_lfarForwardingAddresses") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [ForwardingAddress]))))

listForwardingAddressesResponse :: ListForwardingAddressesResponse #

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

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

lfarForwardingAddresses :: Lens' ListForwardingAddressesResponse [ForwardingAddress] #

List of addresses that may be used for forwarding.

PopSettings

data PopSettings #

POP settings for an account.

See: popSettings smart constructor.

Instances

Eq PopSettings # 
Data PopSettings # 

Methods

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

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

toConstr :: PopSettings -> Constr #

dataTypeOf :: PopSettings -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PopSettings # 
Generic PopSettings # 

Associated Types

type Rep PopSettings :: * -> * #

ToJSON PopSettings # 
FromJSON PopSettings # 
type Rep PopSettings # 
type Rep PopSettings = D1 (MetaData "PopSettings" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "PopSettings'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_psAccessWindow") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PopSettingsAccessWindow))) (S1 (MetaSel (Just Symbol "_psDisPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PopSettingsDisPosition)))))

popSettings :: PopSettings #

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

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

psAccessWindow :: Lens' PopSettings (Maybe PopSettingsAccessWindow) #

The range of messages which are accessible via POP.

psDisPosition :: Lens' PopSettings (Maybe PopSettingsDisPosition) #

The action that will be executed on a message after it has been fetched via POP.

PopSettingsAccessWindow

data PopSettingsAccessWindow #

The range of messages which are accessible via POP.

Constructors

AccessWindowUnspecified
accessWindowUnspecified
AllMail
allMail
Disabled
disabled
FromNowOn
fromNowOn

Instances

Enum PopSettingsAccessWindow # 
Eq PopSettingsAccessWindow # 
Data PopSettingsAccessWindow # 

Methods

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

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

toConstr :: PopSettingsAccessWindow -> Constr #

dataTypeOf :: PopSettingsAccessWindow -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord PopSettingsAccessWindow # 
Read PopSettingsAccessWindow # 
Show PopSettingsAccessWindow # 
Generic PopSettingsAccessWindow # 
Hashable PopSettingsAccessWindow # 
ToJSON PopSettingsAccessWindow # 
FromJSON PopSettingsAccessWindow # 
FromHttpApiData PopSettingsAccessWindow # 
ToHttpApiData PopSettingsAccessWindow # 
type Rep PopSettingsAccessWindow # 
type Rep PopSettingsAccessWindow = D1 (MetaData "PopSettingsAccessWindow" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) ((:+:) (C1 (MetaCons "AccessWindowUnspecified" PrefixI False) U1) (C1 (MetaCons "AllMail" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Disabled" PrefixI False) U1) (C1 (MetaCons "FromNowOn" PrefixI False) U1)))

History

data History #

A record of a change to the user's mailbox. Each history change may affect multiple messages in multiple ways.

See: history smart constructor.

Instances

Eq History # 

Methods

(==) :: History -> History -> Bool #

(/=) :: History -> History -> Bool #

Data History # 

Methods

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

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

toConstr :: History -> Constr #

dataTypeOf :: History -> DataType #

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

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

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

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

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

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

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

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

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

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

Show History # 
Generic History # 

Associated Types

type Rep History :: * -> * #

Methods

from :: History -> Rep History x #

to :: Rep History x -> History #

ToJSON History # 
FromJSON History # 
type Rep History # 

history :: History #

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

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

hLabelsRemoved :: Lens' History [HistoryLabelRemoved] #

Labels removed from messages in this history record.

hMessagesDeleted :: Lens' History [HistoryMessageDeleted] #

Messages deleted (not Trashed) from the mailbox in this history record.

hMessagesAdded :: Lens' History [HistoryMessageAdded] #

Messages added to the mailbox in this history record.

hLabelsAdded :: Lens' History [HistoryLabelAdded] #

Labels added to messages in this history record.

hId :: Lens' History (Maybe Word64) #

The mailbox sequence ID.

hMessages :: Lens' History [Message] #

List of messages changed in this history record. The fields for specific change types, such as messagesAdded may duplicate messages in this field. We recommend using the specific change-type fields instead of this.

ForwardingAddressVerificationStatus

data ForwardingAddressVerificationStatus #

Indicates whether this address has been verified and is usable for forwarding. Read-only.

Constructors

Accepted
accepted
Pending
pending
VerificationStatusUnspecified
verificationStatusUnspecified

Instances

Enum ForwardingAddressVerificationStatus # 
Eq ForwardingAddressVerificationStatus # 
Data ForwardingAddressVerificationStatus # 

Methods

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

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

toConstr :: ForwardingAddressVerificationStatus -> Constr #

dataTypeOf :: ForwardingAddressVerificationStatus -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord ForwardingAddressVerificationStatus # 
Read ForwardingAddressVerificationStatus # 
Show ForwardingAddressVerificationStatus # 
Generic ForwardingAddressVerificationStatus # 
Hashable ForwardingAddressVerificationStatus # 
ToJSON ForwardingAddressVerificationStatus # 
FromJSON ForwardingAddressVerificationStatus # 
FromHttpApiData ForwardingAddressVerificationStatus # 
ToHttpApiData ForwardingAddressVerificationStatus # 
type Rep ForwardingAddressVerificationStatus # 
type Rep ForwardingAddressVerificationStatus = D1 (MetaData "ForwardingAddressVerificationStatus" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "Accepted" PrefixI False) U1) ((:+:) (C1 (MetaCons "Pending" PrefixI False) U1) (C1 (MetaCons "VerificationStatusUnspecified" PrefixI False) U1)))

FilterCriteria

data FilterCriteria #

Message matching criteria.

See: filterCriteria smart constructor.

Instances

Eq FilterCriteria # 
Data FilterCriteria # 

Methods

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

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

toConstr :: FilterCriteria -> Constr #

dataTypeOf :: FilterCriteria -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FilterCriteria # 
Generic FilterCriteria # 

Associated Types

type Rep FilterCriteria :: * -> * #

ToJSON FilterCriteria # 
FromJSON FilterCriteria # 
type Rep FilterCriteria # 

filterCriteria :: FilterCriteria #

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

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

fcSizeComparison :: Lens' FilterCriteria (Maybe FilterCriteriaSizeComparison) #

How the message size in bytes should be in relation to the size field.

fcSubject :: Lens' FilterCriteria (Maybe Text) #

Case-insensitive phrase found in the message's subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed.

fcSize :: Lens' FilterCriteria (Maybe Int32) #

The size of the entire RFC822 message in bytes, including all headers and attachments.

fcExcludeChats :: Lens' FilterCriteria (Maybe Bool) #

Whether the response should exclude chats.

fcTo :: Lens' FilterCriteria (Maybe Text) #

The recipient's display name or email address. Includes recipients in the "to", "cc", and "bcc" header fields. You can use simply the local part of the email address. For example, "example" and "example'" both match "example'gmail.com". This field is case-insensitive.

fcFrom :: Lens' FilterCriteria (Maybe Text) #

The sender's display name or email address.

fcQuery :: Lens' FilterCriteria (Maybe Text) #

Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser'example.com rfc822msgid: is:unread".

fcNegatedQuery :: Lens' FilterCriteria (Maybe Text) #

Only return messages not matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser'example.com rfc822msgid: is:unread".

fcHasAttachment :: Lens' FilterCriteria (Maybe Bool) #

Whether the message has any attachment.

ProFile

data ProFile #

Profile for a Gmail user.

See: proFile smart constructor.

Instances

Eq ProFile # 

Methods

(==) :: ProFile -> ProFile -> Bool #

(/=) :: ProFile -> ProFile -> Bool #

Data ProFile # 

Methods

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

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

toConstr :: ProFile -> Constr #

dataTypeOf :: ProFile -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProFile # 
Generic ProFile # 

Associated Types

type Rep ProFile :: * -> * #

Methods

from :: ProFile -> Rep ProFile x #

to :: Rep ProFile x -> ProFile #

ToJSON ProFile # 
FromJSON ProFile # 
type Rep ProFile # 
type Rep ProFile = D1 (MetaData "ProFile" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ProFile'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pfMessagesTotal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32)))) (S1 (MetaSel (Just Symbol "_pfThreadsTotal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))) ((:*:) (S1 (MetaSel (Just Symbol "_pfHistoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word64)))) (S1 (MetaSel (Just Symbol "_pfEmailAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

proFile :: ProFile #

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

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

pfMessagesTotal :: Lens' ProFile (Maybe Int32) #

The total number of messages in the mailbox.

pfThreadsTotal :: Lens' ProFile (Maybe Int32) #

The total number of threads in the mailbox.

pfHistoryId :: Lens' ProFile (Maybe Word64) #

The ID of the mailbox's current history record.

pfEmailAddress :: Lens' ProFile (Maybe Text) #

The user's email address.

AutoForwardingDisPosition

data AutoForwardingDisPosition #

The state that a message should be left in after it has been forwarded.

Constructors

Archive
archive
DisPositionUnspecified
dispositionUnspecified
LeaveInInbox
leaveInInbox
MarkRead
markRead
Trash
trash

Instances

Enum AutoForwardingDisPosition # 
Eq AutoForwardingDisPosition # 
Data AutoForwardingDisPosition # 

Methods

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

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

toConstr :: AutoForwardingDisPosition -> Constr #

dataTypeOf :: AutoForwardingDisPosition -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord AutoForwardingDisPosition # 
Read AutoForwardingDisPosition # 
Show AutoForwardingDisPosition # 
Generic AutoForwardingDisPosition # 
Hashable AutoForwardingDisPosition # 
ToJSON AutoForwardingDisPosition # 
FromJSON AutoForwardingDisPosition # 
FromHttpApiData AutoForwardingDisPosition # 
ToHttpApiData AutoForwardingDisPosition # 
type Rep AutoForwardingDisPosition # 
type Rep AutoForwardingDisPosition = D1 (MetaData "AutoForwardingDisPosition" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) ((:+:) (C1 (MetaCons "Archive" PrefixI False) U1) (C1 (MetaCons "DisPositionUnspecified" PrefixI False) U1)) ((:+:) (C1 (MetaCons "LeaveInInbox" PrefixI False) U1) ((:+:) (C1 (MetaCons "MarkRead" PrefixI False) U1) (C1 (MetaCons "Trash" PrefixI False) U1))))

MessagePartHeader

data MessagePartHeader #

Instances

Eq MessagePartHeader # 
Data MessagePartHeader # 

Methods

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

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

toConstr :: MessagePartHeader -> Constr #

dataTypeOf :: MessagePartHeader -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MessagePartHeader # 
Generic MessagePartHeader # 
ToJSON MessagePartHeader # 
FromJSON MessagePartHeader # 
type Rep MessagePartHeader # 
type Rep MessagePartHeader = D1 (MetaData "MessagePartHeader" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "MessagePartHeader'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mphValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_mphName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

messagePartHeader :: MessagePartHeader #

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

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

mphValue :: Lens' MessagePartHeader (Maybe Text) #

The value of the header after the : separator. For example, someuser'example.com.

mphName :: Lens' MessagePartHeader (Maybe Text) #

The name of the header before the : separator. For example, To.

SendAsVerificationStatus

data SendAsVerificationStatus #

Indicates whether this address has been verified for use as a send-as alias. Read-only. This setting only applies to custom "from" aliases.

Constructors

SAVSAccepted
accepted
SAVSPending
pending
SAVSVerificationStatusUnspecified
verificationStatusUnspecified

Instances

Enum SendAsVerificationStatus # 
Eq SendAsVerificationStatus # 
Data SendAsVerificationStatus # 

Methods

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

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

toConstr :: SendAsVerificationStatus -> Constr #

dataTypeOf :: SendAsVerificationStatus -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord SendAsVerificationStatus # 
Read SendAsVerificationStatus # 
Show SendAsVerificationStatus # 
Generic SendAsVerificationStatus # 
Hashable SendAsVerificationStatus # 
ToJSON SendAsVerificationStatus # 
FromJSON SendAsVerificationStatus # 
FromHttpApiData SendAsVerificationStatus # 
ToHttpApiData SendAsVerificationStatus # 
type Rep SendAsVerificationStatus # 
type Rep SendAsVerificationStatus = D1 (MetaData "SendAsVerificationStatus" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "SAVSAccepted" PrefixI False) U1) ((:+:) (C1 (MetaCons "SAVSPending" PrefixI False) U1) (C1 (MetaCons "SAVSVerificationStatusUnspecified" PrefixI False) U1)))

ListHistoryResponse

data ListHistoryResponse #

Instances

Eq ListHistoryResponse # 
Data ListHistoryResponse # 

Methods

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

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

toConstr :: ListHistoryResponse -> Constr #

dataTypeOf :: ListHistoryResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListHistoryResponse # 
Generic ListHistoryResponse # 
ToJSON ListHistoryResponse # 
FromJSON ListHistoryResponse # 
type Rep ListHistoryResponse # 
type Rep ListHistoryResponse = D1 (MetaData "ListHistoryResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ListHistoryResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lhrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lhrHistory") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [History]))) (S1 (MetaSel (Just Symbol "_lhrHistoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word64)))))))

listHistoryResponse :: ListHistoryResponse #

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

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

lhrNextPageToken :: Lens' ListHistoryResponse (Maybe Text) #

Page token to retrieve the next page of results in the list.

lhrHistory :: Lens' ListHistoryResponse [History] #

List of history records. Any messages contained in the response will typically only have id and threadId fields populated.

lhrHistoryId :: Lens' ListHistoryResponse (Maybe Word64) #

The ID of the mailbox's current history record.

SendAs

data SendAs #

Settings associated with a send-as alias, which can be either the primary login address associated with the account or a custom "from" address. Send-as aliases correspond to the "Send Mail As" feature in the web interface.

See: sendAs smart constructor.

Instances

Eq SendAs # 

Methods

(==) :: SendAs -> SendAs -> Bool #

(/=) :: SendAs -> SendAs -> Bool #

Data SendAs # 

Methods

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

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

toConstr :: SendAs -> Constr #

dataTypeOf :: SendAs -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SendAs # 
Generic SendAs # 

Associated Types

type Rep SendAs :: * -> * #

Methods

from :: SendAs -> Rep SendAs x #

to :: Rep SendAs x -> SendAs #

ToJSON SendAs # 
FromJSON SendAs # 
type Rep SendAs # 

sendAs :: SendAs #

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

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

saSignature :: Lens' SendAs (Maybe Text) #

An optional HTML signature that is included in messages composed with this alias in the Gmail web UI.

saReplyToAddress :: Lens' SendAs (Maybe Text) #

An optional email address that is included in a "Reply-To:" header for mail sent using this alias. If this is empty, Gmail will not generate a "Reply-To:" header.

saTreatAsAlias :: Lens' SendAs (Maybe Bool) #

Whether Gmail should treat this address as an alias for the user's primary email address. This setting only applies to custom "from" aliases.

saSendAsEmail :: Lens' SendAs (Maybe Text) #

The email address that appears in the "From:" header for mail sent using this alias. This is read-only for all operations except create.

saDisplayName :: Lens' SendAs (Maybe Text) #

A name that appears in the "From:" header for mail sent using this alias. For custom "from" addresses, when this is empty, Gmail will populate the "From:" header with the name that is used for the primary address associated with the account.

saVerificationStatus :: Lens' SendAs (Maybe SendAsVerificationStatus) #

Indicates whether this address has been verified for use as a send-as alias. Read-only. This setting only applies to custom "from" aliases.

saSmtpMsa :: Lens' SendAs (Maybe SmtpMsa) #

An optional SMTP service that will be used as an outbound relay for mail sent using this alias. If this is empty, outbound mail will be sent directly from Gmail's servers to the destination SMTP service. This setting only applies to custom "from" aliases.

saIsPrimary :: Lens' SendAs (Maybe Bool) #

Whether this address is the primary address used to login to the account. Every Gmail account has exactly one primary address, and it cannot be deleted from the collection of send-as aliases. This field is read-only.

saIsDefault :: Lens' SendAs (Maybe Bool) #

Whether this address is selected as the default "From:" address in situations such as composing a new message or sending a vacation auto-reply. Every Gmail account has exactly one default send-as address, so the only legal value that clients may write to this field is true. Changing this from false to true for an address will result in this field becoming false for the other previous default address.

LabelType

data LabelType #

The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the INBOX and UNREAD labels from messages and threads, but cannot apply or remove the DRAFTS or SENT labels from messages or threads.

Constructors

System
system
User
user

Instances

Enum LabelType # 
Eq LabelType # 
Data LabelType # 

Methods

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

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

toConstr :: LabelType -> Constr #

dataTypeOf :: LabelType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord LabelType # 
Read LabelType # 
Show LabelType # 
Generic LabelType # 

Associated Types

type Rep LabelType :: * -> * #

Hashable LabelType # 
ToJSON LabelType # 
FromJSON LabelType # 
FromHttpApiData LabelType # 
ToHttpApiData LabelType # 
type Rep LabelType # 
type Rep LabelType = D1 (MetaData "LabelType" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "System" PrefixI False) U1) (C1 (MetaCons "User" PrefixI False) U1))

UsersDraftsGetFormat

data UsersDraftsGetFormat #

The format to return the draft in.

Constructors

UDGFFull
full
UDGFMetadata
metadata
UDGFMinimal
minimal
UDGFRaw
raw

Instances

Enum UsersDraftsGetFormat # 
Eq UsersDraftsGetFormat # 
Data UsersDraftsGetFormat # 

Methods

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

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

toConstr :: UsersDraftsGetFormat -> Constr #

dataTypeOf :: UsersDraftsGetFormat -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord UsersDraftsGetFormat # 
Read UsersDraftsGetFormat # 
Show UsersDraftsGetFormat # 
Generic UsersDraftsGetFormat # 
Hashable UsersDraftsGetFormat # 
ToJSON UsersDraftsGetFormat # 
FromJSON UsersDraftsGetFormat # 
FromHttpApiData UsersDraftsGetFormat # 
ToHttpApiData UsersDraftsGetFormat # 
type Rep UsersDraftsGetFormat # 
type Rep UsersDraftsGetFormat = D1 (MetaData "UsersDraftsGetFormat" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) ((:+:) (C1 (MetaCons "UDGFFull" PrefixI False) U1) (C1 (MetaCons "UDGFMetadata" PrefixI False) U1)) ((:+:) (C1 (MetaCons "UDGFMinimal" PrefixI False) U1) (C1 (MetaCons "UDGFRaw" PrefixI False) U1)))

UsersMessagesImportInternalDateSource

data UsersMessagesImportInternalDateSource #

Source for Gmail's internal date of the message.

Constructors

DateHeader
dateHeader
ReceivedTime
receivedTime

Instances

Enum UsersMessagesImportInternalDateSource # 
Eq UsersMessagesImportInternalDateSource # 
Data UsersMessagesImportInternalDateSource # 

Methods

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

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

toConstr :: UsersMessagesImportInternalDateSource -> Constr #

dataTypeOf :: UsersMessagesImportInternalDateSource -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord UsersMessagesImportInternalDateSource # 
Read UsersMessagesImportInternalDateSource # 
Show UsersMessagesImportInternalDateSource # 
Generic UsersMessagesImportInternalDateSource # 
Hashable UsersMessagesImportInternalDateSource # 
ToJSON UsersMessagesImportInternalDateSource # 
FromJSON UsersMessagesImportInternalDateSource # 
FromHttpApiData UsersMessagesImportInternalDateSource # 
ToHttpApiData UsersMessagesImportInternalDateSource # 
type Rep UsersMessagesImportInternalDateSource # 
type Rep UsersMessagesImportInternalDateSource = D1 (MetaData "UsersMessagesImportInternalDateSource" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "DateHeader" PrefixI False) U1) (C1 (MetaCons "ReceivedTime" PrefixI False) U1))

LabelMessageListVisibility

data LabelMessageListVisibility #

The visibility of the label in the message list in the Gmail web interface.

Constructors

Hide
hide
Show
show

Instances

Enum LabelMessageListVisibility # 
Eq LabelMessageListVisibility # 
Data LabelMessageListVisibility # 

Methods

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

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

toConstr :: LabelMessageListVisibility -> Constr #

dataTypeOf :: LabelMessageListVisibility -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord LabelMessageListVisibility # 
Read LabelMessageListVisibility # 
Show LabelMessageListVisibility # 
Generic LabelMessageListVisibility # 
Hashable LabelMessageListVisibility # 
ToJSON LabelMessageListVisibility # 
FromJSON LabelMessageListVisibility # 
FromHttpApiData LabelMessageListVisibility # 
ToHttpApiData LabelMessageListVisibility # 
type Rep LabelMessageListVisibility # 
type Rep LabelMessageListVisibility = D1 (MetaData "LabelMessageListVisibility" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "Hide" PrefixI False) U1) (C1 (MetaCons "Show" PrefixI False) U1))

ListThreadsResponse

data ListThreadsResponse #

Instances

Eq ListThreadsResponse # 
Data ListThreadsResponse # 

Methods

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

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

toConstr :: ListThreadsResponse -> Constr #

dataTypeOf :: ListThreadsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListThreadsResponse # 
Generic ListThreadsResponse # 
ToJSON ListThreadsResponse # 
FromJSON ListThreadsResponse # 
type Rep ListThreadsResponse # 
type Rep ListThreadsResponse = D1 (MetaData "ListThreadsResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ListThreadsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ltrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ltrResultSizeEstimate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word32)))) (S1 (MetaSel (Just Symbol "_ltrThreads") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Thread]))))))

listThreadsResponse :: ListThreadsResponse #

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

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

ltrNextPageToken :: Lens' ListThreadsResponse (Maybe Text) #

Page token to retrieve the next page of results in the list.

ltrResultSizeEstimate :: Lens' ListThreadsResponse (Maybe Word32) #

Estimated total number of results.

MessagePart

data MessagePart #

A single MIME message part.

See: messagePart smart constructor.

Instances

Eq MessagePart # 
Data MessagePart # 

Methods

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

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

toConstr :: MessagePart -> Constr #

dataTypeOf :: MessagePart -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MessagePart # 
Generic MessagePart # 

Associated Types

type Rep MessagePart :: * -> * #

ToJSON MessagePart # 
FromJSON MessagePart # 
type Rep MessagePart # 

messagePart :: MessagePart #

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

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

mpParts :: Lens' MessagePart [MessagePart] #

The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.

mpBody :: Lens' MessagePart (Maybe MessagePartBody) #

The message part body for this part, which may be empty for container MIME message parts.

mpMimeType :: Lens' MessagePart (Maybe Text) #

The MIME type of the message part.

mpHeaders :: Lens' MessagePart [MessagePartHeader] #

List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.

mpPartId :: Lens' MessagePart (Maybe Text) #

The immutable ID of the message part.

mpFilename :: Lens' MessagePart (Maybe Text) #

The filename of the attachment. Only present if this message part represents an attachment.

HistoryLabelAdded

data HistoryLabelAdded #

Instances

Eq HistoryLabelAdded # 
Data HistoryLabelAdded # 

Methods

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

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

toConstr :: HistoryLabelAdded -> Constr #

dataTypeOf :: HistoryLabelAdded -> DataType #

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

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

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

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

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

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

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

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

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

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

Show HistoryLabelAdded # 
Generic HistoryLabelAdded # 
ToJSON HistoryLabelAdded # 
FromJSON HistoryLabelAdded # 
type Rep HistoryLabelAdded # 
type Rep HistoryLabelAdded = D1 (MetaData "HistoryLabelAdded" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "HistoryLabelAdded'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_hlaLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_hlaMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Message)))))

historyLabelAdded :: HistoryLabelAdded #

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

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

hlaLabelIds :: Lens' HistoryLabelAdded [Text] #

Label IDs added to the message.

ListLabelsResponse

data ListLabelsResponse #

Instances

Eq ListLabelsResponse # 
Data ListLabelsResponse # 

Methods

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

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

toConstr :: ListLabelsResponse -> Constr #

dataTypeOf :: ListLabelsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListLabelsResponse # 
Generic ListLabelsResponse # 
ToJSON ListLabelsResponse # 
FromJSON ListLabelsResponse # 
type Rep ListLabelsResponse # 
type Rep ListLabelsResponse = D1 (MetaData "ListLabelsResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" True) (C1 (MetaCons "ListLabelsResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_llrLabels") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Label]))))

listLabelsResponse :: ListLabelsResponse #

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

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

VacationSettings

data VacationSettings #

Vacation auto-reply settings for an account. These settings correspond to the "Vacation responder" feature in the web interface.

See: vacationSettings smart constructor.

Instances

Eq VacationSettings # 
Data VacationSettings # 

Methods

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

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

toConstr :: VacationSettings -> Constr #

dataTypeOf :: VacationSettings -> DataType #

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

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

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

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

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

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

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

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

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

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

Show VacationSettings # 
Generic VacationSettings # 
ToJSON VacationSettings # 
FromJSON VacationSettings # 
type Rep VacationSettings # 
type Rep VacationSettings = D1 (MetaData "VacationSettings" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "VacationSettings'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_vsEnableAutoReply") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_vsResponseBodyPlainText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_vsRestrictToDomain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_vsStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_vsResponseBodyHTML") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_vsRestrictToContacts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_vsResponseSubject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_vsEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))))

vacationSettings :: VacationSettings #

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

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

vsEnableAutoReply :: Lens' VacationSettings (Maybe Bool) #

Flag that controls whether Gmail automatically replies to messages.

vsResponseBodyPlainText :: Lens' VacationSettings (Maybe Text) #

Response body in plain text format.

vsRestrictToDomain :: Lens' VacationSettings (Maybe Bool) #

Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Apps users.

vsStartTime :: Lens' VacationSettings (Maybe Int64) #

An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both startTime and endTime are specified, startTime must precede endTime.

vsResponseBodyHTML :: Lens' VacationSettings (Maybe Text) #

Response body in HTML format. Gmail will sanitize the HTML before storing it.

vsRestrictToContacts :: Lens' VacationSettings (Maybe Bool) #

Flag that determines whether responses are sent to recipients who are not in the user's list of contacts.

vsResponseSubject :: Lens' VacationSettings (Maybe Text) #

Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty.

vsEndTime :: Lens' VacationSettings (Maybe Int64) #

An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both startTime and endTime are specified, startTime must precede endTime.

LabelLabelListVisibility

data LabelLabelListVisibility #

The visibility of the label in the label list in the Gmail web interface.

Constructors

LabelHide
labelHide
LabelShow
labelShow
LabelShowIfUnread
labelShowIfUnread

Instances

Enum LabelLabelListVisibility # 
Eq LabelLabelListVisibility # 
Data LabelLabelListVisibility # 

Methods

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

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

toConstr :: LabelLabelListVisibility -> Constr #

dataTypeOf :: LabelLabelListVisibility -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord LabelLabelListVisibility # 
Read LabelLabelListVisibility # 
Show LabelLabelListVisibility # 
Generic LabelLabelListVisibility # 
Hashable LabelLabelListVisibility # 
ToJSON LabelLabelListVisibility # 
FromJSON LabelLabelListVisibility # 
FromHttpApiData LabelLabelListVisibility # 
ToHttpApiData LabelLabelListVisibility # 
type Rep LabelLabelListVisibility # 
type Rep LabelLabelListVisibility = D1 (MetaData "LabelLabelListVisibility" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "LabelHide" PrefixI False) U1) ((:+:) (C1 (MetaCons "LabelShow" PrefixI False) U1) (C1 (MetaCons "LabelShowIfUnread" PrefixI False) U1)))

HistoryMessageDeleted

data HistoryMessageDeleted #

Instances

Eq HistoryMessageDeleted # 
Data HistoryMessageDeleted # 

Methods

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

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

toConstr :: HistoryMessageDeleted -> Constr #

dataTypeOf :: HistoryMessageDeleted -> DataType #

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

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

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

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

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

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

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

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

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

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

Show HistoryMessageDeleted # 
Generic HistoryMessageDeleted # 
ToJSON HistoryMessageDeleted # 
FromJSON HistoryMessageDeleted # 
type Rep HistoryMessageDeleted # 
type Rep HistoryMessageDeleted = D1 (MetaData "HistoryMessageDeleted" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" True) (C1 (MetaCons "HistoryMessageDeleted'" PrefixI True) (S1 (MetaSel (Just Symbol "_hmdMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Message))))

historyMessageDeleted :: HistoryMessageDeleted #

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

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

MessagePartBody

data MessagePartBody #

The body of a single MIME message part.

See: messagePartBody smart constructor.

Instances

Eq MessagePartBody # 
Data MessagePartBody # 

Methods

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

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

toConstr :: MessagePartBody -> Constr #

dataTypeOf :: MessagePartBody -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MessagePartBody # 
Generic MessagePartBody # 
ToJSON MessagePartBody # 
FromJSON MessagePartBody # 
type Rep MessagePartBody # 
type Rep MessagePartBody = D1 (MetaData "MessagePartBody" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "MessagePartBody'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mpbSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32)))) ((:*:) (S1 (MetaSel (Just Symbol "_mpbData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes))) (S1 (MetaSel (Just Symbol "_mpbAttachmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

messagePartBody :: MessagePartBody #

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

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

mpbSize :: Lens' MessagePartBody (Maybe Int32) #

Number of bytes for the message part data (encoding notwithstanding).

mpbData :: Lens' MessagePartBody (Maybe ByteString) #

The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.

mpbAttachmentId :: Lens' MessagePartBody (Maybe Text) #

When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.

AutoForwarding

data AutoForwarding #

Auto-forwarding settings for an account.

See: autoForwarding smart constructor.

Instances

Eq AutoForwarding # 
Data AutoForwarding # 

Methods

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

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

toConstr :: AutoForwarding -> Constr #

dataTypeOf :: AutoForwarding -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AutoForwarding # 
Generic AutoForwarding # 

Associated Types

type Rep AutoForwarding :: * -> * #

ToJSON AutoForwarding # 
FromJSON AutoForwarding # 
type Rep AutoForwarding # 
type Rep AutoForwarding = D1 (MetaData "AutoForwarding" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "AutoForwarding'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_afEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_afDisPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AutoForwardingDisPosition))) (S1 (MetaSel (Just Symbol "_afEmailAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

autoForwarding :: AutoForwarding #

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

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

afEnabled :: Lens' AutoForwarding (Maybe Bool) #

Whether all incoming mail is automatically forwarded to another address.

afDisPosition :: Lens' AutoForwarding (Maybe AutoForwardingDisPosition) #

The state that a message should be left in after it has been forwarded.

afEmailAddress :: Lens' AutoForwarding (Maybe Text) #

Email address to which all incoming messages are forwarded. This email address must be a verified member of the forwarding addresses.

ListDraftsResponse

data ListDraftsResponse #

Instances

Eq ListDraftsResponse # 
Data ListDraftsResponse # 

Methods

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

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

toConstr :: ListDraftsResponse -> Constr #

dataTypeOf :: ListDraftsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListDraftsResponse # 
Generic ListDraftsResponse # 
ToJSON ListDraftsResponse # 
FromJSON ListDraftsResponse # 
type Rep ListDraftsResponse # 
type Rep ListDraftsResponse = D1 (MetaData "ListDraftsResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ListDraftsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ldrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ldrResultSizeEstimate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word32)))) (S1 (MetaSel (Just Symbol "_ldrDrafts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Draft]))))))

listDraftsResponse :: ListDraftsResponse #

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

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

ldrNextPageToken :: Lens' ListDraftsResponse (Maybe Text) #

Token to retrieve the next page of results in the list.

ldrResultSizeEstimate :: Lens' ListDraftsResponse (Maybe Word32) #

Estimated total number of results.

ListSendAsResponse

data ListSendAsResponse #

Response for the ListSendAs method.

See: listSendAsResponse smart constructor.

Instances

Eq ListSendAsResponse # 
Data ListSendAsResponse # 

Methods

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

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

toConstr :: ListSendAsResponse -> Constr #

dataTypeOf :: ListSendAsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListSendAsResponse # 
Generic ListSendAsResponse # 
ToJSON ListSendAsResponse # 
FromJSON ListSendAsResponse # 
type Rep ListSendAsResponse # 
type Rep ListSendAsResponse = D1 (MetaData "ListSendAsResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" True) (C1 (MetaCons "ListSendAsResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_lsarSendAs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SendAs]))))

listSendAsResponse :: ListSendAsResponse #

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

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

lsarSendAs :: Lens' ListSendAsResponse [SendAs] #

List of send-as aliases.

WatchResponse

data WatchResponse #

Push notification watch response.

See: watchResponse smart constructor.

Instances

Eq WatchResponse # 
Data WatchResponse # 

Methods

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

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

toConstr :: WatchResponse -> Constr #

dataTypeOf :: WatchResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show WatchResponse # 
Generic WatchResponse # 

Associated Types

type Rep WatchResponse :: * -> * #

ToJSON WatchResponse # 
FromJSON WatchResponse # 
type Rep WatchResponse # 
type Rep WatchResponse = D1 (MetaData "WatchResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "WatchResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_wrExpiration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_wrHistoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word64))))))

watchResponse :: WatchResponse #

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

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

wrExpiration :: Lens' WatchResponse (Maybe Int64) #

When Gmail will stop sending notifications for mailbox updates (epoch millis). Call watch again before this time to renew the watch.

wrHistoryId :: Lens' WatchResponse (Maybe Word64) #

The ID of the mailbox's current history record.

UsersThreadsGetFormat

data UsersThreadsGetFormat #

The format to return the messages in.

Constructors

UTGFFull
full
UTGFMetadata
metadata
UTGFMinimal
minimal

Instances

Enum UsersThreadsGetFormat # 
Eq UsersThreadsGetFormat # 
Data UsersThreadsGetFormat # 

Methods

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

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

toConstr :: UsersThreadsGetFormat -> Constr #

dataTypeOf :: UsersThreadsGetFormat -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord UsersThreadsGetFormat # 
Read UsersThreadsGetFormat # 
Show UsersThreadsGetFormat # 
Generic UsersThreadsGetFormat # 
Hashable UsersThreadsGetFormat # 
ToJSON UsersThreadsGetFormat # 
FromJSON UsersThreadsGetFormat # 
FromHttpApiData UsersThreadsGetFormat # 
ToHttpApiData UsersThreadsGetFormat # 
type Rep UsersThreadsGetFormat # 
type Rep UsersThreadsGetFormat = D1 (MetaData "UsersThreadsGetFormat" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "UTGFFull" PrefixI False) U1) ((:+:) (C1 (MetaCons "UTGFMetadata" PrefixI False) U1) (C1 (MetaCons "UTGFMinimal" PrefixI False) U1)))

BatchModifyMessagesRequest

data BatchModifyMessagesRequest #

Instances

Eq BatchModifyMessagesRequest # 
Data BatchModifyMessagesRequest # 

Methods

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

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

toConstr :: BatchModifyMessagesRequest -> Constr #

dataTypeOf :: BatchModifyMessagesRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BatchModifyMessagesRequest # 
Generic BatchModifyMessagesRequest # 
ToJSON BatchModifyMessagesRequest # 
FromJSON BatchModifyMessagesRequest # 
type Rep BatchModifyMessagesRequest # 
type Rep BatchModifyMessagesRequest = D1 (MetaData "BatchModifyMessagesRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "BatchModifyMessagesRequest'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_bmmrIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_bmmrRemoveLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_bmmrAddLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))))

batchModifyMessagesRequest :: BatchModifyMessagesRequest #

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

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

bmmrIds :: Lens' BatchModifyMessagesRequest [Text] #

The IDs of the messages to modify. There is a limit of 1000 ids per request.

bmmrRemoveLabelIds :: Lens' BatchModifyMessagesRequest [Text] #

A list of label IDs to remove from messages.

bmmrAddLabelIds :: Lens' BatchModifyMessagesRequest [Text] #

A list of label IDs to add to messages.

Draft

data Draft #

A draft email in the user's mailbox.

See: draft smart constructor.

Instances

Eq Draft # 

Methods

(==) :: Draft -> Draft -> Bool #

(/=) :: Draft -> Draft -> Bool #

Data Draft # 

Methods

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

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

toConstr :: Draft -> Constr #

dataTypeOf :: Draft -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Draft # 

Methods

showsPrec :: Int -> Draft -> ShowS #

show :: Draft -> String #

showList :: [Draft] -> ShowS #

Generic Draft # 

Associated Types

type Rep Draft :: * -> * #

Methods

from :: Draft -> Rep Draft x #

to :: Rep Draft x -> Draft #

ToJSON Draft # 
FromJSON Draft # 
type Rep Draft # 
type Rep Draft = D1 (MetaData "Draft" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "Draft'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Message)))))

draft :: Draft #

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

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

dId :: Lens' Draft (Maybe Text) #

The immutable ID of the draft.

dMessage :: Lens' Draft (Maybe Message) #

The message content of the draft.

SmtpMsa

data SmtpMsa #

Configuration for communication with an SMTP service.

See: smtpMsa smart constructor.

Instances

Eq SmtpMsa # 

Methods

(==) :: SmtpMsa -> SmtpMsa -> Bool #

(/=) :: SmtpMsa -> SmtpMsa -> Bool #

Data SmtpMsa # 

Methods

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

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

toConstr :: SmtpMsa -> Constr #

dataTypeOf :: SmtpMsa -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SmtpMsa # 
Generic SmtpMsa # 

Associated Types

type Rep SmtpMsa :: * -> * #

Methods

from :: SmtpMsa -> Rep SmtpMsa x #

to :: Rep SmtpMsa x -> SmtpMsa #

ToJSON SmtpMsa # 
FromJSON SmtpMsa # 
type Rep SmtpMsa # 

smtpMsa :: SmtpMsa #

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

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

smSecurityMode :: Lens' SmtpMsa (Maybe SmtpMsaSecurityMode) #

The protocol that will be used to secure communication with the SMTP service. Required.

smUsername :: Lens' SmtpMsa (Maybe Text) #

The username that will be used for authentication with the SMTP service. This is a write-only field that can be specified in requests to create or update SendAs settings; it is never populated in responses.

smPassword :: Lens' SmtpMsa (Maybe Text) #

The password that will be used for authentication with the SMTP service. This is a write-only field that can be specified in requests to create or update SendAs settings; it is never populated in responses.

smHost :: Lens' SmtpMsa (Maybe Text) #

The hostname of the SMTP service. Required.

smPort :: Lens' SmtpMsa (Maybe Int32) #

The port of the SMTP service. Required.

ForwardingAddress

data ForwardingAddress #

Settings for a forwarding address.

See: forwardingAddress smart constructor.

Instances

Eq ForwardingAddress # 
Data ForwardingAddress # 

Methods

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

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

toConstr :: ForwardingAddress -> Constr #

dataTypeOf :: ForwardingAddress -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ForwardingAddress # 
Generic ForwardingAddress # 
ToJSON ForwardingAddress # 
FromJSON ForwardingAddress # 
type Rep ForwardingAddress # 
type Rep ForwardingAddress = D1 (MetaData "ForwardingAddress" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ForwardingAddress'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_faForwardingEmail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_faVerificationStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ForwardingAddressVerificationStatus)))))

forwardingAddress :: ForwardingAddress #

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

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

faForwardingEmail :: Lens' ForwardingAddress (Maybe Text) #

An email address to which messages can be forwarded.

faVerificationStatus :: Lens' ForwardingAddress (Maybe ForwardingAddressVerificationStatus) #

Indicates whether this address has been verified and is usable for forwarding. Read-only.

PopSettingsDisPosition

data PopSettingsDisPosition #

The action that will be executed on a message after it has been fetched via POP.

Constructors

PSDPArchive
archive
PSDPDisPositionUnspecified
dispositionUnspecified
PSDPLeaveInInbox
leaveInInbox
PSDPMarkRead
markRead
PSDPTrash
trash

Instances

Enum PopSettingsDisPosition # 
Eq PopSettingsDisPosition # 
Data PopSettingsDisPosition # 

Methods

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

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

toConstr :: PopSettingsDisPosition -> Constr #

dataTypeOf :: PopSettingsDisPosition -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord PopSettingsDisPosition # 
Read PopSettingsDisPosition # 
Show PopSettingsDisPosition # 
Generic PopSettingsDisPosition # 
Hashable PopSettingsDisPosition # 
ToJSON PopSettingsDisPosition # 
FromJSON PopSettingsDisPosition # 
FromHttpApiData PopSettingsDisPosition # 
ToHttpApiData PopSettingsDisPosition # 
type Rep PopSettingsDisPosition # 
type Rep PopSettingsDisPosition = D1 (MetaData "PopSettingsDisPosition" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) ((:+:) (C1 (MetaCons "PSDPArchive" PrefixI False) U1) (C1 (MetaCons "PSDPDisPositionUnspecified" PrefixI False) U1)) ((:+:) (C1 (MetaCons "PSDPLeaveInInbox" PrefixI False) U1) ((:+:) (C1 (MetaCons "PSDPMarkRead" PrefixI False) U1) (C1 (MetaCons "PSDPTrash" PrefixI False) U1))))

Filter

data Filter #

Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread.

See: filter' smart constructor.

Instances

Eq Filter # 

Methods

(==) :: Filter -> Filter -> Bool #

(/=) :: Filter -> Filter -> Bool #

Data Filter # 

Methods

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

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

toConstr :: Filter -> Constr #

dataTypeOf :: Filter -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Filter # 
Generic Filter # 

Associated Types

type Rep Filter :: * -> * #

Methods

from :: Filter -> Rep Filter x #

to :: Rep Filter x -> Filter #

ToJSON Filter # 
FromJSON Filter # 
type Rep Filter # 
type Rep Filter = D1 (MetaData "Filter" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "Filter'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_fAction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FilterAction))) ((:*:) (S1 (MetaSel (Just Symbol "_fId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_fCriteria") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FilterCriteria))))))

filter' :: Filter #

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

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

fAction :: Lens' Filter (Maybe FilterAction) #

Action that the filter performs.

fId :: Lens' Filter (Maybe Text) #

The server assigned ID of the filter.

fCriteria :: Lens' Filter (Maybe FilterCriteria) #

Matching criteria for the filter.

WatchRequest

data WatchRequest #

Set up or update a new push notification watch on this user's mailbox.

See: watchRequest smart constructor.

Instances

Eq WatchRequest # 
Data WatchRequest # 

Methods

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

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

toConstr :: WatchRequest -> Constr #

dataTypeOf :: WatchRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show WatchRequest # 
Generic WatchRequest # 

Associated Types

type Rep WatchRequest :: * -> * #

ToJSON WatchRequest # 
FromJSON WatchRequest # 
type Rep WatchRequest # 
type Rep WatchRequest = D1 (MetaData "WatchRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "WatchRequest'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_wrLabelFilterAction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe WatchRequestLabelFilterAction))) ((:*:) (S1 (MetaSel (Just Symbol "_wrTopicName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_wrLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))))

watchRequest :: WatchRequest #

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

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

wrLabelFilterAction :: Lens' WatchRequest (Maybe WatchRequestLabelFilterAction) #

Filtering behavior of labelIds list specified.

wrTopicName :: Lens' WatchRequest (Maybe Text) #

A fully qualified Google Cloud Pub/Sub API topic name to publish the events to. This topic name **must** already exist in Cloud Pub/Sub and you **must** have already granted gmail "publish" permission on it. For example, "projects/my-project-identifier/topics/my-topic-name" (using the Cloud Pub/Sub "v1" topic naming format). Note that the "my-project-identifier" portion must exactly match your Google developer project id (the one executing this watch request).

wrLabelIds :: Lens' WatchRequest [Text] #

List of label_ids to restrict notifications about. By default, if unspecified, all changes are pushed out. If specified then dictates which labels are required for a push notification to be generated.

WatchRequestLabelFilterAction

data WatchRequestLabelFilterAction #

Filtering behavior of labelIds list specified.

Constructors

Exclude
exclude
Include
include

Instances

Enum WatchRequestLabelFilterAction # 
Eq WatchRequestLabelFilterAction # 
Data WatchRequestLabelFilterAction # 

Methods

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

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

toConstr :: WatchRequestLabelFilterAction -> Constr #

dataTypeOf :: WatchRequestLabelFilterAction -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord WatchRequestLabelFilterAction # 
Read WatchRequestLabelFilterAction # 
Show WatchRequestLabelFilterAction # 
Generic WatchRequestLabelFilterAction # 
Hashable WatchRequestLabelFilterAction # 
ToJSON WatchRequestLabelFilterAction # 
FromJSON WatchRequestLabelFilterAction # 
FromHttpApiData WatchRequestLabelFilterAction # 
ToHttpApiData WatchRequestLabelFilterAction # 
type Rep WatchRequestLabelFilterAction # 
type Rep WatchRequestLabelFilterAction = D1 (MetaData "WatchRequestLabelFilterAction" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "Exclude" PrefixI False) U1) (C1 (MetaCons "Include" PrefixI False) U1))

ImapSettings

data ImapSettings #

IMAP settings for an account.

See: imapSettings smart constructor.

Instances

Eq ImapSettings # 
Data ImapSettings # 

Methods

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

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

toConstr :: ImapSettings -> Constr #

dataTypeOf :: ImapSettings -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ImapSettings # 
Generic ImapSettings # 

Associated Types

type Rep ImapSettings :: * -> * #

ToJSON ImapSettings # 
FromJSON ImapSettings # 
type Rep ImapSettings # 
type Rep ImapSettings = D1 (MetaData "ImapSettings" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ImapSettings'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_isEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_isExpungeBehavior") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ImapSettingsExpungeBehavior)))) ((:*:) (S1 (MetaSel (Just Symbol "_isAutoExpunge") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_isMaxFolderSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32)))))))

imapSettings :: ImapSettings #

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

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

isEnabled :: Lens' ImapSettings (Maybe Bool) #

Whether IMAP is enabled for the account.

isExpungeBehavior :: Lens' ImapSettings (Maybe ImapSettingsExpungeBehavior) #

The action that will be executed on a message when it is marked as deleted and expunged from the last visible IMAP folder.

isAutoExpunge :: Lens' ImapSettings (Maybe Bool) #

If this value is true, Gmail will immediately expunge a message when it is marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the client before expunging messages marked as deleted.

isMaxFolderSize :: Lens' ImapSettings (Maybe Int32) #

An optional limit on the number of messages that an IMAP folder may contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted to mean that there is no limit.

ImapSettingsExpungeBehavior

data ImapSettingsExpungeBehavior #

The action that will be executed on a message when it is marked as deleted and expunged from the last visible IMAP folder.

Constructors

ISEBArchive
archive
ISEBDeleteForever
deleteForever
ISEBExpungeBehaviorUnspecified
expungeBehaviorUnspecified
ISEBTrash
trash

Instances

Enum ImapSettingsExpungeBehavior # 
Eq ImapSettingsExpungeBehavior # 
Data ImapSettingsExpungeBehavior # 

Methods

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

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

toConstr :: ImapSettingsExpungeBehavior -> Constr #

dataTypeOf :: ImapSettingsExpungeBehavior -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord ImapSettingsExpungeBehavior # 
Read ImapSettingsExpungeBehavior # 
Show ImapSettingsExpungeBehavior # 
Generic ImapSettingsExpungeBehavior # 
Hashable ImapSettingsExpungeBehavior # 
ToJSON ImapSettingsExpungeBehavior # 
FromJSON ImapSettingsExpungeBehavior # 
FromHttpApiData ImapSettingsExpungeBehavior # 
ToHttpApiData ImapSettingsExpungeBehavior # 
type Rep ImapSettingsExpungeBehavior # 
type Rep ImapSettingsExpungeBehavior = D1 (MetaData "ImapSettingsExpungeBehavior" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) ((:+:) (C1 (MetaCons "ISEBArchive" PrefixI False) U1) (C1 (MetaCons "ISEBDeleteForever" PrefixI False) U1)) ((:+:) (C1 (MetaCons "ISEBExpungeBehaviorUnspecified" PrefixI False) U1) (C1 (MetaCons "ISEBTrash" PrefixI False) U1)))

SmtpMsaSecurityMode

data SmtpMsaSecurityMode #

The protocol that will be used to secure communication with the SMTP service. Required.

Constructors

None
none
SecurityModeUnspecified
securityModeUnspecified
SSL
ssl
Starttls
starttls

Instances

Enum SmtpMsaSecurityMode # 
Eq SmtpMsaSecurityMode # 
Data SmtpMsaSecurityMode # 

Methods

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

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

toConstr :: SmtpMsaSecurityMode -> Constr #

dataTypeOf :: SmtpMsaSecurityMode -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord SmtpMsaSecurityMode # 
Read SmtpMsaSecurityMode # 
Show SmtpMsaSecurityMode # 
Generic SmtpMsaSecurityMode # 
Hashable SmtpMsaSecurityMode # 
ToJSON SmtpMsaSecurityMode # 
FromJSON SmtpMsaSecurityMode # 
FromHttpApiData SmtpMsaSecurityMode # 
ToHttpApiData SmtpMsaSecurityMode # 
type Rep SmtpMsaSecurityMode # 
type Rep SmtpMsaSecurityMode = D1 (MetaData "SmtpMsaSecurityMode" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) ((:+:) (C1 (MetaCons "None" PrefixI False) U1) (C1 (MetaCons "SecurityModeUnspecified" PrefixI False) U1)) ((:+:) (C1 (MetaCons "SSL" PrefixI False) U1) (C1 (MetaCons "Starttls" PrefixI False) U1)))

Message

data Message #

An email message.

See: message smart constructor.

Instances

Eq Message # 

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

Data Message # 

Methods

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

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

toConstr :: Message -> Constr #

dataTypeOf :: Message -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Message # 
Generic Message # 

Associated Types

type Rep Message :: * -> * #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

ToJSON Message # 
FromJSON Message # 
type Rep Message # 

message :: Message #

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

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

mRaw :: Lens' Message (Maybe ByteString) #

The entire email message in an RFC 2822 formatted and base64url encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.

mSnippet :: Lens' Message (Maybe Text) #

A short part of the message text.

mSizeEstimate :: Lens' Message (Maybe Int32) #

Estimated size in bytes of the message.

mPayload :: Lens' Message (Maybe MessagePart) #

The parsed email structure in the message parts.

mHistoryId :: Lens' Message (Maybe Word64) #

The ID of the last history record that modified this message.

mId :: Lens' Message (Maybe Text) #

The immutable ID of the message.

mLabelIds :: Lens' Message [Text] #

List of IDs of labels applied to this message.

mThreadId :: Lens' Message (Maybe Text) #

The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met: - The requested threadId must be specified on the Message or Draft.Message you supply with your request. - The References and In-Reply-To headers must be set in compliance with the RFC 2822 standard. - The Subject headers must match.

mInternalDate :: Lens' Message (Maybe Int64) #

The internal message creation timestamp (epoch ms), which determines ordering in the inbox. For normal SMTP-received email, this represents the time the message was originally accepted by Google, which is more reliable than the Date header. However, for API-migrated mail, it can be configured by client to be based on the Date header.

UsersMessagesInsertInternalDateSource

data UsersMessagesInsertInternalDateSource #

Source for Gmail's internal date of the message.

Constructors

UMIIDSDateHeader
dateHeader
UMIIDSReceivedTime
receivedTime

Instances

Enum UsersMessagesInsertInternalDateSource # 
Eq UsersMessagesInsertInternalDateSource # 
Data UsersMessagesInsertInternalDateSource # 

Methods

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

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

toConstr :: UsersMessagesInsertInternalDateSource -> Constr #

dataTypeOf :: UsersMessagesInsertInternalDateSource -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord UsersMessagesInsertInternalDateSource # 
Read UsersMessagesInsertInternalDateSource # 
Show UsersMessagesInsertInternalDateSource # 
Generic UsersMessagesInsertInternalDateSource # 
Hashable UsersMessagesInsertInternalDateSource # 
ToJSON UsersMessagesInsertInternalDateSource # 
FromJSON UsersMessagesInsertInternalDateSource # 
FromHttpApiData UsersMessagesInsertInternalDateSource # 
ToHttpApiData UsersMessagesInsertInternalDateSource # 
type Rep UsersMessagesInsertInternalDateSource # 
type Rep UsersMessagesInsertInternalDateSource = D1 (MetaData "UsersMessagesInsertInternalDateSource" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) ((:+:) (C1 (MetaCons "UMIIDSDateHeader" PrefixI False) U1) (C1 (MetaCons "UMIIDSReceivedTime" PrefixI False) U1))

HistoryLabelRemoved

data HistoryLabelRemoved #

Instances

Eq HistoryLabelRemoved # 
Data HistoryLabelRemoved # 

Methods

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

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

toConstr :: HistoryLabelRemoved -> Constr #

dataTypeOf :: HistoryLabelRemoved -> DataType #

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

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

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

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

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

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

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

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

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

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

Show HistoryLabelRemoved # 
Generic HistoryLabelRemoved # 
ToJSON HistoryLabelRemoved # 
FromJSON HistoryLabelRemoved # 
type Rep HistoryLabelRemoved # 
type Rep HistoryLabelRemoved = D1 (MetaData "HistoryLabelRemoved" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "HistoryLabelRemoved'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_hlrLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_hlrMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Message)))))

historyLabelRemoved :: HistoryLabelRemoved #

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

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

hlrLabelIds :: Lens' HistoryLabelRemoved [Text] #

Label IDs removed from the message.

Thread

data Thread #

A collection of messages representing a conversation.

See: thread smart constructor.

Instances

Eq Thread # 

Methods

(==) :: Thread -> Thread -> Bool #

(/=) :: Thread -> Thread -> Bool #

Data Thread # 

Methods

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

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

toConstr :: Thread -> Constr #

dataTypeOf :: Thread -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Thread # 
Generic Thread # 

Associated Types

type Rep Thread :: * -> * #

Methods

from :: Thread -> Rep Thread x #

to :: Rep Thread x -> Thread #

ToJSON Thread # 
FromJSON Thread # 
type Rep Thread # 
type Rep Thread = D1 (MetaData "Thread" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "Thread'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tSnippet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tHistoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word64))))) ((:*:) (S1 (MetaSel (Just Symbol "_tId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tMessages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Message]))))))

thread :: Thread #

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

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

tSnippet :: Lens' Thread (Maybe Text) #

A short part of the message text.

tHistoryId :: Lens' Thread (Maybe Word64) #

The ID of the last history record that modified this thread.

tId :: Lens' Thread (Maybe Text) #

The unique ID of the thread.

tMessages :: Lens' Thread [Message] #

The list of messages in the thread.

FilterAction

data FilterAction #

A set of actions to perform on a message.

See: filterAction smart constructor.

Instances

Eq FilterAction # 
Data FilterAction # 

Methods

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

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

toConstr :: FilterAction -> Constr #

dataTypeOf :: FilterAction -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FilterAction # 
Generic FilterAction # 

Associated Types

type Rep FilterAction :: * -> * #

ToJSON FilterAction # 
FromJSON FilterAction # 
type Rep FilterAction # 
type Rep FilterAction = D1 (MetaData "FilterAction" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "FilterAction'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_faForward") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_faRemoveLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_faAddLabelIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))))

filterAction :: FilterAction #

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

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

faForward :: Lens' FilterAction (Maybe Text) #

Email address that the message should be forwarded to.

faRemoveLabelIds :: Lens' FilterAction [Text] #

List of labels to remove from the message.

faAddLabelIds :: Lens' FilterAction [Text] #

List of labels to add to the message.

Label

data Label #

Labels are used to categorize messages and threads within the user's mailbox.

See: label smart constructor.

Instances

Eq Label # 

Methods

(==) :: Label -> Label -> Bool #

(/=) :: Label -> Label -> Bool #

Data Label # 

Methods

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

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

toConstr :: Label -> Constr #

dataTypeOf :: Label -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Label # 

Methods

showsPrec :: Int -> Label -> ShowS #

show :: Label -> String #

showList :: [Label] -> ShowS #

Generic Label # 

Associated Types

type Rep Label :: * -> * #

Methods

from :: Label -> Rep Label x #

to :: Rep Label x -> Label #

ToJSON Label # 
FromJSON Label # 
type Rep Label # 

label :: Label #

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

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

lThreadsUnread :: Lens' Label (Maybe Int32) #

The number of unread threads with the label.

lMessageListVisibility :: Lens' Label (Maybe LabelMessageListVisibility) #

The visibility of the label in the message list in the Gmail web interface.

lMessagesTotal :: Lens' Label (Maybe Int32) #

The total number of messages with the label.

lMessagesUnread :: Lens' Label (Maybe Int32) #

The number of unread messages with the label.

lName :: Lens' Label (Maybe Text) #

The display name of the label.

lThreadsTotal :: Lens' Label (Maybe Int32) #

The total number of threads with the label.

lLabelListVisibility :: Lens' Label (Maybe LabelLabelListVisibility) #

The visibility of the label in the label list in the Gmail web interface.

lId :: Lens' Label (Maybe Text) #

The immutable ID of the label.

lType :: Lens' Label (Maybe LabelType) #

The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the INBOX and UNREAD labels from messages and threads, but cannot apply or remove the DRAFTS or SENT labels from messages or threads.

ListMessagesResponse

data ListMessagesResponse #

Instances

Eq ListMessagesResponse # 
Data ListMessagesResponse # 

Methods

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

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

toConstr :: ListMessagesResponse -> Constr #

dataTypeOf :: ListMessagesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListMessagesResponse # 
Generic ListMessagesResponse # 
ToJSON ListMessagesResponse # 
FromJSON ListMessagesResponse # 
type Rep ListMessagesResponse # 
type Rep ListMessagesResponse = D1 (MetaData "ListMessagesResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" False) (C1 (MetaCons "ListMessagesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lmrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lmrResultSizeEstimate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word32)))) (S1 (MetaSel (Just Symbol "_lmrMessages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Message]))))))

listMessagesResponse :: ListMessagesResponse #

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

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

lmrNextPageToken :: Lens' ListMessagesResponse (Maybe Text) #

Token to retrieve the next page of results in the list.

lmrResultSizeEstimate :: Lens' ListMessagesResponse (Maybe Word32) #

Estimated total number of results.

HistoryMessageAdded

data HistoryMessageAdded #

Instances

Eq HistoryMessageAdded # 
Data HistoryMessageAdded # 

Methods

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

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

toConstr :: HistoryMessageAdded -> Constr #

dataTypeOf :: HistoryMessageAdded -> DataType #

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

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

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

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

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

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

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

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

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

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

Show HistoryMessageAdded # 
Generic HistoryMessageAdded # 
ToJSON HistoryMessageAdded # 
FromJSON HistoryMessageAdded # 
type Rep HistoryMessageAdded # 
type Rep HistoryMessageAdded = D1 (MetaData "HistoryMessageAdded" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.3.0-6wQeZTDKOo431xkuvxeeDf" True) (C1 (MetaCons "HistoryMessageAdded'" PrefixI True) (S1 (MetaSel (Just Symbol "_hmaMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Message))))

historyMessageAdded :: HistoryMessageAdded #

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

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