• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Generated client library for bigquery version v2."""
2# NOTE: This file is autogenerated and should not be edited by hand.
3from apitools.base.py import base_api
4from samples.bigquery_sample.bigquery_v2 import bigquery_v2_messages as messages
5
6
7class BigqueryV2(base_api.BaseApiClient):
8  """Generated client library for service bigquery version v2."""
9
10  MESSAGES_MODULE = messages
11  BASE_URL = u'https://www.googleapis.com/bigquery/v2/'
12  MTLS_BASE_URL = u''
13
14  _PACKAGE = u'bigquery'
15  _SCOPES = [u'https://www.googleapis.com/auth/bigquery', u'https://www.googleapis.com/auth/bigquery.insertdata', u'https://www.googleapis.com/auth/cloud-platform', u'https://www.googleapis.com/auth/cloud-platform.read-only', u'https://www.googleapis.com/auth/devstorage.full_control', u'https://www.googleapis.com/auth/devstorage.read_only', u'https://www.googleapis.com/auth/devstorage.read_write']
16  _VERSION = u'v2'
17  _CLIENT_ID = '1042881264118.apps.googleusercontent.com'
18  _CLIENT_SECRET = 'x_Tw5K8nnjoRAqULM9PFAC2b'
19  _USER_AGENT = 'x_Tw5K8nnjoRAqULM9PFAC2b'
20  _CLIENT_CLASS_NAME = u'BigqueryV2'
21  _URL_VERSION = u'v2'
22  _API_KEY = None
23
24  def __init__(self, url='', credentials=None,
25               get_credentials=True, http=None, model=None,
26               log_request=False, log_response=False,
27               credentials_args=None, default_global_params=None,
28               additional_http_headers=None, response_encoding=None):
29    """Create a new bigquery handle."""
30    url = url or self.BASE_URL
31    super(BigqueryV2, self).__init__(
32        url, credentials=credentials,
33        get_credentials=get_credentials, http=http, model=model,
34        log_request=log_request, log_response=log_response,
35        credentials_args=credentials_args,
36        default_global_params=default_global_params,
37        additional_http_headers=additional_http_headers,
38        response_encoding=response_encoding)
39    self.datasets = self.DatasetsService(self)
40    self.jobs = self.JobsService(self)
41    self.projects = self.ProjectsService(self)
42    self.tabledata = self.TabledataService(self)
43    self.tables = self.TablesService(self)
44
45  class DatasetsService(base_api.BaseApiService):
46    """Service class for the datasets resource."""
47
48    _NAME = u'datasets'
49
50    def __init__(self, client):
51      super(BigqueryV2.DatasetsService, self).__init__(client)
52      self._upload_configs = {
53          }
54
55    def Delete(self, request, global_params=None):
56      r"""Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.
57
58      Args:
59        request: (BigqueryDatasetsDeleteRequest) input message
60        global_params: (StandardQueryParameters, default: None) global arguments
61      Returns:
62        (BigqueryDatasetsDeleteResponse) The response message.
63      """
64      config = self.GetMethodConfig('Delete')
65      return self._RunMethod(
66          config, request, global_params=global_params)
67
68    Delete.method_config = lambda: base_api.ApiMethodInfo(
69        http_method=u'DELETE',
70        method_id=u'bigquery.datasets.delete',
71        ordered_params=[u'projectId', u'datasetId'],
72        path_params=[u'datasetId', u'projectId'],
73        query_params=[u'deleteContents'],
74        relative_path=u'projects/{projectId}/datasets/{datasetId}',
75        request_field='',
76        request_type_name=u'BigqueryDatasetsDeleteRequest',
77        response_type_name=u'BigqueryDatasetsDeleteResponse',
78        supports_download=False,
79    )
80
81    def Get(self, request, global_params=None):
82      r"""Returns the dataset specified by datasetID.
83
84      Args:
85        request: (BigqueryDatasetsGetRequest) input message
86        global_params: (StandardQueryParameters, default: None) global arguments
87      Returns:
88        (Dataset) The response message.
89      """
90      config = self.GetMethodConfig('Get')
91      return self._RunMethod(
92          config, request, global_params=global_params)
93
94    Get.method_config = lambda: base_api.ApiMethodInfo(
95        http_method=u'GET',
96        method_id=u'bigquery.datasets.get',
97        ordered_params=[u'projectId', u'datasetId'],
98        path_params=[u'datasetId', u'projectId'],
99        query_params=[],
100        relative_path=u'projects/{projectId}/datasets/{datasetId}',
101        request_field='',
102        request_type_name=u'BigqueryDatasetsGetRequest',
103        response_type_name=u'Dataset',
104        supports_download=False,
105    )
106
107    def Insert(self, request, global_params=None):
108      r"""Creates a new empty dataset.
109
110      Args:
111        request: (BigqueryDatasetsInsertRequest) input message
112        global_params: (StandardQueryParameters, default: None) global arguments
113      Returns:
114        (Dataset) The response message.
115      """
116      config = self.GetMethodConfig('Insert')
117      return self._RunMethod(
118          config, request, global_params=global_params)
119
120    Insert.method_config = lambda: base_api.ApiMethodInfo(
121        http_method=u'POST',
122        method_id=u'bigquery.datasets.insert',
123        ordered_params=[u'projectId'],
124        path_params=[u'projectId'],
125        query_params=[],
126        relative_path=u'projects/{projectId}/datasets',
127        request_field=u'dataset',
128        request_type_name=u'BigqueryDatasetsInsertRequest',
129        response_type_name=u'Dataset',
130        supports_download=False,
131    )
132
133    def List(self, request, global_params=None):
134      r"""Lists all datasets in the specified project to which you have been granted the READER dataset role.
135
136      Args:
137        request: (BigqueryDatasetsListRequest) input message
138        global_params: (StandardQueryParameters, default: None) global arguments
139      Returns:
140        (DatasetList) The response message.
141      """
142      config = self.GetMethodConfig('List')
143      return self._RunMethod(
144          config, request, global_params=global_params)
145
146    List.method_config = lambda: base_api.ApiMethodInfo(
147        http_method=u'GET',
148        method_id=u'bigquery.datasets.list',
149        ordered_params=[u'projectId'],
150        path_params=[u'projectId'],
151        query_params=[u'all', u'filter', u'maxResults', u'pageToken'],
152        relative_path=u'projects/{projectId}/datasets',
153        request_field='',
154        request_type_name=u'BigqueryDatasetsListRequest',
155        response_type_name=u'DatasetList',
156        supports_download=False,
157    )
158
159    def Patch(self, request, global_params=None):
160      r"""Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports patch semantics.
161
162      Args:
163        request: (BigqueryDatasetsPatchRequest) input message
164        global_params: (StandardQueryParameters, default: None) global arguments
165      Returns:
166        (Dataset) The response message.
167      """
168      config = self.GetMethodConfig('Patch')
169      return self._RunMethod(
170          config, request, global_params=global_params)
171
172    Patch.method_config = lambda: base_api.ApiMethodInfo(
173        http_method=u'PATCH',
174        method_id=u'bigquery.datasets.patch',
175        ordered_params=[u'projectId', u'datasetId'],
176        path_params=[u'datasetId', u'projectId'],
177        query_params=[],
178        relative_path=u'projects/{projectId}/datasets/{datasetId}',
179        request_field=u'dataset',
180        request_type_name=u'BigqueryDatasetsPatchRequest',
181        response_type_name=u'Dataset',
182        supports_download=False,
183    )
184
185    def Update(self, request, global_params=None):
186      r"""Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource.
187
188      Args:
189        request: (BigqueryDatasetsUpdateRequest) input message
190        global_params: (StandardQueryParameters, default: None) global arguments
191      Returns:
192        (Dataset) The response message.
193      """
194      config = self.GetMethodConfig('Update')
195      return self._RunMethod(
196          config, request, global_params=global_params)
197
198    Update.method_config = lambda: base_api.ApiMethodInfo(
199        http_method=u'PUT',
200        method_id=u'bigquery.datasets.update',
201        ordered_params=[u'projectId', u'datasetId'],
202        path_params=[u'datasetId', u'projectId'],
203        query_params=[],
204        relative_path=u'projects/{projectId}/datasets/{datasetId}',
205        request_field=u'dataset',
206        request_type_name=u'BigqueryDatasetsUpdateRequest',
207        response_type_name=u'Dataset',
208        supports_download=False,
209    )
210
211  class JobsService(base_api.BaseApiService):
212    """Service class for the jobs resource."""
213
214    _NAME = u'jobs'
215
216    def __init__(self, client):
217      super(BigqueryV2.JobsService, self).__init__(client)
218      self._upload_configs = {
219          'Insert': base_api.ApiUploadInfo(
220              accept=['*/*'],
221              max_size=None,
222              resumable_multipart=True,
223              resumable_path=u'/resumable/upload/bigquery/v2/projects/{projectId}/jobs',
224              simple_multipart=True,
225              simple_path=u'/upload/bigquery/v2/projects/{projectId}/jobs',
226          ),
227          }
228
229    def Cancel(self, request, global_params=None):
230      r"""Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs.
231
232      Args:
233        request: (BigqueryJobsCancelRequest) input message
234        global_params: (StandardQueryParameters, default: None) global arguments
235      Returns:
236        (JobCancelResponse) The response message.
237      """
238      config = self.GetMethodConfig('Cancel')
239      return self._RunMethod(
240          config, request, global_params=global_params)
241
242    Cancel.method_config = lambda: base_api.ApiMethodInfo(
243        http_method=u'POST',
244        method_id=u'bigquery.jobs.cancel',
245        ordered_params=[u'projectId', u'jobId'],
246        path_params=[u'jobId', u'projectId'],
247        query_params=[],
248        relative_path=u'project/{projectId}/jobs/{jobId}/cancel',
249        request_field='',
250        request_type_name=u'BigqueryJobsCancelRequest',
251        response_type_name=u'JobCancelResponse',
252        supports_download=False,
253    )
254
255    def Get(self, request, global_params=None):
256      r"""Returns information about a specific job. Job information is available for a six month period after creation. Requires that you're the person who ran the job, or have the Is Owner project role.
257
258      Args:
259        request: (BigqueryJobsGetRequest) input message
260        global_params: (StandardQueryParameters, default: None) global arguments
261      Returns:
262        (Job) The response message.
263      """
264      config = self.GetMethodConfig('Get')
265      return self._RunMethod(
266          config, request, global_params=global_params)
267
268    Get.method_config = lambda: base_api.ApiMethodInfo(
269        http_method=u'GET',
270        method_id=u'bigquery.jobs.get',
271        ordered_params=[u'projectId', u'jobId'],
272        path_params=[u'jobId', u'projectId'],
273        query_params=[],
274        relative_path=u'projects/{projectId}/jobs/{jobId}',
275        request_field='',
276        request_type_name=u'BigqueryJobsGetRequest',
277        response_type_name=u'Job',
278        supports_download=False,
279    )
280
281    def GetQueryResults(self, request, global_params=None):
282      r"""Retrieves the results of a query job.
283
284      Args:
285        request: (BigqueryJobsGetQueryResultsRequest) input message
286        global_params: (StandardQueryParameters, default: None) global arguments
287      Returns:
288        (GetQueryResultsResponse) The response message.
289      """
290      config = self.GetMethodConfig('GetQueryResults')
291      return self._RunMethod(
292          config, request, global_params=global_params)
293
294    GetQueryResults.method_config = lambda: base_api.ApiMethodInfo(
295        http_method=u'GET',
296        method_id=u'bigquery.jobs.getQueryResults',
297        ordered_params=[u'projectId', u'jobId'],
298        path_params=[u'jobId', u'projectId'],
299        query_params=[u'maxResults', u'pageToken', u'startIndex', u'timeoutMs'],
300        relative_path=u'projects/{projectId}/queries/{jobId}',
301        request_field='',
302        request_type_name=u'BigqueryJobsGetQueryResultsRequest',
303        response_type_name=u'GetQueryResultsResponse',
304        supports_download=False,
305    )
306
307    def Insert(self, request, global_params=None, upload=None):
308      r"""Starts a new asynchronous job. Requires the Can View project role.
309
310      Args:
311        request: (BigqueryJobsInsertRequest) input message
312        global_params: (StandardQueryParameters, default: None) global arguments
313        upload: (Upload, default: None) If present, upload
314            this stream with the request.
315      Returns:
316        (Job) The response message.
317      """
318      config = self.GetMethodConfig('Insert')
319      upload_config = self.GetUploadConfig('Insert')
320      return self._RunMethod(
321          config, request, global_params=global_params,
322          upload=upload, upload_config=upload_config)
323
324    Insert.method_config = lambda: base_api.ApiMethodInfo(
325        http_method=u'POST',
326        method_id=u'bigquery.jobs.insert',
327        ordered_params=[u'projectId'],
328        path_params=[u'projectId'],
329        query_params=[],
330        relative_path=u'projects/{projectId}/jobs',
331        request_field=u'job',
332        request_type_name=u'BigqueryJobsInsertRequest',
333        response_type_name=u'Job',
334        supports_download=False,
335    )
336
337    def List(self, request, global_params=None):
338      r"""Lists all jobs that you started in the specified project. Job information is available for a six month period after creation. The job list is sorted in reverse chronological order, by job creation time. Requires the Can View project role, or the Is Owner project role if you set the allUsers property.
339
340      Args:
341        request: (BigqueryJobsListRequest) input message
342        global_params: (StandardQueryParameters, default: None) global arguments
343      Returns:
344        (JobList) The response message.
345      """
346      config = self.GetMethodConfig('List')
347      return self._RunMethod(
348          config, request, global_params=global_params)
349
350    List.method_config = lambda: base_api.ApiMethodInfo(
351        http_method=u'GET',
352        method_id=u'bigquery.jobs.list',
353        ordered_params=[u'projectId'],
354        path_params=[u'projectId'],
355        query_params=[u'allUsers', u'maxResults', u'pageToken', u'projection', u'stateFilter'],
356        relative_path=u'projects/{projectId}/jobs',
357        request_field='',
358        request_type_name=u'BigqueryJobsListRequest',
359        response_type_name=u'JobList',
360        supports_download=False,
361    )
362
363    def Query(self, request, global_params=None):
364      r"""Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.
365
366      Args:
367        request: (BigqueryJobsQueryRequest) input message
368        global_params: (StandardQueryParameters, default: None) global arguments
369      Returns:
370        (QueryResponse) The response message.
371      """
372      config = self.GetMethodConfig('Query')
373      return self._RunMethod(
374          config, request, global_params=global_params)
375
376    Query.method_config = lambda: base_api.ApiMethodInfo(
377        http_method=u'POST',
378        method_id=u'bigquery.jobs.query',
379        ordered_params=[u'projectId'],
380        path_params=[u'projectId'],
381        query_params=[],
382        relative_path=u'projects/{projectId}/queries',
383        request_field=u'queryRequest',
384        request_type_name=u'BigqueryJobsQueryRequest',
385        response_type_name=u'QueryResponse',
386        supports_download=False,
387    )
388
389  class ProjectsService(base_api.BaseApiService):
390    """Service class for the projects resource."""
391
392    _NAME = u'projects'
393
394    def __init__(self, client):
395      super(BigqueryV2.ProjectsService, self).__init__(client)
396      self._upload_configs = {
397          }
398
399    def List(self, request, global_params=None):
400      r"""Lists all projects to which you have been granted any project role.
401
402      Args:
403        request: (BigqueryProjectsListRequest) input message
404        global_params: (StandardQueryParameters, default: None) global arguments
405      Returns:
406        (ProjectList) The response message.
407      """
408      config = self.GetMethodConfig('List')
409      return self._RunMethod(
410          config, request, global_params=global_params)
411
412    List.method_config = lambda: base_api.ApiMethodInfo(
413        http_method=u'GET',
414        method_id=u'bigquery.projects.list',
415        ordered_params=[],
416        path_params=[],
417        query_params=[u'maxResults', u'pageToken'],
418        relative_path=u'projects',
419        request_field='',
420        request_type_name=u'BigqueryProjectsListRequest',
421        response_type_name=u'ProjectList',
422        supports_download=False,
423    )
424
425  class TabledataService(base_api.BaseApiService):
426    """Service class for the tabledata resource."""
427
428    _NAME = u'tabledata'
429
430    def __init__(self, client):
431      super(BigqueryV2.TabledataService, self).__init__(client)
432      self._upload_configs = {
433          }
434
435    def InsertAll(self, request, global_params=None):
436      r"""Streams data into BigQuery one record at a time without needing to run a load job. Requires the WRITER dataset role.
437
438      Args:
439        request: (BigqueryTabledataInsertAllRequest) input message
440        global_params: (StandardQueryParameters, default: None) global arguments
441      Returns:
442        (TableDataInsertAllResponse) The response message.
443      """
444      config = self.GetMethodConfig('InsertAll')
445      return self._RunMethod(
446          config, request, global_params=global_params)
447
448    InsertAll.method_config = lambda: base_api.ApiMethodInfo(
449        http_method=u'POST',
450        method_id=u'bigquery.tabledata.insertAll',
451        ordered_params=[u'projectId', u'datasetId', u'tableId'],
452        path_params=[u'datasetId', u'projectId', u'tableId'],
453        query_params=[],
454        relative_path=u'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll',
455        request_field=u'tableDataInsertAllRequest',
456        request_type_name=u'BigqueryTabledataInsertAllRequest',
457        response_type_name=u'TableDataInsertAllResponse',
458        supports_download=False,
459    )
460
461    def List(self, request, global_params=None):
462      r"""Retrieves table data from a specified set of rows. Requires the READER dataset role.
463
464      Args:
465        request: (BigqueryTabledataListRequest) input message
466        global_params: (StandardQueryParameters, default: None) global arguments
467      Returns:
468        (TableDataList) The response message.
469      """
470      config = self.GetMethodConfig('List')
471      return self._RunMethod(
472          config, request, global_params=global_params)
473
474    List.method_config = lambda: base_api.ApiMethodInfo(
475        http_method=u'GET',
476        method_id=u'bigquery.tabledata.list',
477        ordered_params=[u'projectId', u'datasetId', u'tableId'],
478        path_params=[u'datasetId', u'projectId', u'tableId'],
479        query_params=[u'maxResults', u'pageToken', u'startIndex'],
480        relative_path=u'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data',
481        request_field='',
482        request_type_name=u'BigqueryTabledataListRequest',
483        response_type_name=u'TableDataList',
484        supports_download=False,
485    )
486
487  class TablesService(base_api.BaseApiService):
488    """Service class for the tables resource."""
489
490    _NAME = u'tables'
491
492    def __init__(self, client):
493      super(BigqueryV2.TablesService, self).__init__(client)
494      self._upload_configs = {
495          }
496
497    def Delete(self, request, global_params=None):
498      r"""Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted.
499
500      Args:
501        request: (BigqueryTablesDeleteRequest) input message
502        global_params: (StandardQueryParameters, default: None) global arguments
503      Returns:
504        (BigqueryTablesDeleteResponse) The response message.
505      """
506      config = self.GetMethodConfig('Delete')
507      return self._RunMethod(
508          config, request, global_params=global_params)
509
510    Delete.method_config = lambda: base_api.ApiMethodInfo(
511        http_method=u'DELETE',
512        method_id=u'bigquery.tables.delete',
513        ordered_params=[u'projectId', u'datasetId', u'tableId'],
514        path_params=[u'datasetId', u'projectId', u'tableId'],
515        query_params=[],
516        relative_path=u'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
517        request_field='',
518        request_type_name=u'BigqueryTablesDeleteRequest',
519        response_type_name=u'BigqueryTablesDeleteResponse',
520        supports_download=False,
521    )
522
523    def Get(self, request, global_params=None):
524      r"""Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.
525
526      Args:
527        request: (BigqueryTablesGetRequest) input message
528        global_params: (StandardQueryParameters, default: None) global arguments
529      Returns:
530        (Table) The response message.
531      """
532      config = self.GetMethodConfig('Get')
533      return self._RunMethod(
534          config, request, global_params=global_params)
535
536    Get.method_config = lambda: base_api.ApiMethodInfo(
537        http_method=u'GET',
538        method_id=u'bigquery.tables.get',
539        ordered_params=[u'projectId', u'datasetId', u'tableId'],
540        path_params=[u'datasetId', u'projectId', u'tableId'],
541        query_params=[],
542        relative_path=u'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
543        request_field='',
544        request_type_name=u'BigqueryTablesGetRequest',
545        response_type_name=u'Table',
546        supports_download=False,
547    )
548
549    def Insert(self, request, global_params=None):
550      r"""Creates a new, empty table in the dataset.
551
552      Args:
553        request: (BigqueryTablesInsertRequest) input message
554        global_params: (StandardQueryParameters, default: None) global arguments
555      Returns:
556        (Table) The response message.
557      """
558      config = self.GetMethodConfig('Insert')
559      return self._RunMethod(
560          config, request, global_params=global_params)
561
562    Insert.method_config = lambda: base_api.ApiMethodInfo(
563        http_method=u'POST',
564        method_id=u'bigquery.tables.insert',
565        ordered_params=[u'projectId', u'datasetId'],
566        path_params=[u'datasetId', u'projectId'],
567        query_params=[],
568        relative_path=u'projects/{projectId}/datasets/{datasetId}/tables',
569        request_field=u'table',
570        request_type_name=u'BigqueryTablesInsertRequest',
571        response_type_name=u'Table',
572        supports_download=False,
573    )
574
575    def List(self, request, global_params=None):
576      r"""Lists all tables in the specified dataset. Requires the READER dataset role.
577
578      Args:
579        request: (BigqueryTablesListRequest) input message
580        global_params: (StandardQueryParameters, default: None) global arguments
581      Returns:
582        (TableList) The response message.
583      """
584      config = self.GetMethodConfig('List')
585      return self._RunMethod(
586          config, request, global_params=global_params)
587
588    List.method_config = lambda: base_api.ApiMethodInfo(
589        http_method=u'GET',
590        method_id=u'bigquery.tables.list',
591        ordered_params=[u'projectId', u'datasetId'],
592        path_params=[u'datasetId', u'projectId'],
593        query_params=[u'maxResults', u'pageToken'],
594        relative_path=u'projects/{projectId}/datasets/{datasetId}/tables',
595        request_field='',
596        request_type_name=u'BigqueryTablesListRequest',
597        response_type_name=u'TableList',
598        supports_download=False,
599    )
600
601    def Patch(self, request, global_params=None):
602      r"""Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.
603
604      Args:
605        request: (BigqueryTablesPatchRequest) input message
606        global_params: (StandardQueryParameters, default: None) global arguments
607      Returns:
608        (Table) The response message.
609      """
610      config = self.GetMethodConfig('Patch')
611      return self._RunMethod(
612          config, request, global_params=global_params)
613
614    Patch.method_config = lambda: base_api.ApiMethodInfo(
615        http_method=u'PATCH',
616        method_id=u'bigquery.tables.patch',
617        ordered_params=[u'projectId', u'datasetId', u'tableId'],
618        path_params=[u'datasetId', u'projectId', u'tableId'],
619        query_params=[],
620        relative_path=u'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
621        request_field=u'table',
622        request_type_name=u'BigqueryTablesPatchRequest',
623        response_type_name=u'Table',
624        supports_download=False,
625    )
626
627    def Update(self, request, global_params=None):
628      r"""Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource.
629
630      Args:
631        request: (BigqueryTablesUpdateRequest) input message
632        global_params: (StandardQueryParameters, default: None) global arguments
633      Returns:
634        (Table) The response message.
635      """
636      config = self.GetMethodConfig('Update')
637      return self._RunMethod(
638          config, request, global_params=global_params)
639
640    Update.method_config = lambda: base_api.ApiMethodInfo(
641        http_method=u'PUT',
642        method_id=u'bigquery.tables.update',
643        ordered_params=[u'projectId', u'datasetId', u'tableId'],
644        path_params=[u'datasetId', u'projectId', u'tableId'],
645        query_params=[],
646        relative_path=u'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
647        request_field=u'table',
648        request_type_name=u'BigqueryTablesUpdateRequest',
649        response_type_name=u'Table',
650        supports_download=False,
651    )
652