{-# 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.FirebaseHosting.Sites.Domains.Get
(
SitesDomainsGetResource
, sitesDomainsGet
, SitesDomainsGet
, sdgXgafv
, sdgUploadProtocol
, sdgAccessToken
, sdgUploadType
, sdgName
, sdgCallback
) where
import Network.Google.FirebaseHosting.Types
import Network.Google.Prelude
type SitesDomainsGetResource =
"v1beta1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Domain
data SitesDomainsGet = SitesDomainsGet'
{ _sdgXgafv :: !(Maybe Xgafv)
, _sdgUploadProtocol :: !(Maybe Text)
, _sdgAccessToken :: !(Maybe Text)
, _sdgUploadType :: !(Maybe Text)
, _sdgName :: !Text
, _sdgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
sitesDomainsGet
:: Text
-> SitesDomainsGet
sitesDomainsGet pSdgName_ =
SitesDomainsGet'
{ _sdgXgafv = Nothing
, _sdgUploadProtocol = Nothing
, _sdgAccessToken = Nothing
, _sdgUploadType = Nothing
, _sdgName = pSdgName_
, _sdgCallback = Nothing
}
sdgXgafv :: Lens' SitesDomainsGet (Maybe Xgafv)
sdgXgafv = lens _sdgXgafv (\ s a -> s{_sdgXgafv = a})
sdgUploadProtocol :: Lens' SitesDomainsGet (Maybe Text)
sdgUploadProtocol
= lens _sdgUploadProtocol
(\ s a -> s{_sdgUploadProtocol = a})
sdgAccessToken :: Lens' SitesDomainsGet (Maybe Text)
sdgAccessToken
= lens _sdgAccessToken
(\ s a -> s{_sdgAccessToken = a})
sdgUploadType :: Lens' SitesDomainsGet (Maybe Text)
sdgUploadType
= lens _sdgUploadType
(\ s a -> s{_sdgUploadType = a})
sdgName :: Lens' SitesDomainsGet Text
sdgName = lens _sdgName (\ s a -> s{_sdgName = a})
sdgCallback :: Lens' SitesDomainsGet (Maybe Text)
sdgCallback
= lens _sdgCallback (\ s a -> s{_sdgCallback = a})
instance GoogleRequest SitesDomainsGet where
type Rs SitesDomainsGet = Domain
type Scopes SitesDomainsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/firebase",
"https://www.googleapis.com/auth/firebase.readonly"]
requestClient SitesDomainsGet'{..}
= go _sdgName _sdgXgafv _sdgUploadProtocol
_sdgAccessToken
_sdgUploadType
_sdgCallback
(Just AltJSON)
firebaseHostingService
where go
= buildClient
(Proxy :: Proxy SitesDomainsGetResource)
mempty