{-# 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.BigQuery.TableData.List
(
TableDataListResource
, tableDataList'
, TableDataList'
, tDataSetId
, tPageToken
, tProjectId
, tSelectedFields
, tTableId
, tStartIndex
, tMaxResults
) where
import Network.Google.BigQuery.Types
import Network.Google.Prelude
type TableDataListResource =
"bigquery" :>
"v2" :>
"projects" :>
Capture "projectId" Text :>
"datasets" :>
Capture "datasetId" Text :>
"tables" :>
Capture "tableId" Text :>
"data" :>
QueryParam "pageToken" Text :>
QueryParam "selectedFields" Text :>
QueryParam "startIndex" (Textual Word64) :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] TableDataList
data TableDataList' = TableDataList''
{ _tDataSetId :: !Text
, _tPageToken :: !(Maybe Text)
, _tProjectId :: !Text
, _tSelectedFields :: !(Maybe Text)
, _tTableId :: !Text
, _tStartIndex :: !(Maybe (Textual Word64))
, _tMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
tableDataList'
:: Text
-> Text
-> Text
-> TableDataList'
tableDataList' pTDataSetId_ pTProjectId_ pTTableId_ =
TableDataList''
{ _tDataSetId = pTDataSetId_
, _tPageToken = Nothing
, _tProjectId = pTProjectId_
, _tSelectedFields = Nothing
, _tTableId = pTTableId_
, _tStartIndex = Nothing
, _tMaxResults = Nothing
}
tDataSetId :: Lens' TableDataList' Text
tDataSetId
= lens _tDataSetId (\ s a -> s{_tDataSetId = a})
tPageToken :: Lens' TableDataList' (Maybe Text)
tPageToken
= lens _tPageToken (\ s a -> s{_tPageToken = a})
tProjectId :: Lens' TableDataList' Text
tProjectId
= lens _tProjectId (\ s a -> s{_tProjectId = a})
tSelectedFields :: Lens' TableDataList' (Maybe Text)
tSelectedFields
= lens _tSelectedFields
(\ s a -> s{_tSelectedFields = a})
tTableId :: Lens' TableDataList' Text
tTableId = lens _tTableId (\ s a -> s{_tTableId = a})
tStartIndex :: Lens' TableDataList' (Maybe Word64)
tStartIndex
= lens _tStartIndex (\ s a -> s{_tStartIndex = a}) .
mapping _Coerce
tMaxResults :: Lens' TableDataList' (Maybe Word32)
tMaxResults
= lens _tMaxResults (\ s a -> s{_tMaxResults = a}) .
mapping _Coerce
instance GoogleRequest TableDataList' where
type Rs TableDataList' = TableDataList
type Scopes TableDataList' =
'["https://www.googleapis.com/auth/bigquery",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient TableDataList''{..}
= go _tProjectId _tDataSetId _tTableId _tPageToken
_tSelectedFields
_tStartIndex
_tMaxResults
(Just AltJSON)
bigQueryService
where go
= buildClient (Proxy :: Proxy TableDataListResource)
mempty