We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Change 'name' parameter to job constructors -> 'job_name'
See: https://github.com/GoogleCloudPlatform/gcloud-python/pull/1263/files#r46738307


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `gcloud/bigquery/client.py`
Content:
```
1 # Copyright 2015 Google Inc. All rights reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 """Client for interacting with the Google BigQuery API."""
16 
17 
18 from gcloud.client import JSONClient
19 from gcloud.bigquery.connection import Connection
20 from gcloud.bigquery.dataset import Dataset
21 from gcloud.bigquery.job import CopyJob
22 from gcloud.bigquery.job import ExtractTableToStorageJob
23 from gcloud.bigquery.job import LoadTableFromStorageJob
24 from gcloud.bigquery.job import RunAsyncQueryJob
25 from gcloud.bigquery.job import RunSyncQueryJob
26 
27 
28 class Client(JSONClient):
29     """Client to bundle configuration needed for API requests.
30 
31     :type project: string
32     :param project: the project which the client acts on behalf of. Will be
33                     passed when creating a dataset / job.  If not passed,
34                     falls back to the default inferred from the environment.
35 
36     :type credentials: :class:`oauth2client.client.OAuth2Credentials` or
37                        :class:`NoneType`
38     :param credentials: The OAuth2 Credentials to use for the connection
39                         owned by this client. If not passed (and if no ``http``
40                         object is passed), falls back to the default inferred
41                         from the environment.
42 
43     :type http: :class:`httplib2.Http` or class that defines ``request()``.
44     :param http: An optional HTTP object to make requests. If not passed, an
45                  ``http`` object is created that is bound to the
46                  ``credentials`` for the current object.
47     """
48 
49     _connection_class = Connection
50 
51     def list_datasets(self, include_all=False, max_results=None,
52                       page_token=None):
53         """List datasets for the project associated with this client.
54 
55         See:
56         https://cloud.google.com/bigquery/docs/reference/v2/datasets/list
57 
58         :type include_all: boolean
59         :param include_all: True if results include hidden datasets.
60 
61         :type max_results: int
62         :param max_results: maximum number of datasets to return, If not
63                             passed, defaults to a value set by the API.
64 
65         :type page_token: string
66         :param page_token: opaque marker for the next "page" of datasets. If
67                            not passed, the API will return the first page of
68                            datasets.
69 
70         :rtype: tuple, (list, str)
71         :returns: list of :class:`gcloud.bigquery.dataset.Dataset`, plus a
72                   "next page token" string:  if the token is not None,
73                   indicates that more datasets can be retrieved with another
74                   call (pass that value as ``page_token``).
75         """
76         params = {}
77 
78         if include_all:
79             params['all'] = True
80 
81         if max_results is not None:
82             params['maxResults'] = max_results
83 
84         if page_token is not None:
85             params['pageToken'] = page_token
86 
87         path = '/projects/%s/datasets' % (self.project,)
88         resp = self.connection.api_request(method='GET', path=path,
89                                            query_params=params)
90         datasets = [Dataset.from_api_repr(resource, self)
91                     for resource in resp['datasets']]
92         return datasets, resp.get('nextPageToken')
93 
94     def dataset(self, name):
95         """Construct a dataset bound to this client.
96 
97         :type name: string
98         :param name: Name of the dataset.
99 
100         :rtype: :class:`gcloud.bigquery.dataset.Dataset`
101         :returns: a new ``Dataset`` instance
102         """
103         return Dataset(name, client=self)
104 
105     def load_table_from_storage(self, name, destination, *source_uris):
106         """Construct a job for loading data into a table from CloudStorage.
107 
108         :type name: string
109         :param name: Name of the job.
110 
111         :type destination: :class:`gcloud.bigquery.table.Table`
112         :param destination: Table into which data is to be loaded.
113 
114         :type source_uris: sequence of string
115         :param source_uris: URIs of data files to be loaded.
116 
117         :rtype: :class:`gcloud.bigquery.job.LoadTableFromStorageJob`
118         :returns: a new ``LoadTableFromStorageJob`` instance
119         """
120         return LoadTableFromStorageJob(name, destination, source_uris,
121                                        client=self)
122 
123     def copy_table(self, name, destination, *sources):
124         """Construct a job for copying one or more tables into another table.
125 
126         :type name: string
127         :param name: Name of the job.
128 
129         :type destination: :class:`gcloud.bigquery.table.Table`
130         :param destination: Table into which data is to be copied.
131 
132         :type sources: sequence of :class:`gcloud.bigquery.table.Table`
133         :param sources: tables to be copied.
134 
135         :rtype: :class:`gcloud.bigquery.job.CopyJob`
136         :returns: a new ``CopyJob`` instance
137         """
138         return CopyJob(name, destination, sources, client=self)
139 
140     def extract_table_to_storage(self, name, source, *destination_uris):
141         """Construct a job for extracting a table into Cloud Storage files.
142 
143         :type name: string
144         :param name: Name of the job.
145 
146         :type source: :class:`gcloud.bigquery.table.Table`
147         :param source: table to be extracted.
148 
149         :type destination_uris: sequence of string
150         :param destination_uris: URIs of CloudStorage file(s) into which
151                                  table data is to be extracted.
152 
153         :rtype: :class:`gcloud.bigquery.job.ExtractTableToStorageJob`
154         :returns: a new ``ExtractTableToStorageJob`` instance
155         """
156         return ExtractTableToStorageJob(name, source, destination_uris,
157                                         client=self)
158 
159     def run_async_query(self, name, query):
160         """Construct a job for running a SQL query asynchronously.
161 
162         :type name: string
163         :param name: Name of the job.
164 
165         :type query: string
166         :param query: SQL query to be executed
167 
168         :rtype: :class:`gcloud.bigquery.job.RunAsyncQueryJob`
169         :returns: a new ``RunAsyncQueryJob`` instance
170         """
171         return RunAsyncQueryJob(name, query, client=self)
172 
173     def run_sync_query(self, query):
174         """Construct a job for running a SQL query synchronously.
175 
176         :type query: string
177         :param query: SQL query to be executed
178 
179         :rtype: :class:`gcloud.bigquery.job.RunSyncQueryJob`
180         :returns: a new ``RunSyncQueryJob`` instance
181         """
182         return RunSyncQueryJob(query, client=self)
183
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/gcloud/bigquery/client.py b/gcloud/bigquery/client.py
--- a/gcloud/bigquery/client.py
+++ b/gcloud/bigquery/client.py
@@ -91,22 +91,22 @@
                     for resource in resp['datasets']]
         return datasets, resp.get('nextPageToken')
 
-    def dataset(self, name):
+    def dataset(self, dataset_name):
         """Construct a dataset bound to this client.
 
-        :type name: string
-        :param name: Name of the dataset.
+        :type dataset_name: string
+        :param dataset_name: Name of the dataset.
 
         :rtype: :class:`gcloud.bigquery.dataset.Dataset`
         :returns: a new ``Dataset`` instance
         """
-        return Dataset(name, client=self)
+        return Dataset(dataset_name, client=self)
 
-    def load_table_from_storage(self, name, destination, *source_uris):
+    def load_table_from_storage(self, job_name, destination, *source_uris):
         """Construct a job for loading data into a table from CloudStorage.
 
-        :type name: string
-        :param name: Name of the job.
+        :type job_name: string
+        :param job_name: Name of the job.
 
         :type destination: :class:`gcloud.bigquery.table.Table`
         :param destination: Table into which data is to be loaded.
@@ -117,14 +117,14 @@
         :rtype: :class:`gcloud.bigquery.job.LoadTableFromStorageJob`
         :returns: a new ``LoadTableFromStorageJob`` instance
         """
-        return LoadTableFromStorageJob(name, destination, source_uris,
+        return LoadTableFromStorageJob(job_name, destination, source_uris,
                                        client=self)
 
-    def copy_table(self, name, destination, *sources):
+    def copy_table(self, job_name, destination, *sources):
         """Construct a job for copying one or more tables into another table.
 
-        :type name: string
-        :param name: Name of the job.
+        :type job_name: string
+        :param job_name: Name of the job.
 
         :type destination: :class:`gcloud.bigquery.table.Table`
         :param destination: Table into which data is to be copied.
@@ -135,13 +135,13 @@
         :rtype: :class:`gcloud.bigquery.job.CopyJob`
         :returns: a new ``CopyJob`` instance
         """
-        return CopyJob(name, destination, sources, client=self)
+        return CopyJob(job_name, destination, sources, client=self)
 
-    def extract_table_to_storage(self, name, source, *destination_uris):
+    def extract_table_to_storage(self, job_name, source, *destination_uris):
         """Construct a job for extracting a table into Cloud Storage files.
 
-        :type name: string
-        :param name: Name of the job.
+        :type job_name: string
+        :param job_name: Name of the job.
 
         :type source: :class:`gcloud.bigquery.table.Table`
         :param source: table to be extracted.
@@ -153,14 +153,14 @@
         :rtype: :class:`gcloud.bigquery.job.ExtractTableToStorageJob`
         :returns: a new ``ExtractTableToStorageJob`` instance
         """
-        return ExtractTableToStorageJob(name, source, destination_uris,
+        return ExtractTableToStorageJob(job_name, source, destination_uris,
                                         client=self)
 
-    def run_async_query(self, name, query):
+    def run_async_query(self, job_name, query):
         """Construct a job for running a SQL query asynchronously.
 
-        :type name: string
-        :param name: Name of the job.
+        :type job_name: string
+        :param job_name: Name of the job.
 
         :type query: string
         :param query: SQL query to be executed
@@ -168,7 +168,7 @@
         :rtype: :class:`gcloud.bigquery.job.RunAsyncQueryJob`
         :returns: a new ``RunAsyncQueryJob`` instance
         """
-        return RunAsyncQueryJob(name, query, client=self)
+        return RunAsyncQueryJob(job_name, query, client=self)
 
     def run_sync_query(self, query):
         """Construct a job for running a SQL query synchronously.

{"golden_diff": "diff --git a/gcloud/bigquery/client.py b/gcloud/bigquery/client.py\n--- a/gcloud/bigquery/client.py\n+++ b/gcloud/bigquery/client.py\n@@ -91,22 +91,22 @@\n                     for resource in resp['datasets']]\n         return datasets, resp.get('nextPageToken')\n \n-    def dataset(self, name):\n+    def dataset(self, dataset_name):\n         \"\"\"Construct a dataset bound to this client.\n \n-        :type name: string\n-        :param name: Name of the dataset.\n+        :type dataset_name: string\n+        :param dataset_name: Name of the dataset.\n \n         :rtype: :class:`gcloud.bigquery.dataset.Dataset`\n         :returns: a new ``Dataset`` instance\n         \"\"\"\n-        return Dataset(name, client=self)\n+        return Dataset(dataset_name, client=self)\n \n-    def load_table_from_storage(self, name, destination, *source_uris):\n+    def load_table_from_storage(self, job_name, destination, *source_uris):\n         \"\"\"Construct a job for loading data into a table from CloudStorage.\n \n-        :type name: string\n-        :param name: Name of the job.\n+        :type job_name: string\n+        :param job_name: Name of the job.\n \n         :type destination: :class:`gcloud.bigquery.table.Table`\n         :param destination: Table into which data is to be loaded.\n@@ -117,14 +117,14 @@\n         :rtype: :class:`gcloud.bigquery.job.LoadTableFromStorageJob`\n         :returns: a new ``LoadTableFromStorageJob`` instance\n         \"\"\"\n-        return LoadTableFromStorageJob(name, destination, source_uris,\n+        return LoadTableFromStorageJob(job_name, destination, source_uris,\n                                        client=self)\n \n-    def copy_table(self, name, destination, *sources):\n+    def copy_table(self, job_name, destination, *sources):\n         \"\"\"Construct a job for copying one or more tables into another table.\n \n-        :type name: string\n-        :param name: Name of the job.\n+        :type job_name: string\n+        :param job_name: Name of the job.\n \n         :type destination: :class:`gcloud.bigquery.table.Table`\n         :param destination: Table into which data is to be copied.\n@@ -135,13 +135,13 @@\n         :rtype: :class:`gcloud.bigquery.job.CopyJob`\n         :returns: a new ``CopyJob`` instance\n         \"\"\"\n-        return CopyJob(name, destination, sources, client=self)\n+        return CopyJob(job_name, destination, sources, client=self)\n \n-    def extract_table_to_storage(self, name, source, *destination_uris):\n+    def extract_table_to_storage(self, job_name, source, *destination_uris):\n         \"\"\"Construct a job for extracting a table into Cloud Storage files.\n \n-        :type name: string\n-        :param name: Name of the job.\n+        :type job_name: string\n+        :param job_name: Name of the job.\n \n         :type source: :class:`gcloud.bigquery.table.Table`\n         :param source: table to be extracted.\n@@ -153,14 +153,14 @@\n         :rtype: :class:`gcloud.bigquery.job.ExtractTableToStorageJob`\n         :returns: a new ``ExtractTableToStorageJob`` instance\n         \"\"\"\n-        return ExtractTableToStorageJob(name, source, destination_uris,\n+        return ExtractTableToStorageJob(job_name, source, destination_uris,\n                                         client=self)\n \n-    def run_async_query(self, name, query):\n+    def run_async_query(self, job_name, query):\n         \"\"\"Construct a job for running a SQL query asynchronously.\n \n-        :type name: string\n-        :param name: Name of the job.\n+        :type job_name: string\n+        :param job_name: Name of the job.\n \n         :type query: string\n         :param query: SQL query to be executed\n@@ -168,7 +168,7 @@\n         :rtype: :class:`gcloud.bigquery.job.RunAsyncQueryJob`\n         :returns: a new ``RunAsyncQueryJob`` instance\n         \"\"\"\n-        return RunAsyncQueryJob(name, query, client=self)\n+        return RunAsyncQueryJob(job_name, query, client=self)\n \n     def run_sync_query(self, query):\n         \"\"\"Construct a job for running a SQL query synchronously.\n", "issue": "Change 'name' parameter to job constructors -> 'job_name'\nSee: https://github.com/GoogleCloudPlatform/gcloud-python/pull/1263/files#r46738307\n\n", "before_files": [{"content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"Client for interacting with the Google BigQuery API.\"\"\"\n\n\nfrom gcloud.client import JSONClient\nfrom gcloud.bigquery.connection import Connection\nfrom gcloud.bigquery.dataset import Dataset\nfrom gcloud.bigquery.job import CopyJob\nfrom gcloud.bigquery.job import ExtractTableToStorageJob\nfrom gcloud.bigquery.job import LoadTableFromStorageJob\nfrom gcloud.bigquery.job import RunAsyncQueryJob\nfrom gcloud.bigquery.job import RunSyncQueryJob\n\n\nclass Client(JSONClient):\n    \"\"\"Client to bundle configuration needed for API requests.\n\n    :type project: string\n    :param project: the project which the client acts on behalf of. Will be\n                    passed when creating a dataset / job.  If not passed,\n                    falls back to the default inferred from the environment.\n\n    :type credentials: :class:`oauth2client.client.OAuth2Credentials` or\n                       :class:`NoneType`\n    :param credentials: The OAuth2 Credentials to use for the connection\n                        owned by this client. If not passed (and if no ``http``\n                        object is passed), falls back to the default inferred\n                        from the environment.\n\n    :type http: :class:`httplib2.Http` or class that defines ``request()``.\n    :param http: An optional HTTP object to make requests. If not passed, an\n                 ``http`` object is created that is bound to the\n                 ``credentials`` for the current object.\n    \"\"\"\n\n    _connection_class = Connection\n\n    def list_datasets(self, include_all=False, max_results=None,\n                      page_token=None):\n        \"\"\"List datasets for the project associated with this client.\n\n        See:\n        https://cloud.google.com/bigquery/docs/reference/v2/datasets/list\n\n        :type include_all: boolean\n        :param include_all: True if results include hidden datasets.\n\n        :type max_results: int\n        :param max_results: maximum number of datasets to return, If not\n                            passed, defaults to a value set by the API.\n\n        :type page_token: string\n        :param page_token: opaque marker for the next \"page\" of datasets. If\n                           not passed, the API will return the first page of\n                           datasets.\n\n        :rtype: tuple, (list, str)\n        :returns: list of :class:`gcloud.bigquery.dataset.Dataset`, plus a\n                  \"next page token\" string:  if the token is not None,\n                  indicates that more datasets can be retrieved with another\n                  call (pass that value as ``page_token``).\n        \"\"\"\n        params = {}\n\n        if include_all:\n            params['all'] = True\n\n        if max_results is not None:\n            params['maxResults'] = max_results\n\n        if page_token is not None:\n            params['pageToken'] = page_token\n\n        path = '/projects/%s/datasets' % (self.project,)\n        resp = self.connection.api_request(method='GET', path=path,\n                                           query_params=params)\n        datasets = [Dataset.from_api_repr(resource, self)\n                    for resource in resp['datasets']]\n        return datasets, resp.get('nextPageToken')\n\n    def dataset(self, name):\n        \"\"\"Construct a dataset bound to this client.\n\n        :type name: string\n        :param name: Name of the dataset.\n\n        :rtype: :class:`gcloud.bigquery.dataset.Dataset`\n        :returns: a new ``Dataset`` instance\n        \"\"\"\n        return Dataset(name, client=self)\n\n    def load_table_from_storage(self, name, destination, *source_uris):\n        \"\"\"Construct a job for loading data into a table from CloudStorage.\n\n        :type name: string\n        :param name: Name of the job.\n\n        :type destination: :class:`gcloud.bigquery.table.Table`\n        :param destination: Table into which data is to be loaded.\n\n        :type source_uris: sequence of string\n        :param source_uris: URIs of data files to be loaded.\n\n        :rtype: :class:`gcloud.bigquery.job.LoadTableFromStorageJob`\n        :returns: a new ``LoadTableFromStorageJob`` instance\n        \"\"\"\n        return LoadTableFromStorageJob(name, destination, source_uris,\n                                       client=self)\n\n    def copy_table(self, name, destination, *sources):\n        \"\"\"Construct a job for copying one or more tables into another table.\n\n        :type name: string\n        :param name: Name of the job.\n\n        :type destination: :class:`gcloud.bigquery.table.Table`\n        :param destination: Table into which data is to be copied.\n\n        :type sources: sequence of :class:`gcloud.bigquery.table.Table`\n        :param sources: tables to be copied.\n\n        :rtype: :class:`gcloud.bigquery.job.CopyJob`\n        :returns: a new ``CopyJob`` instance\n        \"\"\"\n        return CopyJob(name, destination, sources, client=self)\n\n    def extract_table_to_storage(self, name, source, *destination_uris):\n        \"\"\"Construct a job for extracting a table into Cloud Storage files.\n\n        :type name: string\n        :param name: Name of the job.\n\n        :type source: :class:`gcloud.bigquery.table.Table`\n        :param source: table to be extracted.\n\n        :type destination_uris: sequence of string\n        :param destination_uris: URIs of CloudStorage file(s) into which\n                                 table data is to be extracted.\n\n        :rtype: :class:`gcloud.bigquery.job.ExtractTableToStorageJob`\n        :returns: a new ``ExtractTableToStorageJob`` instance\n        \"\"\"\n        return ExtractTableToStorageJob(name, source, destination_uris,\n                                        client=self)\n\n    def run_async_query(self, name, query):\n        \"\"\"Construct a job for running a SQL query asynchronously.\n\n        :type name: string\n        :param name: Name of the job.\n\n        :type query: string\n        :param query: SQL query to be executed\n\n        :rtype: :class:`gcloud.bigquery.job.RunAsyncQueryJob`\n        :returns: a new ``RunAsyncQueryJob`` instance\n        \"\"\"\n        return RunAsyncQueryJob(name, query, client=self)\n\n    def run_sync_query(self, query):\n        \"\"\"Construct a job for running a SQL query synchronously.\n\n        :type query: string\n        :param query: SQL query to be executed\n\n        :rtype: :class:`gcloud.bigquery.job.RunSyncQueryJob`\n        :returns: a new ``RunSyncQueryJob`` instance\n        \"\"\"\n        return RunSyncQueryJob(query, client=self)\n", "path": "gcloud/bigquery/client.py"}], "after_files": [{"content": "# Copyright 2015 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"Client for interacting with the Google BigQuery API.\"\"\"\n\n\nfrom gcloud.client import JSONClient\nfrom gcloud.bigquery.connection import Connection\nfrom gcloud.bigquery.dataset import Dataset\nfrom gcloud.bigquery.job import CopyJob\nfrom gcloud.bigquery.job import ExtractTableToStorageJob\nfrom gcloud.bigquery.job import LoadTableFromStorageJob\nfrom gcloud.bigquery.job import RunAsyncQueryJob\nfrom gcloud.bigquery.job import RunSyncQueryJob\n\n\nclass Client(JSONClient):\n    \"\"\"Client to bundle configuration needed for API requests.\n\n    :type project: string\n    :param project: the project which the client acts on behalf of. Will be\n                    passed when creating a dataset / job.  If not passed,\n                    falls back to the default inferred from the environment.\n\n    :type credentials: :class:`oauth2client.client.OAuth2Credentials` or\n                       :class:`NoneType`\n    :param credentials: The OAuth2 Credentials to use for the connection\n                        owned by this client. If not passed (and if no ``http``\n                        object is passed), falls back to the default inferred\n                        from the environment.\n\n    :type http: :class:`httplib2.Http` or class that defines ``request()``.\n    :param http: An optional HTTP object to make requests. If not passed, an\n                 ``http`` object is created that is bound to the\n                 ``credentials`` for the current object.\n    \"\"\"\n\n    _connection_class = Connection\n\n    def list_datasets(self, include_all=False, max_results=None,\n                      page_token=None):\n        \"\"\"List datasets for the project associated with this client.\n\n        See:\n        https://cloud.google.com/bigquery/docs/reference/v2/datasets/list\n\n        :type include_all: boolean\n        :param include_all: True if results include hidden datasets.\n\n        :type max_results: int\n        :param max_results: maximum number of datasets to return, If not\n                            passed, defaults to a value set by the API.\n\n        :type page_token: string\n        :param page_token: opaque marker for the next \"page\" of datasets. If\n                           not passed, the API will return the first page of\n                           datasets.\n\n        :rtype: tuple, (list, str)\n        :returns: list of :class:`gcloud.bigquery.dataset.Dataset`, plus a\n                  \"next page token\" string:  if the token is not None,\n                  indicates that more datasets can be retrieved with another\n                  call (pass that value as ``page_token``).\n        \"\"\"\n        params = {}\n\n        if include_all:\n            params['all'] = True\n\n        if max_results is not None:\n            params['maxResults'] = max_results\n\n        if page_token is not None:\n            params['pageToken'] = page_token\n\n        path = '/projects/%s/datasets' % (self.project,)\n        resp = self.connection.api_request(method='GET', path=path,\n                                           query_params=params)\n        datasets = [Dataset.from_api_repr(resource, self)\n                    for resource in resp['datasets']]\n        return datasets, resp.get('nextPageToken')\n\n    def dataset(self, dataset_name):\n        \"\"\"Construct a dataset bound to this client.\n\n        :type dataset_name: string\n        :param dataset_name: Name of the dataset.\n\n        :rtype: :class:`gcloud.bigquery.dataset.Dataset`\n        :returns: a new ``Dataset`` instance\n        \"\"\"\n        return Dataset(dataset_name, client=self)\n\n    def load_table_from_storage(self, job_name, destination, *source_uris):\n        \"\"\"Construct a job for loading data into a table from CloudStorage.\n\n        :type job_name: string\n        :param job_name: Name of the job.\n\n        :type destination: :class:`gcloud.bigquery.table.Table`\n        :param destination: Table into which data is to be loaded.\n\n        :type source_uris: sequence of string\n        :param source_uris: URIs of data files to be loaded.\n\n        :rtype: :class:`gcloud.bigquery.job.LoadTableFromStorageJob`\n        :returns: a new ``LoadTableFromStorageJob`` instance\n        \"\"\"\n        return LoadTableFromStorageJob(job_name, destination, source_uris,\n                                       client=self)\n\n    def copy_table(self, job_name, destination, *sources):\n        \"\"\"Construct a job for copying one or more tables into another table.\n\n        :type job_name: string\n        :param job_name: Name of the job.\n\n        :type destination: :class:`gcloud.bigquery.table.Table`\n        :param destination: Table into which data is to be copied.\n\n        :type sources: sequence of :class:`gcloud.bigquery.table.Table`\n        :param sources: tables to be copied.\n\n        :rtype: :class:`gcloud.bigquery.job.CopyJob`\n        :returns: a new ``CopyJob`` instance\n        \"\"\"\n        return CopyJob(job_name, destination, sources, client=self)\n\n    def extract_table_to_storage(self, job_name, source, *destination_uris):\n        \"\"\"Construct a job for extracting a table into Cloud Storage files.\n\n        :type job_name: string\n        :param job_name: Name of the job.\n\n        :type source: :class:`gcloud.bigquery.table.Table`\n        :param source: table to be extracted.\n\n        :type destination_uris: sequence of string\n        :param destination_uris: URIs of CloudStorage file(s) into which\n                                 table data is to be extracted.\n\n        :rtype: :class:`gcloud.bigquery.job.ExtractTableToStorageJob`\n        :returns: a new ``ExtractTableToStorageJob`` instance\n        \"\"\"\n        return ExtractTableToStorageJob(job_name, source, destination_uris,\n                                        client=self)\n\n    def run_async_query(self, job_name, query):\n        \"\"\"Construct a job for running a SQL query asynchronously.\n\n        :type job_name: string\n        :param job_name: Name of the job.\n\n        :type query: string\n        :param query: SQL query to be executed\n\n        :rtype: :class:`gcloud.bigquery.job.RunAsyncQueryJob`\n        :returns: a new ``RunAsyncQueryJob`` instance\n        \"\"\"\n        return RunAsyncQueryJob(job_name, query, client=self)\n\n    def run_sync_query(self, query):\n        \"\"\"Construct a job for running a SQL query synchronously.\n\n        :type query: string\n        :param query: SQL query to be executed\n\n        :rtype: :class:`gcloud.bigquery.job.RunSyncQueryJob`\n        :returns: a new ``RunSyncQueryJob`` instance\n        \"\"\"\n        return RunSyncQueryJob(query, client=self)\n", "path": "gcloud/bigquery/client.py"}]}