{-# 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.Contexts.Delete
(
ProjectsAgentSessionsContextsDeleteResource
, projectsAgentSessionsContextsDelete
, ProjectsAgentSessionsContextsDelete
, pascdXgafv
, pascdUploadProtocol
, pascdAccessToken
, pascdUploadType
, pascdName
, pascdCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentSessionsContextsDeleteResource =
"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 ProjectsAgentSessionsContextsDelete = ProjectsAgentSessionsContextsDelete'
{ _pascdXgafv :: !(Maybe Xgafv)
, _pascdUploadProtocol :: !(Maybe Text)
, _pascdAccessToken :: !(Maybe Text)
, _pascdUploadType :: !(Maybe Text)
, _pascdName :: !Text
, _pascdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentSessionsContextsDelete
:: Text
-> ProjectsAgentSessionsContextsDelete
projectsAgentSessionsContextsDelete pPascdName_ =
ProjectsAgentSessionsContextsDelete'
{ _pascdXgafv = Nothing
, _pascdUploadProtocol = Nothing
, _pascdAccessToken = Nothing
, _pascdUploadType = Nothing
, _pascdName = pPascdName_
, _pascdCallback = Nothing
}
pascdXgafv :: Lens' ProjectsAgentSessionsContextsDelete (Maybe Xgafv)
pascdXgafv
= lens _pascdXgafv (\ s a -> s{_pascdXgafv = a})
pascdUploadProtocol :: Lens' ProjectsAgentSessionsContextsDelete (Maybe Text)
pascdUploadProtocol
= lens _pascdUploadProtocol
(\ s a -> s{_pascdUploadProtocol = a})
pascdAccessToken :: Lens' ProjectsAgentSessionsContextsDelete (Maybe Text)
pascdAccessToken
= lens _pascdAccessToken
(\ s a -> s{_pascdAccessToken = a})
pascdUploadType :: Lens' ProjectsAgentSessionsContextsDelete (Maybe Text)
pascdUploadType
= lens _pascdUploadType
(\ s a -> s{_pascdUploadType = a})
pascdName :: Lens' ProjectsAgentSessionsContextsDelete Text
pascdName
= lens _pascdName (\ s a -> s{_pascdName = a})
pascdCallback :: Lens' ProjectsAgentSessionsContextsDelete (Maybe Text)
pascdCallback
= lens _pascdCallback
(\ s a -> s{_pascdCallback = a})
instance GoogleRequest
ProjectsAgentSessionsContextsDelete where
type Rs ProjectsAgentSessionsContextsDelete =
GoogleProtobufEmpty
type Scopes ProjectsAgentSessionsContextsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient
ProjectsAgentSessionsContextsDelete'{..}
= go _pascdName _pascdXgafv _pascdUploadProtocol
_pascdAccessToken
_pascdUploadType
_pascdCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentSessionsContextsDeleteResource)
mempty