{-# 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.StorageTransfer.TransferJobs.List
(
TransferJobsListResource
, transferJobsList
, TransferJobsList
, tjlXgafv
, tjlUploadProtocol
, tjlAccessToken
, tjlUploadType
, tjlFilter
, tjlPageToken
, tjlPageSize
, tjlCallback
) where
import Network.Google.Prelude
import Network.Google.StorageTransfer.Types
type TransferJobsListResource =
"v1" :>
"transferJobs" :>
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] ListTransferJobsResponse
data TransferJobsList = TransferJobsList'
{ _tjlXgafv :: !(Maybe Xgafv)
, _tjlUploadProtocol :: !(Maybe Text)
, _tjlAccessToken :: !(Maybe Text)
, _tjlUploadType :: !(Maybe Text)
, _tjlFilter :: !(Maybe Text)
, _tjlPageToken :: !(Maybe Text)
, _tjlPageSize :: !(Maybe (Textual Int32))
, _tjlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
transferJobsList
:: TransferJobsList
transferJobsList =
TransferJobsList'
{ _tjlXgafv = Nothing
, _tjlUploadProtocol = Nothing
, _tjlAccessToken = Nothing
, _tjlUploadType = Nothing
, _tjlFilter = Nothing
, _tjlPageToken = Nothing
, _tjlPageSize = Nothing
, _tjlCallback = Nothing
}
tjlXgafv :: Lens' TransferJobsList (Maybe Xgafv)
tjlXgafv = lens _tjlXgafv (\ s a -> s{_tjlXgafv = a})
tjlUploadProtocol :: Lens' TransferJobsList (Maybe Text)
tjlUploadProtocol
= lens _tjlUploadProtocol
(\ s a -> s{_tjlUploadProtocol = a})
tjlAccessToken :: Lens' TransferJobsList (Maybe Text)
tjlAccessToken
= lens _tjlAccessToken
(\ s a -> s{_tjlAccessToken = a})
tjlUploadType :: Lens' TransferJobsList (Maybe Text)
tjlUploadType
= lens _tjlUploadType
(\ s a -> s{_tjlUploadType = a})
tjlFilter :: Lens' TransferJobsList (Maybe Text)
tjlFilter
= lens _tjlFilter (\ s a -> s{_tjlFilter = a})
tjlPageToken :: Lens' TransferJobsList (Maybe Text)
tjlPageToken
= lens _tjlPageToken (\ s a -> s{_tjlPageToken = a})
tjlPageSize :: Lens' TransferJobsList (Maybe Int32)
tjlPageSize
= lens _tjlPageSize (\ s a -> s{_tjlPageSize = a}) .
mapping _Coerce
tjlCallback :: Lens' TransferJobsList (Maybe Text)
tjlCallback
= lens _tjlCallback (\ s a -> s{_tjlCallback = a})
instance GoogleRequest TransferJobsList where
type Rs TransferJobsList = ListTransferJobsResponse
type Scopes TransferJobsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient TransferJobsList'{..}
= go _tjlXgafv _tjlUploadProtocol _tjlAccessToken
_tjlUploadType
_tjlFilter
_tjlPageToken
_tjlPageSize
_tjlCallback
(Just AltJSON)
storageTransferService
where go
= buildClient
(Proxy :: Proxy TransferJobsListResource)
mempty