{-# 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.List
(
SitesDomainsListResource
, sitesDomainsList
, SitesDomainsList
, sdlParent
, sdlXgafv
, sdlUploadProtocol
, sdlAccessToken
, sdlUploadType
, sdlPageToken
, sdlPageSize
, sdlCallback
) where
import Network.Google.FirebaseHosting.Types
import Network.Google.Prelude
type SitesDomainsListResource =
"v1beta1" :>
Capture "parent" Text :>
"domains" :>
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] ListDomainsResponse
data SitesDomainsList = SitesDomainsList'
{ _sdlParent :: !Text
, _sdlXgafv :: !(Maybe Xgafv)
, _sdlUploadProtocol :: !(Maybe Text)
, _sdlAccessToken :: !(Maybe Text)
, _sdlUploadType :: !(Maybe Text)
, _sdlPageToken :: !(Maybe Text)
, _sdlPageSize :: !(Maybe (Textual Int32))
, _sdlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
sitesDomainsList
:: Text
-> SitesDomainsList
sitesDomainsList pSdlParent_ =
SitesDomainsList'
{ _sdlParent = pSdlParent_
, _sdlXgafv = Nothing
, _sdlUploadProtocol = Nothing
, _sdlAccessToken = Nothing
, _sdlUploadType = Nothing
, _sdlPageToken = Nothing
, _sdlPageSize = Nothing
, _sdlCallback = Nothing
}
sdlParent :: Lens' SitesDomainsList Text
sdlParent
= lens _sdlParent (\ s a -> s{_sdlParent = a})
sdlXgafv :: Lens' SitesDomainsList (Maybe Xgafv)
sdlXgafv = lens _sdlXgafv (\ s a -> s{_sdlXgafv = a})
sdlUploadProtocol :: Lens' SitesDomainsList (Maybe Text)
sdlUploadProtocol
= lens _sdlUploadProtocol
(\ s a -> s{_sdlUploadProtocol = a})
sdlAccessToken :: Lens' SitesDomainsList (Maybe Text)
sdlAccessToken
= lens _sdlAccessToken
(\ s a -> s{_sdlAccessToken = a})
sdlUploadType :: Lens' SitesDomainsList (Maybe Text)
sdlUploadType
= lens _sdlUploadType
(\ s a -> s{_sdlUploadType = a})
sdlPageToken :: Lens' SitesDomainsList (Maybe Text)
sdlPageToken
= lens _sdlPageToken (\ s a -> s{_sdlPageToken = a})
sdlPageSize :: Lens' SitesDomainsList (Maybe Int32)
sdlPageSize
= lens _sdlPageSize (\ s a -> s{_sdlPageSize = a}) .
mapping _Coerce
sdlCallback :: Lens' SitesDomainsList (Maybe Text)
sdlCallback
= lens _sdlCallback (\ s a -> s{_sdlCallback = a})
instance GoogleRequest SitesDomainsList where
type Rs SitesDomainsList = ListDomainsResponse
type Scopes SitesDomainsList =
'["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 SitesDomainsList'{..}
= go _sdlParent _sdlXgafv _sdlUploadProtocol
_sdlAccessToken
_sdlUploadType
_sdlPageToken
_sdlPageSize
_sdlCallback
(Just AltJSON)
firebaseHostingService
where go
= buildClient
(Proxy :: Proxy SitesDomainsListResource)
mempty