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 |
Provides suggestions for autocompleting the query.
See: Cloud Search API Reference for cloudsearch.query.suggest
.
Synopsis
- 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)))))))))
- querySuggest :: SuggestRequest -> QuerySuggest
- data QuerySuggest
- qsXgafv :: Lens' QuerySuggest (Maybe Xgafv)
- qsUploadProtocol :: Lens' QuerySuggest (Maybe Text)
- qsAccessToken :: Lens' QuerySuggest (Maybe Text)
- qsUploadType :: Lens' QuerySuggest (Maybe Text)
- qsPayload :: Lens' QuerySuggest SuggestRequest
- qsCallback :: Lens' QuerySuggest (Maybe Text)
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
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
Request Lenses
qsUploadProtocol :: Lens' QuerySuggest (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
qsAccessToken :: Lens' QuerySuggest (Maybe Text) Source #
OAuth access token.
qsUploadType :: Lens' QuerySuggest (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
qsPayload :: Lens' QuerySuggest SuggestRequest Source #
Multipart request metadata.
qsCallback :: Lens' QuerySuggest (Maybe Text) Source #
JSONP