{-# 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.Contexts.Get
(
ProjectsAgentSessionsContextsGetResource
, projectsAgentSessionsContextsGet
, ProjectsAgentSessionsContextsGet
, pascgXgafv
, pascgUploadProtocol
, pascgAccessToken
, pascgUploadType
, pascgName
, pascgCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentSessionsContextsGetResource =
"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] GoogleCloudDialogflowV2Context
data ProjectsAgentSessionsContextsGet = ProjectsAgentSessionsContextsGet'
{ _pascgXgafv :: !(Maybe Xgafv)
, _pascgUploadProtocol :: !(Maybe Text)
, _pascgAccessToken :: !(Maybe Text)
, _pascgUploadType :: !(Maybe Text)
, _pascgName :: !Text
, _pascgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentSessionsContextsGet
:: Text
-> ProjectsAgentSessionsContextsGet
projectsAgentSessionsContextsGet pPascgName_ =
ProjectsAgentSessionsContextsGet'
{ _pascgXgafv = Nothing
, _pascgUploadProtocol = Nothing
, _pascgAccessToken = Nothing
, _pascgUploadType = Nothing
, _pascgName = pPascgName_
, _pascgCallback = Nothing
}
pascgXgafv :: Lens' ProjectsAgentSessionsContextsGet (Maybe Xgafv)
pascgXgafv
= lens _pascgXgafv (\ s a -> s{_pascgXgafv = a})
pascgUploadProtocol :: Lens' ProjectsAgentSessionsContextsGet (Maybe Text)
pascgUploadProtocol
= lens _pascgUploadProtocol
(\ s a -> s{_pascgUploadProtocol = a})
pascgAccessToken :: Lens' ProjectsAgentSessionsContextsGet (Maybe Text)
pascgAccessToken
= lens _pascgAccessToken
(\ s a -> s{_pascgAccessToken = a})
pascgUploadType :: Lens' ProjectsAgentSessionsContextsGet (Maybe Text)
pascgUploadType
= lens _pascgUploadType
(\ s a -> s{_pascgUploadType = a})
pascgName :: Lens' ProjectsAgentSessionsContextsGet Text
pascgName
= lens _pascgName (\ s a -> s{_pascgName = a})
pascgCallback :: Lens' ProjectsAgentSessionsContextsGet (Maybe Text)
pascgCallback
= lens _pascgCallback
(\ s a -> s{_pascgCallback = a})
instance GoogleRequest
ProjectsAgentSessionsContextsGet where
type Rs ProjectsAgentSessionsContextsGet =
GoogleCloudDialogflowV2Context
type Scopes ProjectsAgentSessionsContextsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient ProjectsAgentSessionsContextsGet'{..}
= go _pascgName _pascgXgafv _pascgUploadProtocol
_pascgAccessToken
_pascgUploadType
_pascgCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentSessionsContextsGetResource)
mempty