gogol-chat-0.5.0: Google Hangouts Chat 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.Chat

Contents

Description

Enables bots to fetch information and perform actions in Hangouts Chat.

See: Hangouts Chat API Reference

Synopsis

Service Configuration

chatService :: ServiceConfig Source #

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

API Declaration

Resources

chat.spaces.get

chat.spaces.list

chat.spaces.members.get

chat.spaces.members.list

chat.spaces.messages.create

chat.spaces.messages.delete

chat.spaces.messages.get

chat.spaces.messages.update

Types

Card

data Card Source #

A card is a UI element that can contain UI widgets such as texts, images.

See: card smart constructor.

Instances
Eq Card Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

Data Card Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: Card -> Constr #

dataTypeOf :: Card -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Card Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

showsPrec :: Int -> Card -> ShowS #

show :: Card -> String #

showList :: [Card] -> ShowS #

Generic Card Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep Card :: Type -> Type #

Methods

from :: Card -> Rep Card x #

to :: Rep Card x -> Card #

ToJSON Card Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON Card Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Card Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Card = D1 (MetaData "Card" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "Card'" PrefixI True) ((S1 (MetaSel (Just "_cCardActions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CardAction])) :*: S1 (MetaSel (Just "_cName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cHeader") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CardHeader)) :*: S1 (MetaSel (Just "_cSections") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Section])))))

card :: Card Source #

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

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

cCardActions :: Lens' Card [CardAction] Source #

The actions of this card.

cName :: Lens' Card (Maybe Text) Source #

Name of the card.

cHeader :: Lens' Card (Maybe CardHeader) Source #

The header of the card. A header usually contains a title and an image.

cSections :: Lens' Card [Section] Source #

Sections are separated by a line divider.

Space

data Space Source #

A room or DM in Hangouts Chat.

See: space smart constructor.

Instances
Eq Space Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

Data Space Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: Space -> Constr #

dataTypeOf :: Space -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Space Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

showsPrec :: Int -> Space -> ShowS #

show :: Space -> String #

showList :: [Space] -> ShowS #

Generic Space Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep Space :: Type -> Type #

Methods

from :: Space -> Rep Space x #

to :: Rep Space x -> Space #

ToJSON Space Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON Space Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Space Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Space = D1 (MetaData "Space" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "Space'" PrefixI True) (S1 (MetaSel (Just "_sName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SpaceType)))))

space :: Space Source #

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

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

sName :: Lens' Space (Maybe Text) Source #

Resource name of the space, in the form "spaces/*". Example: spaces/AAAAMpdlehYs

sDisplayName :: Lens' Space (Maybe Text) Source #

Output only. The display name (only if the space is a room).

sType :: Lens' Space (Maybe SpaceType) Source #

Output only. The type of a space.

KeyValue

data KeyValue Source #

A UI element contains a key (label) and a value (content). And this element may also contain some actions such as onclick button.

See: keyValue smart constructor.

Instances
Eq KeyValue Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data KeyValue Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: KeyValue -> Constr #

dataTypeOf :: KeyValue -> DataType #

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

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

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

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

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

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

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

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

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

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

Show KeyValue Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic KeyValue Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep KeyValue :: Type -> Type #

Methods

from :: KeyValue -> Rep KeyValue x #

to :: Rep KeyValue x -> KeyValue #

ToJSON KeyValue Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON KeyValue Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep KeyValue Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

keyValue :: KeyValue Source #

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

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

kvOnClick :: Lens' KeyValue (Maybe OnClick) Source #

The onclick action. Only the top label, bottom label and content region are clickable.

kvTopLabel :: Lens' KeyValue (Maybe Text) Source #

The text of the top label. Formatted text supported.

kvIcon :: Lens' KeyValue (Maybe KeyValueIcon) Source #

An enum value that will be replaced by the Chat API with the corresponding icon image.

kvButton :: Lens' KeyValue (Maybe Button) Source #

A button that can be clicked to trigger an action.

kvContent :: Lens' KeyValue (Maybe Text) Source #

The text of the content. Formatted text supported and always required.

kvIconURL :: Lens' KeyValue (Maybe Text) Source #

The icon specified by a URL.

kvContentMultiline :: Lens' KeyValue (Maybe Bool) Source #

If the content should be multiline.

kvBottomLabel :: Lens' KeyValue (Maybe Text) Source #

The text of the bottom label. Formatted text supported.

WidgetMarkup

data WidgetMarkup Source #

A widget is a UI element that presents texts, images, etc.

See: widgetMarkup smart constructor.

Instances
Eq WidgetMarkup Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data WidgetMarkup Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: WidgetMarkup -> Constr #

dataTypeOf :: WidgetMarkup -> DataType #

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

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

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

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

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

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

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

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

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

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

Show WidgetMarkup Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic WidgetMarkup Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep WidgetMarkup :: Type -> Type #

ToJSON WidgetMarkup Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON WidgetMarkup Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep WidgetMarkup Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep WidgetMarkup = D1 (MetaData "WidgetMarkup" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "WidgetMarkup'" PrefixI True) ((S1 (MetaSel (Just "_wmKeyValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe KeyValue)) :*: S1 (MetaSel (Just "_wmImage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Image))) :*: (S1 (MetaSel (Just "_wmButtons") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Button])) :*: S1 (MetaSel (Just "_wmTextParagraph") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TextParagraph)))))

widgetMarkup :: WidgetMarkup Source #

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

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

wmKeyValue :: Lens' WidgetMarkup (Maybe KeyValue) Source #

Display a key value item in this widget.

wmImage :: Lens' WidgetMarkup (Maybe Image) Source #

Display an image in this widget.

wmButtons :: Lens' WidgetMarkup [Button] Source #

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

wmTextParagraph :: Lens' WidgetMarkup (Maybe TextParagraph) Source #

Display a text paragraph in this widget.

OnClick

data OnClick Source #

An onclick action (e.g. open a link).

See: onClick smart constructor.

Instances
Eq OnClick Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

Data OnClick Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: OnClick -> Constr #

dataTypeOf :: OnClick -> DataType #

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

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

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

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

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

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

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

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

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

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

Show OnClick Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic OnClick Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep OnClick :: Type -> Type #

Methods

from :: OnClick -> Rep OnClick x #

to :: Rep OnClick x -> OnClick #

ToJSON OnClick Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON OnClick Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep OnClick Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep OnClick = D1 (MetaData "OnClick" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "OnClick'" PrefixI True) (S1 (MetaSel (Just "_ocAction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FormAction)) :*: S1 (MetaSel (Just "_ocOpenLink") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OpenLink))))

onClick :: OnClick Source #

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

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

ocAction :: Lens' OnClick (Maybe FormAction) Source #

A form action will be trigger by this onclick if specified.

ocOpenLink :: Lens' OnClick (Maybe OpenLink) Source #

This onclick triggers an open link action if specified.

Annotation

data Annotation Source #

Annotations associated with the plain-text body of the message. Example plain-text message body: ``` Hello 'FooBot how are you!" ``` The corresponding annotations metadata: ``` "annotations":[{ "type":"USER_MENTION", "startIndex":6, "length":7, "userMention": { "user": { "name":"users/107946847022116401880", "displayName":"FooBot", "avatarUrl":"https://goo.gl/aeDtrS", "type":"BOT" }, "type":"MENTION" } }] ```

See: annotation smart constructor.

Instances
Eq Annotation Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data Annotation Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: Annotation -> Constr #

dataTypeOf :: Annotation -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Annotation Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic Annotation Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep Annotation :: Type -> Type #

ToJSON Annotation Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON Annotation Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Annotation Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Annotation = D1 (MetaData "Annotation" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "Annotation'" PrefixI True) ((S1 (MetaSel (Just "_aLength") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_aType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AnnotationType))) :*: (S1 (MetaSel (Just "_aUserMention") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserMentionMetadata)) :*: S1 (MetaSel (Just "_aStartIndex") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))))

annotation :: Annotation Source #

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

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

aLength :: Lens' Annotation (Maybe Int32) Source #

Length of the substring in the plain-text message body this annotation corresponds to.

aType :: Lens' Annotation (Maybe AnnotationType) Source #

The type of this annotation.

aUserMention :: Lens' Annotation (Maybe UserMentionMetadata) Source #

The metadata of user mention.

aStartIndex :: Lens' Annotation (Maybe Int32) Source #

Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.

Image

data Image Source #

An image that is specified by a URL and can have an onclick action.

See: image smart constructor.

Instances
Eq Image Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

Data Image Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: Image -> Constr #

dataTypeOf :: Image -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Image Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

showsPrec :: Int -> Image -> ShowS #

show :: Image -> String #

showList :: [Image] -> ShowS #

Generic Image Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep Image :: Type -> Type #

Methods

from :: Image -> Rep Image x #

to :: Rep Image x -> Image #

ToJSON Image Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON Image Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Image Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Image = D1 (MetaData "Image" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "Image'" PrefixI True) (S1 (MetaSel (Just "_iOnClick") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OnClick)) :*: (S1 (MetaSel (Just "_iAspectRatio") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Double))) :*: S1 (MetaSel (Just "_iImageURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

image :: Image Source #

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

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

iOnClick :: Lens' Image (Maybe OnClick) Source #

The onclick action.

iAspectRatio :: Lens' Image (Maybe Double) Source #

The aspect ratio of this image (width/height).

iImageURL :: Lens' Image (Maybe Text) Source #

The URL of the image.

KeyValueIcon

data KeyValueIcon Source #

An enum value that will be replaced by the Chat API with the corresponding icon image.

Constructors

KVIIconUnspecified
ICON_UNSPECIFIED
KVIAirplane
AIRPLANE
KVIBookmark
BOOKMARK
KVIBus
BUS
KVICar
CAR
KVIClock
CLOCK
KVIConfirmationNumberIcon
CONFIRMATION_NUMBER_ICON
KVIDollar
DOLLAR
KVIDescription
DESCRIPTION
KVIEmail
EMAIL
KVIEventPerformer
EVENT_PERFORMER
KVIEventSeat
EVENT_SEAT
KVIFlightArrival
FLIGHT_ARRIVAL
KVIFlightDeParture
FLIGHT_DEPARTURE
KVIHotel
HOTEL
KVIHotelRoomType
HOTEL_ROOM_TYPE
KVIInvite
INVITE
KVIMapPin
MAP_PIN
KVIMembership
MEMBERSHIP
KVIMultiplePeople
MULTIPLE_PEOPLE
KVIOffer
OFFER
KVIPerson
PERSON
KVIPhone
PHONE
KVIRestaurantIcon
RESTAURANT_ICON
KVIShoppingCart
SHOPPING_CART
KVIStar
STAR
KVIStore
STORE
KVITicket
TICKET
KVITrain
TRAIN
KVIVideoCamera
VIDEO_CAMERA
KVIVideoPlay
VIDEO_PLAY
Instances
Enum KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: KeyValueIcon -> Constr #

dataTypeOf :: KeyValueIcon -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep KeyValueIcon :: Type -> Type #

Hashable KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep KeyValueIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep KeyValueIcon = D1 (MetaData "KeyValueIcon" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) ((((C1 (MetaCons "KVIIconUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "KVIAirplane" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIBookmark" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "KVIBus" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVICar" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "KVIClock" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIConfirmationNumberIcon" PrefixI False) (U1 :: Type -> Type)))) :+: (((C1 (MetaCons "KVIDollar" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIDescription" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "KVIEmail" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIEventPerformer" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "KVIEventSeat" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIFlightArrival" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "KVIFlightDeParture" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIHotel" PrefixI False) (U1 :: Type -> Type))))) :+: ((((C1 (MetaCons "KVIHotelRoomType" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIInvite" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "KVIMapPin" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIMembership" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "KVIMultiplePeople" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIOffer" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "KVIPerson" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIPhone" PrefixI False) (U1 :: Type -> Type)))) :+: (((C1 (MetaCons "KVIRestaurantIcon" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIShoppingCart" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "KVIStar" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIStore" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "KVITicket" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVITrain" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "KVIVideoCamera" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KVIVideoPlay" PrefixI False) (U1 :: Type -> Type))))))

ActionParameter

data ActionParameter Source #

List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.

See: actionParameter smart constructor.

Instances
Eq ActionParameter Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data ActionParameter Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: ActionParameter -> Constr #

dataTypeOf :: ActionParameter -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ActionParameter Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic ActionParameter Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep ActionParameter :: Type -> Type #

ToJSON ActionParameter Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON ActionParameter Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep ActionParameter Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep ActionParameter = D1 (MetaData "ActionParameter" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "ActionParameter'" PrefixI True) (S1 (MetaSel (Just "_apValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_apKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

actionParameter :: ActionParameter Source #

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

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

apValue :: Lens' ActionParameter (Maybe Text) Source #

The value of the parameter.

apKey :: Lens' ActionParameter (Maybe Text) Source #

The name of the parameter for the action script.

Membership

data Membership Source #

Represents a membership relation in Hangouts Chat.

See: membership smart constructor.

Instances
Eq Membership Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data Membership Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: Membership -> Constr #

dataTypeOf :: Membership -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Membership Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic Membership Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep Membership :: Type -> Type #

ToJSON Membership Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON Membership Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Membership Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Membership = D1 (MetaData "Membership" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "Membership'" PrefixI True) ((S1 (MetaSel (Just "_mState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MembershipState)) :*: S1 (MetaSel (Just "_mName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_mMember") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe User)) :*: S1 (MetaSel (Just "_mCreateTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')))))

membership :: Membership Source #

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

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

mState :: Lens' Membership (Maybe MembershipState) Source #

State of the membership.

mName :: Lens' Membership (Maybe Text) Source #

Resource name of the membership, in the form "spaces/*/members/*". Example: spaces/AAAAMpdlehY/members/105115627578887013105

mMember :: Lens' Membership (Maybe User) Source #

Member details.

mCreateTime :: Lens' Membership (Maybe UTCTime) Source #

The creation time of the membership a.k.a the time at which the member joined the space, if applicable.

ActionResponseType

data ActionResponseType Source #

The type of bot response.

Constructors

TypeUnspecified

TYPE_UNSPECIFIED Default type; will be handled as NEW_MESSAGE.

NewMessage

NEW_MESSAGE Post as a new message in the topic.

UpdateMessage

UPDATE_MESSAGE Update the bot's own message. (Only after CARD_CLICKED events.)

RequestConfig

REQUEST_CONFIG Privately ask the user for additional auth or config.

Instances
Enum ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: ActionResponseType -> Constr #

dataTypeOf :: ActionResponseType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep ActionResponseType :: Type -> Type #

Hashable ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep ActionResponseType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep ActionResponseType = D1 (MetaData "ActionResponseType" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) ((C1 (MetaCons "TypeUnspecified" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "NewMessage" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "UpdateMessage" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "RequestConfig" PrefixI False) (U1 :: Type -> Type)))

Empty

data Empty Source #

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.

See: empty smart constructor.

Instances
Eq Empty Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

Data Empty Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: Empty -> Constr #

dataTypeOf :: Empty -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Empty Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

showsPrec :: Int -> Empty -> ShowS #

show :: Empty -> String #

showList :: [Empty] -> ShowS #

Generic Empty Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep Empty :: Type -> Type #

Methods

from :: Empty -> Rep Empty x #

to :: Rep Empty x -> Empty #

ToJSON Empty Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON Empty Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Empty Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Empty = D1 (MetaData "Empty" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "Empty'" PrefixI False) (U1 :: Type -> Type))

empty :: Empty Source #

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

DeprecatedEvent

data DeprecatedEvent Source #

Hangouts Chat events.

See: deprecatedEvent smart constructor.

Instances
Eq DeprecatedEvent Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data DeprecatedEvent Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: DeprecatedEvent -> Constr #

dataTypeOf :: DeprecatedEvent -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DeprecatedEvent Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic DeprecatedEvent Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep DeprecatedEvent :: Type -> Type #

ToJSON DeprecatedEvent Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON DeprecatedEvent Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep DeprecatedEvent Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

deprecatedEvent :: DeprecatedEvent Source #

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

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

deSpace :: Lens' DeprecatedEvent (Maybe Space) Source #

The room or DM in which the event occurred.

deToken :: Lens' DeprecatedEvent (Maybe Text) Source #

A secret value that bots can use to verify if a request is from Google. The token is randomly generated by Google, remains static, and can be obtained from the Hangouts Chat API configuration page in the Cloud Console. Developers can revoke/regenerate it if needed from the same page.

deAction :: Lens' DeprecatedEvent (Maybe FormAction) Source #

The form action data associated with an interactive card that was clicked. Only populated for CARD_CLICKED events. See the Interactive Cards guide for more information.

deEventTime :: Lens' DeprecatedEvent (Maybe UTCTime) Source #

The timestamp indicating when the event was dispatched.

deUser :: Lens' DeprecatedEvent (Maybe User) Source #

The user that triggered the event.

deConfigCompleteRedirectURL :: Lens' DeprecatedEvent (Maybe Text) Source #

The URL the bot should redirect the user to after they have completed an authorization or configuration flow outside of Hangouts Chat. See the Authorizing access to 3p services guide for more information.

deMessage :: Lens' DeprecatedEvent (Maybe Message) Source #

The message that triggered the event, if applicable.

deThreadKey :: Lens' DeprecatedEvent (Maybe Text) Source #

The bot-defined key for the thread related to the event. See the thread_key field of the `spaces.message.create` request for more information.

MembershipState

data MembershipState Source #

State of the membership.

Constructors

MembershipStateUnspecified

MEMBERSHIP_STATE_UNSPECIFIED Default, do not use.

Joined

JOINED The user has joined the space.

Invited

INVITED The user has been invited, is able to join the space, but currently has not joined.

NotAMember

NOT_A_MEMBER The user is not a member of the space, has not been invited and is not able to join the space.

Instances
Enum MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: MembershipState -> Constr #

dataTypeOf :: MembershipState -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep MembershipState :: Type -> Type #

Hashable MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep MembershipState Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep MembershipState = D1 (MetaData "MembershipState" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) ((C1 (MetaCons "MembershipStateUnspecified" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Joined" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Invited" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "NotAMember" PrefixI False) (U1 :: Type -> Type)))

CardHeaderImageStyle

data CardHeaderImageStyle Source #

The image's type (e.g. square border or circular border).

Constructors

CHISImageStyleUnspecified
IMAGE_STYLE_UNSPECIFIED
CHISImage

IMAGE Square border.

CHISAvatar

AVATAR Circular border.

Instances
Enum CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: CardHeaderImageStyle -> Constr #

dataTypeOf :: CardHeaderImageStyle -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep CardHeaderImageStyle :: Type -> Type #

Hashable CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep CardHeaderImageStyle Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep CardHeaderImageStyle = D1 (MetaData "CardHeaderImageStyle" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "CHISImageStyleUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "CHISImage" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CHISAvatar" PrefixI False) (U1 :: Type -> Type)))

TextParagraph

data TextParagraph Source #

A paragraph of text. Formatted text supported.

See: textParagraph smart constructor.

Instances
Eq TextParagraph Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data TextParagraph Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: TextParagraph -> Constr #

dataTypeOf :: TextParagraph -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TextParagraph Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic TextParagraph Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep TextParagraph :: Type -> Type #

ToJSON TextParagraph Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON TextParagraph Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep TextParagraph Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep TextParagraph = D1 (MetaData "TextParagraph" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" True) (C1 (MetaCons "TextParagraph'" PrefixI True) (S1 (MetaSel (Just "_tpText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))

textParagraph :: TextParagraph Source #

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

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

Button

data Button Source #

A button. Can be a text button or an image button.

See: button smart constructor.

Instances
Eq Button Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

Data Button Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: Button -> Constr #

dataTypeOf :: Button -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Button Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic Button Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep Button :: Type -> Type #

Methods

from :: Button -> Rep Button x #

to :: Rep Button x -> Button #

ToJSON Button Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON Button Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Button Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Button = D1 (MetaData "Button" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "Button'" PrefixI True) (S1 (MetaSel (Just "_bTextButton") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TextButton)) :*: S1 (MetaSel (Just "_bImageButton") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ImageButton))))

button :: Button Source #

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

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

bTextButton :: Lens' Button (Maybe TextButton) Source #

A button with text and onclick action.

bImageButton :: Lens' Button (Maybe ImageButton) Source #

A button with image and onclick action.

UserMentionMetadataType

data UserMentionMetadataType Source #

The type of user mention.

Constructors

UMMTTypeUnspecified

TYPE_UNSPECIFIED Default value for the enum. DO NOT USE.

UMMTAdd

ADD Add user to space.

UMMTMention

MENTION Mention user in space.

Instances
Enum UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: UserMentionMetadataType -> Constr #

dataTypeOf :: UserMentionMetadataType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep UserMentionMetadataType :: Type -> Type #

Hashable UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep UserMentionMetadataType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep UserMentionMetadataType = D1 (MetaData "UserMentionMetadataType" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "UMMTTypeUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "UMMTAdd" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "UMMTMention" PrefixI False) (U1 :: Type -> Type)))

ListSpacesResponse

data ListSpacesResponse Source #

Instances
Eq ListSpacesResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data ListSpacesResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: ListSpacesResponse -> Constr #

dataTypeOf :: ListSpacesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListSpacesResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic ListSpacesResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep ListSpacesResponse :: Type -> Type #

ToJSON ListSpacesResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON ListSpacesResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep ListSpacesResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep ListSpacesResponse = D1 (MetaData "ListSpacesResponse" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "ListSpacesResponse'" PrefixI True) (S1 (MetaSel (Just "_lsrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lsrSpaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Space]))))

listSpacesResponse :: ListSpacesResponse Source #

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

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

lsrNextPageToken :: Lens' ListSpacesResponse (Maybe Text) Source #

Continuation token to retrieve the next page of results. It will be empty for the last page of results. Tokens expire in an hour. An error is thrown if an expired token is passed.

lsrSpaces :: Lens' ListSpacesResponse [Space] Source #

List of spaces in the requested (or first) page.

User

data User Source #

A user in Hangouts Chat.

See: user smart constructor.

Instances
Eq User Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

Data User Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: User -> Constr #

dataTypeOf :: User -> DataType #

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

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

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

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

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

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

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

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

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

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

Show User Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Generic User Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

ToJSON User Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON User Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep User Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep User = D1 (MetaData "User" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "User'" PrefixI True) (S1 (MetaSel (Just "_uName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserType)))))

user :: User Source #

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

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

uName :: Lens' User (Maybe Text) Source #

Resource name, in the format "users/*".

uDisplayName :: Lens' User (Maybe Text) Source #

The user's display name.

SpaceType

data SpaceType Source #

Output only. The type of a space.

Constructors

STTypeUnspecified
TYPE_UNSPECIFIED
STRoom

ROOM A chat space where memberships are free to change. Messages in rooms are threaded.

STDM

DM 1:1 Direct Message between a human and a bot, where all messages are flat.

Instances
Enum SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: SpaceType -> Constr #

dataTypeOf :: SpaceType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep SpaceType :: Type -> Type #

Hashable SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep SpaceType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep SpaceType = D1 (MetaData "SpaceType" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "STTypeUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "STRoom" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "STDM" PrefixI False) (U1 :: Type -> Type)))

OpenLink

data OpenLink Source #

A link that opens a new window.

See: openLink smart constructor.

openLink :: OpenLink Source #

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

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

olURL :: Lens' OpenLink (Maybe Text) Source #

The URL to open.

AnnotationType

data AnnotationType Source #

The type of this annotation.

Constructors

AnnotationTypeUnspecified

ANNOTATION_TYPE_UNSPECIFIED Default value for the enum. DO NOT USE.

UserMention

USER_MENTION A user is mentioned.

Instances
Enum AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: AnnotationType -> Constr #

dataTypeOf :: AnnotationType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep AnnotationType :: Type -> Type #

Hashable AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep AnnotationType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep AnnotationType = D1 (MetaData "AnnotationType" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "AnnotationTypeUnspecified" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "UserMention" PrefixI False) (U1 :: Type -> Type))

ImageButtonIcon

data ImageButtonIcon Source #

The icon specified by an enum that indices to an icon provided by Chat API.

Constructors

IBIIconUnspecified
ICON_UNSPECIFIED
IBIAirplane
AIRPLANE
IBIBookmark
BOOKMARK
IBIBus
BUS
IBICar
CAR
IBIClock
CLOCK
IBIConfirmationNumberIcon
CONFIRMATION_NUMBER_ICON
IBIDollar
DOLLAR
IBIDescription
DESCRIPTION
IBIEmail
EMAIL
IBIEventPerformer
EVENT_PERFORMER
IBIEventSeat
EVENT_SEAT
IBIFlightArrival
FLIGHT_ARRIVAL
IBIFlightDeParture
FLIGHT_DEPARTURE
IBIHotel
HOTEL
IBIHotelRoomType
HOTEL_ROOM_TYPE
IBIInvite
INVITE
IBIMapPin
MAP_PIN
IBIMembership
MEMBERSHIP
IBIMultiplePeople
MULTIPLE_PEOPLE
IBIOffer
OFFER
IBIPerson
PERSON
IBIPhone
PHONE
IBIRestaurantIcon
RESTAURANT_ICON
IBIShoppingCart
SHOPPING_CART
IBIStar
STAR
IBIStore
STORE
IBITicket
TICKET
IBITrain
TRAIN
IBIVideoCamera
VIDEO_CAMERA
IBIVideoPlay
VIDEO_PLAY
Instances
Enum ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: ImageButtonIcon -> Constr #

dataTypeOf :: ImageButtonIcon -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep ImageButtonIcon :: Type -> Type #

Hashable ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep ImageButtonIcon Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep ImageButtonIcon = D1 (MetaData "ImageButtonIcon" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) ((((C1 (MetaCons "IBIIconUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "IBIAirplane" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIBookmark" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "IBIBus" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBICar" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "IBIClock" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIConfirmationNumberIcon" PrefixI False) (U1 :: Type -> Type)))) :+: (((C1 (MetaCons "IBIDollar" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIDescription" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "IBIEmail" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIEventPerformer" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "IBIEventSeat" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIFlightArrival" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "IBIFlightDeParture" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIHotel" PrefixI False) (U1 :: Type -> Type))))) :+: ((((C1 (MetaCons "IBIHotelRoomType" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIInvite" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "IBIMapPin" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIMembership" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "IBIMultiplePeople" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIOffer" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "IBIPerson" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIPhone" PrefixI False) (U1 :: Type -> Type)))) :+: (((C1 (MetaCons "IBIRestaurantIcon" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIShoppingCart" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "IBIStar" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIStore" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "IBITicket" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBITrain" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "IBIVideoCamera" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "IBIVideoPlay" PrefixI False) (U1 :: Type -> Type))))))

CardAction

data CardAction Source #

A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.

See: cardAction smart constructor.

Instances
Eq CardAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data CardAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: CardAction -> Constr #

dataTypeOf :: CardAction -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CardAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic CardAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep CardAction :: Type -> Type #

ToJSON CardAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON CardAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep CardAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep CardAction = D1 (MetaData "CardAction" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "CardAction'" PrefixI True) (S1 (MetaSel (Just "_caOnClick") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OnClick)) :*: S1 (MetaSel (Just "_caActionLabel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

cardAction :: CardAction Source #

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

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

caOnClick :: Lens' CardAction (Maybe OnClick) Source #

The onclick action for this action item.

caActionLabel :: Lens' CardAction (Maybe Text) Source #

The label used to be displayed in the action menu item.

Xgafv

data Xgafv Source #

V1 error format.

Constructors

X1

1 v1 error format

X2

2 v2 error format

Instances
Enum Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

Data Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: Xgafv -> Constr #

dataTypeOf :: Xgafv -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

compare :: Xgafv -> Xgafv -> Ordering #

(<) :: Xgafv -> Xgafv -> Bool #

(<=) :: Xgafv -> Xgafv -> Bool #

(>) :: Xgafv -> Xgafv -> Bool #

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

max :: Xgafv -> Xgafv -> Xgafv #

min :: Xgafv -> Xgafv -> Xgafv #

Read Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

showsPrec :: Int -> Xgafv -> ShowS #

show :: Xgafv -> String #

showList :: [Xgafv] -> ShowS #

Generic Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep Xgafv :: Type -> Type #

Methods

from :: Xgafv -> Rep Xgafv x #

to :: Rep Xgafv x -> Xgafv #

Hashable Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

hashWithSalt :: Int -> Xgafv -> Int #

hash :: Xgafv -> Int #

ToJSON Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep Xgafv Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep Xgafv = D1 (MetaData "Xgafv" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "X1" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "X2" PrefixI False) (U1 :: Type -> Type))

DeprecatedEventType

data DeprecatedEventType Source #

The type of the event.

Constructors

DETUnspecified

UNSPECIFIED Default value for the enum. DO NOT USE.

DETMessage

MESSAGE A message was sent in a room or direct message.

DETAddedToSpace

ADDED_TO_SPACE The bot was added to a room or DM.

DETRemovedFromSpace

REMOVED_FROM_SPACE The bot was removed from a room or DM.

DETCardClicked

CARD_CLICKED The bot's interactive card was clicked.

Instances
Enum DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Eq DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Data DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Methods

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

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

toConstr :: DeprecatedEventType -> Constr #

dataTypeOf :: DeprecatedEventType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Read DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Show DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Generic DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

Associated Types

type Rep DeprecatedEventType :: Type -> Type #

Hashable DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToJSON DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromJSON DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

FromHttpApiData DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

ToHttpApiData DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep DeprecatedEventType Source # 
Instance details

Defined in Network.Google.Chat.Types.Sum

type Rep DeprecatedEventType = D1 (MetaData "DeprecatedEventType" "Network.Google.Chat.Types.Sum" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) ((C1 (MetaCons "DETUnspecified" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DETMessage" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "DETAddedToSpace" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "DETRemovedFromSpace" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DETCardClicked" PrefixI False) (U1 :: Type -> Type))))

ActionResponse

data ActionResponse Source #

Parameters that a bot can use to configure how it's response is posted.

See: actionResponse smart constructor.

Instances
Eq ActionResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data ActionResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: ActionResponse -> Constr #

dataTypeOf :: ActionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ActionResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic ActionResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep ActionResponse :: Type -> Type #

ToJSON ActionResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON ActionResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep ActionResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep ActionResponse = D1 (MetaData "ActionResponse" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "ActionResponse'" PrefixI True) (S1 (MetaSel (Just "_arURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_arType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ActionResponseType))))

actionResponse :: ActionResponse Source #

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

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

arURL :: Lens' ActionResponse (Maybe Text) Source #

URL for users to auth or config. (Only for REQUEST_CONFIG response types.)

FormAction

data FormAction Source #

A form action describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.

See: formAction smart constructor.

Instances
Eq FormAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data FormAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: FormAction -> Constr #

dataTypeOf :: FormAction -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FormAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic FormAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep FormAction :: Type -> Type #

ToJSON FormAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON FormAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep FormAction Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep FormAction = D1 (MetaData "FormAction" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "FormAction'" PrefixI True) (S1 (MetaSel (Just "_faActionMethodName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_faParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ActionParameter]))))

formAction :: FormAction Source #

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

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

faActionMethodName :: Lens' FormAction (Maybe Text) Source #

Apps Script function to invoke when the containing element is clicked/activated.

faParameters :: Lens' FormAction [ActionParameter] Source #

List of action parameters.

ListMembershipsResponse

data ListMembershipsResponse Source #

Instances
Eq ListMembershipsResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data ListMembershipsResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: ListMembershipsResponse -> Constr #

dataTypeOf :: ListMembershipsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListMembershipsResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic ListMembershipsResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep ListMembershipsResponse :: Type -> Type #

ToJSON ListMembershipsResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON ListMembershipsResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep ListMembershipsResponse Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep ListMembershipsResponse = D1 (MetaData "ListMembershipsResponse" "Network.Google.Chat.Types.Product" "gogol-chat-0.5.0-BUgrXiaaJDM5gJSlDAyqWv" False) (C1 (MetaCons "ListMembershipsResponse'" PrefixI True) (S1 (MetaSel (Just "_lmrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lmrMemberships") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Membership]))))

listMembershipsResponse :: ListMembershipsResponse Source #

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

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

lmrNextPageToken :: Lens' ListMembershipsResponse (Maybe Text) Source #

Continuation token to retrieve the next page of results. It will be empty for the last page of results.

lmrMemberships :: Lens' ListMembershipsResponse [Membership] Source #

List of memberships in the requested (or first) page.

Message

data Message Source #

A message in Hangouts Chat.

See: message smart constructor.

Instances
Eq Message Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

Data Message Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

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 # 
Instance details

Defined in Network.Google.Chat.Types.Product

Generic Message Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

ToJSON Message Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

FromJSON Message Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

type Rep Message Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

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:

mesAnnotations :: Lens' Message [Annotation] Source #

Output only. Annotations associated with the text in this message.

mesSpace :: Lens' Message (Maybe Space) Source #

The space the message belongs to.

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

Plain-text body of the message.

mesSender :: Lens' Message (Maybe User) Source #

The user who created the message.

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

Resource name, in the form "spaces/*/messages/*". Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4

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

Text for generating preview chips. This text will not be displayed to the user, but any links to images, web pages, videos, etc. included here will generate preview chips.

mesCards :: Lens' Message [Card] Source #

Rich, formatted and interactive cards that can be used to display UI elements such as: formatted texts, buttons, clickable images. Cards are normally displayed below the plain-text body of the message.

mesActionResponse :: Lens' Message (Maybe ActionResponse) Source #

Input only. Parameters that a bot can use to configure how its response is posted.

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

Plain-text body of the message with all bot mentions stripped out.

mesThread :: Lens' Message (Maybe Thread) Source #

The thread the message belongs to.

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

A plain-text description of the message's cards, used when the actual cards cannot be displayed (e.g. mobile notifications).

mesCreateTime :: Lens' Message (Maybe UTCTime) Source #

Output only. The time at which the message was created in Hangouts Chat server.

CardHeader

data CardHeader Source #

Instances
Eq CardHeader Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Data CardHeader Source # 
Instance details

Defined in Network.Google.Chat.Types.Product

Methods

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

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

toConstr :: CardHeader -> Constr #

dataTypeOf :: Card