@@ -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()
@@ -231,7 +231,7 @@ Querying data (asynchronous)
231231
232232Background a query, loading the results into a table:
233233
234- .. doctest ::
234+ .. code-block :: python
235235
236236 >> > from google.cloud import bigquery
237237 >> > client = bigquery.Client()
@@ -262,7 +262,7 @@ Background a query, loading the results into a table:
262262
263263Then, begin executing the job on the server:
264264
265- .. doctest ::
265+ .. code-block :: python
266266
267267 >> > job.begin() # API call
268268 >> > job.created
@@ -272,7 +272,7 @@ Then, begin executing the job on the server:
272272
273273 Poll until the job is complete:
274274
275- .. doctest ::
275+ .. code-block :: python
276276
277277 >> > import time
278278 >> > retry_count = 100
@@ -287,7 +287,7 @@ Poll until the job is complete:
287287
288288 Retrieve the results:
289289
290- .. doctest ::
290+ .. code-block :: python
291291
292292 >> > results = job.results()
293293 >> > rows, total_count, token = query.fetch_data() # API requet
@@ -306,7 +306,7 @@ Start a job loading data asynchronously from a set of CSV files, located on
306306Google Cloud Storage, appending rows into an existing table. First, create
307307the job locally:
308308
309- .. doctest ::
309+ .. code-block :: python
310310
311311 >> > from google.cloud import bigquery
312312 >> > from google.cloud.bigquery import SchemaField
@@ -337,7 +337,7 @@ the job locally:
337337
338338Then, begin executing the job on the server:
339339
340- .. doctest ::
340+ .. code - block:: python
341341
342342 >> > job.begin() # API call
343343 >> > job.created
@@ -347,7 +347,7 @@ Then, begin executing the job on the server:
347347
348348Poll until the job is complete:
349349
350- .. doctest ::
350+ .. code - block:: python
351351
352352 >> > import time
353353 >> > retry_count = 100
@@ -367,7 +367,7 @@ Exporting data (async)
367367Start a job exporting a table' s data asynchronously to a set of CSV files,
368368located on Google Cloud Storage. First, create the job locally:
369369
370- .. doctest ::
370+ .. code - block:: python
371371
372372 >> > from google.cloud import bigquery
373373 >> > client = bigquery.Client()
@@ -395,7 +395,7 @@ located on Google Cloud Storage. First, create the job locally:
395395
396396Then, begin executing the job on the server:
397397
398- .. doctest ::
398+ .. code - block:: python
399399
400400 >> > job.begin() # API call
401401 >> > job.created
@@ -405,7 +405,7 @@ Then, begin executing the job on the server:
405405
406406Poll until the job is complete:
407407
408- .. doctest ::
408+ .. code - block:: python
409409
410410 >> > import time
411411 >> > retry_count = 100
@@ -424,7 +424,7 @@ Copy tables (async)
424424
425425First, create the job locally:
426426
427- .. doctest ::
427+ .. code - block:: python
428428
429429 >> > from google.cloud import bigquery
430430 >> > client = bigquery.Client()
@@ -449,7 +449,7 @@ First, create the job locally:
449449
450450Then, begin executing the job on the server:
451451
452- .. doctest ::
452+ .. code - block:: python
453453
454454 >> > job.begin() # API call
455455 >> > job.created
@@ -459,7 +459,7 @@ Then, begin executing the job on the server:
459459
460460Poll until the job is complete:
461461
462- .. doctest ::
462+ .. code - block:: python
463463
464464 >> > import time
465465 >> > retry_count = 100
0 commit comments