{-# 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.DeleteContact
(
PeopleDeleteContactResource
, peopleDeleteContact
, PeopleDeleteContact
, pdcXgafv
, pdcUploadProtocol
, pdcResourceName
, pdcAccessToken
, pdcUploadType
, pdcCallback
) where
import Network.Google.People.Types
import Network.Google.Prelude
type PeopleDeleteContactResource =
"v1" :>
CaptureMode "resourceName" "deleteContact" 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 PeopleDeleteContact = PeopleDeleteContact'
{ _pdcXgafv :: !(Maybe Xgafv)
, _pdcUploadProtocol :: !(Maybe Text)
, _pdcResourceName :: !Text
, _pdcAccessToken :: !(Maybe Text)
, _pdcUploadType :: !(Maybe Text)
, _pdcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
peopleDeleteContact
:: Text
-> PeopleDeleteContact
peopleDeleteContact pPdcResourceName_ =
PeopleDeleteContact'
{ _pdcXgafv = Nothing
, _pdcUploadProtocol = Nothing
, _pdcResourceName = pPdcResourceName_
, _pdcAccessToken = Nothing
, _pdcUploadType = Nothing
, _pdcCallback = Nothing
}
pdcXgafv :: Lens' PeopleDeleteContact (Maybe Xgafv)
pdcXgafv = lens _pdcXgafv (\ s a -> s{_pdcXgafv = a})
pdcUploadProtocol :: Lens' PeopleDeleteContact (Maybe Text)
pdcUploadProtocol
= lens _pdcUploadProtocol
(\ s a -> s{_pdcUploadProtocol = a})
pdcResourceName :: Lens' PeopleDeleteContact Text
pdcResourceName
= lens _pdcResourceName
(\ s a -> s{_pdcResourceName = a})
pdcAccessToken :: Lens' PeopleDeleteContact (Maybe Text)
pdcAccessToken
= lens _pdcAccessToken
(\ s a -> s{_pdcAccessToken = a})
pdcUploadType :: Lens' PeopleDeleteContact (Maybe Text)
pdcUploadType
= lens _pdcUploadType
(\ s a -> s{_pdcUploadType = a})
pdcCallback :: Lens' PeopleDeleteContact (Maybe Text)
pdcCallback
= lens _pdcCallback (\ s a -> s{_pdcCallback = a})
instance GoogleRequest PeopleDeleteContact where
type Rs PeopleDeleteContact = Empty
type Scopes PeopleDeleteContact =
'["https://www.googleapis.com/auth/contacts"]
requestClient PeopleDeleteContact'{..}
= go _pdcResourceName _pdcXgafv _pdcUploadProtocol
_pdcAccessToken
_pdcUploadType
_pdcCallback
(Just AltJSON)
peopleService
where go
= buildClient
(Proxy :: Proxy PeopleDeleteContactResource)
mempty