{-# 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.Delete
(
ProjectsAgentEntityTypesDeleteResource
, projectsAgentEntityTypesDelete
, ProjectsAgentEntityTypesDelete
, paetdXgafv
, paetdUploadProtocol
, paetdAccessToken
, paetdUploadType
, paetdName
, paetdCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentEntityTypesDeleteResource =
"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 ProjectsAgentEntityTypesDelete = ProjectsAgentEntityTypesDelete'
{ _paetdXgafv :: !(Maybe Xgafv)
, _paetdUploadProtocol :: !(Maybe Text)
, _paetdAccessToken :: !(Maybe Text)
, _paetdUploadType :: !(Maybe Text)
, _paetdName :: !Text
, _paetdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentEntityTypesDelete
:: Text
-> ProjectsAgentEntityTypesDelete
projectsAgentEntityTypesDelete pPaetdName_ =
ProjectsAgentEntityTypesDelete'
{ _paetdXgafv = Nothing
, _paetdUploadProtocol = Nothing
, _paetdAccessToken = Nothing
, _paetdUploadType = Nothing
, _paetdName = pPaetdName_
, _paetdCallback = Nothing
}
paetdXgafv :: Lens' ProjectsAgentEntityTypesDelete (Maybe Xgafv)
paetdXgafv
= lens _paetdXgafv (\ s a -> s{_paetdXgafv = a})
paetdUploadProtocol :: Lens' ProjectsAgentEntityTypesDelete (Maybe Text)
paetdUploadProtocol
= lens _paetdUploadProtocol
(\ s a -> s{_paetdUploadProtocol = a})
paetdAccessToken :: Lens' ProjectsAgentEntityTypesDelete (Maybe Text)
paetdAccessToken
= lens _paetdAccessToken
(\ s a -> s{_paetdAccessToken = a})
paetdUploadType :: Lens' ProjectsAgentEntityTypesDelete (Maybe Text)
paetdUploadType
= lens _paetdUploadType
(\ s a -> s{_paetdUploadType = a})
paetdName :: Lens' ProjectsAgentEntityTypesDelete Text
paetdName
= lens _paetdName (\ s a -> s{_paetdName = a})
paetdCallback :: Lens' ProjectsAgentEntityTypesDelete (Maybe Text)
paetdCallback
= lens _paetdCallback
(\ s a -> s{_paetdCallback = a})
instance GoogleRequest ProjectsAgentEntityTypesDelete
where
type Rs ProjectsAgentEntityTypesDelete =
GoogleProtobufEmpty
type Scopes ProjectsAgentEntityTypesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient ProjectsAgentEntityTypesDelete'{..}
= go _paetdName _paetdXgafv _paetdUploadProtocol
_paetdAccessToken
_paetdUploadType
_paetdCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentEntityTypesDeleteResource)
mempty