{-# 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.DomainMAppings.List
(
AppsDomainMAppingsListResource
, appsDomainMAppingsList
, AppsDomainMAppingsList
, admalXgafv
, admalUploadProtocol
, admalAccessToken
, admalUploadType
, admalAppsId
, admalPageToken
, admalPageSize
, admalCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsDomainMAppingsListResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"domainMappings" :>
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] ListDomainMAppingsResponse
data AppsDomainMAppingsList = AppsDomainMAppingsList'
{ _admalXgafv :: !(Maybe Xgafv)
, _admalUploadProtocol :: !(Maybe Text)
, _admalAccessToken :: !(Maybe Text)
, _admalUploadType :: !(Maybe Text)
, _admalAppsId :: !Text
, _admalPageToken :: !(Maybe Text)
, _admalPageSize :: !(Maybe (Textual Int32))
, _admalCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsDomainMAppingsList
:: Text
-> AppsDomainMAppingsList
appsDomainMAppingsList pAdmalAppsId_ =
AppsDomainMAppingsList'
{ _admalXgafv = Nothing
, _admalUploadProtocol = Nothing
, _admalAccessToken = Nothing
, _admalUploadType = Nothing
, _admalAppsId = pAdmalAppsId_
, _admalPageToken = Nothing
, _admalPageSize = Nothing
, _admalCallback = Nothing
}
admalXgafv :: Lens' AppsDomainMAppingsList (Maybe Xgafv)
admalXgafv
= lens _admalXgafv (\ s a -> s{_admalXgafv = a})
admalUploadProtocol :: Lens' AppsDomainMAppingsList (Maybe Text)
admalUploadProtocol
= lens _admalUploadProtocol
(\ s a -> s{_admalUploadProtocol = a})
admalAccessToken :: Lens' AppsDomainMAppingsList (Maybe Text)
admalAccessToken
= lens _admalAccessToken
(\ s a -> s{_admalAccessToken = a})
admalUploadType :: Lens' AppsDomainMAppingsList (Maybe Text)
admalUploadType
= lens _admalUploadType
(\ s a -> s{_admalUploadType = a})
admalAppsId :: Lens' AppsDomainMAppingsList Text
admalAppsId
= lens _admalAppsId (\ s a -> s{_admalAppsId = a})
admalPageToken :: Lens' AppsDomainMAppingsList (Maybe Text)
admalPageToken
= lens _admalPageToken
(\ s a -> s{_admalPageToken = a})
admalPageSize :: Lens' AppsDomainMAppingsList (Maybe Int32)
admalPageSize
= lens _admalPageSize
(\ s a -> s{_admalPageSize = a})
. mapping _Coerce
admalCallback :: Lens' AppsDomainMAppingsList (Maybe Text)
admalCallback
= lens _admalCallback
(\ s a -> s{_admalCallback = a})
instance GoogleRequest AppsDomainMAppingsList where
type Rs AppsDomainMAppingsList =
ListDomainMAppingsResponse
type Scopes AppsDomainMAppingsList =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsDomainMAppingsList'{..}
= go _admalAppsId _admalXgafv _admalUploadProtocol
_admalAccessToken
_admalUploadType
_admalPageToken
_admalPageSize
_admalCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsDomainMAppingsListResource)
mempty