{-# 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.List
(
ProjectsInstancesTablesListResource
, projectsInstancesTablesList
, ProjectsInstancesTablesList
, pitlParent
, pitlXgafv
, pitlUploadProtocol
, pitlAccessToken
, pitlUploadType
, pitlView
, pitlPageToken
, pitlPageSize
, pitlCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesTablesListResource =
"v2" :>
Capture "parent" Text :>
"tables" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListTablesResponse
data ProjectsInstancesTablesList = ProjectsInstancesTablesList'
{ _pitlParent :: !Text
, _pitlXgafv :: !(Maybe Xgafv)
, _pitlUploadProtocol :: !(Maybe Text)
, _pitlAccessToken :: !(Maybe Text)
, _pitlUploadType :: !(Maybe Text)
, _pitlView :: !(Maybe Text)
, _pitlPageToken :: !(Maybe Text)
, _pitlPageSize :: !(Maybe (Textual Int32))
, _pitlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesTablesList
:: Text
-> ProjectsInstancesTablesList
projectsInstancesTablesList pPitlParent_ =
ProjectsInstancesTablesList'
{ _pitlParent = pPitlParent_
, _pitlXgafv = Nothing
, _pitlUploadProtocol = Nothing
, _pitlAccessToken = Nothing
, _pitlUploadType = Nothing
, _pitlView = Nothing
, _pitlPageToken = Nothing
, _pitlPageSize = Nothing
, _pitlCallback = Nothing
}
pitlParent :: Lens' ProjectsInstancesTablesList Text
pitlParent
= lens _pitlParent (\ s a -> s{_pitlParent = a})
pitlXgafv :: Lens' ProjectsInstancesTablesList (Maybe Xgafv)
pitlXgafv
= lens _pitlXgafv (\ s a -> s{_pitlXgafv = a})
pitlUploadProtocol :: Lens' ProjectsInstancesTablesList (Maybe Text)
pitlUploadProtocol
= lens _pitlUploadProtocol
(\ s a -> s{_pitlUploadProtocol = a})
pitlAccessToken :: Lens' ProjectsInstancesTablesList (Maybe Text)
pitlAccessToken
= lens _pitlAccessToken
(\ s a -> s{_pitlAccessToken = a})
pitlUploadType :: Lens' ProjectsInstancesTablesList (Maybe Text)
pitlUploadType
= lens _pitlUploadType
(\ s a -> s{_pitlUploadType = a})
pitlView :: Lens' ProjectsInstancesTablesList (Maybe Text)
pitlView = lens _pitlView (\ s a -> s{_pitlView = a})
pitlPageToken :: Lens' ProjectsInstancesTablesList (Maybe Text)
pitlPageToken
= lens _pitlPageToken
(\ s a -> s{_pitlPageToken = a})
pitlPageSize :: Lens' ProjectsInstancesTablesList (Maybe Int32)
pitlPageSize
= lens _pitlPageSize (\ s a -> s{_pitlPageSize = a})
. mapping _Coerce
pitlCallback :: Lens' ProjectsInstancesTablesList (Maybe Text)
pitlCallback
= lens _pitlCallback (\ s a -> s{_pitlCallback = a})
instance GoogleRequest ProjectsInstancesTablesList
where
type Rs ProjectsInstancesTablesList =
ListTablesResponse
type Scopes ProjectsInstancesTablesList =
'["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 ProjectsInstancesTablesList'{..}
= go _pitlParent _pitlXgafv _pitlUploadProtocol
_pitlAccessToken
_pitlUploadType
_pitlView
_pitlPageToken
_pitlPageSize
_pitlCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy :: Proxy ProjectsInstancesTablesListResource)
mempty