{-# 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.Spanner.Projects.Instances.Databases.Sessions.List
(
ProjectsInstancesDatabasesSessionsListResource
, projectsInstancesDatabasesSessionsList
, ProjectsInstancesDatabasesSessionsList
, pidslXgafv
, pidslUploadProtocol
, pidslDatabase
, pidslAccessToken
, pidslUploadType
, pidslFilter
, pidslPageToken
, pidslPageSize
, pidslCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesDatabasesSessionsListResource =
"v1" :>
Capture "database" Text :>
"sessions" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListSessionsResponse
data ProjectsInstancesDatabasesSessionsList = ProjectsInstancesDatabasesSessionsList'
{ _pidslXgafv :: !(Maybe Xgafv)
, _pidslUploadProtocol :: !(Maybe Text)
, _pidslDatabase :: !Text
, _pidslAccessToken :: !(Maybe Text)
, _pidslUploadType :: !(Maybe Text)
, _pidslFilter :: !(Maybe Text)
, _pidslPageToken :: !(Maybe Text)
, _pidslPageSize :: !(Maybe (Textual Int32))
, _pidslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesDatabasesSessionsList
:: Text
-> ProjectsInstancesDatabasesSessionsList
projectsInstancesDatabasesSessionsList pPidslDatabase_ =
ProjectsInstancesDatabasesSessionsList'
{ _pidslXgafv = Nothing
, _pidslUploadProtocol = Nothing
, _pidslDatabase = pPidslDatabase_
, _pidslAccessToken = Nothing
, _pidslUploadType = Nothing
, _pidslFilter = Nothing
, _pidslPageToken = Nothing
, _pidslPageSize = Nothing
, _pidslCallback = Nothing
}
pidslXgafv :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Xgafv)
pidslXgafv
= lens _pidslXgafv (\ s a -> s{_pidslXgafv = a})
pidslUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
pidslUploadProtocol
= lens _pidslUploadProtocol
(\ s a -> s{_pidslUploadProtocol = a})
pidslDatabase :: Lens' ProjectsInstancesDatabasesSessionsList Text
pidslDatabase
= lens _pidslDatabase
(\ s a -> s{_pidslDatabase = a})
pidslAccessToken :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
pidslAccessToken
= lens _pidslAccessToken
(\ s a -> s{_pidslAccessToken = a})
pidslUploadType :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
pidslUploadType
= lens _pidslUploadType
(\ s a -> s{_pidslUploadType = a})
pidslFilter :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
pidslFilter
= lens _pidslFilter (\ s a -> s{_pidslFilter = a})
pidslPageToken :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
pidslPageToken
= lens _pidslPageToken
(\ s a -> s{_pidslPageToken = a})
pidslPageSize :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Int32)
pidslPageSize
= lens _pidslPageSize
(\ s a -> s{_pidslPageSize = a})
. mapping _Coerce
pidslCallback :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
pidslCallback
= lens _pidslCallback
(\ s a -> s{_pidslCallback = a})
instance GoogleRequest
ProjectsInstancesDatabasesSessionsList where
type Rs ProjectsInstancesDatabasesSessionsList =
ListSessionsResponse
type Scopes ProjectsInstancesDatabasesSessionsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.data"]
requestClient
ProjectsInstancesDatabasesSessionsList'{..}
= go _pidslDatabase _pidslXgafv _pidslUploadProtocol
_pidslAccessToken
_pidslUploadType
_pidslFilter
_pidslPageToken
_pidslPageSize
_pidslCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesDatabasesSessionsListResource)
mempty