source: vendor/google/apiclient-services/src/FirebaseManagement.php

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

Upload project files

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