{-# 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.List
(
ProjectsAgentSessionsContextsListResource
, projectsAgentSessionsContextsList
, ProjectsAgentSessionsContextsList
, pasclParent
, pasclXgafv
, pasclUploadProtocol
, pasclAccessToken
, pasclUploadType
, pasclPageToken
, pasclPageSize
, pasclCallback
) where
import Network.Google.DialogFlow.Types
import Network.Google.Prelude
type ProjectsAgentSessionsContextsListResource =
"v2" :>
Capture "parent" Text :>
"contexts" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON]
GoogleCloudDialogflowV2ListContextsResponse
data ProjectsAgentSessionsContextsList = ProjectsAgentSessionsContextsList'
{ _pasclParent :: !Text
, _pasclXgafv :: !(Maybe Xgafv)
, _pasclUploadProtocol :: !(Maybe Text)
, _pasclAccessToken :: !(Maybe Text)
, _pasclUploadType :: !(Maybe Text)
, _pasclPageToken :: !(Maybe Text)
, _pasclPageSize :: !(Maybe (Textual Int32))
, _pasclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAgentSessionsContextsList
:: Text
-> ProjectsAgentSessionsContextsList
projectsAgentSessionsContextsList pPasclParent_ =
ProjectsAgentSessionsContextsList'
{ _pasclParent = pPasclParent_
, _pasclXgafv = Nothing
, _pasclUploadProtocol = Nothing
, _pasclAccessToken = Nothing
, _pasclUploadType = Nothing
, _pasclPageToken = Nothing
, _pasclPageSize = Nothing
, _pasclCallback = Nothing
}
pasclParent :: Lens' ProjectsAgentSessionsContextsList Text
pasclParent
= lens _pasclParent (\ s a -> s{_pasclParent = a})
pasclXgafv :: Lens' ProjectsAgentSessionsContextsList (Maybe Xgafv)
pasclXgafv
= lens _pasclXgafv (\ s a -> s{_pasclXgafv = a})
pasclUploadProtocol :: Lens' ProjectsAgentSessionsContextsList (Maybe Text)
pasclUploadProtocol
= lens _pasclUploadProtocol
(\ s a -> s{_pasclUploadProtocol = a})
pasclAccessToken :: Lens' ProjectsAgentSessionsContextsList (Maybe Text)
pasclAccessToken
= lens _pasclAccessToken
(\ s a -> s{_pasclAccessToken = a})
pasclUploadType :: Lens' ProjectsAgentSessionsContextsList (Maybe Text)
pasclUploadType
= lens _pasclUploadType
(\ s a -> s{_pasclUploadType = a})
pasclPageToken :: Lens' ProjectsAgentSessionsContextsList (Maybe Text)
pasclPageToken
= lens _pasclPageToken
(\ s a -> s{_pasclPageToken = a})
pasclPageSize :: Lens' ProjectsAgentSessionsContextsList (Maybe Int32)
pasclPageSize
= lens _pasclPageSize
(\ s a -> s{_pasclPageSize = a})
. mapping _Coerce
pasclCallback :: Lens' ProjectsAgentSessionsContextsList (Maybe Text)
pasclCallback
= lens _pasclCallback
(\ s a -> s{_pasclCallback = a})
instance GoogleRequest
ProjectsAgentSessionsContextsList where
type Rs ProjectsAgentSessionsContextsList =
GoogleCloudDialogflowV2ListContextsResponse
type Scopes ProjectsAgentSessionsContextsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"]
requestClient ProjectsAgentSessionsContextsList'{..}
= go _pasclParent _pasclXgafv _pasclUploadProtocol
_pasclAccessToken
_pasclUploadType
_pasclPageToken
_pasclPageSize
_pasclCallback
(Just AltJSON)
dialogFlowService
where go
= buildClient
(Proxy ::
Proxy ProjectsAgentSessionsContextsListResource)
mempty