gogol-civicinfo-0.4.0: Google Civic Information SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.CivicInfo.Divisions.Search

Contents

Description

Searches for political divisions by their natural name or OCD ID.

See: Google Civic Information API Reference for civicinfo.divisions.search.

Synopsis

REST Resource

type DivisionsSearchResource = "civicinfo" :> ("v2" :> ("divisions" :> (QueryParam "query" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DivisionSearchRequest :> Get '[JSON] DivisionSearchResponse))))) Source #

A resource alias for civicinfo.divisions.search method which the DivisionsSearch request conforms to.

Creating a Request

divisionsSearch Source #

Creates a value of DivisionsSearch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DivisionsSearch Source #

Searches for political divisions by their natural name or OCD ID.

See: divisionsSearch smart constructor.

Instances
Eq DivisionsSearch Source # 
Instance details

Defined in Network.Google.Resource.CivicInfo.Divisions.Search

Data DivisionsSearch Source # 
Instance details

Defined in Network.Google.Resource.CivicInfo.Divisions.Search

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DivisionsSearch -> c DivisionsSearch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DivisionsSearch #

toConstr :: DivisionsSearch -> Constr #

dataTypeOf :: DivisionsSearch -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DivisionsSearch) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DivisionsSearch) #

gmapT :: (forall b. Data b => b -> b) -> DivisionsSearch -> DivisionsSearch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DivisionsSearch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DivisionsSearch -> r #

gmapQ :: (forall d. Data d => d -> u) -> DivisionsSearch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DivisionsSearch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DivisionsSearch -> m DivisionsSearch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionsSearch -> m DivisionsSearch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionsSearch -> m DivisionsSearch #

Show DivisionsSearch Source # 
Instance details

Defined in Network.Google.Resource.CivicInfo.Divisions.Search

Generic DivisionsSearch Source # 
Instance details

Defined in Network.Google.Resource.CivicInfo.Divisions.Search

Associated Types

type Rep DivisionsSearch :: Type -> Type #

GoogleRequest DivisionsSearch Source # 
Instance details

Defined in Network.Google.Resource.CivicInfo.Divisions.Search

Associated Types

type Rs DivisionsSearch :: Type #

type Scopes DivisionsSearch :: [Symbol] #

type Rep DivisionsSearch Source # 
Instance details

Defined in Network.Google.Resource.CivicInfo.Divisions.Search

type Rep DivisionsSearch = D1 (MetaData "DivisionsSearch" "Network.Google.Resource.CivicInfo.Divisions.Search" "gogol-civicinfo-0.4.0-CFTfG36dFIwG9zqAoJPyhB" False) (C1 (MetaCons "DivisionsSearch'" PrefixI True) (S1 (MetaSel (Just "_dsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DivisionSearchRequest) :*: S1 (MetaSel (Just "_dsQuery") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))
type Scopes DivisionsSearch Source # 
Instance details

Defined in Network.Google.Resource.CivicInfo.Divisions.Search

type Scopes DivisionsSearch = ([] :: [Symbol])
type Rs DivisionsSearch Source # 
Instance details

Defined in Network.Google.Resource.CivicInfo.Divisions.Search

Request Lenses

dsQuery :: Lens' DivisionsSearch (Maybe Text) Source #

The search query. Queries can cover any parts of a OCD ID or a human readable division name. All words given in the query are treated as required patterns. In addition to that, most query operators of the Apache Lucene library are supported. See http://lucene.apache.org/core/2_9_4/queryparsersyntax.html