Cloud Search API . query . sources

Instance Methods

close()

Close httplib2 connections.

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

Returns list of sources that user can use for Search and Suggest APIs. **Note:** This API requires a standard end user account to execute. A service account can't perform Query API requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(pageToken=None, requestOptions_debugOptions_enableDebugging=None, requestOptions_languageCode=None, requestOptions_searchApplicationId=None, requestOptions_timeZone=None, x__xgafv=None)
Returns list of sources that user can use for Search and Suggest APIs. **Note:** This API requires a standard end user account to execute. A service account can't perform Query API requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).

Args:
  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_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. Set this field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified, the documents in search results are biased towards the specified language. The Suggest API uses this field as a hint to make better third-party autocomplete predictions.
  requestOptions_searchApplicationId: string, The ID generated when you create a search application using the [admin console](https://support.google.com/a/answer/9043922).
  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). This field is used to correctly interpret date and time queries. If this field is not specified, the default time zone (UTC) is used.
  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.
      "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.
          "displayName": "A String", # Display name of the operator
          "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",
          ],
          "greaterThanOperatorName": "A String", # Indicates the operator name that can be used to isolate the property using the greater-than operator.
          "isFacetable": True or False, # Can this operator be used to get facets.
          "isRepeatable": True or False, # Indicates if multiple values can be set for this property.
          "isReturnable": True or False, # Will the property associated with this facet be returned as part of search results.
          "isSortable": True or False, # Can this operator be used to sort results.
          "isSuggestable": True or False, # Can get suggestions for this field.
          "lessThanOperatorName": "A String", # Indicates the operator name that can be used to isolate the property using the less-than operator.
          "objectType": "A String", # The name of the object corresponding to the operator. This field is only filled for schema-specific operators, and is unset for common operators.
          "operatorName": "A String", # The name of the operator.
          "type": "A String", # The type of the operator.
        },
      ],
      "shortName": "A String", # A short name or alias for the source. This value can be used with the 'source' operator.
      "source": { # Defines sources for the suggest/search APIs. # The name of the source
        "name": "A String", # Source name for content indexed by the Indexing API.
        "predefinedSource": "A String", # Predefined content source for Google Apps.
      },
    },
  ],
}
list_next()
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.