{-# 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.AppEngine.Apps.Operations.Get
(
AppsOperationsGetResource
, appsOperationsGet
, AppsOperationsGet
, aogXgafv
, aogUploadProtocol
, aogAccessToken
, aogUploadType
, aogAppsId
, aogOperationsId
, aogCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsOperationsGetResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"operations" :>
Capture "operationsId" 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 AppsOperationsGet = AppsOperationsGet'
{ _aogXgafv :: !(Maybe Xgafv)
, _aogUploadProtocol :: !(Maybe Text)
, _aogAccessToken :: !(Maybe Text)
, _aogUploadType :: !(Maybe Text)
, _aogAppsId :: !Text
, _aogOperationsId :: !Text
, _aogCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsOperationsGet
:: Text
-> Text
-> AppsOperationsGet
appsOperationsGet pAogAppsId_ pAogOperationsId_ =
AppsOperationsGet'
{ _aogXgafv = Nothing
, _aogUploadProtocol = Nothing
, _aogAccessToken = Nothing
, _aogUploadType = Nothing
, _aogAppsId = pAogAppsId_
, _aogOperationsId = pAogOperationsId_
, _aogCallback = Nothing
}
aogXgafv :: Lens' AppsOperationsGet (Maybe Xgafv)
aogXgafv = lens _aogXgafv (\ s a -> s{_aogXgafv = a})
aogUploadProtocol :: Lens' AppsOperationsGet (Maybe Text)
aogUploadProtocol
= lens _aogUploadProtocol
(\ s a -> s{_aogUploadProtocol = a})
aogAccessToken :: Lens' AppsOperationsGet (Maybe Text)
aogAccessToken
= lens _aogAccessToken
(\ s a -> s{_aogAccessToken = a})
aogUploadType :: Lens' AppsOperationsGet (Maybe Text)
aogUploadType
= lens _aogUploadType
(\ s a -> s{_aogUploadType = a})
aogAppsId :: Lens' AppsOperationsGet Text
aogAppsId
= lens _aogAppsId (\ s a -> s{_aogAppsId = a})
aogOperationsId :: Lens' AppsOperationsGet Text
aogOperationsId
= lens _aogOperationsId
(\ s a -> s{_aogOperationsId = a})
aogCallback :: Lens' AppsOperationsGet (Maybe Text)
aogCallback
= lens _aogCallback (\ s a -> s{_aogCallback = a})
instance GoogleRequest AppsOperationsGet where
type Rs AppsOperationsGet = Operation
type Scopes AppsOperationsGet =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsOperationsGet'{..}
= go _aogAppsId _aogOperationsId _aogXgafv
_aogUploadProtocol
_aogAccessToken
_aogUploadType
_aogCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsOperationsGetResource)
mempty