{-# 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.DialogFlow.Projects.Agent.Intents.Delete
(
ProjectsAgentIntentsDeleteResource
, projectsAgentIntentsDelete
, ProjectsAgentIntentsDelete
, paidXgafv
, paidUploadProtocol
, paidAccessToken
, paidUploadType
, paidName
, paidCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentIntentsDeleteResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Delete '[JSON] GoogleProtobufEmpty
data ProjectsAgentIntentsDelete = ProjectsAgentIntentsDelete'
{ _paidXgafv :: !(Maybe Xgafv)
, _paidUploadProtocol :: !(Maybe Text)
, _paidAccessToken :: !(Maybe Text)
, _paidUploadType :: !(Maybe Text)
, _paidName :: !Text
, _paidCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentIntentsDelete
:: Text
-> ProjectsAgentIntentsDelete
projectsAgentIntentsDelete pPaidName_ =
ProjectsAgentIntentsDelete'
{ _paidXgafv = Nothing
, _paidUploadProtocol = Nothing
, _paidAccessToken = Nothing
, _paidUploadType = Nothing
, _paidName = pPaidName_
, _paidCallback = Nothing
}
paidXgafv :: Lens' ProjectsAgentIntentsDelete (Maybe Xgafv)
paidXgafv
= lens _paidXgafv (\ s a -> s{_paidXgafv = a})
paidUploadProtocol :: Lens' ProjectsAgentIntentsDelete (Maybe Text)
paidUploadProtocol
= lens _paidUploadProtocol
(\ s a -> s{_paidUploadProtocol = a})
paidAccessToken :: Lens' ProjectsAgentIntentsDelete (Maybe Text)
paidAccessToken
= lens _paidAccessToken
(\ s a -> s{_paidAccessToken = a})
paidUploadType :: Lens' ProjectsAgentIntentsDelete (Maybe Text)
paidUploadType
= lens _paidUploadType
(\ s a -> s{_paidUploadType = a})
paidName :: Lens' ProjectsAgentIntentsDelete Text
paidName = lens _paidName (\ s a -> s{_paidName = a})
paidCallback :: Lens' ProjectsAgentIntentsDelete (Maybe Text)
paidCallback
= lens _paidCallback (\ s a -> s{_paidCallback = a})
instance GoogleRequest ProjectsAgentIntentsDelete
where
type Rs ProjectsAgentIntentsDelete =
GoogleProtobufEmpty
type Scopes ProjectsAgentIntentsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient ProjectsAgentIntentsDelete'{..}
= go _paidName _paidXgafv _paidUploadProtocol
_paidAccessToken
_paidUploadType
_paidCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy :: Proxy ProjectsAgentIntentsDeleteResource)
mempty