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 |
The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party.
See: Cloud Search API Reference for cloudsearch.query.search
.
Synopsis
- type QuerySearchResource = "v1" :> ("query" :> ("search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SearchRequest :> Post '[JSON] SearchResponse)))))))))
- querySearch :: SearchRequest -> QuerySearch
- data QuerySearch
- qXgafv :: Lens' QuerySearch (Maybe Xgafv)
- qUploadProtocol :: Lens' QuerySearch (Maybe Text)
- qAccessToken :: Lens' QuerySearch (Maybe Text)
- qUploadType :: Lens' QuerySearch (Maybe Text)
- qPayload :: Lens' QuerySearch SearchRequest
- qCallback :: Lens' QuerySearch (Maybe Text)
REST Resource
type QuerySearchResource = "v1" :> ("query" :> ("search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SearchRequest :> Post '[JSON] SearchResponse))))))))) Source #
A resource alias for cloudsearch.query.search
method which the
QuerySearch
request conforms to.
Creating a Request
Creates a value of QuerySearch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data QuerySearch Source #
The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party.
See: querySearch
smart constructor.
Instances
Request Lenses
qUploadProtocol :: Lens' QuerySearch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
qAccessToken :: Lens' QuerySearch (Maybe Text) Source #
OAuth access token.
qUploadType :: Lens' QuerySearch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
qPayload :: Lens' QuerySearch SearchRequest Source #
Multipart request metadata.