Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict decorator_list NameLoad Assign NameStore Call NameLoad Str NameLoad Expr Str Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr Expr Str Assign NameStore Call NameLoad Str NameLoad Expr Str Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr Expr Str Assign NameStore Call NameLoad Str NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A Define API Queries. N/A six gcloud.bigquery._helpers _TypedProperty gcloud.bigquery._helpers _rows_from_json gcloud.bigquery.dataset Dataset gcloud.bigquery.job QueryJob gcloud.bigquery.table _parse_schema_resource _SyncQueryConfiguration N/A object N/A N/A User-settable configuration options for synchronous query jobs.

    Values which are ``None`` -> server defaults.
     N/A _default_dataset None N/A _max_results None N/A _timeout_ms None N/A _preserve_nulls None N/A _use_query_cache None N/A QueryResults N/A object N/A N/A Synchronous job: query tables.

    :type query: string
    :param query: SQL query string

    :type client: :class:`gcloud.bigquery.client.Client`
    :param client: A client which holds credentials and project configuration
                   for the dataset (which requires a project).
     __init__ N/A N/A self query client N/A N/A N/A N/A self _client client N/A N/A self _properties N/A N/A N/A self query query N/A N/A self _configuration N/A _SyncQueryConfiguration N/A N/A self _job None N/A project N/A N/A self N/A N/A N/A Project bound to the job.

        :rtype: string
        :returns: the project (derived from the client).
         N/A N/A N/A self _client project N/A property _require_client N/A N/A self client N/A N/A N/A Check client or verify over-ride.

        :type client: :class:`gcloud.bigquery.client.Client` or ``NoneType``
        :param client: the client to use.  If not passed, falls back to the
                       ``client`` stored on the current dataset.

        :rtype: :class:`gcloud.bigquery.client.Client`
        :returns: The client passed in or the currently bound client.
         N/A N/A client None N/A N/A client N/A self _client N/A client N/A cache_hit N/A N/A self N/A N/A N/A Query results served from cache.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#cacheHit

        :rtype: boolean or ``NoneType``
        :returns: True if the query results were served from cache (None
                  until set by the server).
         N/A N/A N/A N/A self _properties get cacheHit N/A property complete N/A N/A self N/A N/A N/A Server completed query.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#jobComplete

        :rtype: boolean or ``NoneType``
        :returns: True if the query completed on the server (None
                  until set by the server).
         N/A N/A N/A N/A self _properties get jobComplete N/A property errors N/A N/A self N/A N/A N/A Errors generated by the query.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#errors

        :rtype: list of mapping, or ``NoneType``
        :returns: Mappings describing errors generated on the server (None
                  until set by the server).
         N/A N/A N/A N/A self _properties get errors N/A property name N/A N/A self N/A N/A N/A Job name, generated by the back-end.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#jobReference

        :rtype: list of mapping, or ``NoneType``
        :returns: Mappings describing errors generated on the server (None
                  until set by the server).
         N/A N/A N/A N/A N/A N/A self _properties get jobReference N/A get jobId N/A property job N/A N/A self N/A N/A N/A Job instance used to run the query.

        :rtype: :class:`gcloud.bigquery.job.QueryJob`, or ``NoneType``
        :returns: Job instance used to run the query (None until
                  ``jobReference`` property is set by the server).
         N/A N/A N/A self _job None N/A N/A job_ref N/A N/A N/A self _properties get jobReference N/A N/A job_ref None N/A N/A N/A self _job N/A QueryJob N/A job_ref N/A jobId N/A self query N/A self _client N/A N/A self _job N/A property page_token N/A N/A self N/A N/A N/A Token for fetching next bach of results.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#pageToken

        :rtype: string, or ``NoneType``
        :returns: Token generated on the server (None until set by the server).
         N/A N/A N/A N/A self _properties get pageToken N/A property total_rows N/A N/A self N/A N/A N/A Total number of rows returned by the query

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#totalRows

        :rtype: integer, or ``NoneType``
        :returns: Count generated on the server (None until set by the server).
         N/A N/A N/A N/A self _properties get totalRows N/A property total_bytes_processed N/A N/A self N/A N/A N/A Total number of bytes processed by the query

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#totalBytesProcessed

        :rtype: integer, or ``NoneType``
        :returns: Count generated on the server (None until set by the server).
         N/A N/A N/A N/A self _properties get totalBytesProcessed N/A property rows N/A N/A self N/A N/A N/A Query results.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#rows

        :rtype: list of tuples of row values, or ``NoneType``
        :returns: fields describing the schema (None until set by the server).
         N/A N/A _rows_from_json N/A N/A N/A self _properties get rows N/A N/A self schema N/A property schema N/A N/A self N/A N/A N/A Schema for query results.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#schema

        :rtype: list of :class:`SchemaField`, or ``NoneType``
        :returns: fields describing the schema (None until set by the server).
         N/A N/A _parse_schema_resource N/A N/A N/A self _properties get schema N/A N/A property N/A default_dataset N/A _TypedProperty default_dataset Dataset N/A See:
    https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#defaultDataset
     N/A max_results N/A _TypedProperty max_results N/A six integer_types N/A See:
    https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#maxResults
     N/A preserve_nulls N/A _TypedProperty preserve_nulls bool N/A See:
    https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#preserveNulls
     N/A timeout_ms N/A _TypedProperty timeout_ms N/A six integer_types N/A See:
    https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#timeoutMs
     N/A use_query_cache N/A _TypedProperty use_query_cache bool N/A See:
    https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#useQueryCache
     _set_properties N/A N/A self api_response N/A N/A N/A Update properties from resource in body of ``api_response``

        :type api_response: httplib2.Response
        :param api_response: response returned from an API call
         N/A N/A N/A N/A self _properties clear N/A N/A N/A N/A self _properties update api_response N/A _build_resource N/A N/A self N/A N/A N/A Generate a resource for :meth:`begin`. N/A resource N/A query N/A self query N/A N/A N/A self default_dataset None N/A N/A N/A resource N/A defaultDataset N/A projectId datasetId N/A self project N/A N/A self default_dataset name N/A N/A N/A self max_results None N/A N/A N/A resource N/A maxResults N/A self max_results N/A N/A N/A self preserve_nulls None N/A N/A N/A resource N/A preserveNulls N/A self preserve_nulls N/A N/A N/A self timeout_ms None N/A N/A N/A resource N/A timeoutMs N/A self timeout_ms N/A N/A N/A self use_query_cache None N/A N/A N/A resource N/A useQueryCache N/A self use_query_cache N/A resource N/A run N/A N/A self client N/A None N/A N/A API call:  run the query via a POST request

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query

        :type client: :class:`gcloud.bigquery.client.Client` or ``NoneType``
        :param client: the client to use.  If not passed, falls back to the
                       ``client`` stored on the current dataset.
         N/A client N/A N/A self _require_client client N/A path N/A /projects/%s/queries N/A N/A self project N/A api_response N/A N/A N/A client connection api_request method POST path path data N/A N/A self _build_resource N/A N/A N/A self _set_properties api_response N/A fetch_data N/A N/A self max_results page_token start_index timeout_ms client N/A None None None None None N/A N/A API call:  fetch a page of query result data via a GET request

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/getQueryResults

        :type max_results: integer or ``NoneType``
        :param max_results: maximum number of rows to return.

        :type page_token: string or ``NoneType``
        :param page_token: token representing a cursor into the table's rows.

        :type start_index: integer or ``NoneType``
        :param start_index: zero-based index of starting row

        :type timeout_ms: integer or ``NoneType``
        :param timeout_ms: timeout, in milliseconds, to wait for query to
                           complete

        :type client: :class:`gcloud.bigquery.client.Client` or ``NoneType``
        :param client: the client to use.  If not passed, falls back to the
                       ``client`` stored on the current dataset.

        :rtype: tuple
        :returns: ``(row_data, total_rows, page_token)``, where ``row_data``
                  is a list of tuples, one per result row, containing only
                  the values;  ``total_rows`` is a count of the total number
                  of rows in the table;  and ``page_token`` is an opaque
                  string which can be used to fetch the next batch of rows
                  (``None`` if no further batches can be fetched).
        :raises: ValueError if the query has not yet been executed.
         N/A N/A N/A self name None N/A N/A N/A ValueError Query not yet executed:  call 'run()' N/A client N/A N/A self _require_client client N/A params N/A N/A N/A max_results None N/A N/A N/A params N/A maxResults max_results N/A N/A page_token None N/A N/A N/A params N/A pageToken page_token N/A N/A start_index None N/A N/A N/A params N/A startIndex start_index N/A N/A timeout_ms None N/A N/A N/A params N/A timeoutMs timeout_ms N/A path N/A /projects/%s/queries/%s N/A N/A self project N/A self name N/A response N/A N/A N/A client connection api_request method GET path path query_params params N/A N/A N/A self _set_properties response N/A total_rows N/A N/A response get totalRows N/A page_token N/A N/A response get pageToken N/A rows_data N/A _rows_from_json N/A N/A response get rows N/A N/A self schema N/A N/A rows_data total_rows page_token N/A N/A