{-# 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.BatchDelete
(
ProjectsAgentIntentsBatchDeleteResource
, projectsAgentIntentsBatchDelete
, ProjectsAgentIntentsBatchDelete
, paibdParent
, paibdXgafv
, paibdUploadProtocol
, paibdAccessToken
, paibdUploadType
, paibdPayload
, paibdCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentIntentsBatchDeleteResource =
"v2" :>
Capture "parent" Text :>
"intents:batchDelete" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
GoogleCloudDialogflowV2BatchDeleteIntentsRequest
:> Post '[JSON] GoogleLongrunningOperation
data ProjectsAgentIntentsBatchDelete = ProjectsAgentIntentsBatchDelete'
{ _paibdParent :: !Text
, _paibdXgafv :: !(Maybe Xgafv)
, _paibdUploadProtocol :: !(Maybe Text)
, _paibdAccessToken :: !(Maybe Text)
, _paibdUploadType :: !(Maybe Text)
, _paibdPayload :: !GoogleCloudDialogflowV2BatchDeleteIntentsRequest
, _paibdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentIntentsBatchDelete
:: Text
-> GoogleCloudDialogflowV2BatchDeleteIntentsRequest
-> ProjectsAgentIntentsBatchDelete
projectsAgentIntentsBatchDelete pPaibdParent_ pPaibdPayload_ =
ProjectsAgentIntentsBatchDelete'
{ _paibdParent = pPaibdParent_
, _paibdXgafv = Nothing
, _paibdUploadProtocol = Nothing
, _paibdAccessToken = Nothing
, _paibdUploadType = Nothing
, _paibdPayload = pPaibdPayload_
, _paibdCallback = Nothing
}
paibdParent :: Lens' ProjectsAgentIntentsBatchDelete Text
paibdParent
= lens _paibdParent (\ s a -> s{_paibdParent = a})
paibdXgafv :: Lens' ProjectsAgentIntentsBatchDelete (Maybe Xgafv)
paibdXgafv
= lens _paibdXgafv (\ s a -> s{_paibdXgafv = a})
paibdUploadProtocol :: Lens' ProjectsAgentIntentsBatchDelete (Maybe Text)
paibdUploadProtocol
= lens _paibdUploadProtocol
(\ s a -> s{_paibdUploadProtocol = a})
paibdAccessToken :: Lens' ProjectsAgentIntentsBatchDelete (Maybe Text)
paibdAccessToken
= lens _paibdAccessToken
(\ s a -> s{_paibdAccessToken = a})
paibdUploadType :: Lens' ProjectsAgentIntentsBatchDelete (Maybe Text)
paibdUploadType
= lens _paibdUploadType
(\ s a -> s{_paibdUploadType = a})
paibdPayload :: Lens' ProjectsAgentIntentsBatchDelete GoogleCloudDialogflowV2BatchDeleteIntentsRequest
paibdPayload
= lens _paibdPayload (\ s a -> s{_paibdPayload = a})
paibdCallback :: Lens' ProjectsAgentIntentsBatchDelete (Maybe Text)
paibdCallback
= lens _paibdCallback
(\ s a -> s{_paibdCallback = a})
instance GoogleRequest
ProjectsAgentIntentsBatchDelete where
type Rs ProjectsAgentIntentsBatchDelete =
GoogleLongrunningOperation
type Scopes ProjectsAgentIntentsBatchDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient ProjectsAgentIntentsBatchDelete'{..}
= go _paibdParent _paibdXgafv _paibdUploadProtocol
_paibdAccessToken
_paibdUploadType
_paibdCallback
(Just AltJSON)
_paibdPayload
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentIntentsBatchDeleteResource)
mempty