{-# 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.Get
(
ProjectsAgentEntityTypesGetResource
, projectsAgentEntityTypesGet
, ProjectsAgentEntityTypesGet
, paetgXgafv
, paetgLanguageCode
, paetgUploadProtocol
, paetgAccessToken
, paetgUploadType
, paetgName
, paetgCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentEntityTypesGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "languageCode" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleCloudDialogflowV2EntityType
data ProjectsAgentEntityTypesGet = ProjectsAgentEntityTypesGet'
{ _paetgXgafv :: !(Maybe Xgafv)
, _paetgLanguageCode :: !(Maybe Text)
, _paetgUploadProtocol :: !(Maybe Text)
, _paetgAccessToken :: !(Maybe Text)
, _paetgUploadType :: !(Maybe Text)
, _paetgName :: !Text
, _paetgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentEntityTypesGet
:: Text
-> ProjectsAgentEntityTypesGet
projectsAgentEntityTypesGet pPaetgName_ =
ProjectsAgentEntityTypesGet'
{ _paetgXgafv = Nothing
, _paetgLanguageCode = Nothing
, _paetgUploadProtocol = Nothing
, _paetgAccessToken = Nothing
, _paetgUploadType = Nothing
, _paetgName = pPaetgName_
, _paetgCallback = Nothing
}
paetgXgafv :: Lens' ProjectsAgentEntityTypesGet (Maybe Xgafv)
paetgXgafv
= lens _paetgXgafv (\ s a -> s{_paetgXgafv = a})
paetgLanguageCode :: Lens' ProjectsAgentEntityTypesGet (Maybe Text)
paetgLanguageCode
= lens _paetgLanguageCode
(\ s a -> s{_paetgLanguageCode = a})
paetgUploadProtocol :: Lens' ProjectsAgentEntityTypesGet (Maybe Text)
paetgUploadProtocol
= lens _paetgUploadProtocol
(\ s a -> s{_paetgUploadProtocol = a})
paetgAccessToken :: Lens' ProjectsAgentEntityTypesGet (Maybe Text)
paetgAccessToken
= lens _paetgAccessToken
(\ s a -> s{_paetgAccessToken = a})
paetgUploadType :: Lens' ProjectsAgentEntityTypesGet (Maybe Text)
paetgUploadType
= lens _paetgUploadType
(\ s a -> s{_paetgUploadType = a})
paetgName :: Lens' ProjectsAgentEntityTypesGet Text
paetgName
= lens _paetgName (\ s a -> s{_paetgName = a})
paetgCallback :: Lens' ProjectsAgentEntityTypesGet (Maybe Text)
paetgCallback
= lens _paetgCallback
(\ s a -> s{_paetgCallback = a})
instance GoogleRequest ProjectsAgentEntityTypesGet
where
type Rs ProjectsAgentEntityTypesGet =
GoogleCloudDialogflowV2EntityType
type Scopes ProjectsAgentEntityTypesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient ProjectsAgentEntityTypesGet'{..}
= go _paetgName _paetgXgafv _paetgLanguageCode
_paetgUploadProtocol
_paetgAccessToken
_paetgUploadType
_paetgCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy :: Proxy ProjectsAgentEntityTypesGetResource)
mempty