{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Chat.Spaces.Messages.Delete
(
SpacesMessagesDeleteResource
, spacesMessagesDelete
, SpacesMessagesDelete
, smdXgafv
, smdUploadProtocol
, smdAccessToken
, smdUploadType
, smdName
, smdCallback
) where
import Network.Google.Chat.Types
import Network.Google.Prelude
type SpacesMessagesDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data SpacesMessagesDelete = SpacesMessagesDelete'
{ _smdXgafv :: !(Maybe Xgafv)
, _smdUploadProtocol :: !(Maybe Text)
, _smdAccessToken :: !(Maybe Text)
, _smdUploadType :: !(Maybe Text)
, _smdName :: !Text
, _smdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spacesMessagesDelete
:: Text
-> SpacesMessagesDelete
spacesMessagesDelete pSmdName_ =
SpacesMessagesDelete'
{ _smdXgafv = Nothing
, _smdUploadProtocol = Nothing
, _smdAccessToken = Nothing
, _smdUploadType = Nothing
, _smdName = pSmdName_
, _smdCallback = Nothing
}
smdXgafv :: Lens' SpacesMessagesDelete (Maybe Xgafv)
smdXgafv = lens _smdXgafv (\ s a -> s{_smdXgafv = a})
smdUploadProtocol :: Lens' SpacesMessagesDelete (Maybe Text)
smdUploadProtocol
= lens _smdUploadProtocol
(\ s a -> s{_smdUploadProtocol = a})
smdAccessToken :: Lens' SpacesMessagesDelete (Maybe Text)
smdAccessToken
= lens _smdAccessToken
(\ s a -> s{_smdAccessToken = a})
smdUploadType :: Lens' SpacesMessagesDelete (Maybe Text)
smdUploadType
= lens _smdUploadType
(\ s a -> s{_smdUploadType = a})
smdName :: Lens' SpacesMessagesDelete Text
smdName = lens _smdName (\ s a -> s{_smdName = a})
smdCallback :: Lens' SpacesMessagesDelete (Maybe Text)
smdCallback
= lens _smdCallback (\ s a -> s{_smdCallback = a})
instance GoogleRequest SpacesMessagesDelete where
type Rs SpacesMessagesDelete = Empty
type Scopes SpacesMessagesDelete = '[]
requestClient SpacesMessagesDelete'{..}
= go _smdName _smdXgafv _smdUploadProtocol
_smdAccessToken
_smdUploadType
_smdCallback
(Just AltJSON)
chatService
where go
= buildClient
(Proxy :: Proxy SpacesMessagesDeleteResource)
mempty