{-# 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.AuthorizedDomains.List
(
AppsAuthorizedDomainsListResource
, appsAuthorizedDomainsList
, AppsAuthorizedDomainsList
, aadlXgafv
, aadlUploadProtocol
, aadlAccessToken
, aadlUploadType
, aadlAppsId
, aadlPageToken
, aadlPageSize
, aadlCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsAuthorizedDomainsListResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"authorizedDomains" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAuthorizedDomainsResponse
data AppsAuthorizedDomainsList = AppsAuthorizedDomainsList'
{ _aadlXgafv :: !(Maybe Xgafv)
, _aadlUploadProtocol :: !(Maybe Text)
, _aadlAccessToken :: !(Maybe Text)
, _aadlUploadType :: !(Maybe Text)
, _aadlAppsId :: !Text
, _aadlPageToken :: !(Maybe Text)
, _aadlPageSize :: !(Maybe (Textual Int32))
, _aadlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsAuthorizedDomainsList
:: Text
-> AppsAuthorizedDomainsList
appsAuthorizedDomainsList pAadlAppsId_ =
AppsAuthorizedDomainsList'
{ _aadlXgafv = Nothing
, _aadlUploadProtocol = Nothing
, _aadlAccessToken = Nothing
, _aadlUploadType = Nothing
, _aadlAppsId = pAadlAppsId_
, _aadlPageToken = Nothing
, _aadlPageSize = Nothing
, _aadlCallback = Nothing
}
aadlXgafv :: Lens' AppsAuthorizedDomainsList (Maybe Xgafv)
aadlXgafv
= lens _aadlXgafv (\ s a -> s{_aadlXgafv = a})
aadlUploadProtocol :: Lens' AppsAuthorizedDomainsList (Maybe Text)
aadlUploadProtocol
= lens _aadlUploadProtocol
(\ s a -> s{_aadlUploadProtocol = a})
aadlAccessToken :: Lens' AppsAuthorizedDomainsList (Maybe Text)
aadlAccessToken
= lens _aadlAccessToken
(\ s a -> s{_aadlAccessToken = a})
aadlUploadType :: Lens' AppsAuthorizedDomainsList (Maybe Text)
aadlUploadType
= lens _aadlUploadType
(\ s a -> s{_aadlUploadType = a})
aadlAppsId :: Lens' AppsAuthorizedDomainsList Text
aadlAppsId
= lens _aadlAppsId (\ s a -> s{_aadlAppsId = a})
aadlPageToken :: Lens' AppsAuthorizedDomainsList (Maybe Text)
aadlPageToken
= lens _aadlPageToken
(\ s a -> s{_aadlPageToken = a})
aadlPageSize :: Lens' AppsAuthorizedDomainsList (Maybe Int32)
aadlPageSize
= lens _aadlPageSize (\ s a -> s{_aadlPageSize = a})
. mapping _Coerce
aadlCallback :: Lens' AppsAuthorizedDomainsList (Maybe Text)
aadlCallback
= lens _aadlCallback (\ s a -> s{_aadlCallback = a})
instance GoogleRequest AppsAuthorizedDomainsList
where
type Rs AppsAuthorizedDomainsList =
ListAuthorizedDomainsResponse
type Scopes AppsAuthorizedDomainsList =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsAuthorizedDomainsList'{..}
= go _aadlAppsId _aadlXgafv _aadlUploadProtocol
_aadlAccessToken
_aadlUploadType
_aadlPageToken
_aadlPageSize
_aadlCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsAuthorizedDomainsListResource)
mempty