{ "revision": "20221214", "batchPath": "batch", "protocol": "rest", "fullyEncodeReservedExpansion": true, "baseUrl": "https://firebasedatabase.googleapis.com/", "name": "firebasedatabase", "discoveryVersion": "v1", "servicePath": "", "basePath": "", "resources": { "projects": { "resources": { "locations": { "resources": { "instances": { "methods": { "get": { "parameterOrder": [ "name" ], "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/firebase", "https://www.googleapis.com/auth/firebase.readonly" ], "response": { "$ref": "DatabaseInstance" }, "httpMethod": "GET", "id": "firebasedatabase.projects.locations.instances.get", "description": "Gets the DatabaseInstance identified by the specified resource name.", "path": "v1beta/{+name}", "parameters": { "name": { "required": true, "type": "string", "description": "Required. 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}`.", "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", "location": "path" } } }, "list": { "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.", "response": { "$ref": "ListDatabaseInstancesResponse" }, "parameters": { "showDeleted": { "description": "Indicate that DatabaseInstances in the `DELETED` state should also be returned.", "type": "boolean", "location": "query" }, "parent": { "pattern": "^projects/[^/]+/locations/[^/]+$", "type": "string", "description": "Required. 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/-`", "location": "path", "required": true }, "pageSize": { "format": "int32", "type": "integer", "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.", "location": "query" }, "pageToken": { "type": "string", "description": "Token returned from a previous call to `ListDatabaseInstances` indicating where in the set of database instances to resume listing.", "location": "query" } }, "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances", "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/firebase", "https://www.googleapis.com/auth/firebase.readonly" ], "path": "v1beta/{+parent}/instances", "id": "firebasedatabase.projects.locations.instances.list", "parameterOrder": [ "parent" ] }, "reenable": { "parameters": { "name": { "required": true, "type": "string", "description": "Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", "location": "path" } }, "request": { "$ref": "ReenableDatabaseInstanceRequest" }, "description": "Enables a DatabaseInstance. The database must have been disabled previously using DisableDatabaseInstance. The state of a successfully reenabled DatabaseInstance is ACTIVE.", "httpMethod": "POST", "parameterOrder": [ "name" ], "id": "firebasedatabase.projects.locations.instances.reenable", "response": { "$ref": "DatabaseInstance" }, "path": "v1beta/{+name}:reenable", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ], "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:reenable" }, "undelete": { "response": { "$ref": "DatabaseInstance" }, "description": "Restores a DatabaseInstance that was previously marked to be deleted. After the delete method is used, DatabaseInstances are set to the DELETED state for 20 days, and will be purged within 30 days. Databases in the DELETED state can be undeleted without losing any data. This method may only be used on a DatabaseInstance in the DELETED state. Purged DatabaseInstances may not be recovered.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ], "path": "v1beta/{+name}:undelete", "request": { "$ref": "UndeleteDatabaseInstanceRequest" }, "parameterOrder": [ "name" ], "id": "firebasedatabase.projects.locations.instances.undelete", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:undelete", "httpMethod": "POST", "parameters": { "name": { "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", "required": true, "description": "Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", "location": "path" } } }, "disable": { "path": "v1beta/{+name}:disable", "httpMethod": "POST", "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.", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ], "response": { "$ref": "DatabaseInstance" }, "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", "description": "Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", "type": "string", "location": "path", "required": true } }, "request": { "$ref": "DisableDatabaseInstanceRequest" }, "id": "firebasedatabase.projects.locations.instances.disable", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:disable" }, "create": { "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances", "response": { "$ref": "DatabaseInstance" }, "httpMethod": "POST", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ], "parameters": { "validateOnly": { "location": "query", "description": "When set to true, the request will be validated but not submitted.", "type": "boolean" }, "databaseId": { "type": "string", "location": "query", "description": "The globally unique identifier of the database instance." }, "parent": { "required": true, "description": "Required. The parent project for which to create a database instance, in the form: `projects/{project-number}/locations/{location-id}`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "type": "string" } }, "id": "firebasedatabase.projects.locations.instances.create", "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.", "path": "v1beta/{+parent}/instances", "parameterOrder": [ "parent" ], "request": { "$ref": "DatabaseInstance" } }, "delete": { "httpMethod": "DELETE", "path": "v1beta/{+name}", "response": { "$ref": "DatabaseInstance" }, "description": "Marks a DatabaseInstance to be deleted. The DatabaseInstance will be set to the DELETED state for 20 days, and 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.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ], "id": "firebasedatabase.projects.locations.instances.delete", "parameters": { "name": { "location": "path", "description": "Required. The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`", "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$" } }, "parameterOrder": [ "name" ] } } } } } } } }, "schemas": { "DatabaseInstance": { "id": "DatabaseInstance", "properties": { "type": { "enum": [ "DATABASE_INSTANCE_TYPE_UNSPECIFIED", "DEFAULT_DATABASE", "USER_DATABASE" ], "type": "string", "enumDescriptions": [ "Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.", "The default database that is provisioned when a project is created.", "A database that the user created." ], "description": "Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted." }, "databaseUrl": { "type": "string", "description": "Output only. Output Only. The globally unique hostname of the database.", "readOnly": true }, "state": { "enumDescriptions": [ "Unspecified state, likely the result of an error on the backend. This is only used for distinguishing unset values.", "The normal and active state.", "The database is in a disabled state. It can be re-enabled later.", "The database is in a deleted state." ], "description": "Output only. The database's lifecycle state. Read-only.", "type": "string", "enum": [ "LIFECYCLE_STATE_UNSPECIFIED", "ACTIVE", "DISABLED", "DELETED" ], "readOnly": true }, "project": { "readOnly": true, "description": "Output only. The resource name of the project this instance belongs to. For example: `projects/{project-number}`.", "type": "string" }, "name": { "description": "The fully qualified resource name of the database instance, in the form: `projects/{project-number}/locations/{location-id}/instances/{database-id}`.", "type": "string" } }, "type": "object", "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." }, "UndeleteDatabaseInstanceRequest": { "properties": {}, "id": "UndeleteDatabaseInstanceRequest", "type": "object", "description": "The request sent to UndeleteDatabaseInstance method." }, "ListDatabaseInstancesResponse": { "type": "object", "properties": { "nextPageToken": { "type": "string", "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." }, "instances": { "items": { "$ref": "DatabaseInstance" }, "type": "array", "description": "List of each DatabaseInstance that is in the parent Firebase project." } }, "description": "The response from the ListDatabaseInstances method.", "id": "ListDatabaseInstancesResponse" }, "ReenableDatabaseInstanceRequest": { "id": "ReenableDatabaseInstanceRequest", "type": "object", "properties": {}, "description": "The request sent to the ReenableDatabaseInstance method." }, "DisableDatabaseInstanceRequest": { "description": "The request sent to the DisableDatabaseInstance method.", "type": "object", "id": "DisableDatabaseInstanceRequest", "properties": {} } }, "documentationLink": "https://firebase.google.com/docs/reference/rest/database/database-management/rest/", "mtlsRootUrl": "https://firebasedatabase.mtls.googleapis.com/", "icons": { "x32": "http://www.google.com/images/icons/product/search-32.gif", "x16": "http://www.google.com/images/icons/product/search-16.gif" }, "description": "The Firebase Realtime Database API enables programmatic provisioning and management of Realtime Database instances.", "kind": "discovery#restDescription", "ownerDomain": "google.com", "parameters": { "alt": { "type": "string", "description": "Data format for response.", "default": "json", "enumDescriptions": [ "Responses with Content-Type of application/json", "Media download with context-dependent Content-Type", "Responses with Content-Type of application/x-protobuf" ], "enum": [ "json", "media", "proto" ], "location": "query" }, "key": { "type": "string", "location": "query", "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." }, "access_token": { "description": "OAuth access token.", "type": "string", "location": "query" }, "upload_protocol": { "location": "query", "type": "string", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." }, "quotaUser": { "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.", "location": "query", "type": "string" }, "uploadType": { "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", "location": "query", "type": "string" }, "$.xgafv": { "location": "query", "enumDescriptions": [ "v1 error format", "v2 error format" ], "description": "V1 error format.", "enum": [ "1", "2" ], "type": "string" }, "fields": { "type": "string", "location": "query", "description": "Selector specifying which fields to include in a partial response." }, "callback": { "location": "query", "type": "string", "description": "JSONP" }, "prettyPrint": { "location": "query", "description": "Returns response with indentations and line breaks.", "default": "true", "type": "boolean" }, "oauth_token": { "description": "OAuth 2.0 token for the current user.", "location": "query", "type": "string" } }, "canonicalName": "Firebase Realtime Database", "rootUrl": "https://firebasedatabase.googleapis.com/", "version": "v1beta", "version_module": true, "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/cloud-platform.read-only": { "description": "View your data across Google Cloud services and see the email address of your Google Account" }, "https://www.googleapis.com/auth/firebase": { "description": "View and administer all your Firebase data and settings" }, "https://www.googleapis.com/auth/firebase.readonly": { "description": "View all your Firebase data and settings" }, "https://www.googleapis.com/auth/cloud-platform": { "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." } } } }, "ownerName": "Google", "id": "firebasedatabase:v1beta", "title": "Firebase Realtime Database API" }