source: vendor/google/apiclient-services/src/FirebaseRealtimeDatabase.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: 5.9 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 FirebaseRealtimeDatabase (v1beta).
24 *
25 * <p>
26 * The Firebase Realtime Database API enables programmatic provisioning and
27 * management of Realtime Database instances.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://firebase.google.com/docs/reference/rest/database/database-management/rest/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class FirebaseRealtimeDatabase extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41 /** View your data across Google Cloud services and see the email address of your Google Account. */
42 const CLOUD_PLATFORM_READ_ONLY =
43 "https://www.googleapis.com/auth/cloud-platform.read-only";
44 /** View and administer all your Firebase data and settings. */
45 const FIREBASE =
46 "https://www.googleapis.com/auth/firebase";
47 /** View all your Firebase data and settings. */
48 const FIREBASE_READONLY =
49 "https://www.googleapis.com/auth/firebase.readonly";
50
51 public $projects_locations_instances;
52 public $rootUrlTemplate;
53
54 /**
55 * Constructs the internal representation of the FirebaseRealtimeDatabase
56 * service.
57 *
58 * @param Client|array $clientOrConfig The client used to deliver requests, or a
59 * config array to pass to a new Client instance.
60 * @param string $rootUrl The root URL used for requests to the service.
61 */
62 public function __construct($clientOrConfig = [], $rootUrl = null)
63 {
64 parent::__construct($clientOrConfig);
65 $this->rootUrl = $rootUrl ?: 'https://firebasedatabase.googleapis.com/';
66 $this->rootUrlTemplate = $rootUrl ?: 'https://firebasedatabase.UNIVERSE_DOMAIN/';
67 $this->servicePath = '';
68 $this->batchPath = 'batch';
69 $this->version = 'v1beta';
70 $this->serviceName = 'firebasedatabase';
71
72 $this->projects_locations_instances = new FirebaseRealtimeDatabase\Resource\ProjectsLocationsInstances(
73 $this,
74 $this->serviceName,
75 'instances',
76 [
77 'methods' => [
78 'create' => [
79 'path' => 'v1beta/{+parent}/instances',
80 'httpMethod' => 'POST',
81 'parameters' => [
82 'parent' => [
83 'location' => 'path',
84 'type' => 'string',
85 'required' => true,
86 ],
87 'databaseId' => [
88 'location' => 'query',
89 'type' => 'string',
90 ],
91 'validateOnly' => [
92 'location' => 'query',
93 'type' => 'boolean',
94 ],
95 ],
96 ],'delete' => [
97 'path' => 'v1beta/{+name}',
98 'httpMethod' => 'DELETE',
99 'parameters' => [
100 'name' => [
101 'location' => 'path',
102 'type' => 'string',
103 'required' => true,
104 ],
105 ],
106 ],'disable' => [
107 'path' => 'v1beta/{+name}:disable',
108 'httpMethod' => 'POST',
109 'parameters' => [
110 'name' => [
111 'location' => 'path',
112 'type' => 'string',
113 'required' => true,
114 ],
115 ],
116 ],'get' => [
117 'path' => 'v1beta/{+name}',
118 'httpMethod' => 'GET',
119 'parameters' => [
120 'name' => [
121 'location' => 'path',
122 'type' => 'string',
123 'required' => true,
124 ],
125 ],
126 ],'list' => [
127 'path' => 'v1beta/{+parent}/instances',
128 'httpMethod' => 'GET',
129 'parameters' => [
130 'parent' => [
131 'location' => 'path',
132 'type' => 'string',
133 'required' => true,
134 ],
135 'pageSize' => [
136 'location' => 'query',
137 'type' => 'integer',
138 ],
139 'pageToken' => [
140 'location' => 'query',
141 'type' => 'string',
142 ],
143 'showDeleted' => [
144 'location' => 'query',
145 'type' => 'boolean',
146 ],
147 ],
148 ],'reenable' => [
149 'path' => 'v1beta/{+name}:reenable',
150 'httpMethod' => 'POST',
151 'parameters' => [
152 'name' => [
153 'location' => 'path',
154 'type' => 'string',
155 'required' => true,
156 ],
157 ],
158 ],'undelete' => [
159 'path' => 'v1beta/{+name}:undelete',
160 'httpMethod' => 'POST',
161 'parameters' => [
162 'name' => [
163 'location' => 'path',
164 'type' => 'string',
165 'required' => true,
166 ],
167 ],
168 ],
169 ]
170 ]
171 );
172 }
173}
174
175// Adding a class alias for backwards compatibility with the previous class name.
176class_alias(FirebaseRealtimeDatabase::class, 'Google_Service_FirebaseRealtimeDatabase');
Note: See TracBrowser for help on using the repository browser.