{-# 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.Delete
(
ProjectsAgentSessionsEntityTypesDeleteResource
, projectsAgentSessionsEntityTypesDelete
, ProjectsAgentSessionsEntityTypesDelete
, paSetdXgafv
, paSetdUploadProtocol
, paSetdAccessToken
, paSetdUploadType
, paSetdName
, paSetdCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentSessionsEntityTypesDeleteResource =
"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 ProjectsAgentSessionsEntityTypesDelete = ProjectsAgentSessionsEntityTypesDelete'
{ _paSetdXgafv :: !(Maybe Xgafv)
, _paSetdUploadProtocol :: !(Maybe Text)
, _paSetdAccessToken :: !(Maybe Text)
, _paSetdUploadType :: !(Maybe Text)
, _paSetdName :: !Text
, _paSetdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentSessionsEntityTypesDelete
:: Text
-> ProjectsAgentSessionsEntityTypesDelete
projectsAgentSessionsEntityTypesDelete pPaSetdName_ =
ProjectsAgentSessionsEntityTypesDelete'
{ _paSetdXgafv = Nothing
, _paSetdUploadProtocol = Nothing
, _paSetdAccessToken = Nothing
, _paSetdUploadType = Nothing
, _paSetdName = pPaSetdName_
, _paSetdCallback = Nothing
}
paSetdXgafv :: Lens' ProjectsAgentSessionsEntityTypesDelete (Maybe Xgafv)
paSetdXgafv
= lens _paSetdXgafv (\ s a -> s{_paSetdXgafv = a})
paSetdUploadProtocol :: Lens' ProjectsAgentSessionsEntityTypesDelete (Maybe Text)
paSetdUploadProtocol
= lens _paSetdUploadProtocol
(\ s a -> s{_paSetdUploadProtocol = a})
paSetdAccessToken :: Lens' ProjectsAgentSessionsEntityTypesDelete (Maybe Text)
paSetdAccessToken
= lens _paSetdAccessToken
(\ s a -> s{_paSetdAccessToken = a})
paSetdUploadType :: Lens' ProjectsAgentSessionsEntityTypesDelete (Maybe Text)
paSetdUploadType
= lens _paSetdUploadType
(\ s a -> s{_paSetdUploadType = a})
paSetdName :: Lens' ProjectsAgentSessionsEntityTypesDelete Text
paSetdName
= lens _paSetdName (\ s a -> s{_paSetdName = a})
paSetdCallback :: Lens' ProjectsAgentSessionsEntityTypesDelete (Maybe Text)
paSetdCallback
= lens _paSetdCallback
(\ s a -> s{_paSetdCallback = a})
instance GoogleRequest
ProjectsAgentSessionsEntityTypesDelete where
type Rs ProjectsAgentSessionsEntityTypesDelete =
GoogleProtobufEmpty
type Scopes ProjectsAgentSessionsEntityTypesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient
ProjectsAgentSessionsEntityTypesDelete'{..}
= go _paSetdName _paSetdXgafv _paSetdUploadProtocol
_paSetdAccessToken
_paSetdUploadType
_paSetdCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentSessionsEntityTypesDeleteResource)
mempty