{-# 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.List
(
AppsAuthorizedCertificatesListResource
, appsAuthorizedCertificatesList
, AppsAuthorizedCertificatesList
, aaclXgafv
, aaclUploadProtocol
, aaclAccessToken
, aaclUploadType
, aaclAppsId
, aaclView
, aaclPageToken
, aaclPageSize
, aaclCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsAuthorizedCertificatesListResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"authorizedCertificates" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAuthorizedCertificatesResponse
data AppsAuthorizedCertificatesList = AppsAuthorizedCertificatesList'
{ _aaclXgafv :: !(Maybe Xgafv)
, _aaclUploadProtocol :: !(Maybe Text)
, _aaclAccessToken :: !(Maybe Text)
, _aaclUploadType :: !(Maybe Text)
, _aaclAppsId :: !Text
, _aaclView :: !(Maybe Text)
, _aaclPageToken :: !(Maybe Text)
, _aaclPageSize :: !(Maybe (Textual Int32))
, _aaclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsAuthorizedCertificatesList
:: Text
-> AppsAuthorizedCertificatesList
appsAuthorizedCertificatesList pAaclAppsId_ =
AppsAuthorizedCertificatesList'
{ _aaclXgafv = Nothing
, _aaclUploadProtocol = Nothing
, _aaclAccessToken = Nothing
, _aaclUploadType = Nothing
, _aaclAppsId = pAaclAppsId_
, _aaclView = Nothing
, _aaclPageToken = Nothing
, _aaclPageSize = Nothing
, _aaclCallback = Nothing
}
aaclXgafv :: Lens' AppsAuthorizedCertificatesList (Maybe Xgafv)
aaclXgafv
= lens _aaclXgafv (\ s a -> s{_aaclXgafv = a})
aaclUploadProtocol :: Lens' AppsAuthorizedCertificatesList (Maybe Text)
aaclUploadProtocol
= lens _aaclUploadProtocol
(\ s a -> s{_aaclUploadProtocol = a})
aaclAccessToken :: Lens' AppsAuthorizedCertificatesList (Maybe Text)
aaclAccessToken
= lens _aaclAccessToken
(\ s a -> s{_aaclAccessToken = a})
aaclUploadType :: Lens' AppsAuthorizedCertificatesList (Maybe Text)
aaclUploadType
= lens _aaclUploadType
(\ s a -> s{_aaclUploadType = a})
aaclAppsId :: Lens' AppsAuthorizedCertificatesList Text
aaclAppsId
= lens _aaclAppsId (\ s a -> s{_aaclAppsId = a})
aaclView :: Lens' AppsAuthorizedCertificatesList (Maybe Text)
aaclView = lens _aaclView (\ s a -> s{_aaclView = a})
aaclPageToken :: Lens' AppsAuthorizedCertificatesList (Maybe Text)
aaclPageToken
= lens _aaclPageToken
(\ s a -> s{_aaclPageToken = a})
aaclPageSize :: Lens' AppsAuthorizedCertificatesList (Maybe Int32)
aaclPageSize
= lens _aaclPageSize (\ s a -> s{_aaclPageSize = a})
. mapping _Coerce
aaclCallback :: Lens' AppsAuthorizedCertificatesList (Maybe Text)
aaclCallback
= lens _aaclCallback (\ s a -> s{_aaclCallback = a})
instance GoogleRequest AppsAuthorizedCertificatesList
where
type Rs AppsAuthorizedCertificatesList =
ListAuthorizedCertificatesResponse
type Scopes AppsAuthorizedCertificatesList =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsAuthorizedCertificatesList'{..}
= go _aaclAppsId _aaclXgafv _aaclUploadProtocol
_aaclAccessToken
_aaclUploadType
_aaclView
_aaclPageToken
_aaclPageSize
_aaclCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy ::
Proxy AppsAuthorizedCertificatesListResource)
mempty