{-# 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.Get
(
ProjectsInstancesClustersGetResource
, projectsInstancesClustersGet
, ProjectsInstancesClustersGet
, picgXgafv
, picgUploadProtocol
, picgAccessToken
, picgUploadType
, picgName
, picgCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesClustersGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Cluster
data ProjectsInstancesClustersGet = ProjectsInstancesClustersGet'
{ _picgXgafv :: !(Maybe Xgafv)
, _picgUploadProtocol :: !(Maybe Text)
, _picgAccessToken :: !(Maybe Text)
, _picgUploadType :: !(Maybe Text)
, _picgName :: !Text
, _picgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesClustersGet
:: Text
-> ProjectsInstancesClustersGet
projectsInstancesClustersGet pPicgName_ =
ProjectsInstancesClustersGet'
{ _picgXgafv = Nothing
, _picgUploadProtocol = Nothing
, _picgAccessToken = Nothing
, _picgUploadType = Nothing
, _picgName = pPicgName_
, _picgCallback = Nothing
}
picgXgafv :: Lens' ProjectsInstancesClustersGet (Maybe Xgafv)
picgXgafv
= lens _picgXgafv (\ s a -> s{_picgXgafv = a})
picgUploadProtocol :: Lens' ProjectsInstancesClustersGet (Maybe Text)
picgUploadProtocol
= lens _picgUploadProtocol
(\ s a -> s{_picgUploadProtocol = a})
picgAccessToken :: Lens' ProjectsInstancesClustersGet (Maybe Text)
picgAccessToken
= lens _picgAccessToken
(\ s a -> s{_picgAccessToken = a})
picgUploadType :: Lens' ProjectsInstancesClustersGet (Maybe Text)
picgUploadType
= lens _picgUploadType
(\ s a -> s{_picgUploadType = a})
picgName :: Lens' ProjectsInstancesClustersGet Text
picgName = lens _picgName (\ s a -> s{_picgName = a})
picgCallback :: Lens' ProjectsInstancesClustersGet (Maybe Text)
picgCallback
= lens _picgCallback (\ s a -> s{_picgCallback = a})
instance GoogleRequest ProjectsInstancesClustersGet
where
type Rs ProjectsInstancesClustersGet = Cluster
type Scopes ProjectsInstancesClustersGet =
'["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 ProjectsInstancesClustersGet'{..}
= go _picgName _picgXgafv _picgUploadProtocol
_picgAccessToken
_picgUploadType
_picgCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy :: Proxy ProjectsInstancesClustersGetResource)
mempty