blob: c3cdbb80fc6a69f7dd4f159224bf035af2e02f15 [file] [log] [blame]
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001{
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002 "auth": {
3 "oauth2": {
4 "scopes": {
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04005 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "See, edit, configure, and delete your Google Cloud Platform data"
7 },
8 "https://www.googleapis.com/auth/cloud-platform.read-only": {
9 "description": "View your data across Google Cloud Platform services"
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080010 },
11 "https://www.googleapis.com/auth/firebase": {
12 "description": "View and administer all your Firebase data and settings"
13 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040014 "https://www.googleapis.com/auth/firebase.readonly": {
15 "description": "View all your Firebase data and settings"
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080016 }
17 }
18 }
19 },
20 "basePath": "",
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040021 "baseUrl": "https://firebasedatabase.googleapis.com/",
22 "batchPath": "batch",
23 "canonicalName": "Firebase Realtime Database",
24 "description": "The Firebase Realtime Database Management API enables programmatic provisioning and management of Realtime Database instances.",
25 "discoveryVersion": "v1",
26 "documentationLink": "https://firebase.google.com/docs/reference/rest/database/database-management/rest/",
27 "fullyEncodeReservedExpansion": true,
28 "icons": {
29 "x16": "http://www.google.com/images/icons/product/search-16.gif",
30 "x32": "http://www.google.com/images/icons/product/search-32.gif"
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080031 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040032 "id": "firebasedatabase:v1beta",
33 "kind": "discovery#restDescription",
34 "mtlsRootUrl": "https://firebasedatabase.mtls.googleapis.com/",
35 "name": "firebasedatabase",
36 "ownerDomain": "google.com",
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080037 "ownerName": "Google",
38 "parameters": {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080039 "$.xgafv": {
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040040 "description": "V1 error format.",
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080041 "enum": [
42 "1",
43 "2"
44 ],
45 "enumDescriptions": [
46 "v1 error format",
47 "v2 error format"
48 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040049 "location": "query",
50 "type": "string"
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080051 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040052 "access_token": {
53 "description": "OAuth access token.",
54 "location": "query",
55 "type": "string"
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080056 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040057 "alt": {
58 "default": "json",
59 "description": "Data format for response.",
60 "enum": [
61 "json",
62 "media",
63 "proto"
64 ],
65 "enumDescriptions": [
66 "Responses with Content-Type of application/json",
67 "Media download with context-dependent Content-Type",
68 "Responses with Content-Type of application/x-protobuf"
69 ],
70 "location": "query",
71 "type": "string"
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080072 },
73 "callback": {
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040074 "description": "JSONP",
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080075 "location": "query",
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040076 "type": "string"
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080077 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040078 "fields": {
79 "description": "Selector specifying which fields to include in a partial response.",
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080080 "location": "query",
81 "type": "string"
82 },
83 "key": {
84 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
85 "location": "query",
86 "type": "string"
87 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040088 "oauth_token": {
89 "description": "OAuth 2.0 token for the current user.",
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080090 "location": "query",
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040091 "type": "string"
92 },
93 "prettyPrint": {
94 "default": "true",
95 "description": "Returns response with indentations and line breaks.",
96 "location": "query",
97 "type": "boolean"
98 },
99 "quotaUser": {
100 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
101 "location": "query",
102 "type": "string"
103 },
104 "uploadType": {
105 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
106 "location": "query",
107 "type": "string"
108 },
109 "upload_protocol": {
110 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
111 "location": "query",
112 "type": "string"
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800113 }
114 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400115 "protocol": "rest",
116 "resources": {
117 "projects": {
118 "resources": {
119 "locations": {
120 "resources": {
121 "instances": {
122 "methods": {
123 "create": {
124 "description": "Requests that a new DatabaseInstance be created. The state of a successfully created DatabaseInstance is ACTIVE. Only available for projects on the Blaze plan. Projects can be upgraded using the Cloud Billing API https://cloud.google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it might take a few minutes for billing enablement state to propagate to Firebase systems.",
125 "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances",
126 "httpMethod": "POST",
127 "id": "firebasedatabase.projects.locations.instances.create",
128 "parameterOrder": [
129 "parent"
130 ],
131 "parameters": {
132 "databaseId": {
133 "description": "The globally unique identifier of the database instance.",
134 "location": "query",
135 "type": "string"
136 },
137 "parent": {
138 "description": "The parent project for which to create a database instance, in the form: `projects/{project-number}/locations/{location-id}`.",
139 "location": "path",
140 "pattern": "^projects/[^/]+/locations/[^/]+$",
141 "required": true,
142 "type": "string"
143 },
144 "validateOnly": {
145 "description": "When set to true, the request will be validated but not submitted.",
146 "location": "query",
147 "type": "boolean"
148 }
149 },
150 "path": "v1beta/{+parent}/instances",
151 "request": {
152 "$ref": "DatabaseInstance"
153 },
154 "response": {
155 "$ref": "DatabaseInstance"
156 },
157 "scopes": [
158 "https://www.googleapis.com/auth/cloud-platform",
159 "https://www.googleapis.com/auth/firebase"
160 ]
161 },
162 "delete": {
163 "description": "Marks a DatabaseInstance to be deleted. The DatabaseInstance will be purged within 30 days. The default database cannot be deleted. IDs for deleted database instances may never be recovered or re-used. The Database may only be deleted if it is already in a DISABLED state.",
164 "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}",
165 "httpMethod": "DELETE",
166 "id": "firebasedatabase.projects.locations.instances.delete",
167 "parameterOrder": [
168 "name"
169 ],
170 "parameters": {
171 "name": {
172 "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`",
173 "location": "path",
174 "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
175 "required": true,
176 "type": "string"
177 }
178 },
179 "path": "v1beta/{+name}",
180 "response": {
181 "$ref": "DatabaseInstance"
182 },
183 "scopes": [
184 "https://www.googleapis.com/auth/cloud-platform",
185 "https://www.googleapis.com/auth/firebase"
186 ]
187 },
188 "disable": {
189 "description": "Disables a DatabaseInstance. The database can be re-enabled later using ReenableDatabaseInstance. When a database is disabled, all reads and writes are denied, including view access in the Firebase console.",
190 "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:disable",
191 "httpMethod": "POST",
192 "id": "firebasedatabase.projects.locations.instances.disable",
193 "parameterOrder": [
194 "name"
195 ],
196 "parameters": {
197 "name": {
198 "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`",
199 "location": "path",
200 "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
201 "required": true,
202 "type": "string"
203 }
204 },
205 "path": "v1beta/{+name}:disable",
206 "request": {
207 "$ref": "DisableDatabaseInstanceRequest"
208 },
209 "response": {
210 "$ref": "DatabaseInstance"
211 },
212 "scopes": [
213 "https://www.googleapis.com/auth/cloud-platform",
214 "https://www.googleapis.com/auth/firebase"
215 ]
216 },
217 "get": {
218 "description": "Gets the DatabaseInstance identified by the specified resource name.",
219 "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}",
220 "httpMethod": "GET",
221 "id": "firebasedatabase.projects.locations.instances.get",
222 "parameterOrder": [
223 "name"
224 ],
225 "parameters": {
226 "name": {
227 "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`. `database-id` is a globally unique identifier across all parent collections. For convenience, this method allows you to supply `-` as a wildcard character in place of specific collections under `projects` and `locations`. The resulting wildcarding form of the method is: `projects/-/locations/-/instances/{database-id}`.",
228 "location": "path",
229 "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
230 "required": true,
231 "type": "string"
232 }
233 },
234 "path": "v1beta/{+name}",
235 "response": {
236 "$ref": "DatabaseInstance"
237 },
238 "scopes": [
239 "https://www.googleapis.com/auth/cloud-platform",
240 "https://www.googleapis.com/auth/cloud-platform.read-only",
241 "https://www.googleapis.com/auth/firebase",
242 "https://www.googleapis.com/auth/firebase.readonly"
243 ]
244 },
245 "list": {
246 "description": "Lists each DatabaseInstance associated with the specified parent project. The list items are returned in no particular order, but will be a consistent view of the database instances when additional requests are made with a `pageToken`. The resulting list contains instances in any STATE. The list results may be stale by a few seconds. Use GetDatabaseInstance for consistent reads.",
247 "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances",
248 "httpMethod": "GET",
249 "id": "firebasedatabase.projects.locations.instances.list",
250 "parameterOrder": [
251 "parent"
252 ],
253 "parameters": {
254 "pageSize": {
255 "description": "The maximum number of database instances to return in the response. The server may return fewer than this at its discretion. If no value is specified (or too large a value is specified), then the server will impose its own limit.",
256 "format": "int32",
257 "location": "query",
258 "type": "integer"
259 },
260 "pageToken": {
261 "description": "Token returned from a previous call to `ListDatabaseInstances` indicating where in the set of database instances to resume listing.",
262 "location": "query",
263 "type": "string"
264 },
265 "parent": {
266 "description": "The parent project for which to list database instances, in the form: `projects/{project-number}/locations/{location-id}` To list across all locations, use a parent in the form: `projects/{project-number}/locations/-`",
267 "location": "path",
268 "pattern": "^projects/[^/]+/locations/[^/]+$",
269 "required": true,
270 "type": "string"
271 }
272 },
273 "path": "v1beta/{+parent}/instances",
274 "response": {
275 "$ref": "ListDatabaseInstancesResponse"
276 },
277 "scopes": [
278 "https://www.googleapis.com/auth/cloud-platform",
279 "https://www.googleapis.com/auth/cloud-platform.read-only",
280 "https://www.googleapis.com/auth/firebase",
281 "https://www.googleapis.com/auth/firebase.readonly"
282 ]
283 },
284 "reenable": {
285 "description": "Enables a DatabaseInstance. The database must have been disabled previously using DisableDatabaseInstance. The state of a successfully reenabled DatabaseInstance is ACTIVE.",
286 "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:reenable",
287 "httpMethod": "POST",
288 "id": "firebasedatabase.projects.locations.instances.reenable",
289 "parameterOrder": [
290 "name"
291 ],
292 "parameters": {
293 "name": {
294 "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`",
295 "location": "path",
296 "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
297 "required": true,
298 "type": "string"
299 }
300 },
301 "path": "v1beta/{+name}:reenable",
302 "request": {
303 "$ref": "ReenableDatabaseInstanceRequest"
304 },
305 "response": {
306 "$ref": "DatabaseInstance"
307 },
308 "scopes": [
309 "https://www.googleapis.com/auth/cloud-platform",
310 "https://www.googleapis.com/auth/firebase"
311 ]
312 }
313 }
314 }
315 }
316 }
317 }
318 }
319 },
yoshi-code-botcb945f32021-06-08 00:36:03 -0700320 "revision": "20210604",
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800321 "rootUrl": "https://firebasedatabase.googleapis.com/",
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400322 "schemas": {
323 "DatabaseInstance": {
324 "description": "Representation of a Realtime Database instance. Details on interacting with contents of a DatabaseInstance can be found at: https://firebase.google.com/docs/database/rest/start.",
325 "id": "DatabaseInstance",
326 "properties": {
327 "databaseUrl": {
328 "description": "Immutable. The globally unique hostname of the database.",
329 "type": "string"
330 },
331 "name": {
332 "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`. Currently the only supported location is 'us-central1'.",
333 "type": "string"
334 },
335 "project": {
336 "description": "The resource name of the project this instance belongs to. For example: `projects/{project-number}`.",
337 "type": "string"
338 },
339 "state": {
340 "description": "The database's lifecycle state. Read-only.",
341 "enum": [
342 "LIFECYCLE_STATE_UNSPECIFIED",
343 "ACTIVE",
344 "DISABLED",
345 "DELETED"
346 ],
347 "enumDescriptions": [
348 "Unspecified state, likely the result of an error on the backend. This is only used for distinguishing unset values.",
349 "The normal and active state.",
350 "The database is in a disabled state. It can be re-enabled later.",
351 "The database is in a deleted state."
352 ],
353 "type": "string"
354 },
355 "type": {
356 "description": "The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.",
357 "enum": [
358 "DATABASE_INSTANCE_TYPE_UNSPECIFIED",
359 "DEFAULT_DATABASE",
360 "USER_DATABASE"
361 ],
362 "enumDescriptions": [
363 "Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.",
364 "The default database that is provisioned when a project is created.",
365 "A database that the user created."
366 ],
367 "type": "string"
368 }
369 },
370 "type": "object"
371 },
372 "DisableDatabaseInstanceRequest": {
373 "description": "The request sent to the DisableDatabaseInstance method.",
374 "id": "DisableDatabaseInstanceRequest",
375 "properties": {},
376 "type": "object"
377 },
378 "ListDatabaseInstancesResponse": {
379 "description": "The response from the ListDatabaseInstances method.",
380 "id": "ListDatabaseInstancesResponse",
381 "properties": {
382 "instances": {
383 "description": "List of each DatabaseInstance that is in the parent Firebase project.",
384 "items": {
385 "$ref": "DatabaseInstance"
386 },
387 "type": "array"
388 },
389 "nextPageToken": {
390 "description": "If the result list is too large to fit in a single response, then a token is returned. If the string is empty, then this response is the last page of results. This token can be used in a subsequent call to `ListDatabaseInstances` to find the next group of database instances. Page tokens are short-lived and should not be persisted.",
391 "type": "string"
392 }
393 },
394 "type": "object"
395 },
396 "ReenableDatabaseInstanceRequest": {
397 "description": "The request sent to the ReenableDatabaseInstance method.",
398 "id": "ReenableDatabaseInstanceRequest",
399 "properties": {},
400 "type": "object"
401 }
402 },
403 "servicePath": "",
404 "title": "Firebase Realtime Database Management API",
405 "version": "v1beta",
406 "version_module": true
407}