gogol-chat-0.4.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.Resource.Chat.Spaces.Messages.Update

Contents

Description

Updates a message.

See: Hangouts Chat API Reference for chat.spaces.messages.update.

Synopsis

REST Resource

type SpacesMessagesUpdateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Put '[JSON] Message))))))))) Source #

A resource alias for chat.spaces.messages.update method which the SpacesMessagesUpdate request conforms to.

Creating a Request

spacesMessagesUpdate Source #

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

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

data SpacesMessagesUpdate Source #

Updates a message.

See: spacesMessagesUpdate smart constructor.

Instances
Eq SpacesMessagesUpdate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Update

Data SpacesMessagesUpdate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Update

Methods

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

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

toConstr :: SpacesMessagesUpdate -> Constr #

dataTypeOf :: SpacesMessagesUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SpacesMessagesUpdate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Update

Generic SpacesMessagesUpdate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Update

Associated Types

type Rep SpacesMessagesUpdate :: Type -> Type #

GoogleRequest SpacesMessagesUpdate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Update

Associated Types

type Rs SpacesMessagesUpdate :: Type #

type Scopes SpacesMessagesUpdate :: [Symbol] #

type Rep SpacesMessagesUpdate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Update

type Rep SpacesMessagesUpdate = D1 (MetaData "SpacesMessagesUpdate" "Network.Google.Resource.Chat.Spaces.Messages.Update" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "SpacesMessagesUpdate'" PrefixI True) (((S1 (MetaSel (Just "_smuXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_smuUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_smuUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_smuAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_smuUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_smuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Message)) :*: (S1 (MetaSel (Just "_smuName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_smuCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes SpacesMessagesUpdate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Update

type Rs SpacesMessagesUpdate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Update

Request Lenses

smuUploadProtocol :: Lens' SpacesMessagesUpdate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

smuUpdateMask :: Lens' SpacesMessagesUpdate (Maybe GFieldMask) Source #

Required. The field paths to be updated. Currently supported field paths: "text", "cards".

smuUploadType :: Lens' SpacesMessagesUpdate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

smuPayload :: Lens' SpacesMessagesUpdate Message Source #

Multipart request metadata.

smuName :: Lens' SpacesMessagesUpdate Text Source #

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