Skip to content

Commit

Permalink
feat(firestore): update the API
Browse files Browse the repository at this point in the history
#### firestore:v1

The following keys were added:
- resources.projects.resources.databases.methods.get.description
- resources.projects.resources.databases.methods.get.flatPath
- resources.projects.resources.databases.methods.get.httpMethod
- resources.projects.resources.databases.methods.get.id
- resources.projects.resources.databases.methods.get.parameterOrder
- resources.projects.resources.databases.methods.get.parameters.name.description
- resources.projects.resources.databases.methods.get.parameters.name.location
- resources.projects.resources.databases.methods.get.parameters.name.pattern
- resources.projects.resources.databases.methods.get.parameters.name.required
- resources.projects.resources.databases.methods.get.parameters.name.type
- resources.projects.resources.databases.methods.get.path
- resources.projects.resources.databases.methods.get.response.$ref
- resources.projects.resources.databases.methods.get.scopes
- resources.projects.resources.databases.methods.list.description
- resources.projects.resources.databases.methods.list.flatPath
- resources.projects.resources.databases.methods.list.httpMethod
- resources.projects.resources.databases.methods.list.id
- resources.projects.resources.databases.methods.list.parameterOrder
- resources.projects.resources.databases.methods.list.parameters.parent.description
- resources.projects.resources.databases.methods.list.parameters.parent.location
- resources.projects.resources.databases.methods.list.parameters.parent.pattern
- resources.projects.resources.databases.methods.list.parameters.parent.required
- resources.projects.resources.databases.methods.list.parameters.parent.type
- resources.projects.resources.databases.methods.list.path
- resources.projects.resources.databases.methods.list.response.$ref
- resources.projects.resources.databases.methods.list.scopes
- resources.projects.resources.databases.methods.patch.description
- resources.projects.resources.databases.methods.patch.flatPath
- resources.projects.resources.databases.methods.patch.httpMethod
- resources.projects.resources.databases.methods.patch.id
- resources.projects.resources.databases.methods.patch.parameterOrder
- resources.projects.resources.databases.methods.patch.parameters.name.description
- resources.projects.resources.databases.methods.patch.parameters.name.location
- resources.projects.resources.databases.methods.patch.parameters.name.pattern
- resources.projects.resources.databases.methods.patch.parameters.name.required
- resources.projects.resources.databases.methods.patch.parameters.name.type
- resources.projects.resources.databases.methods.patch.parameters.updateMask.description
- resources.projects.resources.databases.methods.patch.parameters.updateMask.format
- resources.projects.resources.databases.methods.patch.parameters.updateMask.location
- resources.projects.resources.databases.methods.patch.parameters.updateMask.type
- resources.projects.resources.databases.methods.patch.path
- resources.projects.resources.databases.methods.patch.request.$ref
- resources.projects.resources.databases.methods.patch.response.$ref
- resources.projects.resources.databases.methods.patch.scopes
- schemas.GoogleFirestoreAdminV1Database.description
- schemas.GoogleFirestoreAdminV1Database.id
- schemas.GoogleFirestoreAdminV1Database.properties.concurrencyMode.description
- schemas.GoogleFirestoreAdminV1Database.properties.concurrencyMode.enum
- schemas.GoogleFirestoreAdminV1Database.properties.concurrencyMode.enumDescriptions
- schemas.GoogleFirestoreAdminV1Database.properties.concurrencyMode.type
- schemas.GoogleFirestoreAdminV1Database.properties.etag.description
- schemas.GoogleFirestoreAdminV1Database.properties.etag.type
- schemas.GoogleFirestoreAdminV1Database.properties.locationId.description
- schemas.GoogleFirestoreAdminV1Database.properties.locationId.type
- schemas.GoogleFirestoreAdminV1Database.properties.name.description
- schemas.GoogleFirestoreAdminV1Database.properties.name.type
- schemas.GoogleFirestoreAdminV1Database.properties.type.description
- schemas.GoogleFirestoreAdminV1Database.properties.type.enum
- schemas.GoogleFirestoreAdminV1Database.properties.type.enumDescriptions
- schemas.GoogleFirestoreAdminV1Database.properties.type.type
- schemas.GoogleFirestoreAdminV1Database.type
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.description
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.id
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.properties.databases.description
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.properties.databases.items.$ref
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.properties.databases.type
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Sep 28, 2021
1 parent eb03efc commit 18048b2
Show file tree
Hide file tree
Showing 2 changed files with 652 additions and 1 deletion.
152 changes: 151 additions & 1 deletion discovery/firestore-v1.json
Expand Up @@ -141,6 +141,32 @@
"https://www.googleapis.com/auth/datastore"
]
},
"get": {
"description": "Gets information about a database.",
"flatPath": "v1/projects/{projectsId}/databases/{databasesId}",
"httpMethod": "GET",
"id": "firestore.projects.databases.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. A name of the form `projects/{project_id}/databases/{database_id}`",
"location": "path",
"pattern": "^projects/[^/]+/databases/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "GoogleFirestoreAdminV1Database"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
]
},
"importDocuments": {
"description": "Imports documents into Google Cloud Firestore. Existing documents with the same name are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.",
"flatPath": "v1/projects/{projectsId}/databases/{databasesId}:importDocuments",
Expand Down Expand Up @@ -169,6 +195,67 @@
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
]
},
"list": {
"description": "List all the databases in the project.",
"flatPath": "v1/projects/{projectsId}/databases",
"httpMethod": "GET",
"id": "firestore.projects.databases.list",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. A parent name of the form `projects/{project_id}`",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/databases",
"response": {
"$ref": "GoogleFirestoreAdminV1ListDatabasesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
]
},
"patch": {
"description": "Updates a database.",
"flatPath": "v1/projects/{projectsId}/databases/{databasesId}",
"httpMethod": "PATCH",
"id": "firestore.projects.databases.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The resource name of the Database. Format: `projects/{project}/databases/{database}`",
"location": "path",
"pattern": "^projects/[^/]+/databases/[^/]+$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "The list of fields to be updated.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}",
"request": {
"$ref": "GoogleFirestoreAdminV1Database"
},
"response": {
"$ref": "GoogleLongrunningOperation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"
]
}
},
"resources": {
Expand Down Expand Up @@ -1160,7 +1247,7 @@
}
}
},
"revision": "20210816",
"revision": "20210916",
"rootUrl": "https://firestore.googleapis.com/",
"schemas": {
"ArrayValue": {
Expand Down Expand Up @@ -1685,6 +1772,55 @@
},
"type": "object"
},
"GoogleFirestoreAdminV1Database": {
"description": "A Cloud Firestore Database in Native Mode. Currently one database is allowed per cloud project. It is named '(default)'",
"id": "GoogleFirestoreAdminV1Database",
"properties": {
"concurrencyMode": {
"description": "The concurrency control mode to use for this database.",
"enum": [
"CONCURRENCY_MODE_UNSPECIFIED",
"OPTIMISTIC",
"PESSIMISTIC",
"OPTIMISTIC_WITH_ENTITY_GROUPS"
],
"enumDescriptions": [
"Not used.",
"Use optimistic concurrency control by default. This is the setting for Cloud Firestore customers.",
"Use pessimistic concurrency control by default. This is the setting for Cloud Firestore customers.",
"Use optimistic concurrency control with entity groups by default. This is the setting for Cloud Datastore customers."
],
"type": "string"
},
"etag": {
"description": "This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.",
"type": "string"
},
"locationId": {
"description": "The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.",
"type": "string"
},
"name": {
"description": "The resource name of the Database. Format: `projects/{project}/databases/{database}`",
"type": "string"
},
"type": {
"description": "The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.",
"enum": [
"DATABASE_TYPE_UNSPECIFIED",
"FIRESTORE_NATIVE",
"DATASTORE_MODE"
],
"enumDescriptions": [
"The default value. This value is used if the database type is omitted.",
"Firestore Native Mode",
"Firestore in Datastore Mode."
],
"type": "string"
}
},
"type": "object"
},
"GoogleFirestoreAdminV1ExportDocumentsMetadata": {
"description": "Metadata for google.longrunning.Operation results from FirestoreAdmin.ExportDocuments.",
"id": "GoogleFirestoreAdminV1ExportDocumentsMetadata",
Expand Down Expand Up @@ -2116,6 +2252,20 @@
},
"type": "object"
},
"GoogleFirestoreAdminV1ListDatabasesResponse": {
"description": "The list of databases for a project.",
"id": "GoogleFirestoreAdminV1ListDatabasesResponse",
"properties": {
"databases": {
"description": "The databases in the project.",
"items": {
"$ref": "GoogleFirestoreAdminV1Database"
},
"type": "array"
}
},
"type": "object"
},
"GoogleFirestoreAdminV1ListFieldsResponse": {
"description": "The response for FirestoreAdmin.ListFields.",
"id": "GoogleFirestoreAdminV1ListFieldsResponse",
Expand Down

0 comments on commit 18048b2

Please sign in to comment.