{-# 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.List
(
ProjectsInstancesListResource
, projectsInstancesList
, ProjectsInstancesList
, pilParent
, pilXgafv
, pilUploadProtocol
, pilAccessToken
, pilUploadType
, pilFilter
, pilPageToken
, pilPageSize
, pilCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesListResource =
"v1" :>
Capture "parent" Text :>
"instances" :>
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] ListInstancesResponse
data ProjectsInstancesList = ProjectsInstancesList'
{ _pilParent :: !Text
, _pilXgafv :: !(Maybe Xgafv)
, _pilUploadProtocol :: !(Maybe Text)
, _pilAccessToken :: !(Maybe Text)
, _pilUploadType :: !(Maybe Text)
, _pilFilter :: !(Maybe Text)
, _pilPageToken :: !(Maybe Text)
, _pilPageSize :: !(Maybe (Textual Int32))
, _pilCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesList
:: Text
-> ProjectsInstancesList
projectsInstancesList pPilParent_ =
ProjectsInstancesList'
{ _pilParent = pPilParent_
, _pilXgafv = Nothing
, _pilUploadProtocol = Nothing
, _pilAccessToken = Nothing
, _pilUploadType = Nothing
, _pilFilter = Nothing
, _pilPageToken = Nothing
, _pilPageSize = Nothing
, _pilCallback = Nothing
}
pilParent :: Lens' ProjectsInstancesList Text
pilParent
= lens _pilParent (\ s a -> s{_pilParent = a})
pilXgafv :: Lens' ProjectsInstancesList (Maybe Xgafv)
pilXgafv = lens _pilXgafv (\ s a -> s{_pilXgafv = a})
pilUploadProtocol :: Lens' ProjectsInstancesList (Maybe Text)
pilUploadProtocol
= lens _pilUploadProtocol
(\ s a -> s{_pilUploadProtocol = a})
pilAccessToken :: Lens' ProjectsInstancesList (Maybe Text)
pilAccessToken
= lens _pilAccessToken
(\ s a -> s{_pilAccessToken = a})
pilUploadType :: Lens' ProjectsInstancesList (Maybe Text)
pilUploadType
= lens _pilUploadType
(\ s a -> s{_pilUploadType = a})
pilFilter :: Lens' ProjectsInstancesList (Maybe Text)
pilFilter
= lens _pilFilter (\ s a -> s{_pilFilter = a})
pilPageToken :: Lens' ProjectsInstancesList (Maybe Text)
pilPageToken
= lens _pilPageToken (\ s a -> s{_pilPageToken = a})
pilPageSize :: Lens' ProjectsInstancesList (Maybe Int32)
pilPageSize
= lens _pilPageSize (\ s a -> s{_pilPageSize = a}) .
mapping _Coerce
pilCallback :: Lens' ProjectsInstancesList (Maybe Text)
pilCallback
= lens _pilCallback (\ s a -> s{_pilCallback = a})
instance GoogleRequest ProjectsInstancesList where
type Rs ProjectsInstancesList = ListInstancesResponse
type Scopes ProjectsInstancesList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient ProjectsInstancesList'{..}
= go _pilParent _pilXgafv _pilUploadProtocol
_pilAccessToken
_pilUploadType
_pilFilter
_pilPageToken
_pilPageSize
_pilCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy :: Proxy ProjectsInstancesListResource)
mempty