{-# 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.Get
(
ProjectsAgentSessionsEntityTypesGetResource
, projectsAgentSessionsEntityTypesGet
, ProjectsAgentSessionsEntityTypesGet
, paSetgXgafv
, paSetgUploadProtocol
, paSetgAccessToken
, paSetgUploadType
, paSetgName
, paSetgCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentSessionsEntityTypesGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleCloudDialogflowV2SessionEntityType
data ProjectsAgentSessionsEntityTypesGet = ProjectsAgentSessionsEntityTypesGet'
{ _paSetgXgafv :: !(Maybe Xgafv)
, _paSetgUploadProtocol :: !(Maybe Text)
, _paSetgAccessToken :: !(Maybe Text)
, _paSetgUploadType :: !(Maybe Text)
, _paSetgName :: !Text
, _paSetgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentSessionsEntityTypesGet
:: Text
-> ProjectsAgentSessionsEntityTypesGet
projectsAgentSessionsEntityTypesGet pPaSetgName_ =
ProjectsAgentSessionsEntityTypesGet'
{ _paSetgXgafv = Nothing
, _paSetgUploadProtocol = Nothing
, _paSetgAccessToken = Nothing
, _paSetgUploadType = Nothing
, _paSetgName = pPaSetgName_
, _paSetgCallback = Nothing
}
paSetgXgafv :: Lens' ProjectsAgentSessionsEntityTypesGet (Maybe Xgafv)
paSetgXgafv
= lens _paSetgXgafv (\ s a -> s{_paSetgXgafv = a})
paSetgUploadProtocol :: Lens' ProjectsAgentSessionsEntityTypesGet (Maybe Text)
paSetgUploadProtocol
= lens _paSetgUploadProtocol
(\ s a -> s{_paSetgUploadProtocol = a})
paSetgAccessToken :: Lens' ProjectsAgentSessionsEntityTypesGet (Maybe Text)
paSetgAccessToken
= lens _paSetgAccessToken
(\ s a -> s{_paSetgAccessToken = a})
paSetgUploadType :: Lens' ProjectsAgentSessionsEntityTypesGet (Maybe Text)
paSetgUploadType
= lens _paSetgUploadType
(\ s a -> s{_paSetgUploadType = a})
paSetgName :: Lens' ProjectsAgentSessionsEntityTypesGet Text
paSetgName
= lens _paSetgName (\ s a -> s{_paSetgName = a})
paSetgCallback :: Lens' ProjectsAgentSessionsEntityTypesGet (Maybe Text)
paSetgCallback
= lens _paSetgCallback
(\ s a -> s{_paSetgCallback = a})
instance GoogleRequest
ProjectsAgentSessionsEntityTypesGet where
type Rs ProjectsAgentSessionsEntityTypesGet =
GoogleCloudDialogflowV2SessionEntityType
type Scopes ProjectsAgentSessionsEntityTypesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient
ProjectsAgentSessionsEntityTypesGet'{..}
= go _paSetgName _paSetgXgafv _paSetgUploadProtocol
_paSetgAccessToken
_paSetgUploadType
_paSetgCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentSessionsEntityTypesGetResource)
mempty