{-# 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.Webfonts.Webfonts.List
(
WebfontsListResource
, webfontsList
, WebfontsList
, wlSort
) where
import Network.Google.Fonts.Types
import Network.Google.Prelude
type WebfontsListResource =
"webfonts" :>
"v1" :>
"webfonts" :>
QueryParam "sort" WebfontsListSort :>
QueryParam "alt" AltJSON :> Get '[JSON] WebfontList
newtype WebfontsList = WebfontsList'
{ _wlSort :: Maybe WebfontsListSort
} deriving (Eq,Show,Data,Typeable,Generic)
webfontsList
:: WebfontsList
webfontsList =
WebfontsList'
{ _wlSort = Nothing
}
wlSort :: Lens' WebfontsList (Maybe WebfontsListSort)
wlSort = lens _wlSort (\ s a -> s{_wlSort = a})
instance GoogleRequest WebfontsList where
type Rs WebfontsList = WebfontList
type Scopes WebfontsList = '[]
requestClient WebfontsList'{..}
= go _wlSort (Just AltJSON) fontsService
where go
= buildClient (Proxy :: Proxy WebfontsListResource)
mempty