{-# 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.Members.Get
(
SpacesMembersGetResource
, spacesMembersGet
, SpacesMembersGet
, spaXgafv
, spaUploadProtocol
, spaAccessToken
, spaUploadType
, spaName
, spaCallback
) where
import Network.Google.Chat.Types
import Network.Google.Prelude
type SpacesMembersGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Membership
data SpacesMembersGet = SpacesMembersGet'
{ _spaXgafv :: !(Maybe Xgafv)
, _spaUploadProtocol :: !(Maybe Text)
, _spaAccessToken :: !(Maybe Text)
, _spaUploadType :: !(Maybe Text)
, _spaName :: !Text
, _spaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spacesMembersGet
:: Text
-> SpacesMembersGet
spacesMembersGet pSpaName_ =
SpacesMembersGet'
{ _spaXgafv = Nothing
, _spaUploadProtocol = Nothing
, _spaAccessToken = Nothing
, _spaUploadType = Nothing
, _spaName = pSpaName_
, _spaCallback = Nothing
}
spaXgafv :: Lens' SpacesMembersGet (Maybe Xgafv)
spaXgafv = lens _spaXgafv (\ s a -> s{_spaXgafv = a})
spaUploadProtocol :: Lens' SpacesMembersGet (Maybe Text)
spaUploadProtocol
= lens _spaUploadProtocol
(\ s a -> s{_spaUploadProtocol = a})
spaAccessToken :: Lens' SpacesMembersGet (Maybe Text)
spaAccessToken
= lens _spaAccessToken
(\ s a -> s{_spaAccessToken = a})
spaUploadType :: Lens' SpacesMembersGet (Maybe Text)
spaUploadType
= lens _spaUploadType
(\ s a -> s{_spaUploadType = a})
spaName :: Lens' SpacesMembersGet Text
spaName = lens _spaName (\ s a -> s{_spaName = a})
spaCallback :: Lens' SpacesMembersGet (Maybe Text)
spaCallback
= lens _spaCallback (\ s a -> s{_spaCallback = a})
instance GoogleRequest SpacesMembersGet where
type Rs SpacesMembersGet = Membership
type Scopes SpacesMembersGet = '[]
requestClient SpacesMembersGet'{..}
= go _spaName _spaXgafv _spaUploadProtocol
_spaAccessToken
_spaUploadType
_spaCallback
(Just AltJSON)
chatService
where go
= buildClient
(Proxy :: Proxy SpacesMembersGetResource)
mempty