{-# 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.InstanceConfigs.List
(
ProjectsInstanceConfigsListResource
, projectsInstanceConfigsList
, ProjectsInstanceConfigsList
, piclParent
, piclXgafv
, piclUploadProtocol
, piclAccessToken
, piclUploadType
, piclPageToken
, piclPageSize
, piclCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstanceConfigsListResource =
"v1" :>
Capture "parent" Text :>
"instanceConfigs" :>
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] ListInstanceConfigsResponse
data ProjectsInstanceConfigsList = ProjectsInstanceConfigsList'
{ _piclParent :: !Text
, _piclXgafv :: !(Maybe Xgafv)
, _piclUploadProtocol :: !(Maybe Text)
, _piclAccessToken :: !(Maybe Text)
, _piclUploadType :: !(Maybe Text)
, _piclPageToken :: !(Maybe Text)
, _piclPageSize :: !(Maybe (Textual Int32))
, _piclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstanceConfigsList
:: Text
-> ProjectsInstanceConfigsList
projectsInstanceConfigsList pPiclParent_ =
ProjectsInstanceConfigsList'
{ _piclParent = pPiclParent_
, _piclXgafv = Nothing
, _piclUploadProtocol = Nothing
, _piclAccessToken = Nothing
, _piclUploadType = Nothing
, _piclPageToken = Nothing
, _piclPageSize = Nothing
, _piclCallback = Nothing
}
piclParent :: Lens' ProjectsInstanceConfigsList Text
piclParent
= lens _piclParent (\ s a -> s{_piclParent = a})
piclXgafv :: Lens' ProjectsInstanceConfigsList (Maybe Xgafv)
piclXgafv
= lens _piclXgafv (\ s a -> s{_piclXgafv = a})
piclUploadProtocol :: Lens' ProjectsInstanceConfigsList (Maybe Text)
piclUploadProtocol
= lens _piclUploadProtocol
(\ s a -> s{_piclUploadProtocol = a})
piclAccessToken :: Lens' ProjectsInstanceConfigsList (Maybe Text)
piclAccessToken
= lens _piclAccessToken
(\ s a -> s{_piclAccessToken = a})
piclUploadType :: Lens' ProjectsInstanceConfigsList (Maybe Text)
piclUploadType
= lens _piclUploadType
(\ s a -> s{_piclUploadType = a})
piclPageToken :: Lens' ProjectsInstanceConfigsList (Maybe Text)
piclPageToken
= lens _piclPageToken
(\ s a -> s{_piclPageToken = a})
piclPageSize :: Lens' ProjectsInstanceConfigsList (Maybe Int32)
piclPageSize
= lens _piclPageSize (\ s a -> s{_piclPageSize = a})
. mapping _Coerce
piclCallback :: Lens' ProjectsInstanceConfigsList (Maybe Text)
piclCallback
= lens _piclCallback (\ s a -> s{_piclCallback = a})
instance GoogleRequest ProjectsInstanceConfigsList
where
type Rs ProjectsInstanceConfigsList =
ListInstanceConfigsResponse
type Scopes ProjectsInstanceConfigsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient ProjectsInstanceConfigsList'{..}
= go _piclParent _piclXgafv _piclUploadProtocol
_piclAccessToken
_piclUploadType
_piclPageToken
_piclPageSize
_piclCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy :: Proxy ProjectsInstanceConfigsListResource)
mempty