@@ -20,7 +20,7 @@ Authentication / Configuration
2020 :envvar: `GOOGLE_CLOUD_PROJECT ` environment variables, create an instance of
2121 :class: `Client <google.cloud.bigquery.client.Client> `.
2222
23- .. doctest ::
23+ .. code-block :: python
2424
2525 >> > from google.cloud import bigquery
2626 >> > client = bigquery.Client()
@@ -39,7 +39,7 @@ To override the project inferred from the environment, pass an explicit
3939``project `` to the constructor, or to either of the alternative
4040``classmethod `` factories:
4141
42- .. doctest ::
42+ .. code-block :: python
4343
4444 >> > from google.cloud import bigquery
4545 >> > client = bigquery.Client(project = ' PROJECT_ID' )
@@ -101,7 +101,7 @@ Patch metadata for a dataset:
101101
102102Replace the ACL for a dataset, and update all writeable fields:
103103
104- .. doctest ::
104+ .. code-block :: python
105105
106106 >> > from google.cloud import bigquery
107107 >> > client = bigquery.Client()
@@ -230,7 +230,7 @@ Querying data (asynchronous)
230230
231231Background a query, loading the results into a table:
232232
233- .. doctest ::
233+ .. code-block :: python
234234
235235 >> > from google.cloud import bigquery
236236 >> > client = bigquery.Client()
@@ -261,7 +261,7 @@ Background a query, loading the results into a table:
261261
262262Then, begin executing the job on the server:
263263
264- .. doctest ::
264+ .. code-block :: python
265265
266266 >> > job.begin() # API call
267267 >> > job.created
@@ -271,7 +271,7 @@ Then, begin executing the job on the server:
271271
272272 Poll until the job is complete:
273273
274- .. doctest ::
274+ .. code-block :: python
275275
276276 >> > import time
277277 >> > retry_count = 100
@@ -286,7 +286,7 @@ Poll until the job is complete:
286286
287287 Retrieve the results:
288288
289- .. doctest ::
289+ .. code-block :: python
290290
291291 >> > results = job.results()
292292 >> > rows, total_count, token = query.fetch_data() # API requet
@@ -305,7 +305,7 @@ Start a job loading data asynchronously from a set of CSV files, located on
305305Google Cloud Storage, appending rows into an existing table. First, create
306306the job locally:
307307
308- .. doctest ::
308+ .. code-block :: python
309309
310310 >> > from google.cloud import bigquery
311311 >> > from google.cloud.bigquery import SchemaField
@@ -336,7 +336,7 @@ the job locally:
336336
337337Then, begin executing the job on the server:
338338
339- .. doctest ::
339+ .. code - block:: python
340340
341341 >> > job.begin() # API call
342342 >> > job.created
@@ -346,7 +346,7 @@ Then, begin executing the job on the server:
346346
347347Poll until the job is complete:
348348
349- .. doctest ::
349+ .. code - block:: python
350350
351351 >> > import time
352352 >> > retry_count = 100
@@ -366,7 +366,7 @@ Exporting data (async)
366366Start a job exporting a table' s data asynchronously to a set of CSV files,
367367located on Google Cloud Storage. First, create the job locally:
368368
369- .. doctest ::
369+ .. code - block:: python
370370
371371 >> > from google.cloud import bigquery
372372 >> > client = bigquery.Client()
@@ -394,7 +394,7 @@ located on Google Cloud Storage. First, create the job locally:
394394
395395Then, begin executing the job on the server:
396396
397- .. doctest ::
397+ .. code - block:: python
398398
399399 >> > job.begin() # API call
400400 >> > job.created
@@ -404,7 +404,7 @@ Then, begin executing the job on the server:
404404
405405Poll until the job is complete:
406406
407- .. doctest ::
407+ .. code - block:: python
408408
409409 >> > import time
410410 >> > retry_count = 100
@@ -423,7 +423,7 @@ Copy tables (async)
423423
424424First, create the job locally:
425425
426- .. doctest ::
426+ .. code - block:: python
427427
428428 >> > from google.cloud import bigquery
429429 >> > client = bigquery.Client()
@@ -448,7 +448,7 @@ First, create the job locally:
448448
449449Then, begin executing the job on the server:
450450
451- .. doctest ::
451+ .. code - block:: python
452452
453453 >> > job.begin() # API call
454454 >> > job.created
@@ -458,7 +458,7 @@ Then, begin executing the job on the server:
458458
459459Poll until the job is complete:
460460
461- .. doctest ::
461+ .. code - block:: python
462462
463463 >> > import time
464464 >> > retry_count = 100
0 commit comments