{-# 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.Get
(
TransferOperationsGetResource
, transferOperationsGet
, TransferOperationsGet
, togXgafv
, togUploadProtocol
, togAccessToken
, togUploadType
, togName
, togCallback
) where
import Network.Google.Prelude
import Network.Google.StorageTransfer.Types
type TransferOperationsGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data TransferOperationsGet = TransferOperationsGet'
{ _togXgafv :: !(Maybe Xgafv)
, _togUploadProtocol :: !(Maybe Text)
, _togAccessToken :: !(Maybe Text)
, _togUploadType :: !(Maybe Text)
, _togName :: !Text
, _togCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
transferOperationsGet
:: Text
-> TransferOperationsGet
transferOperationsGet pTogName_ =
TransferOperationsGet'
{ _togXgafv = Nothing
, _togUploadProtocol = Nothing
, _togAccessToken = Nothing
, _togUploadType = Nothing
, _togName = pTogName_
, _togCallback = Nothing
}
togXgafv :: Lens' TransferOperationsGet (Maybe Xgafv)
togXgafv = lens _togXgafv (\ s a -> s{_togXgafv = a})
togUploadProtocol :: Lens' TransferOperationsGet (Maybe Text)
togUploadProtocol
= lens _togUploadProtocol
(\ s a -> s{_togUploadProtocol = a})
togAccessToken :: Lens' TransferOperationsGet (Maybe Text)
togAccessToken
= lens _togAccessToken
(\ s a -> s{_togAccessToken = a})
togUploadType :: Lens' TransferOperationsGet (Maybe Text)
togUploadType
= lens _togUploadType
(\ s a -> s{_togUploadType = a})
togName :: Lens' TransferOperationsGet Text
togName = lens _togName (\ s a -> s{_togName = a})
togCallback :: Lens' TransferOperationsGet (Maybe Text)
togCallback
= lens _togCallback (\ s a -> s{_togCallback = a})
instance GoogleRequest TransferOperationsGet where
type Rs TransferOperationsGet = Operation
type Scopes TransferOperationsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient TransferOperationsGet'{..}
= go _togName _togXgafv _togUploadProtocol
_togAccessToken
_togUploadType
_togCallback
(Just AltJSON)
storageTransferService
where go
= buildClient
(Proxy :: Proxy TransferOperationsGetResource)
mempty