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:
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.properties.unreachable.description
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.properties.unreachable.items.type
- schemas.GoogleFirestoreAdminV1ListDatabasesResponse.properties.unreachable.type

The following keys were changed:
- schemas.GoogleFirestoreAdminV1ExportDocumentsRequest.properties.snapshotTime.description
  • Loading branch information
yoshi-automation authored and sofisl committed Nov 27, 2023
1 parent 6f17787 commit 1068dd8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 9 additions & 2 deletions discovery/firestore-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@
}
}
},
"revision": "20231002",
"revision": "20231103",
"rootUrl": "https://firestore.googleapis.com/",
"schemas": {
"Aggregation": {
Expand Down Expand Up @@ -2627,7 +2627,7 @@
"type": "string"
},
"snapshotTime": {
"description": "The timestamp that corresponds to the version of the database to be exported. The timestamp must be rounded to the minute, in the past, and not older than 5 days. Please choose a reasonable timestamp based on prior knowledge on how long exports take as data at provided snapshot timestamp can expire during export. If specified, then the exported documents will represent a consistent view of the database at the provided time. Otherwise, there are no guarantees about the consistency of the exported documents.",
"description": "The timestamp that corresponds to the version of the database to be exported. The timestamp must be in the past, rounded to the minute and not older than earliestVersionTime. If specified, then the exported documents will represent a consistent view of the database at the provided time. Otherwise, there are no guarantees about the consistency of the exported documents.",
"format": "google-datetime",
"type": "string"
}
Expand Down Expand Up @@ -3078,6 +3078,13 @@
"$ref": "GoogleFirestoreAdminV1Database"
},
"type": "array"
},
"unreachable": {
"description": "In the event that data about individual databases cannot be listed they will be recorded here. An example entry might be: projects/some_project/locations/some_location This can happen if the Cloud Region that the Database resides in is currently unavailable. In this case we can't fetch all the details about the database. You may be able to get a more detailed error message (or possibly fetch the resource) by sending a 'Get' request for the resource or a 'List' request for the specific location.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
Expand Down
6 changes: 5 additions & 1 deletion src/apis/firestore/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ export namespace firestore_v1 {
*/
outputUriPrefix?: string | null;
/**
* The timestamp that corresponds to the version of the database to be exported. The timestamp must be rounded to the minute, in the past, and not older than 5 days. Please choose a reasonable timestamp based on prior knowledge on how long exports take as data at provided snapshot timestamp can expire during export. If specified, then the exported documents will represent a consistent view of the database at the provided time. Otherwise, there are no guarantees about the consistency of the exported documents.
* The timestamp that corresponds to the version of the database to be exported. The timestamp must be in the past, rounded to the minute and not older than earliestVersionTime. If specified, then the exported documents will represent a consistent view of the database at the provided time. Otherwise, there are no guarantees about the consistency of the exported documents.
*/
snapshotTime?: string | null;
}
Expand Down Expand Up @@ -1016,6 +1016,10 @@ export namespace firestore_v1 {
* The databases in the project.
*/
databases?: Schema$GoogleFirestoreAdminV1Database[];
/**
* In the event that data about individual databases cannot be listed they will be recorded here. An example entry might be: projects/some_project/locations/some_location This can happen if the Cloud Region that the Database resides in is currently unavailable. In this case we can't fetch all the details about the database. You may be able to get a more detailed error message (or possibly fetch the resource) by sending a 'Get' request for the resource or a 'List' request for the specific location.
*/
unreachable?: string[] | null;
}
/**
* The response for FirestoreAdmin.ListFields.
Expand Down

0 comments on commit 1068dd8

Please sign in to comment.