{-# 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.List
(
SpacesMembersListResource
, spacesMembersList
, SpacesMembersList
, smlParent
, smlXgafv
, smlUploadProtocol
, smlAccessToken
, smlUploadType
, smlPageToken
, smlPageSize
, smlCallback
) where
import Network.Google.Chat.Types
import Network.Google.Prelude
type SpacesMembersListResource =
"v1" :>
Capture "parent" Text :>
"members" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListMembershipsResponse
data SpacesMembersList = SpacesMembersList'
{ _smlParent :: !Text
, _smlXgafv :: !(Maybe Xgafv)
, _smlUploadProtocol :: !(Maybe Text)
, _smlAccessToken :: !(Maybe Text)
, _smlUploadType :: !(Maybe Text)
, _smlPageToken :: !(Maybe Text)
, _smlPageSize :: !(Maybe (Textual Int32))
, _smlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spacesMembersList
:: Text
-> SpacesMembersList
spacesMembersList pSmlParent_ =
SpacesMembersList'
{ _smlParent = pSmlParent_
, _smlXgafv = Nothing
, _smlUploadProtocol = Nothing
, _smlAccessToken = Nothing
, _smlUploadType = Nothing
, _smlPageToken = Nothing
, _smlPageSize = Nothing
, _smlCallback = Nothing
}
smlParent :: Lens' SpacesMembersList Text
smlParent
= lens _smlParent (\ s a -> s{_smlParent = a})
smlXgafv :: Lens' SpacesMembersList (Maybe Xgafv)
smlXgafv = lens _smlXgafv (\ s a -> s{_smlXgafv = a})
smlUploadProtocol :: Lens' SpacesMembersList (Maybe Text)
smlUploadProtocol
= lens _smlUploadProtocol
(\ s a -> s{_smlUploadProtocol = a})
smlAccessToken :: Lens' SpacesMembersList (Maybe Text)
smlAccessToken
= lens _smlAccessToken
(\ s a -> s{_smlAccessToken = a})
smlUploadType :: Lens' SpacesMembersList (Maybe Text)
smlUploadType
= lens _smlUploadType
(\ s a -> s{_smlUploadType = a})
smlPageToken :: Lens' SpacesMembersList (Maybe Text)
smlPageToken
= lens _smlPageToken (\ s a -> s{_smlPageToken = a})
smlPageSize :: Lens' SpacesMembersList (Maybe Int32)
smlPageSize
= lens _smlPageSize (\ s a -> s{_smlPageSize = a}) .
mapping _Coerce
smlCallback :: Lens' SpacesMembersList (Maybe Text)
smlCallback
= lens _smlCallback (\ s a -> s{_smlCallback = a})
instance GoogleRequest SpacesMembersList where
type Rs SpacesMembersList = ListMembershipsResponse
type Scopes SpacesMembersList = '[]
requestClient SpacesMembersList'{..}
= go _smlParent _smlXgafv _smlUploadProtocol
_smlAccessToken
_smlUploadType
_smlPageToken
_smlPageSize
_smlCallback
(Just AltJSON)
chatService
where go
= buildClient
(Proxy :: Proxy SpacesMembersListResource)
mempty