Cloud Search API . query . sources

Instance Methods

list(requestOptions_timeZone=None, pageToken=None, requestOptions_debugOptions_enableDebugging=None, requestOptions_searchApplicationId=None, requestOptions_languageCode=None, x__xgafv=None)

Returns list of sources that user can use for Search and Suggest APIs.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

list(requestOptions_timeZone=None, pageToken=None, requestOptions_debugOptions_enableDebugging=None, requestOptions_searchApplicationId=None, requestOptions_languageCode=None, x__xgafv=None)
Returns list of sources that user can use for Search and Suggest APIs.

Args:
  requestOptions_timeZone: string, 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)](http://cldr.unicode.org/)
project, and currently available in the file
[timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml)
  pageToken: string, Number of sources to return in the response.
  requestOptions_debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field.
Otherwise, ignore this field.
  requestOptions_searchApplicationId: string, Id of the application created using SearchApplicationsService.
  requestOptions_languageCode: string, 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.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # List sources response.
    "nextPageToken": "A String",
    "sources": [
      { # List of sources that the user can search using the query API.
        "source": { # Defines sources for the suggest/search APIs. # Name of the source
          "predefinedSource": "A String", # Predefined content source for Google Apps.
          "name": "A String", # Source name for content indexed by the
              # Indexing API.
        },
        "shortName": "A String", # A short name or alias for the source.  This value can be used with the
            # 'source' operator.
        "displayName": "A String", # Display name of the data source.
        "operators": [ # List of all operators applicable for this source.
          { # The definition of a operator that can be used in a Search/Suggest request.
            "enumValues": [ # Potential list of values for the opeatror field. This field is only filled
                # when we can safely enumerate all the possible values of this operator.
              "A String",
            ],
            "displayName": "A String", # Display name of the operator
            "greaterThanOperatorName": "A String", # Indicates the operator name that can be used to  isolate the property using
                # the greater-than operator.
            "isReturnable": True or False, # Will the property associated with this facet be returned as part of search
                # results.
            "lessThanOperatorName": "A String", # Indicates the operator name that can be used to  isolate the property using
                # the less-than operator.
            "isRepeatable": True or False, # Indicates if multiple values can be set for this property.
            "isFacetable": True or False, # Can this operator be used to get facets.
            "type": "A String", # Type of the operator.
            "operatorName": "A String", # The name of the operator.
            "isSortable": True or False, # Can this operator be used to sort results.
            "isSuggestable": True or False, # Can get suggestions for this field.
          },
        ],
      },
    ],
  }
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.