1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for Bigquery (v2).
24 *
25 * <p>
26 * A data platform for customers to create, manage, share and query data.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/bigquery/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Bigquery extends \Google\Service
36{
37  /** View and manage your data in Google BigQuery and see the email address for your Google Account. */
38  const BIGQUERY =
39      "https://www.googleapis.com/auth/bigquery";
40  /** Insert data into Google BigQuery. */
41  const BIGQUERY_INSERTDATA =
42      "https://www.googleapis.com/auth/bigquery.insertdata";
43  /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
44  const CLOUD_PLATFORM =
45      "https://www.googleapis.com/auth/cloud-platform";
46  /** View your data across Google Cloud services and see the email address of your Google Account. */
47  const CLOUD_PLATFORM_READ_ONLY =
48      "https://www.googleapis.com/auth/cloud-platform.read-only";
49  /** Manage your data and permissions in Cloud Storage and see the email address for your Google Account. */
50  const DEVSTORAGE_FULL_CONTROL =
51      "https://www.googleapis.com/auth/devstorage.full_control";
52  /** View your data in Google Cloud Storage. */
53  const DEVSTORAGE_READ_ONLY =
54      "https://www.googleapis.com/auth/devstorage.read_only";
55  /** Manage your data in Cloud Storage and see the email address of your Google Account. */
56  const DEVSTORAGE_READ_WRITE =
57      "https://www.googleapis.com/auth/devstorage.read_write";
58
59  public $datasets;
60  public $jobs;
61  public $models;
62  public $projects;
63  public $routines;
64  public $rowAccessPolicies;
65  public $tabledata;
66  public $tables;
67
68  /**
69   * Constructs the internal representation of the Bigquery service.
70   *
71   * @param Client|array $clientOrConfig The client used to deliver requests, or a
72   *                                     config array to pass to a new Client instance.
73   * @param string $rootUrl The root URL used for requests to the service.
74   */
75  public function __construct($clientOrConfig = [], $rootUrl = null)
76  {
77    parent::__construct($clientOrConfig);
78    $this->rootUrl = $rootUrl ?: 'https://bigquery.googleapis.com/';
79    $this->servicePath = 'bigquery/v2/';
80    $this->batchPath = 'batch/bigquery/v2';
81    $this->version = 'v2';
82    $this->serviceName = 'bigquery';
83
84    $this->datasets = new Bigquery\Resource\Datasets(
85        $this,
86        $this->serviceName,
87        'datasets',
88        [
89          'methods' => [
90            'delete' => [
91              'path' => 'projects/{projectId}/datasets/{datasetId}',
92              'httpMethod' => 'DELETE',
93              'parameters' => [
94                'projectId' => [
95                  'location' => 'path',
96                  'type' => 'string',
97                  'required' => true,
98                ],
99                'datasetId' => [
100                  'location' => 'path',
101                  'type' => 'string',
102                  'required' => true,
103                ],
104                'deleteContents' => [
105                  'location' => 'query',
106                  'type' => 'boolean',
107                ],
108              ],
109            ],'get' => [
110              'path' => 'projects/{projectId}/datasets/{datasetId}',
111              'httpMethod' => 'GET',
112              'parameters' => [
113                'projectId' => [
114                  'location' => 'path',
115                  'type' => 'string',
116                  'required' => true,
117                ],
118                'datasetId' => [
119                  'location' => 'path',
120                  'type' => 'string',
121                  'required' => true,
122                ],
123              ],
124            ],'insert' => [
125              'path' => 'projects/{projectId}/datasets',
126              'httpMethod' => 'POST',
127              'parameters' => [
128                'projectId' => [
129                  'location' => 'path',
130                  'type' => 'string',
131                  'required' => true,
132                ],
133              ],
134            ],'list' => [
135              'path' => 'projects/{projectId}/datasets',
136              'httpMethod' => 'GET',
137              'parameters' => [
138                'projectId' => [
139                  'location' => 'path',
140                  'type' => 'string',
141                  'required' => true,
142                ],
143                'all' => [
144                  'location' => 'query',
145                  'type' => 'boolean',
146                ],
147                'filter' => [
148                  'location' => 'query',
149                  'type' => 'string',
150                ],
151                'maxResults' => [
152                  'location' => 'query',
153                  'type' => 'integer',
154                ],
155                'pageToken' => [
156                  'location' => 'query',
157                  'type' => 'string',
158                ],
159              ],
160            ],'patch' => [
161              'path' => 'projects/{projectId}/datasets/{datasetId}',
162              'httpMethod' => 'PATCH',
163              'parameters' => [
164                'projectId' => [
165                  'location' => 'path',
166                  'type' => 'string',
167                  'required' => true,
168                ],
169                'datasetId' => [
170                  'location' => 'path',
171                  'type' => 'string',
172                  'required' => true,
173                ],
174              ],
175            ],'update' => [
176              'path' => 'projects/{projectId}/datasets/{datasetId}',
177              'httpMethod' => 'PUT',
178              'parameters' => [
179                'projectId' => [
180                  'location' => 'path',
181                  'type' => 'string',
182                  'required' => true,
183                ],
184                'datasetId' => [
185                  'location' => 'path',
186                  'type' => 'string',
187                  'required' => true,
188                ],
189              ],
190            ],
191          ]
192        ]
193    );
194    $this->jobs = new Bigquery\Resource\Jobs(
195        $this,
196        $this->serviceName,
197        'jobs',
198        [
199          'methods' => [
200            'cancel' => [
201              'path' => 'projects/{projectId}/jobs/{jobId}/cancel',
202              'httpMethod' => 'POST',
203              'parameters' => [
204                'projectId' => [
205                  'location' => 'path',
206                  'type' => 'string',
207                  'required' => true,
208                ],
209                'jobId' => [
210                  'location' => 'path',
211                  'type' => 'string',
212                  'required' => true,
213                ],
214                'location' => [
215                  'location' => 'query',
216                  'type' => 'string',
217                ],
218              ],
219            ],'delete' => [
220              'path' => 'projects/{+projectId}/jobs/{+jobId}/delete',
221              'httpMethod' => 'DELETE',
222              'parameters' => [
223                'projectId' => [
224                  'location' => 'path',
225                  'type' => 'string',
226                  'required' => true,
227                ],
228                'jobId' => [
229                  'location' => 'path',
230                  'type' => 'string',
231                  'required' => true,
232                ],
233                'location' => [
234                  'location' => 'query',
235                  'type' => 'string',
236                ],
237              ],
238            ],'get' => [
239              'path' => 'projects/{projectId}/jobs/{jobId}',
240              'httpMethod' => 'GET',
241              'parameters' => [
242                'projectId' => [
243                  'location' => 'path',
244                  'type' => 'string',
245                  'required' => true,
246                ],
247                'jobId' => [
248                  'location' => 'path',
249                  'type' => 'string',
250                  'required' => true,
251                ],
252                'location' => [
253                  'location' => 'query',
254                  'type' => 'string',
255                ],
256              ],
257            ],'getQueryResults' => [
258              'path' => 'projects/{projectId}/queries/{jobId}',
259              'httpMethod' => 'GET',
260              'parameters' => [
261                'projectId' => [
262                  'location' => 'path',
263                  'type' => 'string',
264                  'required' => true,
265                ],
266                'jobId' => [
267                  'location' => 'path',
268                  'type' => 'string',
269                  'required' => true,
270                ],
271                'location' => [
272                  'location' => 'query',
273                  'type' => 'string',
274                ],
275                'maxResults' => [
276                  'location' => 'query',
277                  'type' => 'integer',
278                ],
279                'pageToken' => [
280                  'location' => 'query',
281                  'type' => 'string',
282                ],
283                'startIndex' => [
284                  'location' => 'query',
285                  'type' => 'string',
286                ],
287                'timeoutMs' => [
288                  'location' => 'query',
289                  'type' => 'integer',
290                ],
291              ],
292            ],'insert' => [
293              'path' => 'projects/{projectId}/jobs',
294              'httpMethod' => 'POST',
295              'parameters' => [
296                'projectId' => [
297                  'location' => 'path',
298                  'type' => 'string',
299                  'required' => true,
300                ],
301              ],
302            ],'list' => [
303              'path' => 'projects/{projectId}/jobs',
304              'httpMethod' => 'GET',
305              'parameters' => [
306                'projectId' => [
307                  'location' => 'path',
308                  'type' => 'string',
309                  'required' => true,
310                ],
311                'allUsers' => [
312                  'location' => 'query',
313                  'type' => 'boolean',
314                ],
315                'maxCreationTime' => [
316                  'location' => 'query',
317                  'type' => 'string',
318                ],
319                'maxResults' => [
320                  'location' => 'query',
321                  'type' => 'integer',
322                ],
323                'minCreationTime' => [
324                  'location' => 'query',
325                  'type' => 'string',
326                ],
327                'pageToken' => [
328                  'location' => 'query',
329                  'type' => 'string',
330                ],
331                'parentJobId' => [
332                  'location' => 'query',
333                  'type' => 'string',
334                ],
335                'projection' => [
336                  'location' => 'query',
337                  'type' => 'string',
338                ],
339                'stateFilter' => [
340                  'location' => 'query',
341                  'type' => 'string',
342                  'repeated' => true,
343                ],
344              ],
345            ],'query' => [
346              'path' => 'projects/{projectId}/queries',
347              'httpMethod' => 'POST',
348              'parameters' => [
349                'projectId' => [
350                  'location' => 'path',
351                  'type' => 'string',
352                  'required' => true,
353                ],
354              ],
355            ],
356          ]
357        ]
358    );
359    $this->models = new Bigquery\Resource\Models(
360        $this,
361        $this->serviceName,
362        'models',
363        [
364          'methods' => [
365            'delete' => [
366              'path' => 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}',
367              'httpMethod' => 'DELETE',
368              'parameters' => [
369                'projectId' => [
370                  'location' => 'path',
371                  'type' => 'string',
372                  'required' => true,
373                ],
374                'datasetId' => [
375                  'location' => 'path',
376                  'type' => 'string',
377                  'required' => true,
378                ],
379                'modelId' => [
380                  'location' => 'path',
381                  'type' => 'string',
382                  'required' => true,
383                ],
384              ],
385            ],'get' => [
386              'path' => 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}',
387              'httpMethod' => 'GET',
388              'parameters' => [
389                'projectId' => [
390                  'location' => 'path',
391                  'type' => 'string',
392                  'required' => true,
393                ],
394                'datasetId' => [
395                  'location' => 'path',
396                  'type' => 'string',
397                  'required' => true,
398                ],
399                'modelId' => [
400                  'location' => 'path',
401                  'type' => 'string',
402                  'required' => true,
403                ],
404              ],
405            ],'list' => [
406              'path' => 'projects/{+projectId}/datasets/{+datasetId}/models',
407              'httpMethod' => 'GET',
408              'parameters' => [
409                'projectId' => [
410                  'location' => 'path',
411                  'type' => 'string',
412                  'required' => true,
413                ],
414                'datasetId' => [
415                  'location' => 'path',
416                  'type' => 'string',
417                  'required' => true,
418                ],
419                'maxResults' => [
420                  'location' => 'query',
421                  'type' => 'integer',
422                ],
423                'pageToken' => [
424                  'location' => 'query',
425                  'type' => 'string',
426                ],
427              ],
428            ],'patch' => [
429              'path' => 'projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}',
430              'httpMethod' => 'PATCH',
431              'parameters' => [
432                'projectId' => [
433                  'location' => 'path',
434                  'type' => 'string',
435                  'required' => true,
436                ],
437                'datasetId' => [
438                  'location' => 'path',
439                  'type' => 'string',
440                  'required' => true,
441                ],
442                'modelId' => [
443                  'location' => 'path',
444                  'type' => 'string',
445                  'required' => true,
446                ],
447              ],
448            ],
449          ]
450        ]
451    );
452    $this->projects = new Bigquery\Resource\Projects(
453        $this,
454        $this->serviceName,
455        'projects',
456        [
457          'methods' => [
458            'getServiceAccount' => [
459              'path' => 'projects/{projectId}/serviceAccount',
460              'httpMethod' => 'GET',
461              'parameters' => [
462                'projectId' => [
463                  'location' => 'path',
464                  'type' => 'string',
465                  'required' => true,
466                ],
467              ],
468            ],'list' => [
469              'path' => 'projects',
470              'httpMethod' => 'GET',
471              'parameters' => [
472                'maxResults' => [
473                  'location' => 'query',
474                  'type' => 'integer',
475                ],
476                'pageToken' => [
477                  'location' => 'query',
478                  'type' => 'string',
479                ],
480              ],
481            ],
482          ]
483        ]
484    );
485    $this->routines = new Bigquery\Resource\Routines(
486        $this,
487        $this->serviceName,
488        'routines',
489        [
490          'methods' => [
491            'delete' => [
492              'path' => 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}',
493              'httpMethod' => 'DELETE',
494              'parameters' => [
495                'projectId' => [
496                  'location' => 'path',
497                  'type' => 'string',
498                  'required' => true,
499                ],
500                'datasetId' => [
501                  'location' => 'path',
502                  'type' => 'string',
503                  'required' => true,
504                ],
505                'routineId' => [
506                  'location' => 'path',
507                  'type' => 'string',
508                  'required' => true,
509                ],
510              ],
511            ],'get' => [
512              'path' => 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}',
513              'httpMethod' => 'GET',
514              'parameters' => [
515                'projectId' => [
516                  'location' => 'path',
517                  'type' => 'string',
518                  'required' => true,
519                ],
520                'datasetId' => [
521                  'location' => 'path',
522                  'type' => 'string',
523                  'required' => true,
524                ],
525                'routineId' => [
526                  'location' => 'path',
527                  'type' => 'string',
528                  'required' => true,
529                ],
530                'readMask' => [
531                  'location' => 'query',
532                  'type' => 'string',
533                ],
534              ],
535            ],'insert' => [
536              'path' => 'projects/{+projectId}/datasets/{+datasetId}/routines',
537              'httpMethod' => 'POST',
538              'parameters' => [
539                'projectId' => [
540                  'location' => 'path',
541                  'type' => 'string',
542                  'required' => true,
543                ],
544                'datasetId' => [
545                  'location' => 'path',
546                  'type' => 'string',
547                  'required' => true,
548                ],
549              ],
550            ],'list' => [
551              'path' => 'projects/{+projectId}/datasets/{+datasetId}/routines',
552              'httpMethod' => 'GET',
553              'parameters' => [
554                'projectId' => [
555                  'location' => 'path',
556                  'type' => 'string',
557                  'required' => true,
558                ],
559                'datasetId' => [
560                  'location' => 'path',
561                  'type' => 'string',
562                  'required' => true,
563                ],
564                'filter' => [
565                  'location' => 'query',
566                  'type' => 'string',
567                ],
568                'maxResults' => [
569                  'location' => 'query',
570                  'type' => 'integer',
571                ],
572                'pageToken' => [
573                  'location' => 'query',
574                  'type' => 'string',
575                ],
576                'readMask' => [
577                  'location' => 'query',
578                  'type' => 'string',
579                ],
580              ],
581            ],'update' => [
582              'path' => 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}',
583              'httpMethod' => 'PUT',
584              'parameters' => [
585                'projectId' => [
586                  'location' => 'path',
587                  'type' => 'string',
588                  'required' => true,
589                ],
590                'datasetId' => [
591                  'location' => 'path',
592                  'type' => 'string',
593                  'required' => true,
594                ],
595                'routineId' => [
596                  'location' => 'path',
597                  'type' => 'string',
598                  'required' => true,
599                ],
600              ],
601            ],
602          ]
603        ]
604    );
605    $this->rowAccessPolicies = new Bigquery\Resource\RowAccessPolicies(
606        $this,
607        $this->serviceName,
608        'rowAccessPolicies',
609        [
610          'methods' => [
611            'getIamPolicy' => [
612              'path' => '{+resource}:getIamPolicy',
613              'httpMethod' => 'POST',
614              'parameters' => [
615                'resource' => [
616                  'location' => 'path',
617                  'type' => 'string',
618                  'required' => true,
619                ],
620              ],
621            ],'list' => [
622              'path' => 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies',
623              'httpMethod' => 'GET',
624              'parameters' => [
625                'projectId' => [
626                  'location' => 'path',
627                  'type' => 'string',
628                  'required' => true,
629                ],
630                'datasetId' => [
631                  'location' => 'path',
632                  'type' => 'string',
633                  'required' => true,
634                ],
635                'tableId' => [
636                  'location' => 'path',
637                  'type' => 'string',
638                  'required' => true,
639                ],
640                'pageSize' => [
641                  'location' => 'query',
642                  'type' => 'integer',
643                ],
644                'pageToken' => [
645                  'location' => 'query',
646                  'type' => 'string',
647                ],
648              ],
649            ],'setIamPolicy' => [
650              'path' => '{+resource}:setIamPolicy',
651              'httpMethod' => 'POST',
652              'parameters' => [
653                'resource' => [
654                  'location' => 'path',
655                  'type' => 'string',
656                  'required' => true,
657                ],
658              ],
659            ],'testIamPermissions' => [
660              'path' => '{+resource}:testIamPermissions',
661              'httpMethod' => 'POST',
662              'parameters' => [
663                'resource' => [
664                  'location' => 'path',
665                  'type' => 'string',
666                  'required' => true,
667                ],
668              ],
669            ],
670          ]
671        ]
672    );
673    $this->tabledata = new Bigquery\Resource\Tabledata(
674        $this,
675        $this->serviceName,
676        'tabledata',
677        [
678          'methods' => [
679            'insertAll' => [
680              'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll',
681              'httpMethod' => 'POST',
682              'parameters' => [
683                'projectId' => [
684                  'location' => 'path',
685                  'type' => 'string',
686                  'required' => true,
687                ],
688                'datasetId' => [
689                  'location' => 'path',
690                  'type' => 'string',
691                  'required' => true,
692                ],
693                'tableId' => [
694                  'location' => 'path',
695                  'type' => 'string',
696                  'required' => true,
697                ],
698              ],
699            ],'list' => [
700              'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data',
701              'httpMethod' => 'GET',
702              'parameters' => [
703                'projectId' => [
704                  'location' => 'path',
705                  'type' => 'string',
706                  'required' => true,
707                ],
708                'datasetId' => [
709                  'location' => 'path',
710                  'type' => 'string',
711                  'required' => true,
712                ],
713                'tableId' => [
714                  'location' => 'path',
715                  'type' => 'string',
716                  'required' => true,
717                ],
718                'maxResults' => [
719                  'location' => 'query',
720                  'type' => 'integer',
721                ],
722                'pageToken' => [
723                  'location' => 'query',
724                  'type' => 'string',
725                ],
726                'selectedFields' => [
727                  'location' => 'query',
728                  'type' => 'string',
729                ],
730                'startIndex' => [
731                  'location' => 'query',
732                  'type' => 'string',
733                ],
734              ],
735            ],
736          ]
737        ]
738    );
739    $this->tables = new Bigquery\Resource\Tables(
740        $this,
741        $this->serviceName,
742        'tables',
743        [
744          'methods' => [
745            'delete' => [
746              'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
747              'httpMethod' => 'DELETE',
748              'parameters' => [
749                'projectId' => [
750                  'location' => 'path',
751                  'type' => 'string',
752                  'required' => true,
753                ],
754                'datasetId' => [
755                  'location' => 'path',
756                  'type' => 'string',
757                  'required' => true,
758                ],
759                'tableId' => [
760                  'location' => 'path',
761                  'type' => 'string',
762                  'required' => true,
763                ],
764              ],
765            ],'get' => [
766              'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
767              'httpMethod' => 'GET',
768              'parameters' => [
769                'projectId' => [
770                  'location' => 'path',
771                  'type' => 'string',
772                  'required' => true,
773                ],
774                'datasetId' => [
775                  'location' => 'path',
776                  'type' => 'string',
777                  'required' => true,
778                ],
779                'tableId' => [
780                  'location' => 'path',
781                  'type' => 'string',
782                  'required' => true,
783                ],
784                'selectedFields' => [
785                  'location' => 'query',
786                  'type' => 'string',
787                ],
788              ],
789            ],'getIamPolicy' => [
790              'path' => '{+resource}:getIamPolicy',
791              'httpMethod' => 'POST',
792              'parameters' => [
793                'resource' => [
794                  'location' => 'path',
795                  'type' => 'string',
796                  'required' => true,
797                ],
798              ],
799            ],'insert' => [
800              'path' => 'projects/{projectId}/datasets/{datasetId}/tables',
801              'httpMethod' => 'POST',
802              'parameters' => [
803                'projectId' => [
804                  'location' => 'path',
805                  'type' => 'string',
806                  'required' => true,
807                ],
808                'datasetId' => [
809                  'location' => 'path',
810                  'type' => 'string',
811                  'required' => true,
812                ],
813              ],
814            ],'list' => [
815              'path' => 'projects/{projectId}/datasets/{datasetId}/tables',
816              'httpMethod' => 'GET',
817              'parameters' => [
818                'projectId' => [
819                  'location' => 'path',
820                  'type' => 'string',
821                  'required' => true,
822                ],
823                'datasetId' => [
824                  'location' => 'path',
825                  'type' => 'string',
826                  'required' => true,
827                ],
828                'maxResults' => [
829                  'location' => 'query',
830                  'type' => 'integer',
831                ],
832                'pageToken' => [
833                  'location' => 'query',
834                  'type' => 'string',
835                ],
836              ],
837            ],'patch' => [
838              'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
839              'httpMethod' => 'PATCH',
840              'parameters' => [
841                'projectId' => [
842                  'location' => 'path',
843                  'type' => 'string',
844                  'required' => true,
845                ],
846                'datasetId' => [
847                  'location' => 'path',
848                  'type' => 'string',
849                  'required' => true,
850                ],
851                'tableId' => [
852                  'location' => 'path',
853                  'type' => 'string',
854                  'required' => true,
855                ],
856                'autodetect_schema' => [
857                  'location' => 'query',
858                  'type' => 'boolean',
859                ],
860              ],
861            ],'setIamPolicy' => [
862              'path' => '{+resource}:setIamPolicy',
863              'httpMethod' => 'POST',
864              'parameters' => [
865                'resource' => [
866                  'location' => 'path',
867                  'type' => 'string',
868                  'required' => true,
869                ],
870              ],
871            ],'testIamPermissions' => [
872              'path' => '{+resource}:testIamPermissions',
873              'httpMethod' => 'POST',
874              'parameters' => [
875                'resource' => [
876                  'location' => 'path',
877                  'type' => 'string',
878                  'required' => true,
879                ],
880              ],
881            ],'update' => [
882              'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
883              'httpMethod' => 'PUT',
884              'parameters' => [
885                'projectId' => [
886                  'location' => 'path',
887                  'type' => 'string',
888                  'required' => true,
889                ],
890                'datasetId' => [
891                  'location' => 'path',
892                  'type' => 'string',
893                  'required' => true,
894                ],
895                'tableId' => [
896                  'location' => 'path',
897                  'type' => 'string',
898                  'required' => true,
899                ],
900                'autodetect_schema' => [
901                  'location' => 'query',
902                  'type' => 'boolean',
903                ],
904              ],
905            ],
906          ]
907        ]
908    );
909  }
910}
911
912// Adding a class alias for backwards compatibility with the previous class name.
913class_alias(Bigquery::class, 'Google_Service_Bigquery');
914