{-# 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.People.People.Connections.List
(
PeopleConnectionsListResource
, peopleConnectionsList
, PeopleConnectionsList
, pclSyncToken
, pclXgafv
, pclUploadProtocol
, pclResourceName
, pclRequestMaskIncludeField
, pclRequestSyncToken
, pclAccessToken
, pclUploadType
, pclSortOrder
, pclPersonFields
, pclPageToken
, pclPageSize
, pclCallback
) where
import Network.Google.People.Types
import Network.Google.Prelude
type PeopleConnectionsListResource =
"v1" :>
Capture "resourceName" Text :>
"connections" :>
QueryParam "syncToken" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "requestMask.includeField" GFieldMask :>
QueryParam "requestSyncToken" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "sortOrder" Text :>
QueryParam "personFields" GFieldMask :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListConnectionsResponse
data PeopleConnectionsList = PeopleConnectionsList'
{ _pclSyncToken :: !(Maybe Text)
, _pclXgafv :: !(Maybe Xgafv)
, _pclUploadProtocol :: !(Maybe Text)
, _pclResourceName :: !Text
, _pclRequestMaskIncludeField :: !(Maybe GFieldMask)
, _pclRequestSyncToken :: !(Maybe Bool)
, _pclAccessToken :: !(Maybe Text)
, _pclUploadType :: !(Maybe Text)
, _pclSortOrder :: !(Maybe Text)
, _pclPersonFields :: !(Maybe GFieldMask)
, _pclPageToken :: !(Maybe Text)
, _pclPageSize :: !(Maybe (Textual Int32))
, _pclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
peopleConnectionsList
:: Text
-> PeopleConnectionsList
peopleConnectionsList pPclResourceName_ =
PeopleConnectionsList'
{ _pclSyncToken = Nothing
, _pclXgafv = Nothing
, _pclUploadProtocol = Nothing
, _pclResourceName = pPclResourceName_
, _pclRequestMaskIncludeField = Nothing
, _pclRequestSyncToken = Nothing
, _pclAccessToken = Nothing
, _pclUploadType = Nothing
, _pclSortOrder = Nothing
, _pclPersonFields = Nothing
, _pclPageToken = Nothing
, _pclPageSize = Nothing
, _pclCallback = Nothing
}
pclSyncToken :: Lens' PeopleConnectionsList (Maybe Text)
pclSyncToken
= lens _pclSyncToken (\ s a -> s{_pclSyncToken = a})
pclXgafv :: Lens' PeopleConnectionsList (Maybe Xgafv)
pclXgafv = lens _pclXgafv (\ s a -> s{_pclXgafv = a})
pclUploadProtocol :: Lens' PeopleConnectionsList (Maybe Text)
pclUploadProtocol
= lens _pclUploadProtocol
(\ s a -> s{_pclUploadProtocol = a})
pclResourceName :: Lens' PeopleConnectionsList Text
pclResourceName
= lens _pclResourceName
(\ s a -> s{_pclResourceName = a})
pclRequestMaskIncludeField :: Lens' PeopleConnectionsList (Maybe GFieldMask)
pclRequestMaskIncludeField
= lens _pclRequestMaskIncludeField
(\ s a -> s{_pclRequestMaskIncludeField = a})
pclRequestSyncToken :: Lens' PeopleConnectionsList (Maybe Bool)
pclRequestSyncToken
= lens _pclRequestSyncToken
(\ s a -> s{_pclRequestSyncToken = a})
pclAccessToken :: Lens' PeopleConnectionsList (Maybe Text)
pclAccessToken
= lens _pclAccessToken
(\ s a -> s{_pclAccessToken = a})
pclUploadType :: Lens' PeopleConnectionsList (Maybe Text)
pclUploadType
= lens _pclUploadType
(\ s a -> s{_pclUploadType = a})
pclSortOrder :: Lens' PeopleConnectionsList (Maybe Text)
pclSortOrder
= lens _pclSortOrder (\ s a -> s{_pclSortOrder = a})
pclPersonFields :: Lens' PeopleConnectionsList (Maybe GFieldMask)
pclPersonFields
= lens _pclPersonFields
(\ s a -> s{_pclPersonFields = a})
pclPageToken :: Lens' PeopleConnectionsList (Maybe Text)
pclPageToken
= lens _pclPageToken (\ s a -> s{_pclPageToken = a})
pclPageSize :: Lens' PeopleConnectionsList (Maybe Int32)
pclPageSize
= lens _pclPageSize (\ s a -> s{_pclPageSize = a}) .
mapping _Coerce
pclCallback :: Lens' PeopleConnectionsList (Maybe Text)
pclCallback
= lens _pclCallback (\ s a -> s{_pclCallback = a})
instance GoogleRequest PeopleConnectionsList where
type Rs PeopleConnectionsList =
ListConnectionsResponse
type Scopes PeopleConnectionsList =
'["https://www.googleapis.com/auth/contacts",
"https://www.googleapis.com/auth/contacts.readonly"]
requestClient PeopleConnectionsList'{..}
= go _pclResourceName _pclSyncToken _pclXgafv
_pclUploadProtocol
_pclRequestMaskIncludeField
_pclRequestSyncToken
_pclAccessToken
_pclUploadType
_pclSortOrder
_pclPersonFields
_pclPageToken
_pclPageSize
_pclCallback
(Just AltJSON)
peopleService
where go
= buildClient
(Proxy :: Proxy PeopleConnectionsListResource)
mempty