{-# 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.Get
(
AppsDomainMAppingsGetResource
, appsDomainMAppingsGet
, AppsDomainMAppingsGet
, admagXgafv
, admagUploadProtocol
, admagAccessToken
, admagUploadType
, admagAppsId
, admagDomainMAppingsId
, admagCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsDomainMAppingsGetResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"domainMappings" :>
Capture "domainMappingsId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] DomainMApping
data AppsDomainMAppingsGet = AppsDomainMAppingsGet'
{ _admagXgafv :: !(Maybe Xgafv)
, _admagUploadProtocol :: !(Maybe Text)
, _admagAccessToken :: !(Maybe Text)
, _admagUploadType :: !(Maybe Text)
, _admagAppsId :: !Text
, _admagDomainMAppingsId :: !Text
, _admagCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsDomainMAppingsGet
:: Text
-> Text
-> AppsDomainMAppingsGet
appsDomainMAppingsGet pAdmagAppsId_ pAdmagDomainMAppingsId_ =
AppsDomainMAppingsGet'
{ _admagXgafv = Nothing
, _admagUploadProtocol = Nothing
, _admagAccessToken = Nothing
, _admagUploadType = Nothing
, _admagAppsId = pAdmagAppsId_
, _admagDomainMAppingsId = pAdmagDomainMAppingsId_
, _admagCallback = Nothing
}
admagXgafv :: Lens' AppsDomainMAppingsGet (Maybe Xgafv)
admagXgafv
= lens _admagXgafv (\ s a -> s{_admagXgafv = a})
admagUploadProtocol :: Lens' AppsDomainMAppingsGet (Maybe Text)
admagUploadProtocol
= lens _admagUploadProtocol
(\ s a -> s{_admagUploadProtocol = a})
admagAccessToken :: Lens' AppsDomainMAppingsGet (Maybe Text)
admagAccessToken
= lens _admagAccessToken
(\ s a -> s{_admagAccessToken = a})
admagUploadType :: Lens' AppsDomainMAppingsGet (Maybe Text)
admagUploadType
= lens _admagUploadType
(\ s a -> s{_admagUploadType = a})
admagAppsId :: Lens' AppsDomainMAppingsGet Text
admagAppsId
= lens _admagAppsId (\ s a -> s{_admagAppsId = a})
admagDomainMAppingsId :: Lens' AppsDomainMAppingsGet Text
admagDomainMAppingsId
= lens _admagDomainMAppingsId
(\ s a -> s{_admagDomainMAppingsId = a})
admagCallback :: Lens' AppsDomainMAppingsGet (Maybe Text)
admagCallback
= lens _admagCallback
(\ s a -> s{_admagCallback = a})
instance GoogleRequest AppsDomainMAppingsGet where
type Rs AppsDomainMAppingsGet = DomainMApping
type Scopes AppsDomainMAppingsGet =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsDomainMAppingsGet'{..}
= go _admagAppsId _admagDomainMAppingsId _admagXgafv
_admagUploadProtocol
_admagAccessToken
_admagUploadType
_admagCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsDomainMAppingsGetResource)
mempty