Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- CSEListImgType
- PromotionImage
- Context
- CSEListSiteSearchFilter
- SearchQueries
- ResultPagemapAdditionalItem
- SearchURL
- CSESiterestrictListFilter
- SearchSpelling
- CSESiterestrictListImgType
- CSEListImgDominantColor
- ResultImage
- CSEListSafe
- CSESiterestrictListImgSize
- ResultPagemap
- CSESiterestrictListImgColorType
- CSEListImgColorType
- CSESiterestrictListSafe
- Result
- ResultLabelsItem
- CSESiterestrictListImgDominantColor
- SearchSearchInformation
- CSEListFilter
- Query
- CSESiterestrictListSiteSearchFilter
- PromotionBodyLinesItem
- Promotion
- CSESiterestrictListLr
- CSESiterestrictListSearchType
- Search
- CSEListLr
- ContextFacetsItemItem
- CSEListSearchType
- CSEListImgSize
Synopsis
- customSearchService :: ServiceConfig
- data CSEListImgType
- data PromotionImage
- promotionImage :: PromotionImage
- piHeight :: Lens' PromotionImage (Maybe Int32)
- piWidth :: Lens' PromotionImage (Maybe Int32)
- piSource :: Lens' PromotionImage (Maybe Text)
- data Context
- context :: Context
- cFacets :: Lens' Context [[ContextFacetsItemItem]]
- cTitle :: Lens' Context (Maybe Text)
- data CSEListSiteSearchFilter
- data SearchQueries
- searchQueries :: HashMap Text [Query] -> SearchQueries
- sqAddtional :: Lens' SearchQueries (HashMap Text [Query])
- data ResultPagemapAdditionalItem
- resultPagemapAdditionalItem :: HashMap Text JSONValue -> ResultPagemapAdditionalItem
- rpaiAddtional :: Lens' ResultPagemapAdditionalItem (HashMap Text JSONValue)
- data SearchURL
- searchURL :: SearchURL
- suType :: Lens' SearchURL Text
- suTemplate :: Lens' SearchURL Text
- data CSESiterestrictListFilter
- data SearchSpelling
- searchSpelling :: SearchSpelling
- ssCorrectedQuery :: Lens' SearchSpelling (Maybe Text)
- ssHTMLCorrectedQuery :: Lens' SearchSpelling (Maybe Text)
- data CSESiterestrictListImgType
- data CSEListImgDominantColor
- data ResultImage
- resultImage :: ResultImage
- riThumbnailLink :: Lens' ResultImage (Maybe Text)
- riHeight :: Lens' ResultImage (Maybe Int32)
- riByteSize :: Lens' ResultImage (Maybe Int32)
- riContextLink :: Lens' ResultImage (Maybe Text)
- riThumbnailHeight :: Lens' ResultImage (Maybe Int32)
- riWidth :: Lens' ResultImage (Maybe Int32)
- riThumbnailWidth :: Lens' ResultImage (Maybe Int32)
- data CSEListSafe
- data CSESiterestrictListImgSize
- data ResultPagemap
- resultPagemap :: HashMap Text [ResultPagemapAdditionalItem] -> ResultPagemap
- rpAddtional :: Lens' ResultPagemap (HashMap Text [ResultPagemapAdditionalItem])
- data CSESiterestrictListImgColorType
- data CSEListImgColorType
- data CSESiterestrictListSafe
- data Result
- result :: Result
- rMime :: Lens' Result (Maybe Text)
- rImage :: Lens' Result (Maybe ResultImage)
- rPagemap :: Lens' Result (Maybe ResultPagemap)
- rDisplayLink :: Lens' Result (Maybe Text)
- rFileFormat :: Lens' Result (Maybe Text)
- rSnippet :: Lens' Result (Maybe Text)
- rKind :: Lens' Result Text
- rLink :: Lens' Result (Maybe Text)
- rHTMLSnippet :: Lens' Result (Maybe Text)
- rHTMLFormattedURL :: Lens' Result (Maybe Text)
- rCacheId :: Lens' Result (Maybe Text)
- rFormattedURL :: Lens' Result (Maybe Text)
- rHTMLTitle :: Lens' Result (Maybe Text)
- rLabels :: Lens' Result [ResultLabelsItem]
- rTitle :: Lens' Result (Maybe Text)
- data ResultLabelsItem
- resultLabelsItem :: ResultLabelsItem
- rliName :: Lens' ResultLabelsItem (Maybe Text)
- rliDisplayName :: Lens' ResultLabelsItem (Maybe Text)
- rliLabelWithOp :: Lens' ResultLabelsItem (Maybe Text)
- data CSESiterestrictListImgDominantColor
- data SearchSearchInformation
- searchSearchInformation :: SearchSearchInformation
- ssiSearchTime :: Lens' SearchSearchInformation (Maybe Double)
- ssiFormattedSearchTime :: Lens' SearchSearchInformation (Maybe Text)
- ssiTotalResults :: Lens' SearchSearchInformation (Maybe Int64)
- ssiFormattedTotalResults :: Lens' SearchSearchInformation (Maybe Text)
- data CSEListFilter
- data Query
- query :: Query
- qImgDominantColor :: Lens' Query (Maybe Text)
- qOutputEncoding :: Lens' Query (Maybe Text)
- qSiteSearchFilter :: Lens' Query (Maybe Text)
- qInputEncoding :: Lens' Query (Maybe Text)
- qOrTerms :: Lens' Query (Maybe Text)
- qSearchTerms :: Lens' Query (Maybe Text)
- qStartPage :: Lens' Query (Maybe Int32)
- qRights :: Lens' Query (Maybe Text)
- qCount :: Lens' Query (Maybe Int32)
- qExcludeTerms :: Lens' Query (Maybe Text)
- qFileType :: Lens' Query (Maybe Text)
- qSearchType :: Lens' Query (Maybe Text)
- qGoogleHost :: Lens' Query (Maybe Text)
- qDisableCnTwTranslation :: Lens' Query (Maybe Text)
- qRelatedSite :: Lens' Query (Maybe Text)
- qHl :: Lens' Query (Maybe Text)
- qSort :: Lens' Query (Maybe Text)
- qLanguage :: Lens' Query (Maybe Text)
- qSiteSearch :: Lens' Query (Maybe Text)
- qFilter :: Lens' Query (Maybe Text)
- qTotalResults :: Lens' Query (Maybe Int64)
- qDateRestrict :: Lens' Query (Maybe Text)
- qTitle :: Lens' Query (Maybe Text)
- qLinkSite :: Lens' Query (Maybe Text)
- qLowRange :: Lens' Query (Maybe Text)
- qImgType :: Lens' Query (Maybe Text)
- qGl :: Lens' Query (Maybe Text)
- qCx :: Lens' Query (Maybe Text)
- qImgColorType :: Lens' Query (Maybe Text)
- qImgSize :: Lens' Query (Maybe Text)
- qExactTerms :: Lens' Query (Maybe Text)
- qStartIndex :: Lens' Query (Maybe Int32)
- qCr :: Lens' Query (Maybe Text)
- qSafe :: Lens' Query (Maybe Text)
- qHq :: Lens' Query (Maybe Text)
- qHighRange :: Lens' Query (Maybe Text)
- data CSESiterestrictListSiteSearchFilter
- data PromotionBodyLinesItem
- promotionBodyLinesItem :: PromotionBodyLinesItem
- pbliLink :: Lens' PromotionBodyLinesItem (Maybe Text)
- pbliURL :: Lens' PromotionBodyLinesItem (Maybe Text)
- pbliHTMLTitle :: Lens' PromotionBodyLinesItem (Maybe Text)
- pbliTitle :: Lens' PromotionBodyLinesItem (Maybe Text)
- data Promotion
- promotion :: Promotion
- pImage :: Lens' Promotion (Maybe PromotionImage)
- pDisplayLink :: Lens' Promotion (Maybe Text)
- pBodyLines :: Lens' Promotion [PromotionBodyLinesItem]
- pLink :: Lens' Promotion (Maybe Text)
- pHTMLTitle :: Lens' Promotion (Maybe Text)
- pTitle :: Lens' Promotion (Maybe Text)
- data CSESiterestrictListLr
- data CSESiterestrictListSearchType = Image
- data Search
- search :: Search
- sQueries :: Lens' Search (Maybe SearchQueries)
- sContext :: Lens' Search (Maybe Context)
- sKind :: Lens' Search Text
- sURL :: Lens' Search (Maybe SearchURL)
- sItems :: Lens' Search [Result]
- sSearchInformation :: Lens' Search (Maybe SearchSearchInformation)
- sPromotions :: Lens' Search [Promotion]
- sSpelling :: Lens' Search (Maybe SearchSpelling)
- data CSEListLr
- = CSELLLangAr
- | CSELLLangBg
- | CSELLLangCa
- | CSELLLangCs
- | CSELLLangDa
- | CSELLLangDe
- | CSELLLangEl
- | CSELLLangEn
- | CSELLLangEs
- | CSELLLangEt
- | CSELLLangFi
- | CSELLLangFr
- | CSELLLangHr
- | CSELLLangHu
- | CSELLLangId
- | CSELLLangIs
- | CSELLLangIt
- | CSELLLangIw
- | CSELLLangJa
- | CSELLLangKo
- | CSELLLangLT
- | CSELLLangLv
- | CSELLLangNl
- | CSELLLangNo
- | CSELLLangPl
- | CSELLLangPt
- | CSELLLangRo
- | CSELLLangRu
- | CSELLLangSk
- | CSELLLangSl
- | CSELLLangSr
- | CSELLLangSv
- | CSELLLangTr
- | CSELLLangZhCn
- | CSELLLangZhTw
- data ContextFacetsItemItem
- contextFacetsItemItem :: ContextFacetsItemItem
- cfiiAnchor :: Lens' ContextFacetsItemItem (Maybe Text)
- cfiiLabelWithOp :: Lens' ContextFacetsItemItem (Maybe Text)
- cfiiLabel :: Lens' ContextFacetsItemItem (Maybe Text)
- data CSEListSearchType = CSELSTImage
- data CSEListImgSize
Service Configuration
customSearchService :: ServiceConfig Source #
Default request referring to version v1
of the CustomSearch API. This contains the host and root path used as a starting point for constructing service requests.
CSEListImgType
data CSEListImgType Source #
Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
Instances
PromotionImage
data PromotionImage Source #
Instances
promotionImage :: PromotionImage Source #
Creates a value of PromotionImage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Context
Instances
Eq Context Source # | |
Data Context Source # | |
Defined in Network.Google.CustomSearch.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Context -> c Context # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Context # toConstr :: Context -> Constr # dataTypeOf :: Context -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Context) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Context) # gmapT :: (forall b. Data b => b -> b) -> Context -> Context # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Context -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Context -> r # gmapQ :: (forall d. Data d => d -> u) -> Context -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Context -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Context -> m Context # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Context -> m Context # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Context -> m Context # | |
Show Context Source # | |
Generic Context Source # | |
ToJSON Context Source # | |
Defined in Network.Google.CustomSearch.Types.Product | |
FromJSON Context Source # | |
type Rep Context Source # | |
Defined in Network.Google.CustomSearch.Types.Product type Rep Context = D1 (MetaData "Context" "Network.Google.CustomSearch.Types.Product" "gogol-customsearch-0.4.0-AJYk0gjb9hHJ6tx06P7CTf" False) (C1 (MetaCons "Context'" PrefixI True) (S1 (MetaSel (Just "_cFacets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [[ContextFacetsItemItem]])) :*: S1 (MetaSel (Just "_cTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) |
CSEListSiteSearchFilter
data CSEListSiteSearchFilter Source #
Controls whether to include or exclude results from the site named in the as_sitesearch parameter
Instances
SearchQueries
data SearchQueries Source #
Instances
:: HashMap Text [Query] | |
-> SearchQueries |
Creates a value of SearchQueries
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sqAddtional :: Lens' SearchQueries (HashMap Text [Query]) Source #
ResultPagemapAdditionalItem
data ResultPagemapAdditionalItem Source #
Instances
resultPagemapAdditionalItem Source #
Creates a value of ResultPagemapAdditionalItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
SearchURL
Instances
Eq SearchURL Source # | |
Data SearchURL Source # | |
Defined in Network.Google.CustomSearch.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SearchURL -> c SearchURL # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SearchURL # toConstr :: SearchURL -> Constr # dataTypeOf :: SearchURL -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SearchURL) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SearchURL) # gmapT :: (forall b. Data b => b -> b) -> SearchURL -> SearchURL # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SearchURL -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SearchURL -> r # gmapQ :: (forall d. Data d => d -> u) -> SearchURL -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> SearchURL -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SearchURL -> m SearchURL # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchURL -> m SearchURL # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchURL -> m SearchURL # | |
Show SearchURL Source # | |
Generic SearchURL Source # | |
ToJSON SearchURL Source # | |
Defined in Network.Google.CustomSearch.Types.Product | |
FromJSON SearchURL Source # | |
type Rep SearchURL Source # | |
Defined in Network.Google.CustomSearch.Types.Product type Rep SearchURL = D1 (MetaData "SearchURL" "Network.Google.CustomSearch.Types.Product" "gogol-customsearch-0.4.0-AJYk0gjb9hHJ6tx06P7CTf" False) (C1 (MetaCons "SearchURL'" PrefixI True) (S1 (MetaSel (Just "_suType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_suTemplate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) |
searchURL :: SearchURL Source #
Creates a value of SearchURL
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CSESiterestrictListFilter
data CSESiterestrictListFilter Source #
Controls turning on or off the duplicate content filter.
Instances
SearchSpelling
data SearchSpelling Source #
Instances
searchSpelling :: SearchSpelling Source #
Creates a value of SearchSpelling
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CSESiterestrictListImgType
data CSESiterestrictListImgType Source #
Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
CSESLITCliPart |
|
CSESLITFace |
|
CSESLITLineart |
|
CSESLITNews |
|
CSESLITPhoto |
|
Instances
CSEListImgDominantColor
data CSEListImgDominantColor Source #
Returns images of a specific dominant color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black and brown.
Black |
|
Blue |
|
Brown |
|
Gray |
|
Green |
|
Orange |
|
Pink |
|
Purple |
|
Red |
|
Teal |
|
White |
|
Yellow |
|
Instances
ResultImage
data ResultImage Source #
Instances
resultImage :: ResultImage Source #
Creates a value of ResultImage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
riByteSize :: Lens' ResultImage (Maybe Int32) Source #
CSEListSafe
data CSEListSafe Source #
Search safety level
Active |
|
High |
|
Medium |
|
Off |
|
Instances
CSESiterestrictListImgSize
data CSESiterestrictListImgSize Source #
Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
CSESLISHuge |
|
CSESLISIcon |
|
CSESLISLarge |
|
CSESLISMedium |
|
CSESLISSmall |
|
CSESLISXlarge |
|
CSESLISXxlarge |
|
Instances
ResultPagemap
data ResultPagemap Source #
Instances
Creates a value of ResultPagemap
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CSESiterestrictListImgColorType
data CSESiterestrictListImgColorType Source #
Returns black and white, grayscale, or color images: mono, gray, and color.
CSESLICTColor |
|
CSESLICTGray |
|
CSESLICTMono |
|
Instances
CSEListImgColorType
data CSEListImgColorType Source #
Returns black and white, grayscale, or color images: mono, gray, and color.
CSELICTColor |
|
CSELICTGray |
|
CSELICTMono |
|
Instances
CSESiterestrictListSafe
data CSESiterestrictListSafe Source #
Search safety level
CSESLSHigh |
|
CSESLSMedium |
|
CSESLSOff |
|
Instances
Result
Instances
Creates a value of Result
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ResultLabelsItem
data ResultLabelsItem Source #
Instances
resultLabelsItem :: ResultLabelsItem Source #
Creates a value of ResultLabelsItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CSESiterestrictListImgDominantColor
data CSESiterestrictListImgDominantColor Source #
Returns images of a specific dominant color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black and brown.
CSESLIDCBlack |
|
CSESLIDCBlue |
|
CSESLIDCBrown |
|
CSESLIDCGray |
|
CSESLIDCGreen |
|
CSESLIDCOrange |
|
CSESLIDCPink |
|
CSESLIDCPurple |
|
CSESLIDCRed |
|
CSESLIDCTeal |
|
CSESLIDCWhite |
|
CSESLIDCYellow |
|
Instances
SearchSearchInformation
data SearchSearchInformation Source #
Instances
searchSearchInformation :: SearchSearchInformation Source #
Creates a value of SearchSearchInformation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CSEListFilter
data CSEListFilter Source #
Controls turning on or off the duplicate content filter.
Instances
Query
Instances
Creates a value of Query
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
qImgDominantColor
qOutputEncoding
qSiteSearchFilter
qInputEncoding
qOrTerms
qSearchTerms
qStartPage
qRights
qCount
qExcludeTerms
qFileType
qSearchType
qGoogleHost
qDisableCnTwTranslation
qRelatedSite
qHl
qSort
qLanguage
qSiteSearch
qFilter
qTotalResults
qDateRestrict
qTitle
qLinkSite
qLowRange
qImgType
qGl
qCx
qImgColorType
qImgSize
qExactTerms
qStartIndex
qCr
qSafe
qHq
qHighRange
CSESiterestrictListSiteSearchFilter
data CSESiterestrictListSiteSearchFilter Source #
Controls whether to include or exclude results from the site named in the as_sitesearch parameter
Instances
PromotionBodyLinesItem
data PromotionBodyLinesItem Source #
Instances
promotionBodyLinesItem :: PromotionBodyLinesItem Source #
Creates a value of PromotionBodyLinesItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Promotion
Instances
promotion :: Promotion Source #
Creates a value of Promotion
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CSESiterestrictListLr
data CSESiterestrictListLr Source #
The language restriction for the search results
LangAr |
|
LangBg |
|
LangCa |
|
LangCs |
|
LangDa |
|
LangDe |
|
LangEl |
|
LangEn |
|
LangEs |
|
LangEt |
|
LangFi |
|
LangFr |
|
LangHr |
|
LangHu |
|
LangId |
|
LangIs |
|
LangIt |
|
LangIw |
|
LangJa |
|
LangKo |
|
LangLT |
|
LangLv |
|
LangNl |
|
LangNo |
|
LangPl |
|
LangPt |
|
LangRo |
|
LangRu |
|
LangSk |
|
LangSl |
|
LangSr |
|
LangSv |
|
LangTr |
|
LangZhCn |
|
LangZhTw |
|
Instances
CSESiterestrictListSearchType
data CSESiterestrictListSearchType Source #
Specifies the search type: image.
Image |
|
Instances
Search
Instances
Creates a value of Search
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CSEListLr
The language restriction for the search results
CSELLLangAr |
|
CSELLLangBg |
|
CSELLLangCa |
|
CSELLLangCs |
|
CSELLLangDa |
|
CSELLLangDe |
|
CSELLLangEl |
|
CSELLLangEn |
|
CSELLLangEs |
|
CSELLLangEt |
|
CSELLLangFi |
|
CSELLLangFr |
|
CSELLLangHr |
|
CSELLLangHu |
|
CSELLLangId |
|
CSELLLangIs |
|
CSELLLangIt |
|
CSELLLangIw |
|
CSELLLangJa |
|
CSELLLangKo |
|
CSELLLangLT |
|
CSELLLangLv |
|
CSELLLangNl |
|
CSELLLangNo |
|
CSELLLangPl |
|
CSELLLangPt |
|
CSELLLangRo |
|
CSELLLangRu |
|
CSELLLangSk |
|
CSELLLangSl |
|
CSELLLangSr |
|
CSELLLangSv |
|
CSELLLangTr |
|
CSELLLangZhCn |
|
CSELLLangZhTw |
|
Instances
ContextFacetsItemItem
data ContextFacetsItemItem Source #
Instances
contextFacetsItemItem :: ContextFacetsItemItem Source #
Creates a value of ContextFacetsItemItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CSEListSearchType
data CSEListSearchType Source #
Specifies the search type: image.
CSELSTImage |
|
Instances
CSEListImgSize
data CSEListImgSize Source #
Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
CSELISHuge |
|
CSELISIcon |
|
CSELISLarge |
|
CSELISMedium |
|
CSELISSmall |
|
CSELISXlarge |
|
CSELISXxlarge |
|