gogol-cloudsearch-0.4.0: Google Cloud Search 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.CloudSearch.Query.Suggest

Contents

Description

Provides suggestions for autocompleting the query.

See: Cloud Search API Reference for cloudsearch.query.suggest.

Synopsis

REST Resource

type QuerySuggestResource = "v1" :> ("query" :> ("suggest" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SuggestRequest :> Post '[JSON] SuggestResponse))))))))) Source #

A resource alias for cloudsearch.query.suggest method which the QuerySuggest request conforms to.

Creating a Request

querySuggest Source #

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

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

data QuerySuggest Source #

Provides suggestions for autocompleting the query.

See: querySuggest smart constructor.

Instances
Eq QuerySuggest Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Query.Suggest

Data QuerySuggest Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Query.Suggest

Methods

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

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

toConstr :: QuerySuggest -> Constr #

dataTypeOf :: QuerySuggest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show QuerySuggest Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Query.Suggest

Generic QuerySuggest Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Query.Suggest

Associated Types

type Rep QuerySuggest :: Type -> Type #

GoogleRequest QuerySuggest Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Query.Suggest

Associated Types

type Rs QuerySuggest :: Type #

type Scopes QuerySuggest :: [Symbol] #

type Rep QuerySuggest Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Query.Suggest

type Rep QuerySuggest = D1 (MetaData "QuerySuggest" "Network.Google.Resource.CloudSearch.Query.Suggest" "gogol-cloudsearch-0.4.0-5yB3RjcJJrULTqYmbhTTen" False) (C1 (MetaCons "QuerySuggest'" PrefixI True) ((S1 (MetaSel (Just "_qsXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_qsUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_qsAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_qsUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_qsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SuggestRequest) :*: S1 (MetaSel (Just "_qsCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes QuerySuggest Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Query.Suggest

type Scopes QuerySuggest = "https://www.googleapis.com/auth/cloud_search" ': ("https://www.googleapis.com/auth/cloud_search.query" ': ([] :: [Symbol]))
type Rs QuerySuggest Source # 
Instance details

Defined in Network.Google.Resource.CloudSearch.Query.Suggest

Request Lenses

qsUploadProtocol :: Lens' QuerySuggest (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

qsUploadType :: Lens' QuerySuggest (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

qsPayload :: Lens' QuerySuggest SuggestRequest Source #

Multipart request metadata.