{-# 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.Tables.Get
(
ProjectsInstancesTablesGetResource
, projectsInstancesTablesGet
, ProjectsInstancesTablesGet
, pitgXgafv
, pitgUploadProtocol
, pitgAccessToken
, pitgUploadType
, pitgName
, pitgView
, pitgCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesTablesGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Table
data ProjectsInstancesTablesGet = ProjectsInstancesTablesGet'
{ _pitgXgafv :: !(Maybe Xgafv)
, _pitgUploadProtocol :: !(Maybe Text)
, _pitgAccessToken :: !(Maybe Text)
, _pitgUploadType :: !(Maybe Text)
, _pitgName :: !Text
, _pitgView :: !(Maybe Text)
, _pitgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesTablesGet
:: Text
-> ProjectsInstancesTablesGet
projectsInstancesTablesGet pPitgName_ =
ProjectsInstancesTablesGet'
{ _pitgXgafv = Nothing
, _pitgUploadProtocol = Nothing
, _pitgAccessToken = Nothing
, _pitgUploadType = Nothing
, _pitgName = pPitgName_
, _pitgView = Nothing
, _pitgCallback = Nothing
}
pitgXgafv :: Lens' ProjectsInstancesTablesGet (Maybe Xgafv)
pitgXgafv
= lens _pitgXgafv (\ s a -> s{_pitgXgafv = a})
pitgUploadProtocol :: Lens' ProjectsInstancesTablesGet (Maybe Text)
pitgUploadProtocol
= lens _pitgUploadProtocol
(\ s a -> s{_pitgUploadProtocol = a})
pitgAccessToken :: Lens' ProjectsInstancesTablesGet (Maybe Text)
pitgAccessToken
= lens _pitgAccessToken
(\ s a -> s{_pitgAccessToken = a})
pitgUploadType :: Lens' ProjectsInstancesTablesGet (Maybe Text)
pitgUploadType
= lens _pitgUploadType
(\ s a -> s{_pitgUploadType = a})
pitgName :: Lens' ProjectsInstancesTablesGet Text
pitgName = lens _pitgName (\ s a -> s{_pitgName = a})
pitgView :: Lens' ProjectsInstancesTablesGet (Maybe Text)
pitgView = lens _pitgView (\ s a -> s{_pitgView = a})
pitgCallback :: Lens' ProjectsInstancesTablesGet (Maybe Text)
pitgCallback
= lens _pitgCallback (\ s a -> s{_pitgCallback = a})
instance GoogleRequest ProjectsInstancesTablesGet
where
type Rs ProjectsInstancesTablesGet = Table
type Scopes ProjectsInstancesTablesGet =
'["https://www.googleapis.com/auth/bigtable.admin",
"https://www.googleapis.com/auth/bigtable.admin.table",
"https://www.googleapis.com/auth/cloud-bigtable.admin",
"https://www.googleapis.com/auth/cloud-bigtable.admin.table",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient ProjectsInstancesTablesGet'{..}
= go _pitgName _pitgXgafv _pitgUploadProtocol
_pitgAccessToken
_pitgUploadType
_pitgView
_pitgCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy :: Proxy ProjectsInstancesTablesGetResource)
mempty