{-# 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.Intents.Get
(
ProjectsAgentIntentsGetResource
, projectsAgentIntentsGet
, ProjectsAgentIntentsGet
, paigXgafv
, paigLanguageCode
, paigUploadProtocol
, paigAccessToken
, paigUploadType
, paigIntentView
, paigName
, paigCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentIntentsGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "languageCode" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "intentView" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleCloudDialogflowV2Intent
data ProjectsAgentIntentsGet = ProjectsAgentIntentsGet'
{ _paigXgafv :: !(Maybe Xgafv)
, _paigLanguageCode :: !(Maybe Text)
, _paigUploadProtocol :: !(Maybe Text)
, _paigAccessToken :: !(Maybe Text)
, _paigUploadType :: !(Maybe Text)
, _paigIntentView :: !(Maybe Text)
, _paigName :: !Text
, _paigCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentIntentsGet
:: Text
-> ProjectsAgentIntentsGet
projectsAgentIntentsGet pPaigName_ =
ProjectsAgentIntentsGet'
{ _paigXgafv = Nothing
, _paigLanguageCode = Nothing
, _paigUploadProtocol = Nothing
, _paigAccessToken = Nothing
, _paigUploadType = Nothing
, _paigIntentView = Nothing
, _paigName = pPaigName_
, _paigCallback = Nothing
}
paigXgafv :: Lens' ProjectsAgentIntentsGet (Maybe Xgafv)
paigXgafv
= lens _paigXgafv (\ s a -> s{_paigXgafv = a})
paigLanguageCode :: Lens' ProjectsAgentIntentsGet (Maybe Text)
paigLanguageCode
= lens _paigLanguageCode
(\ s a -> s{_paigLanguageCode = a})
paigUploadProtocol :: Lens' ProjectsAgentIntentsGet (Maybe Text)
paigUploadProtocol
= lens _paigUploadProtocol
(\ s a -> s{_paigUploadProtocol = a})
paigAccessToken :: Lens' ProjectsAgentIntentsGet (Maybe Text)
paigAccessToken
= lens _paigAccessToken
(\ s a -> s{_paigAccessToken = a})
paigUploadType :: Lens' ProjectsAgentIntentsGet (Maybe Text)
paigUploadType
= lens _paigUploadType
(\ s a -> s{_paigUploadType = a})
paigIntentView :: Lens' ProjectsAgentIntentsGet (Maybe Text)
paigIntentView
= lens _paigIntentView
(\ s a -> s{_paigIntentView = a})
paigName :: Lens' ProjectsAgentIntentsGet Text
paigName = lens _paigName (\ s a -> s{_paigName = a})
paigCallback :: Lens' ProjectsAgentIntentsGet (Maybe Text)
paigCallback
= lens _paigCallback (\ s a -> s{_paigCallback = a})
instance GoogleRequest ProjectsAgentIntentsGet where
type Rs ProjectsAgentIntentsGet =
GoogleCloudDialogflowV2Intent
type Scopes ProjectsAgentIntentsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient ProjectsAgentIntentsGet'{..}
= go _paigName _paigXgafv _paigLanguageCode
_paigUploadProtocol
_paigAccessToken
_paigUploadType
_paigIntentView
_paigCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy :: Proxy ProjectsAgentIntentsGetResource)
mempty