{-# 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.TransferOperations.List
(
TransferOperationsListResource
, transferOperationsList
, TransferOperationsList
, tolXgafv
, tolUploadProtocol
, tolAccessToken
, tolUploadType
, tolName
, tolFilter
, tolPageToken
, tolPageSize
, tolCallback
) where
import Network.Google.Prelude
import Network.Google.StorageTransfer.Types
type TransferOperationsListResource =
"v1" :>
Capture "name" Text :>
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 TransferOperationsList = TransferOperationsList'
{ _tolXgafv :: !(Maybe Xgafv)
, _tolUploadProtocol :: !(Maybe Text)
, _tolAccessToken :: !(Maybe Text)
, _tolUploadType :: !(Maybe Text)
, _tolName :: !Text
, _tolFilter :: !(Maybe Text)
, _tolPageToken :: !(Maybe Text)
, _tolPageSize :: !(Maybe (Textual Int32))
, _tolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
transferOperationsList
:: Text
-> TransferOperationsList
transferOperationsList pTolName_ =
TransferOperationsList'
{ _tolXgafv = Nothing
, _tolUploadProtocol = Nothing
, _tolAccessToken = Nothing
, _tolUploadType = Nothing
, _tolName = pTolName_
, _tolFilter = Nothing
, _tolPageToken = Nothing
, _tolPageSize = Nothing
, _tolCallback = Nothing
}
tolXgafv :: Lens' TransferOperationsList (Maybe Xgafv)
tolXgafv = lens _tolXgafv (\ s a -> s{_tolXgafv = a})
tolUploadProtocol :: Lens' TransferOperationsList (Maybe Text)
tolUploadProtocol
= lens _tolUploadProtocol
(\ s a -> s{_tolUploadProtocol = a})
tolAccessToken :: Lens' TransferOperationsList (Maybe Text)
tolAccessToken
= lens _tolAccessToken
(\ s a -> s{_tolAccessToken = a})
tolUploadType :: Lens' TransferOperationsList (Maybe Text)
tolUploadType
= lens _tolUploadType
(\ s a -> s{_tolUploadType = a})
tolName :: Lens' TransferOperationsList Text
tolName = lens _tolName (\ s a -> s{_tolName = a})
tolFilter :: Lens' TransferOperationsList (Maybe Text)
tolFilter
= lens _tolFilter (\ s a -> s{_tolFilter = a})
tolPageToken :: Lens' TransferOperationsList (Maybe Text)
tolPageToken
= lens _tolPageToken (\ s a -> s{_tolPageToken = a})
tolPageSize :: Lens' TransferOperationsList (Maybe Int32)
tolPageSize
= lens _tolPageSize (\ s a -> s{_tolPageSize = a}) .
mapping _Coerce
tolCallback :: Lens' TransferOperationsList (Maybe Text)
tolCallback
= lens _tolCallback (\ s a -> s{_tolCallback = a})
instance GoogleRequest TransferOperationsList where
type Rs TransferOperationsList =
ListOperationsResponse
type Scopes TransferOperationsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient TransferOperationsList'{..}
= go _tolName _tolXgafv _tolUploadProtocol
_tolAccessToken
_tolUploadType
_tolFilter
_tolPageToken
_tolPageSize
_tolCallback
(Just AltJSON)
storageTransferService
where go
= buildClient
(Proxy :: Proxy TransferOperationsListResource)
mempty