{-# 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.DeleteContexts
(
ProjectsAgentSessionsDeleteContextsResource
, projectsAgentSessionsDeleteContexts
, ProjectsAgentSessionsDeleteContexts
, pasdcParent
, pasdcXgafv
, pasdcUploadProtocol
, pasdcAccessToken
, pasdcUploadType
, pasdcCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentSessionsDeleteContextsResource =
"v2" :>
Capture "parent" Text :>
"contexts" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Delete '[JSON] GoogleProtobufEmpty
data ProjectsAgentSessionsDeleteContexts = ProjectsAgentSessionsDeleteContexts'
{ _pasdcParent :: !Text
, _pasdcXgafv :: !(Maybe Xgafv)
, _pasdcUploadProtocol :: !(Maybe Text)
, _pasdcAccessToken :: !(Maybe Text)
, _pasdcUploadType :: !(Maybe Text)
, _pasdcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentSessionsDeleteContexts
:: Text
-> ProjectsAgentSessionsDeleteContexts
projectsAgentSessionsDeleteContexts pPasdcParent_ =
ProjectsAgentSessionsDeleteContexts'
{ _pasdcParent = pPasdcParent_
, _pasdcXgafv = Nothing
, _pasdcUploadProtocol = Nothing
, _pasdcAccessToken = Nothing
, _pasdcUploadType = Nothing
, _pasdcCallback = Nothing
}
pasdcParent :: Lens' ProjectsAgentSessionsDeleteContexts Text
pasdcParent
= lens _pasdcParent (\ s a -> s{_pasdcParent = a})
pasdcXgafv :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Xgafv)
pasdcXgafv
= lens _pasdcXgafv (\ s a -> s{_pasdcXgafv = a})
pasdcUploadProtocol :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text)
pasdcUploadProtocol
= lens _pasdcUploadProtocol
(\ s a -> s{_pasdcUploadProtocol = a})
pasdcAccessToken :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text)
pasdcAccessToken
= lens _pasdcAccessToken
(\ s a -> s{_pasdcAccessToken = a})
pasdcUploadType :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text)
pasdcUploadType
= lens _pasdcUploadType
(\ s a -> s{_pasdcUploadType = a})
pasdcCallback :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text)
pasdcCallback
= lens _pasdcCallback
(\ s a -> s{_pasdcCallback = a})
instance GoogleRequest
ProjectsAgentSessionsDeleteContexts where
type Rs ProjectsAgentSessionsDeleteContexts =
GoogleProtobufEmpty
type Scopes ProjectsAgentSessionsDeleteContexts =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient
ProjectsAgentSessionsDeleteContexts'{..}
= go _pasdcParent _pasdcXgafv _pasdcUploadProtocol
_pasdcAccessToken
_pasdcUploadType
_pasdcCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentSessionsDeleteContextsResource)
mempty