gogol-gmail-0.1.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 Source #

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

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

View and manage your mail

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

View and modify but not delete your email

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

Manage mailbox labels

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

Send email on your behalf

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

Insert mail into your mailbox

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

Manage drafts and send emails

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

View your emails messages and settings

API Declaration

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.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.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 Source #

Instances

Eq BatchDeleteMessagesRequest Source # 
Data BatchDeleteMessagesRequest Source # 

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 Source # 
Generic BatchDeleteMessagesRequest Source # 
ToJSON BatchDeleteMessagesRequest Source # 
FromJSON BatchDeleteMessagesRequest Source # 
type Rep BatchDeleteMessagesRequest Source # 
type Rep BatchDeleteMessagesRequest = D1 (MetaData "BatchDeleteMessagesRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" True) (C1 (MetaCons "BatchDeleteMessagesRequest'" PrefixI True) (S1 (MetaSel (Just Symbol "_bdmrIds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Text]))))

batchDeleteMessagesRequest :: BatchDeleteMessagesRequest Source #

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] Source #

The IDs of the messages to delete.

UsersMessagesGetFormat

data UsersMessagesGetFormat Source #

The format to return the message in.

Constructors

Full
full
Metadata
metadata
Minimal
minimal
Raw
raw

Instances

Enum UsersMessagesGetFormat Source # 
Eq UsersMessagesGetFormat Source # 
Data UsersMessagesGetFormat Source # 

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 Source # 
Read UsersMessagesGetFormat Source # 
Show UsersMessagesGetFormat Source # 
Generic UsersMessagesGetFormat Source # 
ToJSON UsersMessagesGetFormat Source # 
FromJSON UsersMessagesGetFormat Source # 
FromHttpApiData UsersMessagesGetFormat Source # 
ToHttpApiData UsersMessagesGetFormat Source # 
Hashable UsersMessagesGetFormat Source # 
type Rep UsersMessagesGetFormat Source # 
type Rep UsersMessagesGetFormat = D1 (MetaData "UsersMessagesGetFormat" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

Instances

Eq ModifyThreadRequest Source # 
Data ModifyThreadRequest Source # 

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 Source # 
Generic ModifyThreadRequest Source # 
ToJSON ModifyThreadRequest Source # 
FromJSON ModifyThreadRequest Source # 
type Rep ModifyThreadRequest Source # 
type Rep ModifyThreadRequest = D1 (MetaData "ModifyThreadRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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] Source #

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

mtrAddLabelIds :: Lens' ModifyThreadRequest [Text] Source #

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

ModifyMessageRequest

data ModifyMessageRequest Source #

Instances

Eq ModifyMessageRequest Source # 
Data ModifyMessageRequest Source # 

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 Source # 
Generic ModifyMessageRequest Source # 
ToJSON ModifyMessageRequest Source # 
FromJSON ModifyMessageRequest Source # 
type Rep ModifyMessageRequest Source # 
type Rep ModifyMessageRequest = D1 (MetaData "ModifyMessageRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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] Source #

A list IDs of labels to remove from this message.

mmrAddLabelIds :: Lens' ModifyMessageRequest [Text] Source #

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

History

data History Source #

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 Source # 

Methods

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

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

Data History Source # 

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 Source # 
Generic History Source # 

Associated Types

type Rep History :: * -> * #

Methods

from :: History -> Rep History x #

to :: Rep History x -> History #

ToJSON History Source # 
FromJSON History Source # 
type Rep History Source # 

history :: History Source #

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] Source #

Labels removed from messages in this history record.

hMessagesDeleted :: Lens' History [HistoryMessageDeleted] Source #

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

hMessagesAdded :: Lens' History [HistoryMessageAdded] Source #

Messages added to the mailbox in this history record.

hLabelsAdded :: Lens' History [HistoryLabelAdded] Source #

Labels added to messages in this history record.

hId :: Lens' History (Maybe Word64) Source #

The mailbox sequence ID.

hMessages :: Lens' History [Message] Source #

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.

ProFile

data ProFile Source #

Profile for a Gmail user.

See: proFile smart constructor.

Instances

Eq ProFile Source # 

Methods

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

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

Data ProFile Source # 

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 Source # 
Generic ProFile Source # 

Associated Types

type Rep ProFile :: * -> * #

Methods

from :: ProFile -> Rep ProFile x #

to :: Rep ProFile x -> ProFile #

ToJSON ProFile Source # 
FromJSON ProFile Source # 
type Rep ProFile Source # 
type Rep ProFile = D1 (MetaData "ProFile" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

The total number of messages in the mailbox.

pfThreadsTotal :: Lens' ProFile (Maybe Int32) Source #

The total number of threads in the mailbox.

pfHistoryId :: Lens' ProFile (Maybe Word64) Source #

The ID of the mailbox's current history record.

pfEmailAddress :: Lens' ProFile (Maybe Text) Source #

The user's email address.

MessagePartHeader

data MessagePartHeader Source #

Instances

Eq MessagePartHeader Source # 
Data MessagePartHeader Source # 

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 Source # 
Generic MessagePartHeader Source # 
ToJSON MessagePartHeader Source # 
FromJSON MessagePartHeader Source # 
type Rep MessagePartHeader Source # 
type Rep MessagePartHeader = D1 (MetaData "MessagePartHeader" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

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

mphName :: Lens' MessagePartHeader (Maybe Text) Source #

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

ListHistoryResponse

data ListHistoryResponse Source #

Instances

Eq ListHistoryResponse Source # 
Data ListHistoryResponse Source # 

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 Source # 
Generic ListHistoryResponse Source # 
ToJSON ListHistoryResponse Source # 
FromJSON ListHistoryResponse Source # 
type Rep ListHistoryResponse Source # 
type Rep ListHistoryResponse = D1 (MetaData "ListHistoryResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

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

lhrHistory :: Lens' ListHistoryResponse [History] Source #

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

lhrHistoryId :: Lens' ListHistoryResponse (Maybe Word64) Source #

The ID of the mailbox's current history record.

LabelType

data LabelType Source #

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 Source # 
Eq LabelType Source # 
Data LabelType Source # 

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 Source # 
Read LabelType Source # 
Show LabelType Source # 
Generic LabelType Source # 

Associated Types

type Rep LabelType :: * -> * #

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

UsersDraftsGetFormat

data UsersDraftsGetFormat Source #

The format to return the draft in.

Constructors

UDGFFull
full
UDGFMetadata
metadata
UDGFMinimal
minimal
UDGFRaw
raw

Instances

Enum UsersDraftsGetFormat Source # 
Eq UsersDraftsGetFormat Source # 
Data UsersDraftsGetFormat Source # 

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 Source # 
Read UsersDraftsGetFormat Source # 
Show UsersDraftsGetFormat Source # 
Generic UsersDraftsGetFormat Source # 
ToJSON UsersDraftsGetFormat Source # 
FromJSON UsersDraftsGetFormat Source # 
FromHttpApiData UsersDraftsGetFormat Source # 
ToHttpApiData UsersDraftsGetFormat Source # 
Hashable UsersDraftsGetFormat Source # 
type Rep UsersDraftsGetFormat Source # 
type Rep UsersDraftsGetFormat = D1 (MetaData "UsersDraftsGetFormat" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 #

Source for Gmail's internal date of the message.

Constructors

DateHeader
dateHeader
ReceivedTime
receivedTime

Instances

Enum UsersMessagesImportInternalDateSource Source # 
Eq UsersMessagesImportInternalDateSource Source # 
Data UsersMessagesImportInternalDateSource Source # 

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 Source # 
Read UsersMessagesImportInternalDateSource Source # 
Show UsersMessagesImportInternalDateSource Source # 
Generic UsersMessagesImportInternalDateSource Source # 
ToJSON UsersMessagesImportInternalDateSource Source # 
FromJSON UsersMessagesImportInternalDateSource Source # 
FromHttpApiData UsersMessagesImportInternalDateSource Source # 
ToHttpApiData UsersMessagesImportInternalDateSource Source # 
Hashable UsersMessagesImportInternalDateSource Source # 
type Rep UsersMessagesImportInternalDateSource Source # 
type Rep UsersMessagesImportInternalDateSource = D1 (MetaData "UsersMessagesImportInternalDateSource" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" False) ((:+:) (C1 (MetaCons "DateHeader" PrefixI False) U1) (C1 (MetaCons "ReceivedTime" PrefixI False) U1))

LabelMessageListVisibility

data LabelMessageListVisibility Source #

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

Constructors

Hide
hide
Show
show

Instances

Enum LabelMessageListVisibility Source # 
Eq LabelMessageListVisibility Source # 
Data LabelMessageListVisibility Source # 

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 Source # 
Read LabelMessageListVisibility Source # 
Show LabelMessageListVisibility Source # 
Generic LabelMessageListVisibility Source # 
ToJSON LabelMessageListVisibility Source # 
FromJSON LabelMessageListVisibility Source # 
FromHttpApiData LabelMessageListVisibility Source # 
ToHttpApiData LabelMessageListVisibility Source # 
Hashable LabelMessageListVisibility Source # 
type Rep LabelMessageListVisibility Source # 
type Rep LabelMessageListVisibility = D1 (MetaData "LabelMessageListVisibility" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" False) ((:+:) (C1 (MetaCons "Hide" PrefixI False) U1) (C1 (MetaCons "Show" PrefixI False) U1))

ListThreadsResponse

data ListThreadsResponse Source #

Instances

Eq ListThreadsResponse Source # 
Data ListThreadsResponse Source # 

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 Source # 
Generic ListThreadsResponse Source # 
ToJSON ListThreadsResponse Source # 
FromJSON ListThreadsResponse Source # 
type Rep ListThreadsResponse Source # 
type Rep ListThreadsResponse = D1 (MetaData "ListThreadsResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

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

ltrResultSizeEstimate :: Lens' ListThreadsResponse (Maybe Word32) Source #

Estimated total number of results.

MessagePart

data MessagePart Source #

A single MIME message part.

See: messagePart smart constructor.

Instances

Eq MessagePart Source # 
Data MessagePart Source # 

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 Source # 
Generic MessagePart Source # 

Associated Types

type Rep MessagePart :: * -> * #

ToJSON MessagePart Source # 
FromJSON MessagePart Source # 
type Rep MessagePart Source # 

messagePart :: MessagePart Source #

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] Source #

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) Source #

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

mpMimeType :: Lens' MessagePart (Maybe Text) Source #

The MIME type of the message part.

mpHeaders :: Lens' MessagePart [MessagePartHeader] Source #

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) Source #

The immutable ID of the message part.

mpFilename :: Lens' MessagePart (Maybe Text) Source #

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

HistoryLabelAdded

data HistoryLabelAdded Source #

Instances

Eq HistoryLabelAdded Source # 
Data HistoryLabelAdded Source # 

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 Source # 
Generic HistoryLabelAdded Source # 
ToJSON HistoryLabelAdded Source # 
FromJSON HistoryLabelAdded Source # 
type Rep HistoryLabelAdded Source # 
type Rep HistoryLabelAdded = D1 (MetaData "HistoryLabelAdded" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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] Source #

Label IDs added to the message.

ListLabelsResponse

data ListLabelsResponse Source #

Instances

Eq ListLabelsResponse Source # 
Data ListLabelsResponse Source # 

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 Source # 
Generic ListLabelsResponse Source # 
ToJSON ListLabelsResponse Source # 
FromJSON ListLabelsResponse Source # 
type Rep ListLabelsResponse Source # 
type Rep ListLabelsResponse = D1 (MetaData "ListLabelsResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" True) (C1 (MetaCons "ListLabelsResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_llrLabels") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Label]))))

listLabelsResponse :: ListLabelsResponse Source #

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:

LabelLabelListVisibility

data LabelLabelListVisibility Source #

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

Constructors

LabelHide
labelHide
LabelShow
labelShow
LabelShowIfUnread
labelShowIfUnread

Instances

Enum LabelLabelListVisibility Source # 
Eq LabelLabelListVisibility Source # 
Data LabelLabelListVisibility Source # 

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 Source # 
Read LabelLabelListVisibility Source # 
Show LabelLabelListVisibility Source # 
Generic LabelLabelListVisibility Source # 
ToJSON LabelLabelListVisibility Source # 
FromJSON LabelLabelListVisibility Source # 
FromHttpApiData LabelLabelListVisibility Source # 
ToHttpApiData LabelLabelListVisibility Source # 
Hashable LabelLabelListVisibility Source # 
type Rep LabelLabelListVisibility Source # 
type Rep LabelLabelListVisibility = D1 (MetaData "LabelLabelListVisibility" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" False) ((:+:) (C1 (MetaCons "LabelHide" PrefixI False) U1) ((:+:) (C1 (MetaCons "LabelShow" PrefixI False) U1) (C1 (MetaCons "LabelShowIfUnread" PrefixI False) U1)))

HistoryMessageDeleted

data HistoryMessageDeleted Source #

Instances

Eq HistoryMessageDeleted Source # 
Data HistoryMessageDeleted Source # 

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 Source # 
Generic HistoryMessageDeleted Source # 
ToJSON HistoryMessageDeleted Source # 
FromJSON HistoryMessageDeleted Source # 
type Rep HistoryMessageDeleted Source # 
type Rep HistoryMessageDeleted = D1 (MetaData "HistoryMessageDeleted" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" True) (C1 (MetaCons "HistoryMessageDeleted'" PrefixI True) (S1 (MetaSel (Just Symbol "_hmdMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Message))))

historyMessageDeleted :: HistoryMessageDeleted Source #

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 Source #

The body of a single MIME message part.

See: messagePartBody smart constructor.

Instances

Eq MessagePartBody Source # 
Data MessagePartBody Source # 

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 Source # 
Generic MessagePartBody Source # 
ToJSON MessagePartBody Source # 
FromJSON MessagePartBody Source # 
type Rep MessagePartBody Source # 
type Rep MessagePartBody = D1 (MetaData "MessagePartBody" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Base64))) (S1 (MetaSel (Just Symbol "_mpbAttachmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

messagePartBody :: MessagePartBody Source #

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) Source #

Total number of bytes in the body of the message part.

mpbData :: Lens' MessagePartBody (Maybe ByteString) Source #

The body data of a MIME message part. 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) Source #

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.

ListDraftsResponse

data ListDraftsResponse Source #

Instances

Eq ListDraftsResponse Source # 
Data ListDraftsResponse Source # 

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 Source # 
Generic ListDraftsResponse Source # 
ToJSON ListDraftsResponse Source # 
FromJSON ListDraftsResponse Source # 
type Rep ListDraftsResponse Source # 
type Rep ListDraftsResponse = D1 (MetaData "ListDraftsResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

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

ldrResultSizeEstimate :: Lens' ListDraftsResponse (Maybe Word32) Source #

Estimated total number of results.

WatchResponse

data WatchResponse Source #

Push notification watch response.

See: watchResponse smart constructor.

Instances

Eq WatchResponse Source # 
Data WatchResponse Source # 

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 Source # 
Generic WatchResponse Source # 

Associated Types

type Rep WatchResponse :: * -> * #

ToJSON WatchResponse Source # 
FromJSON WatchResponse Source # 
type Rep WatchResponse Source # 
type Rep WatchResponse = D1 (MetaData "WatchResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

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) Source #

The ID of the mailbox's current history record.

UsersThreadsGetFormat

data UsersThreadsGetFormat Source #

The format to return the messages in.

Constructors

UTGFFull
full
UTGFMetadata
metadata
UTGFMinimal
minimal

Instances

Enum UsersThreadsGetFormat Source # 
Eq UsersThreadsGetFormat Source # 
Data UsersThreadsGetFormat Source # 

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 Source # 
Read UsersThreadsGetFormat Source # 
Show UsersThreadsGetFormat Source # 
Generic UsersThreadsGetFormat Source # 
ToJSON UsersThreadsGetFormat Source # 
FromJSON UsersThreadsGetFormat Source # 
FromHttpApiData UsersThreadsGetFormat Source # 
ToHttpApiData UsersThreadsGetFormat Source # 
Hashable UsersThreadsGetFormat Source # 
type Rep UsersThreadsGetFormat Source # 
type Rep UsersThreadsGetFormat = D1 (MetaData "UsersThreadsGetFormat" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" False) ((:+:) (C1 (MetaCons "UTGFFull" PrefixI False) U1) ((:+:) (C1 (MetaCons "UTGFMetadata" PrefixI False) U1) (C1 (MetaCons "UTGFMinimal" PrefixI False) U1)))

Draft

data Draft Source #

A draft email in the user's mailbox.

See: draft smart constructor.

Instances

Eq Draft Source # 

Methods

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

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

Data Draft Source # 

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 Source # 

Methods

showsPrec :: Int -> Draft -> ShowS #

show :: Draft -> String #

showList :: [Draft] -> ShowS #

Generic Draft Source # 

Associated Types

type Rep Draft :: * -> * #

Methods

from :: Draft -> Rep Draft x #

to :: Rep Draft x -> Draft #

ToJSON Draft Source # 
FromJSON Draft Source # 
type Rep Draft Source # 
type Rep Draft = D1 (MetaData "Draft" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

The immutable ID of the draft.

dMessage :: Lens' Draft (Maybe Message) Source #

The message content of the draft.

WatchRequest

data WatchRequest Source #

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

See: watchRequest smart constructor.

Instances

Eq WatchRequest Source # 
Data WatchRequest Source # 

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 Source # 
Generic WatchRequest Source # 

Associated Types

type Rep WatchRequest :: * -> * #

ToJSON WatchRequest Source # 
FromJSON WatchRequest Source # 
type Rep WatchRequest Source # 
type Rep WatchRequest = D1 (MetaData "WatchRequest" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

Filtering behavior of labelIds list specified.

wrTopicName :: Lens' WatchRequest (Maybe Text) Source #

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] Source #

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 Source #

Filtering behavior of labelIds list specified.

Constructors

Exclude
exclude
Include
include

Instances

Enum WatchRequestLabelFilterAction Source # 
Eq WatchRequestLabelFilterAction Source # 
Data WatchRequestLabelFilterAction Source # 

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 Source # 
Read WatchRequestLabelFilterAction Source # 
Show WatchRequestLabelFilterAction Source # 
Generic WatchRequestLabelFilterAction Source # 
ToJSON WatchRequestLabelFilterAction Source # 
FromJSON WatchRequestLabelFilterAction Source # 
FromHttpApiData WatchRequestLabelFilterAction Source # 
ToHttpApiData WatchRequestLabelFilterAction Source # 
Hashable WatchRequestLabelFilterAction Source # 
type Rep WatchRequestLabelFilterAction Source # 
type Rep WatchRequestLabelFilterAction = D1 (MetaData "WatchRequestLabelFilterAction" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" False) ((:+:) (C1 (MetaCons "Exclude" PrefixI False) U1) (C1 (MetaCons "Include" PrefixI False) U1))

Message

data Message Source #

An email message.

See: message smart constructor.

Instances

Eq Message Source # 

Methods

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

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

Data Message Source # 

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 Source # 
Generic Message Source # 

Associated Types

type Rep Message :: * -> * #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

ToJSON Message Source # 
FromJSON Message Source # 
type Rep Message Source # 

message :: Message Source #

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) Source #

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) Source #

A short part of the message text.

mSizeEstimate :: Lens' Message (Maybe Int32) Source #

Estimated size in bytes of the message.

mPayload :: Lens' Message (Maybe MessagePart) Source #

The parsed email structure in the message parts.

mHistoryId :: Lens' Message (Maybe Word64) Source #

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

mId :: Lens' Message (Maybe Text) Source #

The immutable ID of the message.

mLabelIds :: Lens' Message [Text] Source #

List of IDs of labels applied to this message.

mThreadId :: Lens' Message (Maybe Text) Source #

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) Source #

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 #

Source for Gmail's internal date of the message.

Constructors

UMIIDSDateHeader
dateHeader
UMIIDSReceivedTime
receivedTime

Instances

Enum UsersMessagesInsertInternalDateSource Source # 
Eq UsersMessagesInsertInternalDateSource Source # 
Data UsersMessagesInsertInternalDateSource Source # 

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 Source # 
Read UsersMessagesInsertInternalDateSource Source # 
Show UsersMessagesInsertInternalDateSource Source # 
Generic UsersMessagesInsertInternalDateSource Source # 
ToJSON UsersMessagesInsertInternalDateSource Source # 
FromJSON UsersMessagesInsertInternalDateSource Source # 
FromHttpApiData UsersMessagesInsertInternalDateSource Source # 
ToHttpApiData UsersMessagesInsertInternalDateSource Source # 
Hashable UsersMessagesInsertInternalDateSource Source # 
type Rep UsersMessagesInsertInternalDateSource Source # 
type Rep UsersMessagesInsertInternalDateSource = D1 (MetaData "UsersMessagesInsertInternalDateSource" "Network.Google.Gmail.Types.Sum" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" False) ((:+:) (C1 (MetaCons "UMIIDSDateHeader" PrefixI False) U1) (C1 (MetaCons "UMIIDSReceivedTime" PrefixI False) U1))

HistoryLabelRemoved

data HistoryLabelRemoved Source #

Instances

Eq HistoryLabelRemoved Source # 
Data HistoryLabelRemoved Source # 

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 Source # 
Generic HistoryLabelRemoved Source # 
ToJSON HistoryLabelRemoved Source # 
FromJSON HistoryLabelRemoved Source # 
type Rep HistoryLabelRemoved Source # 
type Rep HistoryLabelRemoved = D1 (MetaData "HistoryLabelRemoved" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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] Source #

Label IDs removed from the message.

Thread

data Thread Source #

A collection of messages representing a conversation.

See: thread smart constructor.

Instances

Eq Thread Source # 

Methods

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

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

Data Thread Source # 

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 Source # 
Generic Thread Source # 

Associated Types

type Rep Thread :: * -> * #

Methods

from :: Thread -> Rep Thread x #

to :: Rep Thread x -> Thread #

ToJSON Thread Source # 
FromJSON Thread Source # 
type Rep Thread Source # 
type Rep Thread = D1 (MetaData "Thread" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

A short part of the message text.

tHistoryId :: Lens' Thread (Maybe Word64) Source #

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

tId :: Lens' Thread (Maybe Text) Source #

The unique ID of the thread.

tMessages :: Lens' Thread [Message] Source #

The list of messages in the thread.

Label

data Label Source #

Labels are used to categorize messages and threads within the user's mailbox.

See: label smart constructor.

Instances

Eq Label Source # 

Methods

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

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

Data Label Source # 

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 Source # 

Methods

showsPrec :: Int -> Label -> ShowS #

show :: Label -> String #

showList :: [Label] -> ShowS #

Generic Label Source # 

Associated Types

type Rep Label :: * -> * #

Methods

from :: Label -> Rep Label x #

to :: Rep Label x -> Label #

ToJSON Label Source # 
FromJSON Label Source # 
type Rep Label Source # 

label :: Label Source #

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) Source #

The number of unread threads with the label.

lMessageListVisibility :: Lens' Label (Maybe LabelMessageListVisibility) Source #

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

lMessagesTotal :: Lens' Label (Maybe Int32) Source #

The total number of messages with the label.

lMessagesUnread :: Lens' Label (Maybe Int32) Source #

The number of unread messages with the label.

lName :: Lens' Label (Maybe Text) Source #

The display name of the label.

lThreadsTotal :: Lens' Label (Maybe Int32) Source #

The total number of threads with the label.

lLabelListVisibility :: Lens' Label (Maybe LabelLabelListVisibility) Source #

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

lId :: Lens' Label (Maybe Text) Source #

The immutable ID of the label.

lType :: Lens' Label (Maybe LabelType) Source #

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 Source #

Instances

Eq ListMessagesResponse Source # 
Data ListMessagesResponse Source # 

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 Source # 
Generic ListMessagesResponse Source # 
ToJSON ListMessagesResponse Source # 
FromJSON ListMessagesResponse Source # 
type Rep ListMessagesResponse Source # 
type Rep ListMessagesResponse = D1 (MetaData "ListMessagesResponse" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" 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 Source #

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) Source #

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

lmrResultSizeEstimate :: Lens' ListMessagesResponse (Maybe Word32) Source #

Estimated total number of results.

HistoryMessageAdded

data HistoryMessageAdded Source #

Instances

Eq HistoryMessageAdded Source # 
Data HistoryMessageAdded Source # 

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 Source # 
Generic HistoryMessageAdded Source # 
ToJSON HistoryMessageAdded Source # 
FromJSON HistoryMessageAdded Source # 
type Rep HistoryMessageAdded Source # 
type Rep HistoryMessageAdded = D1 (MetaData "HistoryMessageAdded" "Network.Google.Gmail.Types.Product" "gogol-gmail-0.1.0-ASjC8pm2f7VEZMxLxRmIJv" True) (C1 (MetaCons "HistoryMessageAdded'" PrefixI True) (S1 (MetaSel (Just Symbol "_hmaMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Message))))

historyMessageAdded :: HistoryMessageAdded Source #

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: