{-# 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.Repair
(
AppsRepairResource
, appsRepair
, AppsRepair
, arXgafv
, arUploadProtocol
, arAccessToken
, arUploadType
, arPayload
, arAppsId
, arCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsRepairResource =
"v1" :>
"apps" :>
CaptureMode "appsId" "repair" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RepairApplicationRequest :>
Post '[JSON] Operation
data AppsRepair = AppsRepair'
{ _arXgafv :: !(Maybe Xgafv)
, _arUploadProtocol :: !(Maybe Text)
, _arAccessToken :: !(Maybe Text)
, _arUploadType :: !(Maybe Text)
, _arPayload :: !RepairApplicationRequest
, _arAppsId :: !Text
, _arCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsRepair
:: RepairApplicationRequest
-> Text
-> AppsRepair
appsRepair pArPayload_ pArAppsId_ =
AppsRepair'
{ _arXgafv = Nothing
, _arUploadProtocol = Nothing
, _arAccessToken = Nothing
, _arUploadType = Nothing
, _arPayload = pArPayload_
, _arAppsId = pArAppsId_
, _arCallback = Nothing
}
arXgafv :: Lens' AppsRepair (Maybe Xgafv)
arXgafv = lens _arXgafv (\ s a -> s{_arXgafv = a})
arUploadProtocol :: Lens' AppsRepair (Maybe Text)
arUploadProtocol
= lens _arUploadProtocol
(\ s a -> s{_arUploadProtocol = a})
arAccessToken :: Lens' AppsRepair (Maybe Text)
arAccessToken
= lens _arAccessToken
(\ s a -> s{_arAccessToken = a})
arUploadType :: Lens' AppsRepair (Maybe Text)
arUploadType
= lens _arUploadType (\ s a -> s{_arUploadType = a})
arPayload :: Lens' AppsRepair RepairApplicationRequest
arPayload
= lens _arPayload (\ s a -> s{_arPayload = a})
arAppsId :: Lens' AppsRepair Text
arAppsId = lens _arAppsId (\ s a -> s{_arAppsId = a})
arCallback :: Lens' AppsRepair (Maybe Text)
arCallback
= lens _arCallback (\ s a -> s{_arCallback = a})
instance GoogleRequest AppsRepair where
type Rs AppsRepair = Operation
type Scopes AppsRepair =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AppsRepair'{..}
= go _arAppsId _arXgafv _arUploadProtocol
_arAccessToken
_arUploadType
_arCallback
(Just AltJSON)
_arPayload
appEngineService
where go
= buildClient (Proxy :: Proxy AppsRepairResource)
mempty