{-# 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.AuthorizedCertificates.Get
(
AppsAuthorizedCertificatesGetResource
, appsAuthorizedCertificatesGet
, AppsAuthorizedCertificatesGet
, aacgAuthorizedCertificatesId
, aacgXgafv
, aacgUploadProtocol
, aacgAccessToken
, aacgUploadType
, aacgAppsId
, aacgView
, aacgCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsAuthorizedCertificatesGetResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"authorizedCertificates" :>
Capture "authorizedCertificatesId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] AuthorizedCertificate
data AppsAuthorizedCertificatesGet = AppsAuthorizedCertificatesGet'
{ _aacgAuthorizedCertificatesId :: !Text
, _aacgXgafv :: !(Maybe Xgafv)
, _aacgUploadProtocol :: !(Maybe Text)
, _aacgAccessToken :: !(Maybe Text)
, _aacgUploadType :: !(Maybe Text)
, _aacgAppsId :: !Text
, _aacgView :: !(Maybe Text)
, _aacgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsAuthorizedCertificatesGet
:: Text
-> Text
-> AppsAuthorizedCertificatesGet
appsAuthorizedCertificatesGet pAacgAuthorizedCertificatesId_ pAacgAppsId_ =
AppsAuthorizedCertificatesGet'
{ _aacgAuthorizedCertificatesId = pAacgAuthorizedCertificatesId_
, _aacgXgafv = Nothing
, _aacgUploadProtocol = Nothing
, _aacgAccessToken = Nothing
, _aacgUploadType = Nothing
, _aacgAppsId = pAacgAppsId_
, _aacgView = Nothing
, _aacgCallback = Nothing
}
aacgAuthorizedCertificatesId :: Lens' AppsAuthorizedCertificatesGet Text
aacgAuthorizedCertificatesId
= lens _aacgAuthorizedCertificatesId
(\ s a -> s{_aacgAuthorizedCertificatesId = a})
aacgXgafv :: Lens' AppsAuthorizedCertificatesGet (Maybe Xgafv)
aacgXgafv
= lens _aacgXgafv (\ s a -> s{_aacgXgafv = a})
aacgUploadProtocol :: Lens' AppsAuthorizedCertificatesGet (Maybe Text)
aacgUploadProtocol
= lens _aacgUploadProtocol
(\ s a -> s{_aacgUploadProtocol = a})
aacgAccessToken :: Lens' AppsAuthorizedCertificatesGet (Maybe Text)
aacgAccessToken
= lens _aacgAccessToken
(\ s a -> s{_aacgAccessToken = a})
aacgUploadType :: Lens' AppsAuthorizedCertificatesGet (Maybe Text)
aacgUploadType
= lens _aacgUploadType
(\ s a -> s{_aacgUploadType = a})
aacgAppsId :: Lens' AppsAuthorizedCertificatesGet Text
aacgAppsId
= lens _aacgAppsId (\ s a -> s{_aacgAppsId = a})
aacgView :: Lens' AppsAuthorizedCertificatesGet (Maybe Text)
aacgView = lens _aacgView (\ s a -> s{_aacgView = a})
aacgCallback :: Lens' AppsAuthorizedCertificatesGet (Maybe Text)
aacgCallback
= lens _aacgCallback (\ s a -> s{_aacgCallback = a})
instance GoogleRequest AppsAuthorizedCertificatesGet
where
type Rs AppsAuthorizedCertificatesGet =
AuthorizedCertificate
type Scopes AppsAuthorizedCertificatesGet =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsAuthorizedCertificatesGet'{..}
= go _aacgAppsId _aacgAuthorizedCertificatesId
_aacgXgafv
_aacgUploadProtocol
_aacgAccessToken
_aacgUploadType
_aacgView
_aacgCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy ::
Proxy AppsAuthorizedCertificatesGetResource)
mempty