{-# 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.EntityTypes.Entities.BatchUpdate
(
ProjectsAgentEntityTypesEntitiesBatchUpdateResource
, projectsAgentEntityTypesEntitiesBatchUpdate
, ProjectsAgentEntityTypesEntitiesBatchUpdate
, paetebuParent
, paetebuXgafv
, paetebuUploadProtocol
, paetebuAccessToken
, paetebuUploadType
, paetebuPayload
, paetebuCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentEntityTypesEntitiesBatchUpdateResource
=
"v2" :>
Capture "parent" Text :>
"entities:batchUpdate" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
:> Post '[JSON] GoogleLongrunningOperation
data ProjectsAgentEntityTypesEntitiesBatchUpdate = ProjectsAgentEntityTypesEntitiesBatchUpdate'
{ _paetebuParent :: !Text
, _paetebuXgafv :: !(Maybe Xgafv)
, _paetebuUploadProtocol :: !(Maybe Text)
, _paetebuAccessToken :: !(Maybe Text)
, _paetebuUploadType :: !(Maybe Text)
, _paetebuPayload :: !GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
, _paetebuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentEntityTypesEntitiesBatchUpdate
:: Text
-> GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
-> ProjectsAgentEntityTypesEntitiesBatchUpdate
projectsAgentEntityTypesEntitiesBatchUpdate pPaetebuParent_ pPaetebuPayload_ =
ProjectsAgentEntityTypesEntitiesBatchUpdate'
{ _paetebuParent = pPaetebuParent_
, _paetebuXgafv = Nothing
, _paetebuUploadProtocol = Nothing
, _paetebuAccessToken = Nothing
, _paetebuUploadType = Nothing
, _paetebuPayload = pPaetebuPayload_
, _paetebuCallback = Nothing
}
paetebuParent :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate Text
paetebuParent
= lens _paetebuParent
(\ s a -> s{_paetebuParent = a})
paetebuXgafv :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate (Maybe Xgafv)
paetebuXgafv
= lens _paetebuXgafv (\ s a -> s{_paetebuXgafv = a})
paetebuUploadProtocol :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate (Maybe Text)
paetebuUploadProtocol
= lens _paetebuUploadProtocol
(\ s a -> s{_paetebuUploadProtocol = a})
paetebuAccessToken :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate (Maybe Text)
paetebuAccessToken
= lens _paetebuAccessToken
(\ s a -> s{_paetebuAccessToken = a})
paetebuUploadType :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate (Maybe Text)
paetebuUploadType
= lens _paetebuUploadType
(\ s a -> s{_paetebuUploadType = a})
paetebuPayload :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
paetebuPayload
= lens _paetebuPayload
(\ s a -> s{_paetebuPayload = a})
paetebuCallback :: Lens' ProjectsAgentEntityTypesEntitiesBatchUpdate (Maybe Text)
paetebuCallback
= lens _paetebuCallback
(\ s a -> s{_paetebuCallback = a})
instance GoogleRequest
ProjectsAgentEntityTypesEntitiesBatchUpdate where
type Rs ProjectsAgentEntityTypesEntitiesBatchUpdate =
GoogleLongrunningOperation
type Scopes
ProjectsAgentEntityTypesEntitiesBatchUpdate
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient
ProjectsAgentEntityTypesEntitiesBatchUpdate'{..}
= go _paetebuParent _paetebuXgafv
_paetebuUploadProtocol
_paetebuAccessToken
_paetebuUploadType
_paetebuCallback
(Just AltJSON)
_paetebuPayload
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy
ProjectsAgentEntityTypesEntitiesBatchUpdateResource)
mempty