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 |
Returns list of sources that user can use for Search and Suggest APIs.
See: Cloud Search API Reference for cloudsearch.query.sources.list
.
Synopsis
- type QuerySourcesListResource = "v1" :> ("query" :> ("sources" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "requestOptions.timeZone" Text :> (QueryParam "requestOptions.debugOptions.enableDebugging" Bool :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "requestOptions.searchApplicationId" Text :> (QueryParam "requestOptions.languageCode" Text :> (QueryParam "pageToken" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListQuerySourcesResponse)))))))))))))
- querySourcesList :: QuerySourcesList
- data QuerySourcesList
- qslXgafv :: Lens' QuerySourcesList (Maybe Xgafv)
- qslRequestOptionsTimeZone :: Lens' QuerySourcesList (Maybe Text)
- qslRequestOptionsDebugOptionsEnableDebugging :: Lens' QuerySourcesList (Maybe Bool)
- qslUploadProtocol :: Lens' QuerySourcesList (Maybe Text)
- qslAccessToken :: Lens' QuerySourcesList (Maybe Text)
- qslUploadType :: Lens' QuerySourcesList (Maybe Text)
- qslRequestOptionsSearchApplicationId :: Lens' QuerySourcesList (Maybe Text)
- qslRequestOptionsLanguageCode :: Lens' QuerySourcesList (Maybe Text)
- qslPageToken :: Lens' QuerySourcesList (Maybe Text)
- qslCallback :: Lens' QuerySourcesList (Maybe Text)
REST Resource
type QuerySourcesListResource = "v1" :> ("query" :> ("sources" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "requestOptions.timeZone" Text :> (QueryParam "requestOptions.debugOptions.enableDebugging" Bool :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "requestOptions.searchApplicationId" Text :> (QueryParam "requestOptions.languageCode" Text :> (QueryParam "pageToken" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListQuerySourcesResponse))))))))))))) Source #
A resource alias for cloudsearch.query.sources.list
method which the
QuerySourcesList
request conforms to.
Creating a Request
querySourcesList :: QuerySourcesList Source #
Creates a value of QuerySourcesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data QuerySourcesList Source #
Returns list of sources that user can use for Search and Suggest APIs.
See: querySourcesList
smart constructor.
Instances
Request Lenses
qslRequestOptionsTimeZone :: Lens' QuerySourcesList (Maybe Text) Source #
Current user's time zone id, such as "America/Los_Angeles" or "Australia/Sydney". These IDs are defined by Unicode Common Locale Data Repository (CLDR) project, and currently available in the file timezone.xml
qslRequestOptionsDebugOptionsEnableDebugging :: Lens' QuerySourcesList (Maybe Bool) Source #
If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
qslUploadProtocol :: Lens' QuerySourcesList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
qslAccessToken :: Lens' QuerySourcesList (Maybe Text) Source #
OAuth access token.
qslUploadType :: Lens' QuerySourcesList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
qslRequestOptionsSearchApplicationId :: Lens' QuerySourcesList (Maybe Text) Source #
Id of the application created using SearchApplicationsService.
qslRequestOptionsLanguageCode :: Lens' QuerySourcesList (Maybe Text) Source #
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. When specified, the documents in search results are biased towards the specified language. Suggest API does not use this parameter. It autocompletes only based on characters in the query.
qslPageToken :: Lens' QuerySourcesList (Maybe Text) Source #
Number of sources to return in the response.
qslCallback :: Lens' QuerySourcesList (Maybe Text) Source #
JSONP