{-# 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.Sessions.EntityTypes.Patch
(
ProjectsAgentSessionsEntityTypesPatchResource
, projectsAgentSessionsEntityTypesPatch
, ProjectsAgentSessionsEntityTypesPatch
, paSetpXgafv
, paSetpUploadProtocol
, paSetpUpdateMask
, paSetpAccessToken
, paSetpUploadType
, paSetpPayload
, paSetpName
, paSetpCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentSessionsEntityTypesPatchResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
GoogleCloudDialogflowV2SessionEntityType
:>
Patch '[JSON]
GoogleCloudDialogflowV2SessionEntityType
data ProjectsAgentSessionsEntityTypesPatch = ProjectsAgentSessionsEntityTypesPatch'
{ _paSetpXgafv :: !(Maybe Xgafv)
, _paSetpUploadProtocol :: !(Maybe Text)
, _paSetpUpdateMask :: !(Maybe GFieldMask)
, _paSetpAccessToken :: !(Maybe Text)
, _paSetpUploadType :: !(Maybe Text)
, _paSetpPayload :: !GoogleCloudDialogflowV2SessionEntityType
, _paSetpName :: !Text
, _paSetpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentSessionsEntityTypesPatch
:: GoogleCloudDialogflowV2SessionEntityType
-> Text
-> ProjectsAgentSessionsEntityTypesPatch
projectsAgentSessionsEntityTypesPatch pPaSetpPayload_ pPaSetpName_ =
ProjectsAgentSessionsEntityTypesPatch'
{ _paSetpXgafv = Nothing
, _paSetpUploadProtocol = Nothing
, _paSetpUpdateMask = Nothing
, _paSetpAccessToken = Nothing
, _paSetpUploadType = Nothing
, _paSetpPayload = pPaSetpPayload_
, _paSetpName = pPaSetpName_
, _paSetpCallback = Nothing
}
paSetpXgafv :: Lens' ProjectsAgentSessionsEntityTypesPatch (Maybe Xgafv)
paSetpXgafv
= lens _paSetpXgafv (\ s a -> s{_paSetpXgafv = a})
paSetpUploadProtocol :: Lens' ProjectsAgentSessionsEntityTypesPatch (Maybe Text)
paSetpUploadProtocol
= lens _paSetpUploadProtocol
(\ s a -> s{_paSetpUploadProtocol = a})
paSetpUpdateMask :: Lens' ProjectsAgentSessionsEntityTypesPatch (Maybe GFieldMask)
paSetpUpdateMask
= lens _paSetpUpdateMask
(\ s a -> s{_paSetpUpdateMask = a})
paSetpAccessToken :: Lens' ProjectsAgentSessionsEntityTypesPatch (Maybe Text)
paSetpAccessToken
= lens _paSetpAccessToken
(\ s a -> s{_paSetpAccessToken = a})
paSetpUploadType :: Lens' ProjectsAgentSessionsEntityTypesPatch (Maybe Text)
paSetpUploadType
= lens _paSetpUploadType
(\ s a -> s{_paSetpUploadType = a})
paSetpPayload :: Lens' ProjectsAgentSessionsEntityTypesPatch GoogleCloudDialogflowV2SessionEntityType
paSetpPayload
= lens _paSetpPayload
(\ s a -> s{_paSetpPayload = a})
paSetpName :: Lens' ProjectsAgentSessionsEntityTypesPatch Text
paSetpName
= lens _paSetpName (\ s a -> s{_paSetpName = a})
paSetpCallback :: Lens' ProjectsAgentSessionsEntityTypesPatch (Maybe Text)
paSetpCallback
= lens _paSetpCallback
(\ s a -> s{_paSetpCallback = a})
instance GoogleRequest
ProjectsAgentSessionsEntityTypesPatch where
type Rs ProjectsAgentSessionsEntityTypesPatch =
GoogleCloudDialogflowV2SessionEntityType
type Scopes ProjectsAgentSessionsEntityTypesPatch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient
ProjectsAgentSessionsEntityTypesPatch'{..}
= go _paSetpName _paSetpXgafv _paSetpUploadProtocol
_paSetpUpdateMask
_paSetpAccessToken
_paSetpUploadType
_paSetpCallback
(Just AltJSON)
_paSetpPayload
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentSessionsEntityTypesPatchResource)
mempty