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