{-# 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.BigtableAdmin.Projects.Instances.Clusters.List
(
ProjectsInstancesClustersListResource
, projectsInstancesClustersList
, ProjectsInstancesClustersList
, piclParent
, piclXgafv
, piclUploadProtocol
, piclAccessToken
, piclUploadType
, piclPageToken
, piclCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesClustersListResource =
"v2" :>
Capture "parent" Text :>
"clusters" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListClustersResponse
data ProjectsInstancesClustersList = ProjectsInstancesClustersList'
{ _piclParent :: !Text
, _piclXgafv :: !(Maybe Xgafv)
, _piclUploadProtocol :: !(Maybe Text)
, _piclAccessToken :: !(Maybe Text)
, _piclUploadType :: !(Maybe Text)
, _piclPageToken :: !(Maybe Text)
, _piclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesClustersList
:: Text
-> ProjectsInstancesClustersList
projectsInstancesClustersList pPiclParent_ =
ProjectsInstancesClustersList'
{ _piclParent = pPiclParent_
, _piclXgafv = Nothing
, _piclUploadProtocol = Nothing
, _piclAccessToken = Nothing
, _piclUploadType = Nothing
, _piclPageToken = Nothing
, _piclCallback = Nothing
}
piclParent :: Lens' ProjectsInstancesClustersList Text
piclParent
= lens _piclParent (\ s a -> s{_piclParent = a})
piclXgafv :: Lens' ProjectsInstancesClustersList (Maybe Xgafv)
piclXgafv
= lens _piclXgafv (\ s a -> s{_piclXgafv = a})
piclUploadProtocol :: Lens' ProjectsInstancesClustersList (Maybe Text)
piclUploadProtocol
= lens _piclUploadProtocol
(\ s a -> s{_piclUploadProtocol = a})
piclAccessToken :: Lens' ProjectsInstancesClustersList (Maybe Text)
piclAccessToken
= lens _piclAccessToken
(\ s a -> s{_piclAccessToken = a})
piclUploadType :: Lens' ProjectsInstancesClustersList (Maybe Text)
piclUploadType
= lens _piclUploadType
(\ s a -> s{_piclUploadType = a})
piclPageToken :: Lens' ProjectsInstancesClustersList (Maybe Text)
piclPageToken
= lens _piclPageToken
(\ s a -> s{_piclPageToken = a})
piclCallback :: Lens' ProjectsInstancesClustersList (Maybe Text)
piclCallback
= lens _piclCallback (\ s a -> s{_piclCallback = a})
instance GoogleRequest ProjectsInstancesClustersList
where
type Rs ProjectsInstancesClustersList =
ListClustersResponse
type Scopes ProjectsInstancesClustersList =
'["https://www.googleapis.com/auth/bigtable.admin",
"https://www.googleapis.com/auth/bigtable.admin.cluster",
"https://www.googleapis.com/auth/bigtable.admin.instance",
"https://www.googleapis.com/auth/cloud-bigtable.admin",
"https://www.googleapis.com/auth/cloud-bigtable.admin.cluster",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient ProjectsInstancesClustersList'{..}
= go _piclParent _piclXgafv _piclUploadProtocol
_piclAccessToken
_piclUploadType
_piclPageToken
_piclCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesClustersListResource)
mempty