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/**
19 * Service definition for BigQueryDataTransfer (v1).
20 *
21 * <p>
22 * Schedule queries or transfer external data from SaaS applications to Google
23 * BigQuery on a regular basis.</p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://cloud.google.com/bigquery/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32class Google_Service_BigQueryDataTransfer extends Google_Service
33{
34  /** View and manage your data in Google BigQuery. */
35  const BIGQUERY =
36      "https://www.googleapis.com/auth/bigquery";
37  /** View and manage your data across Google Cloud Platform services. */
38  const CLOUD_PLATFORM =
39      "https://www.googleapis.com/auth/cloud-platform";
40  /** View your data across Google Cloud Platform services. */
41  const CLOUD_PLATFORM_READ_ONLY =
42      "https://www.googleapis.com/auth/cloud-platform.read-only";
43
44  public $projects_dataSources;
45  public $projects_locations;
46  public $projects_locations_dataSources;
47  public $projects_locations_transferConfigs;
48  public $projects_locations_transferConfigs_runs;
49  public $projects_locations_transferConfigs_runs_transferLogs;
50  public $projects_transferConfigs;
51  public $projects_transferConfigs_runs;
52  public $projects_transferConfigs_runs_transferLogs;
53
54  /**
55   * Constructs the internal representation of the BigQueryDataTransfer service.
56   *
57   * @param Google_Client $client
58   */
59  public function __construct(Google_Client $client)
60  {
61    parent::__construct($client);
62    $this->rootUrl = 'https://bigquerydatatransfer.googleapis.com/';
63    $this->servicePath = '';
64    $this->batchPath = 'batch';
65    $this->version = 'v1';
66    $this->serviceName = 'bigquerydatatransfer';
67
68    $this->projects_dataSources = new Google_Service_BigQueryDataTransfer_Resource_ProjectsDataSources(
69        $this,
70        $this->serviceName,
71        'dataSources',
72        array(
73          'methods' => array(
74            'checkValidCreds' => array(
75              'path' => 'v1/{+name}:checkValidCreds',
76              'httpMethod' => 'POST',
77              'parameters' => array(
78                'name' => array(
79                  'location' => 'path',
80                  'type' => 'string',
81                  'required' => true,
82                ),
83              ),
84            ),'get' => array(
85              'path' => 'v1/{+name}',
86              'httpMethod' => 'GET',
87              'parameters' => array(
88                'name' => array(
89                  'location' => 'path',
90                  'type' => 'string',
91                  'required' => true,
92                ),
93              ),
94            ),'list' => array(
95              'path' => 'v1/{+parent}/dataSources',
96              'httpMethod' => 'GET',
97              'parameters' => array(
98                'parent' => array(
99                  'location' => 'path',
100                  'type' => 'string',
101                  'required' => true,
102                ),
103                'pageToken' => array(
104                  'location' => 'query',
105                  'type' => 'string',
106                ),
107                'pageSize' => array(
108                  'location' => 'query',
109                  'type' => 'integer',
110                ),
111              ),
112            ),
113          )
114        )
115    );
116    $this->projects_locations = new Google_Service_BigQueryDataTransfer_Resource_ProjectsLocations(
117        $this,
118        $this->serviceName,
119        'locations',
120        array(
121          'methods' => array(
122            'get' => array(
123              'path' => 'v1/{+name}',
124              'httpMethod' => 'GET',
125              'parameters' => array(
126                'name' => array(
127                  'location' => 'path',
128                  'type' => 'string',
129                  'required' => true,
130                ),
131              ),
132            ),'list' => array(
133              'path' => 'v1/{+name}/locations',
134              'httpMethod' => 'GET',
135              'parameters' => array(
136                'name' => array(
137                  'location' => 'path',
138                  'type' => 'string',
139                  'required' => true,
140                ),
141                'pageSize' => array(
142                  'location' => 'query',
143                  'type' => 'integer',
144                ),
145                'filter' => array(
146                  'location' => 'query',
147                  'type' => 'string',
148                ),
149                'pageToken' => array(
150                  'location' => 'query',
151                  'type' => 'string',
152                ),
153              ),
154            ),
155          )
156        )
157    );
158    $this->projects_locations_dataSources = new Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsDataSources(
159        $this,
160        $this->serviceName,
161        'dataSources',
162        array(
163          'methods' => array(
164            'checkValidCreds' => array(
165              'path' => 'v1/{+name}:checkValidCreds',
166              'httpMethod' => 'POST',
167              'parameters' => array(
168                'name' => array(
169                  'location' => 'path',
170                  'type' => 'string',
171                  'required' => true,
172                ),
173              ),
174            ),'get' => array(
175              'path' => 'v1/{+name}',
176              'httpMethod' => 'GET',
177              'parameters' => array(
178                'name' => array(
179                  'location' => 'path',
180                  'type' => 'string',
181                  'required' => true,
182                ),
183              ),
184            ),'list' => array(
185              'path' => 'v1/{+parent}/dataSources',
186              'httpMethod' => 'GET',
187              'parameters' => array(
188                'parent' => array(
189                  'location' => 'path',
190                  'type' => 'string',
191                  'required' => true,
192                ),
193                'pageToken' => array(
194                  'location' => 'query',
195                  'type' => 'string',
196                ),
197                'pageSize' => array(
198                  'location' => 'query',
199                  'type' => 'integer',
200                ),
201              ),
202            ),
203          )
204        )
205    );
206    $this->projects_locations_transferConfigs = new Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConfigs(
207        $this,
208        $this->serviceName,
209        'transferConfigs',
210        array(
211          'methods' => array(
212            'create' => array(
213              'path' => 'v1/{+parent}/transferConfigs',
214              'httpMethod' => 'POST',
215              'parameters' => array(
216                'parent' => array(
217                  'location' => 'path',
218                  'type' => 'string',
219                  'required' => true,
220                ),
221                'versionInfo' => array(
222                  'location' => 'query',
223                  'type' => 'string',
224                ),
225                'authorizationCode' => array(
226                  'location' => 'query',
227                  'type' => 'string',
228                ),
229              ),
230            ),'delete' => array(
231              'path' => 'v1/{+name}',
232              'httpMethod' => 'DELETE',
233              'parameters' => array(
234                'name' => array(
235                  'location' => 'path',
236                  'type' => 'string',
237                  'required' => true,
238                ),
239              ),
240            ),'get' => array(
241              'path' => 'v1/{+name}',
242              'httpMethod' => 'GET',
243              'parameters' => array(
244                'name' => array(
245                  'location' => 'path',
246                  'type' => 'string',
247                  'required' => true,
248                ),
249              ),
250            ),'list' => array(
251              'path' => 'v1/{+parent}/transferConfigs',
252              'httpMethod' => 'GET',
253              'parameters' => array(
254                'parent' => array(
255                  'location' => 'path',
256                  'type' => 'string',
257                  'required' => true,
258                ),
259                'pageToken' => array(
260                  'location' => 'query',
261                  'type' => 'string',
262                ),
263                'pageSize' => array(
264                  'location' => 'query',
265                  'type' => 'integer',
266                ),
267                'dataSourceIds' => array(
268                  'location' => 'query',
269                  'type' => 'string',
270                  'repeated' => true,
271                ),
272              ),
273            ),'patch' => array(
274              'path' => 'v1/{+name}',
275              'httpMethod' => 'PATCH',
276              'parameters' => array(
277                'name' => array(
278                  'location' => 'path',
279                  'type' => 'string',
280                  'required' => true,
281                ),
282                'updateMask' => array(
283                  'location' => 'query',
284                  'type' => 'string',
285                ),
286                'versionInfo' => array(
287                  'location' => 'query',
288                  'type' => 'string',
289                ),
290                'authorizationCode' => array(
291                  'location' => 'query',
292                  'type' => 'string',
293                ),
294              ),
295            ),'scheduleRuns' => array(
296              'path' => 'v1/{+parent}:scheduleRuns',
297              'httpMethod' => 'POST',
298              'parameters' => array(
299                'parent' => array(
300                  'location' => 'path',
301                  'type' => 'string',
302                  'required' => true,
303                ),
304              ),
305            ),'startManualRuns' => array(
306              'path' => 'v1/{+parent}:startManualRuns',
307              'httpMethod' => 'POST',
308              'parameters' => array(
309                'parent' => array(
310                  'location' => 'path',
311                  'type' => 'string',
312                  'required' => true,
313                ),
314              ),
315            ),
316          )
317        )
318    );
319    $this->projects_locations_transferConfigs_runs = new Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConfigsRuns(
320        $this,
321        $this->serviceName,
322        'runs',
323        array(
324          'methods' => array(
325            'delete' => array(
326              'path' => 'v1/{+name}',
327              'httpMethod' => 'DELETE',
328              'parameters' => array(
329                'name' => array(
330                  'location' => 'path',
331                  'type' => 'string',
332                  'required' => true,
333                ),
334              ),
335            ),'get' => array(
336              'path' => 'v1/{+name}',
337              'httpMethod' => 'GET',
338              'parameters' => array(
339                'name' => array(
340                  'location' => 'path',
341                  'type' => 'string',
342                  'required' => true,
343                ),
344              ),
345            ),'list' => array(
346              'path' => 'v1/{+parent}/runs',
347              'httpMethod' => 'GET',
348              'parameters' => array(
349                'parent' => array(
350                  'location' => 'path',
351                  'type' => 'string',
352                  'required' => true,
353                ),
354                'runAttempt' => array(
355                  'location' => 'query',
356                  'type' => 'string',
357                ),
358                'pageToken' => array(
359                  'location' => 'query',
360                  'type' => 'string',
361                ),
362                'states' => array(
363                  'location' => 'query',
364                  'type' => 'string',
365                  'repeated' => true,
366                ),
367                'pageSize' => array(
368                  'location' => 'query',
369                  'type' => 'integer',
370                ),
371              ),
372            ),
373          )
374        )
375    );
376    $this->projects_locations_transferConfigs_runs_transferLogs = new Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConfigsRunsTransferLogs(
377        $this,
378        $this->serviceName,
379        'transferLogs',
380        array(
381          'methods' => array(
382            'list' => array(
383              'path' => 'v1/{+parent}/transferLogs',
384              'httpMethod' => 'GET',
385              'parameters' => array(
386                'parent' => array(
387                  'location' => 'path',
388                  'type' => 'string',
389                  'required' => true,
390                ),
391                'pageToken' => array(
392                  'location' => 'query',
393                  'type' => 'string',
394                ),
395                'pageSize' => array(
396                  'location' => 'query',
397                  'type' => 'integer',
398                ),
399                'messageTypes' => array(
400                  'location' => 'query',
401                  'type' => 'string',
402                  'repeated' => true,
403                ),
404              ),
405            ),
406          )
407        )
408    );
409    $this->projects_transferConfigs = new Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigs(
410        $this,
411        $this->serviceName,
412        'transferConfigs',
413        array(
414          'methods' => array(
415            'create' => array(
416              'path' => 'v1/{+parent}/transferConfigs',
417              'httpMethod' => 'POST',
418              'parameters' => array(
419                'parent' => array(
420                  'location' => 'path',
421                  'type' => 'string',
422                  'required' => true,
423                ),
424                'versionInfo' => array(
425                  'location' => 'query',
426                  'type' => 'string',
427                ),
428                'authorizationCode' => array(
429                  'location' => 'query',
430                  'type' => 'string',
431                ),
432              ),
433            ),'delete' => array(
434              'path' => 'v1/{+name}',
435              'httpMethod' => 'DELETE',
436              'parameters' => array(
437                'name' => array(
438                  'location' => 'path',
439                  'type' => 'string',
440                  'required' => true,
441                ),
442              ),
443            ),'get' => array(
444              'path' => 'v1/{+name}',
445              'httpMethod' => 'GET',
446              'parameters' => array(
447                'name' => array(
448                  'location' => 'path',
449                  'type' => 'string',
450                  'required' => true,
451                ),
452              ),
453            ),'list' => array(
454              'path' => 'v1/{+parent}/transferConfigs',
455              'httpMethod' => 'GET',
456              'parameters' => array(
457                'parent' => array(
458                  'location' => 'path',
459                  'type' => 'string',
460                  'required' => true,
461                ),
462                'pageSize' => array(
463                  'location' => 'query',
464                  'type' => 'integer',
465                ),
466                'dataSourceIds' => array(
467                  'location' => 'query',
468                  'type' => 'string',
469                  'repeated' => true,
470                ),
471                'pageToken' => array(
472                  'location' => 'query',
473                  'type' => 'string',
474                ),
475              ),
476            ),'patch' => array(
477              'path' => 'v1/{+name}',
478              'httpMethod' => 'PATCH',
479              'parameters' => array(
480                'name' => array(
481                  'location' => 'path',
482                  'type' => 'string',
483                  'required' => true,
484                ),
485                'versionInfo' => array(
486                  'location' => 'query',
487                  'type' => 'string',
488                ),
489                'authorizationCode' => array(
490                  'location' => 'query',
491                  'type' => 'string',
492                ),
493                'updateMask' => array(
494                  'location' => 'query',
495                  'type' => 'string',
496                ),
497              ),
498            ),'scheduleRuns' => array(
499              'path' => 'v1/{+parent}:scheduleRuns',
500              'httpMethod' => 'POST',
501              'parameters' => array(
502                'parent' => array(
503                  'location' => 'path',
504                  'type' => 'string',
505                  'required' => true,
506                ),
507              ),
508            ),'startManualRuns' => array(
509              'path' => 'v1/{+parent}:startManualRuns',
510              'httpMethod' => 'POST',
511              'parameters' => array(
512                'parent' => array(
513                  'location' => 'path',
514                  'type' => 'string',
515                  'required' => true,
516                ),
517              ),
518            ),
519          )
520        )
521    );
522    $this->projects_transferConfigs_runs = new Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigsRuns(
523        $this,
524        $this->serviceName,
525        'runs',
526        array(
527          'methods' => array(
528            'delete' => array(
529              'path' => 'v1/{+name}',
530              'httpMethod' => 'DELETE',
531              'parameters' => array(
532                'name' => array(
533                  'location' => 'path',
534                  'type' => 'string',
535                  'required' => true,
536                ),
537              ),
538            ),'get' => array(
539              'path' => 'v1/{+name}',
540              'httpMethod' => 'GET',
541              'parameters' => array(
542                'name' => array(
543                  'location' => 'path',
544                  'type' => 'string',
545                  'required' => true,
546                ),
547              ),
548            ),'list' => array(
549              'path' => 'v1/{+parent}/runs',
550              'httpMethod' => 'GET',
551              'parameters' => array(
552                'parent' => array(
553                  'location' => 'path',
554                  'type' => 'string',
555                  'required' => true,
556                ),
557                'pageToken' => array(
558                  'location' => 'query',
559                  'type' => 'string',
560                ),
561                'states' => array(
562                  'location' => 'query',
563                  'type' => 'string',
564                  'repeated' => true,
565                ),
566                'pageSize' => array(
567                  'location' => 'query',
568                  'type' => 'integer',
569                ),
570                'runAttempt' => array(
571                  'location' => 'query',
572                  'type' => 'string',
573                ),
574              ),
575            ),
576          )
577        )
578    );
579    $this->projects_transferConfigs_runs_transferLogs = new Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigsRunsTransferLogs(
580        $this,
581        $this->serviceName,
582        'transferLogs',
583        array(
584          'methods' => array(
585            'list' => array(
586              'path' => 'v1/{+parent}/transferLogs',
587              'httpMethod' => 'GET',
588              'parameters' => array(
589                'parent' => array(
590                  'location' => 'path',
591                  'type' => 'string',
592                  'required' => true,
593                ),
594                'pageSize' => array(
595                  'location' => 'query',
596                  'type' => 'integer',
597                ),
598                'messageTypes' => array(
599                  'location' => 'query',
600                  'type' => 'string',
601                  'repeated' => true,
602                ),
603                'pageToken' => array(
604                  'location' => 'query',
605                  'type' => 'string',
606                ),
607              ),
608            ),
609          )
610        )
611    );
612  }
613}
614