{-# 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.Search.CSE.Siterestrict.List
(
CSESiterestrictListResource
, cSESiterestrictList
, CSESiterestrictList
, cseslImgDominantColor
, cseslSiteSearchFilter
, cseslC2coff
, cseslOrTerms
, cseslStart
, cseslRights
, cseslExcludeTerms
, cseslNum
, cseslFileType
, cseslSearchType
, cseslLr
, cseslQ
, cseslGooglehost
, cseslRelatedSite
, cseslHl
, cseslSort
, cseslSiteSearch
, cseslFilter
, cseslDateRestrict
, cseslLinkSite
, cseslLowRange
, cseslImgType
, cseslGl
, cseslCx
, cseslImgColorType
, cseslImgSize
, cseslExactTerms
, cseslCr
, cseslSafe
, cseslHq
, cseslHighRange
) where
import Network.Google.CustomSearch.Types
import Network.Google.Prelude
type CSESiterestrictListResource =
"customsearch" :>
"v1" :>
"siterestrict" :>
QueryParam "q" Text :>
QueryParam "imgDominantColor"
CSESiterestrictListImgDominantColor
:>
QueryParam "siteSearchFilter"
CSESiterestrictListSiteSearchFilter
:>
QueryParam "c2coff" Text :>
QueryParam "orTerms" Text :>
QueryParam "start" (Textual Word32) :>
QueryParam "rights" Text :>
QueryParam "excludeTerms" Text :>
QueryParam "num" (Textual Word32) :>
QueryParam "fileType" Text :>
QueryParam "searchType"
CSESiterestrictListSearchType
:>
QueryParam "lr" CSESiterestrictListLr :>
QueryParam "googlehost" Text :>
QueryParam "relatedSite" Text :>
QueryParam "hl" Text :>
QueryParam "sort" Text :>
QueryParam "siteSearch" Text :>
QueryParam "filter"
CSESiterestrictListFilter
:>
QueryParam "dateRestrict" Text :>
QueryParam "linkSite" Text :>
QueryParam "lowRange" Text :>
QueryParam "imgType"
CSESiterestrictListImgType
:>
QueryParam "gl" Text :>
QueryParam "cx" Text :>
QueryParam
"imgColorType"
CSESiterestrictListImgColorType
:>
QueryParam
"imgSize"
CSESiterestrictListImgSize
:>
QueryParam
"exactTerms"
Text
:>
QueryParam "cr"
Text
:>
QueryParam
"safe"
CSESiterestrictListSafe
:>
QueryParam
"hq"
Text
:>
QueryParam
"highRange"
Text
:>
QueryParam
"alt"
AltJSON
:>
Get
'[JSON]
Search
data CSESiterestrictList = CSESiterestrictList'
{ _cseslImgDominantColor :: !(Maybe CSESiterestrictListImgDominantColor)
, _cseslSiteSearchFilter :: !(Maybe CSESiterestrictListSiteSearchFilter)
, _cseslC2coff :: !(Maybe Text)
, _cseslOrTerms :: !(Maybe Text)
, _cseslStart :: !(Maybe (Textual Word32))
, _cseslRights :: !(Maybe Text)
, _cseslExcludeTerms :: !(Maybe Text)
, _cseslNum :: !(Textual Word32)
, _cseslFileType :: !(Maybe Text)
, _cseslSearchType :: !(Maybe CSESiterestrictListSearchType)
, _cseslLr :: !(Maybe CSESiterestrictListLr)
, _cseslQ :: !Text
, _cseslGooglehost :: !(Maybe Text)
, _cseslRelatedSite :: !(Maybe Text)
, _cseslHl :: !(Maybe Text)
, _cseslSort :: !(Maybe Text)
, _cseslSiteSearch :: !(Maybe Text)
, _cseslFilter :: !(Maybe CSESiterestrictListFilter)
, _cseslDateRestrict :: !(Maybe Text)
, _cseslLinkSite :: !(Maybe Text)
, _cseslLowRange :: !(Maybe Text)
, _cseslImgType :: !(Maybe CSESiterestrictListImgType)
, _cseslGl :: !(Maybe Text)
, _cseslCx :: !(Maybe Text)
, _cseslImgColorType :: !(Maybe CSESiterestrictListImgColorType)
, _cseslImgSize :: !(Maybe CSESiterestrictListImgSize)
, _cseslExactTerms :: !(Maybe Text)
, _cseslCr :: !(Maybe Text)
, _cseslSafe :: !CSESiterestrictListSafe
, _cseslHq :: !(Maybe Text)
, _cseslHighRange :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
cSESiterestrictList
:: Text
-> CSESiterestrictList
cSESiterestrictList pCseslQ_ =
CSESiterestrictList'
{ _cseslImgDominantColor = Nothing
, _cseslSiteSearchFilter = Nothing
, _cseslC2coff = Nothing
, _cseslOrTerms = Nothing
, _cseslStart = Nothing
, _cseslRights = Nothing
, _cseslExcludeTerms = Nothing
, _cseslNum = 10
, _cseslFileType = Nothing
, _cseslSearchType = Nothing
, _cseslLr = Nothing
, _cseslQ = pCseslQ_
, _cseslGooglehost = Nothing
, _cseslRelatedSite = Nothing
, _cseslHl = Nothing
, _cseslSort = Nothing
, _cseslSiteSearch = Nothing
, _cseslFilter = Nothing
, _cseslDateRestrict = Nothing
, _cseslLinkSite = Nothing
, _cseslLowRange = Nothing
, _cseslImgType = Nothing
, _cseslGl = Nothing
, _cseslCx = Nothing
, _cseslImgColorType = Nothing
, _cseslImgSize = Nothing
, _cseslExactTerms = Nothing
, _cseslCr = Nothing
, _cseslSafe = CSESLSOff
, _cseslHq = Nothing
, _cseslHighRange = Nothing
}
cseslImgDominantColor :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgDominantColor)
cseslImgDominantColor
= lens _cseslImgDominantColor
(\ s a -> s{_cseslImgDominantColor = a})
cseslSiteSearchFilter :: Lens' CSESiterestrictList (Maybe CSESiterestrictListSiteSearchFilter)
cseslSiteSearchFilter
= lens _cseslSiteSearchFilter
(\ s a -> s{_cseslSiteSearchFilter = a})
cseslC2coff :: Lens' CSESiterestrictList (Maybe Text)
cseslC2coff
= lens _cseslC2coff (\ s a -> s{_cseslC2coff = a})
cseslOrTerms :: Lens' CSESiterestrictList (Maybe Text)
cseslOrTerms
= lens _cseslOrTerms (\ s a -> s{_cseslOrTerms = a})
cseslStart :: Lens' CSESiterestrictList (Maybe Word32)
cseslStart
= lens _cseslStart (\ s a -> s{_cseslStart = a}) .
mapping _Coerce
cseslRights :: Lens' CSESiterestrictList (Maybe Text)
cseslRights
= lens _cseslRights (\ s a -> s{_cseslRights = a})
cseslExcludeTerms :: Lens' CSESiterestrictList (Maybe Text)
cseslExcludeTerms
= lens _cseslExcludeTerms
(\ s a -> s{_cseslExcludeTerms = a})
cseslNum :: Lens' CSESiterestrictList Word32
cseslNum
= lens _cseslNum (\ s a -> s{_cseslNum = a}) .
_Coerce
cseslFileType :: Lens' CSESiterestrictList (Maybe Text)
cseslFileType
= lens _cseslFileType
(\ s a -> s{_cseslFileType = a})
cseslSearchType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListSearchType)
cseslSearchType
= lens _cseslSearchType
(\ s a -> s{_cseslSearchType = a})
cseslLr :: Lens' CSESiterestrictList (Maybe CSESiterestrictListLr)
cseslLr = lens _cseslLr (\ s a -> s{_cseslLr = a})
cseslQ :: Lens' CSESiterestrictList Text
cseslQ = lens _cseslQ (\ s a -> s{_cseslQ = a})
cseslGooglehost :: Lens' CSESiterestrictList (Maybe Text)
cseslGooglehost
= lens _cseslGooglehost
(\ s a -> s{_cseslGooglehost = a})
cseslRelatedSite :: Lens' CSESiterestrictList (Maybe Text)
cseslRelatedSite
= lens _cseslRelatedSite
(\ s a -> s{_cseslRelatedSite = a})
cseslHl :: Lens' CSESiterestrictList (Maybe Text)
cseslHl = lens _cseslHl (\ s a -> s{_cseslHl = a})
cseslSort :: Lens' CSESiterestrictList (Maybe Text)
cseslSort
= lens _cseslSort (\ s a -> s{_cseslSort = a})
cseslSiteSearch :: Lens' CSESiterestrictList (Maybe Text)
cseslSiteSearch
= lens _cseslSiteSearch
(\ s a -> s{_cseslSiteSearch = a})
cseslFilter :: Lens' CSESiterestrictList (Maybe CSESiterestrictListFilter)
cseslFilter
= lens _cseslFilter (\ s a -> s{_cseslFilter = a})
cseslDateRestrict :: Lens' CSESiterestrictList (Maybe Text)
cseslDateRestrict
= lens _cseslDateRestrict
(\ s a -> s{_cseslDateRestrict = a})
cseslLinkSite :: Lens' CSESiterestrictList (Maybe Text)
cseslLinkSite
= lens _cseslLinkSite
(\ s a -> s{_cseslLinkSite = a})
cseslLowRange :: Lens' CSESiterestrictList (Maybe Text)
cseslLowRange
= lens _cseslLowRange
(\ s a -> s{_cseslLowRange = a})
cseslImgType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgType)
cseslImgType
= lens _cseslImgType (\ s a -> s{_cseslImgType = a})
cseslGl :: Lens' CSESiterestrictList (Maybe Text)
cseslGl = lens _cseslGl (\ s a -> s{_cseslGl = a})
cseslCx :: Lens' CSESiterestrictList (Maybe Text)
cseslCx = lens _cseslCx (\ s a -> s{_cseslCx = a})
cseslImgColorType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgColorType)
cseslImgColorType
= lens _cseslImgColorType
(\ s a -> s{_cseslImgColorType = a})
cseslImgSize :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgSize)
cseslImgSize
= lens _cseslImgSize (\ s a -> s{_cseslImgSize = a})
cseslExactTerms :: Lens' CSESiterestrictList (Maybe Text)
cseslExactTerms
= lens _cseslExactTerms
(\ s a -> s{_cseslExactTerms = a})
cseslCr :: Lens' CSESiterestrictList (Maybe Text)
cseslCr = lens _cseslCr (\ s a -> s{_cseslCr = a})
cseslSafe :: Lens' CSESiterestrictList CSESiterestrictListSafe
cseslSafe
= lens _cseslSafe (\ s a -> s{_cseslSafe = a})
cseslHq :: Lens' CSESiterestrictList (Maybe Text)
cseslHq = lens _cseslHq (\ s a -> s{_cseslHq = a})
cseslHighRange :: Lens' CSESiterestrictList (Maybe Text)
cseslHighRange
= lens _cseslHighRange
(\ s a -> s{_cseslHighRange = a})
instance GoogleRequest CSESiterestrictList where
type Rs CSESiterestrictList = Search
type Scopes CSESiterestrictList = '[]
requestClient CSESiterestrictList'{..}
= go (Just _cseslQ) _cseslImgDominantColor
_cseslSiteSearchFilter
_cseslC2coff
_cseslOrTerms
_cseslStart
_cseslRights
_cseslExcludeTerms
(Just _cseslNum)
_cseslFileType
_cseslSearchType
_cseslLr
_cseslGooglehost
_cseslRelatedSite
_cseslHl
_cseslSort
_cseslSiteSearch
_cseslFilter
_cseslDateRestrict
_cseslLinkSite
_cseslLowRange
_cseslImgType
_cseslGl
_cseslCx
_cseslImgColorType
_cseslImgSize
_cseslExactTerms
_cseslCr
(Just _cseslSafe)
_cseslHq
_cseslHighRange
(Just AltJSON)
customSearchService
where go
= buildClient
(Proxy :: Proxy CSESiterestrictListResource)
mempty