{-# 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.Operations.Projects.Operations.List
(
OperationsProjectsOperationsListResource
, operationsProjectsOperationsList
, OperationsProjectsOperationsList
, opolXgafv
, opolUploadProtocol
, opolAccessToken
, opolUploadType
, opolName
, opolFilter
, opolPageToken
, opolPageSize
, opolCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type OperationsProjectsOperationsListResource =
"v2" :>
Capture "name" Text :>
"operations" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListOperationsResponse
data OperationsProjectsOperationsList = OperationsProjectsOperationsList'
{ _opolXgafv :: !(Maybe Xgafv)
, _opolUploadProtocol :: !(Maybe Text)
, _opolAccessToken :: !(Maybe Text)
, _opolUploadType :: !(Maybe Text)
, _opolName :: !Text
, _opolFilter :: !(Maybe Text)
, _opolPageToken :: !(Maybe Text)
, _opolPageSize :: !(Maybe (Textual Int32))
, _opolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
operationsProjectsOperationsList
:: Text
-> OperationsProjectsOperationsList
operationsProjectsOperationsList pOpolName_ =
OperationsProjectsOperationsList'
{ _opolXgafv = Nothing
, _opolUploadProtocol = Nothing
, _opolAccessToken = Nothing
, _opolUploadType = Nothing
, _opolName = pOpolName_
, _opolFilter = Nothing
, _opolPageToken = Nothing
, _opolPageSize = Nothing
, _opolCallback = Nothing
}
opolXgafv :: Lens' OperationsProjectsOperationsList (Maybe Xgafv)
opolXgafv
= lens _opolXgafv (\ s a -> s{_opolXgafv = a})
opolUploadProtocol :: Lens' OperationsProjectsOperationsList (Maybe Text)
opolUploadProtocol
= lens _opolUploadProtocol
(\ s a -> s{_opolUploadProtocol = a})
opolAccessToken :: Lens' OperationsProjectsOperationsList (Maybe Text)
opolAccessToken
= lens _opolAccessToken
(\ s a -> s{_opolAccessToken = a})
opolUploadType :: Lens' OperationsProjectsOperationsList (Maybe Text)
opolUploadType
= lens _opolUploadType
(\ s a -> s{_opolUploadType = a})
opolName :: Lens' OperationsProjectsOperationsList Text
opolName = lens _opolName (\ s a -> s{_opolName = a})
opolFilter :: Lens' OperationsProjectsOperationsList (Maybe Text)
opolFilter
= lens _opolFilter (\ s a -> s{_opolFilter = a})
opolPageToken :: Lens' OperationsProjectsOperationsList (Maybe Text)
opolPageToken
= lens _opolPageToken
(\ s a -> s{_opolPageToken = a})
opolPageSize :: Lens' OperationsProjectsOperationsList (Maybe Int32)
opolPageSize
= lens _opolPageSize (\ s a -> s{_opolPageSize = a})
. mapping _Coerce
opolCallback :: Lens' OperationsProjectsOperationsList (Maybe Text)
opolCallback
= lens _opolCallback (\ s a -> s{_opolCallback = a})
instance GoogleRequest
OperationsProjectsOperationsList where
type Rs OperationsProjectsOperationsList =
ListOperationsResponse
type Scopes OperationsProjectsOperationsList =
'["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 OperationsProjectsOperationsList'{..}
= go _opolName _opolXgafv _opolUploadProtocol
_opolAccessToken
_opolUploadType
_opolFilter
_opolPageToken
_opolPageSize
_opolCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy OperationsProjectsOperationsListResource)
mempty