{-# 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.ContactGroups.Members.Modify
(
ContactGroupsMembersModifyResource
, contactGroupsMembersModify
, ContactGroupsMembersModify
, cgmmXgafv
, cgmmUploadProtocol
, cgmmResourceName
, cgmmAccessToken
, cgmmUploadType
, cgmmPayload
, cgmmCallback
) where
import Network.Google.People.Types
import Network.Google.Prelude
type ContactGroupsMembersModifyResource =
"v1" :>
Capture "resourceName" Text :>
"members:modify" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ModifyContactGroupMembersRequest :>
Post '[JSON] ModifyContactGroupMembersResponse
data ContactGroupsMembersModify = ContactGroupsMembersModify'
{ _cgmmXgafv :: !(Maybe Xgafv)
, _cgmmUploadProtocol :: !(Maybe Text)
, _cgmmResourceName :: !Text
, _cgmmAccessToken :: !(Maybe Text)
, _cgmmUploadType :: !(Maybe Text)
, _cgmmPayload :: !ModifyContactGroupMembersRequest
, _cgmmCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
contactGroupsMembersModify
:: Text
-> ModifyContactGroupMembersRequest
-> ContactGroupsMembersModify
contactGroupsMembersModify pCgmmResourceName_ pCgmmPayload_ =
ContactGroupsMembersModify'
{ _cgmmXgafv = Nothing
, _cgmmUploadProtocol = Nothing
, _cgmmResourceName = pCgmmResourceName_
, _cgmmAccessToken = Nothing
, _cgmmUploadType = Nothing
, _cgmmPayload = pCgmmPayload_
, _cgmmCallback = Nothing
}
cgmmXgafv :: Lens' ContactGroupsMembersModify (Maybe Xgafv)
cgmmXgafv
= lens _cgmmXgafv (\ s a -> s{_cgmmXgafv = a})
cgmmUploadProtocol :: Lens' ContactGroupsMembersModify (Maybe Text)
cgmmUploadProtocol
= lens _cgmmUploadProtocol
(\ s a -> s{_cgmmUploadProtocol = a})
cgmmResourceName :: Lens' ContactGroupsMembersModify Text
cgmmResourceName
= lens _cgmmResourceName
(\ s a -> s{_cgmmResourceName = a})
cgmmAccessToken :: Lens' ContactGroupsMembersModify (Maybe Text)
cgmmAccessToken
= lens _cgmmAccessToken
(\ s a -> s{_cgmmAccessToken = a})
cgmmUploadType :: Lens' ContactGroupsMembersModify (Maybe Text)
cgmmUploadType
= lens _cgmmUploadType
(\ s a -> s{_cgmmUploadType = a})
cgmmPayload :: Lens' ContactGroupsMembersModify ModifyContactGroupMembersRequest
cgmmPayload
= lens _cgmmPayload (\ s a -> s{_cgmmPayload = a})
cgmmCallback :: Lens' ContactGroupsMembersModify (Maybe Text)
cgmmCallback
= lens _cgmmCallback (\ s a -> s{_cgmmCallback = a})
instance GoogleRequest ContactGroupsMembersModify
where
type Rs ContactGroupsMembersModify =
ModifyContactGroupMembersResponse
type Scopes ContactGroupsMembersModify =
'["https://www.googleapis.com/auth/contacts"]
requestClient ContactGroupsMembersModify'{..}
= go _cgmmResourceName _cgmmXgafv _cgmmUploadProtocol
_cgmmAccessToken
_cgmmUploadType
_cgmmCallback
(Just AltJSON)
_cgmmPayload
peopleService
where go
= buildClient
(Proxy :: Proxy ContactGroupsMembersModifyResource)
mempty