source: vendor/google/apiclient-services/src/FirebaseDataConnect.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 18.7 KB
Line 
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 FirebaseDataConnect (v1beta).
24 *
25 * <p>
26 * Firebase Data Connect is a relational database service for mobile and web
27 * apps that lets you build and scale using a fully-managed PostgreSQL database
28 * powered by Cloud SQL. The REST API lets developers manage the connections to
29 * their database, change the schema of their database, and query the database.</p>
30 *
31 * <p>
32 * For more information about this service, see the API
33 * <a href="https://firebase.google.com/docs/data-connect" target="_blank">Documentation</a>
34 * </p>
35 *
36 * @author Google, Inc.
37 */
38class FirebaseDataConnect extends \Google\Service
39{
40 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
41 const CLOUD_PLATFORM =
42 "https://www.googleapis.com/auth/cloud-platform";
43
44 public $projects_locations;
45 public $projects_locations_operations;
46 public $projects_locations_services;
47 public $projects_locations_services_connectors;
48 public $projects_locations_services_schemas;
49 public $rootUrlTemplate;
50
51 /**
52 * Constructs the internal representation of the FirebaseDataConnect service.
53 *
54 * @param Client|array $clientOrConfig The client used to deliver requests, or a
55 * config array to pass to a new Client instance.
56 * @param string $rootUrl The root URL used for requests to the service.
57 */
58 public function __construct($clientOrConfig = [], $rootUrl = null)
59 {
60 parent::__construct($clientOrConfig);
61 $this->rootUrl = $rootUrl ?: 'https://firebasedataconnect.googleapis.com/';
62 $this->rootUrlTemplate = $rootUrl ?: 'https://firebasedataconnect.UNIVERSE_DOMAIN/';
63 $this->servicePath = '';
64 $this->batchPath = 'batch';
65 $this->version = 'v1beta';
66 $this->serviceName = 'firebasedataconnect';
67
68 $this->projects_locations = new FirebaseDataConnect\Resource\ProjectsLocations(
69 $this,
70 $this->serviceName,
71 'locations',
72 [
73 'methods' => [
74 'get' => [
75 'path' => 'v1beta/{+name}',
76 'httpMethod' => 'GET',
77 'parameters' => [
78 'name' => [
79 'location' => 'path',
80 'type' => 'string',
81 'required' => true,
82 ],
83 ],
84 ],'list' => [
85 'path' => 'v1beta/{+name}/locations',
86 'httpMethod' => 'GET',
87 'parameters' => [
88 'name' => [
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ],
93 'filter' => [
94 'location' => 'query',
95 'type' => 'string',
96 ],
97 'pageSize' => [
98 'location' => 'query',
99 'type' => 'integer',
100 ],
101 'pageToken' => [
102 'location' => 'query',
103 'type' => 'string',
104 ],
105 ],
106 ],
107 ]
108 ]
109 );
110 $this->projects_locations_operations = new FirebaseDataConnect\Resource\ProjectsLocationsOperations(
111 $this,
112 $this->serviceName,
113 'operations',
114 [
115 'methods' => [
116 'cancel' => [
117 'path' => 'v1beta/{+name}:cancel',
118 'httpMethod' => 'POST',
119 'parameters' => [
120 'name' => [
121 'location' => 'path',
122 'type' => 'string',
123 'required' => true,
124 ],
125 ],
126 ],'delete' => [
127 'path' => 'v1beta/{+name}',
128 'httpMethod' => 'DELETE',
129 'parameters' => [
130 'name' => [
131 'location' => 'path',
132 'type' => 'string',
133 'required' => true,
134 ],
135 ],
136 ],'get' => [
137 'path' => 'v1beta/{+name}',
138 'httpMethod' => 'GET',
139 'parameters' => [
140 'name' => [
141 'location' => 'path',
142 'type' => 'string',
143 'required' => true,
144 ],
145 ],
146 ],'list' => [
147 'path' => 'v1beta/{+name}/operations',
148 'httpMethod' => 'GET',
149 'parameters' => [
150 'name' => [
151 'location' => 'path',
152 'type' => 'string',
153 'required' => true,
154 ],
155 'filter' => [
156 'location' => 'query',
157 'type' => 'string',
158 ],
159 'pageSize' => [
160 'location' => 'query',
161 'type' => 'integer',
162 ],
163 'pageToken' => [
164 'location' => 'query',
165 'type' => 'string',
166 ],
167 ],
168 ],
169 ]
170 ]
171 );
172 $this->projects_locations_services = new FirebaseDataConnect\Resource\ProjectsLocationsServices(
173 $this,
174 $this->serviceName,
175 'services',
176 [
177 'methods' => [
178 'create' => [
179 'path' => 'v1beta/{+parent}/services',
180 'httpMethod' => 'POST',
181 'parameters' => [
182 'parent' => [
183 'location' => 'path',
184 'type' => 'string',
185 'required' => true,
186 ],
187 'requestId' => [
188 'location' => 'query',
189 'type' => 'string',
190 ],
191 'serviceId' => [
192 'location' => 'query',
193 'type' => 'string',
194 ],
195 'validateOnly' => [
196 'location' => 'query',
197 'type' => 'boolean',
198 ],
199 ],
200 ],'delete' => [
201 'path' => 'v1beta/{+name}',
202 'httpMethod' => 'DELETE',
203 'parameters' => [
204 'name' => [
205 'location' => 'path',
206 'type' => 'string',
207 'required' => true,
208 ],
209 'allowMissing' => [
210 'location' => 'query',
211 'type' => 'boolean',
212 ],
213 'etag' => [
214 'location' => 'query',
215 'type' => 'string',
216 ],
217 'force' => [
218 'location' => 'query',
219 'type' => 'boolean',
220 ],
221 'requestId' => [
222 'location' => 'query',
223 'type' => 'string',
224 ],
225 'validateOnly' => [
226 'location' => 'query',
227 'type' => 'boolean',
228 ],
229 ],
230 ],'executeGraphql' => [
231 'path' => 'v1beta/{+name}:executeGraphql',
232 'httpMethod' => 'POST',
233 'parameters' => [
234 'name' => [
235 'location' => 'path',
236 'type' => 'string',
237 'required' => true,
238 ],
239 ],
240 ],'executeGraphqlRead' => [
241 'path' => 'v1beta/{+name}:executeGraphqlRead',
242 'httpMethod' => 'POST',
243 'parameters' => [
244 'name' => [
245 'location' => 'path',
246 'type' => 'string',
247 'required' => true,
248 ],
249 ],
250 ],'get' => [
251 'path' => 'v1beta/{+name}',
252 'httpMethod' => 'GET',
253 'parameters' => [
254 'name' => [
255 'location' => 'path',
256 'type' => 'string',
257 'required' => true,
258 ],
259 ],
260 ],'list' => [
261 'path' => 'v1beta/{+parent}/services',
262 'httpMethod' => 'GET',
263 'parameters' => [
264 'parent' => [
265 'location' => 'path',
266 'type' => 'string',
267 'required' => true,
268 ],
269 'filter' => [
270 'location' => 'query',
271 'type' => 'string',
272 ],
273 'orderBy' => [
274 'location' => 'query',
275 'type' => 'string',
276 ],
277 'pageSize' => [
278 'location' => 'query',
279 'type' => 'integer',
280 ],
281 'pageToken' => [
282 'location' => 'query',
283 'type' => 'string',
284 ],
285 ],
286 ],'patch' => [
287 'path' => 'v1beta/{+name}',
288 'httpMethod' => 'PATCH',
289 'parameters' => [
290 'name' => [
291 'location' => 'path',
292 'type' => 'string',
293 'required' => true,
294 ],
295 'allowMissing' => [
296 'location' => 'query',
297 'type' => 'boolean',
298 ],
299 'requestId' => [
300 'location' => 'query',
301 'type' => 'string',
302 ],
303 'updateMask' => [
304 'location' => 'query',
305 'type' => 'string',
306 ],
307 'validateOnly' => [
308 'location' => 'query',
309 'type' => 'boolean',
310 ],
311 ],
312 ],
313 ]
314 ]
315 );
316 $this->projects_locations_services_connectors = new FirebaseDataConnect\Resource\ProjectsLocationsServicesConnectors(
317 $this,
318 $this->serviceName,
319 'connectors',
320 [
321 'methods' => [
322 'create' => [
323 'path' => 'v1beta/{+parent}/connectors',
324 'httpMethod' => 'POST',
325 'parameters' => [
326 'parent' => [
327 'location' => 'path',
328 'type' => 'string',
329 'required' => true,
330 ],
331 'connectorId' => [
332 'location' => 'query',
333 'type' => 'string',
334 ],
335 'requestId' => [
336 'location' => 'query',
337 'type' => 'string',
338 ],
339 'validateOnly' => [
340 'location' => 'query',
341 'type' => 'boolean',
342 ],
343 ],
344 ],'delete' => [
345 'path' => 'v1beta/{+name}',
346 'httpMethod' => 'DELETE',
347 'parameters' => [
348 'name' => [
349 'location' => 'path',
350 'type' => 'string',
351 'required' => true,
352 ],
353 'allowMissing' => [
354 'location' => 'query',
355 'type' => 'boolean',
356 ],
357 'etag' => [
358 'location' => 'query',
359 'type' => 'string',
360 ],
361 'force' => [
362 'location' => 'query',
363 'type' => 'boolean',
364 ],
365 'requestId' => [
366 'location' => 'query',
367 'type' => 'string',
368 ],
369 'validateOnly' => [
370 'location' => 'query',
371 'type' => 'boolean',
372 ],
373 ],
374 ],'executeMutation' => [
375 'path' => 'v1beta/{+name}:executeMutation',
376 'httpMethod' => 'POST',
377 'parameters' => [
378 'name' => [
379 'location' => 'path',
380 'type' => 'string',
381 'required' => true,
382 ],
383 ],
384 ],'executeQuery' => [
385 'path' => 'v1beta/{+name}:executeQuery',
386 'httpMethod' => 'POST',
387 'parameters' => [
388 'name' => [
389 'location' => 'path',
390 'type' => 'string',
391 'required' => true,
392 ],
393 ],
394 ],'get' => [
395 'path' => 'v1beta/{+name}',
396 'httpMethod' => 'GET',
397 'parameters' => [
398 'name' => [
399 'location' => 'path',
400 'type' => 'string',
401 'required' => true,
402 ],
403 ],
404 ],'list' => [
405 'path' => 'v1beta/{+parent}/connectors',
406 'httpMethod' => 'GET',
407 'parameters' => [
408 'parent' => [
409 'location' => 'path',
410 'type' => 'string',
411 'required' => true,
412 ],
413 'filter' => [
414 'location' => 'query',
415 'type' => 'string',
416 ],
417 'orderBy' => [
418 'location' => 'query',
419 'type' => 'string',
420 ],
421 'pageSize' => [
422 'location' => 'query',
423 'type' => 'integer',
424 ],
425 'pageToken' => [
426 'location' => 'query',
427 'type' => 'string',
428 ],
429 ],
430 ],'patch' => [
431 'path' => 'v1beta/{+name}',
432 'httpMethod' => 'PATCH',
433 'parameters' => [
434 'name' => [
435 'location' => 'path',
436 'type' => 'string',
437 'required' => true,
438 ],
439 'allowMissing' => [
440 'location' => 'query',
441 'type' => 'boolean',
442 ],
443 'requestId' => [
444 'location' => 'query',
445 'type' => 'string',
446 ],
447 'updateMask' => [
448 'location' => 'query',
449 'type' => 'string',
450 ],
451 'validateOnly' => [
452 'location' => 'query',
453 'type' => 'boolean',
454 ],
455 ],
456 ],
457 ]
458 ]
459 );
460 $this->projects_locations_services_schemas = new FirebaseDataConnect\Resource\ProjectsLocationsServicesSchemas(
461 $this,
462 $this->serviceName,
463 'schemas',
464 [
465 'methods' => [
466 'create' => [
467 'path' => 'v1beta/{+parent}/schemas',
468 'httpMethod' => 'POST',
469 'parameters' => [
470 'parent' => [
471 'location' => 'path',
472 'type' => 'string',
473 'required' => true,
474 ],
475 'requestId' => [
476 'location' => 'query',
477 'type' => 'string',
478 ],
479 'schemaId' => [
480 'location' => 'query',
481 'type' => 'string',
482 ],
483 'validateOnly' => [
484 'location' => 'query',
485 'type' => 'boolean',
486 ],
487 ],
488 ],'delete' => [
489 'path' => 'v1beta/{+name}',
490 'httpMethod' => 'DELETE',
491 'parameters' => [
492 'name' => [
493 'location' => 'path',
494 'type' => 'string',
495 'required' => true,
496 ],
497 'allowMissing' => [
498 'location' => 'query',
499 'type' => 'boolean',
500 ],
501 'etag' => [
502 'location' => 'query',
503 'type' => 'string',
504 ],
505 'force' => [
506 'location' => 'query',
507 'type' => 'boolean',
508 ],
509 'requestId' => [
510 'location' => 'query',
511 'type' => 'string',
512 ],
513 'validateOnly' => [
514 'location' => 'query',
515 'type' => 'boolean',
516 ],
517 ],
518 ],'get' => [
519 'path' => 'v1beta/{+name}',
520 'httpMethod' => 'GET',
521 'parameters' => [
522 'name' => [
523 'location' => 'path',
524 'type' => 'string',
525 'required' => true,
526 ],
527 ],
528 ],'list' => [
529 'path' => 'v1beta/{+parent}/schemas',
530 'httpMethod' => 'GET',
531 'parameters' => [
532 'parent' => [
533 'location' => 'path',
534 'type' => 'string',
535 'required' => true,
536 ],
537 'filter' => [
538 'location' => 'query',
539 'type' => 'string',
540 ],
541 'orderBy' => [
542 'location' => 'query',
543 'type' => 'string',
544 ],
545 'pageSize' => [
546 'location' => 'query',
547 'type' => 'integer',
548 ],
549 'pageToken' => [
550 'location' => 'query',
551 'type' => 'string',
552 ],
553 ],
554 ],'patch' => [
555 'path' => 'v1beta/{+name}',
556 'httpMethod' => 'PATCH',
557 'parameters' => [
558 'name' => [
559 'location' => 'path',
560 'type' => 'string',
561 'required' => true,
562 ],
563 'allowMissing' => [
564 'location' => 'query',
565 'type' => 'boolean',
566 ],
567 'requestId' => [
568 'location' => 'query',
569 'type' => 'string',
570 ],
571 'updateMask' => [
572 'location' => 'query',
573 'type' => 'string',
574 ],
575 'validateOnly' => [
576 'location' => 'query',
577 'type' => 'boolean',
578 ],
579 ],
580 ],
581 ]
582 ]
583 );
584 }
585}
586
587// Adding a class alias for backwards compatibility with the previous class name.
588class_alias(FirebaseDataConnect::class, 'Google_Service_FirebaseDataConnect');
Note: See TracBrowser for help on using the repository browser.