Skip to content

Commit 851dba5

Browse files
feat(firestore): update the api
#### firestore:v1 The following keys were added: - schemas.GoogleFirestoreAdminV1Database.properties.earliestVersionTime (Total Keys: 3)
1 parent 7bcbd96 commit 851dba5

File tree

6 files changed

+28
-19
lines changed

6 files changed

+28
-19
lines changed

docs/dyn/firestore_v1.projects.databases.documents.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ <h3>Method Details</h3>
225225
{ # A write on a document.
226226
&quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
227227
&quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
228-
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time.
228+
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
229229
},
230230
&quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
231231
&quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
@@ -554,7 +554,7 @@ <h3>Method Details</h3>
554554
{ # A write on a document.
555555
&quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
556556
&quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
557-
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time.
557+
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
558558
},
559559
&quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
560560
&quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
@@ -912,7 +912,7 @@ <h3>Method Details</h3>
912912
Args:
913913
name: string, Required. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. (required)
914914
currentDocument_exists: boolean, When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
915-
currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time.
915+
currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
916916
x__xgafv: string, V1 error format.
917917
Allowed values
918918
1 - v1 error format
@@ -1578,7 +1578,7 @@ <h3>Method Details</h3>
15781578
}
15791579

15801580
currentDocument_exists: boolean, When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
1581-
currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time.
1581+
currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
15821582
mask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
15831583
updateMask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
15841584
x__xgafv: string, V1 error format.
@@ -1861,7 +1861,7 @@ <h3>Method Details</h3>
18611861
{ # A write on a document.
18621862
&quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
18631863
&quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
1864-
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time.
1864+
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
18651865
},
18661866
&quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
18671867
&quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.

docs/dyn/firestore_v1.projects.databases.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ <h3>Method Details</h3>
174174

175175
{ # A Cloud Firestore Database. Currently only one database is allowed per cloud project; this database must have a `database_id` of &#x27;(default)&#x27;.
176176
&quot;concurrencyMode&quot;: &quot;A String&quot;, # The concurrency control mode to use for this database.
177+
&quot;earliestVersionTime&quot;: &quot;A String&quot;, # Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. Note that you should not need to query this field: if you know the `version_retention_period` then you can query within that time.
177178
&quot;etag&quot;: &quot;A String&quot;, # 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.
178179
&quot;locationId&quot;: &quot;A String&quot;, # The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
179180
&quot;name&quot;: &quot;A String&quot;, # The resource name of the Database. Format: `projects/{project}/databases/{database}`
@@ -244,6 +245,7 @@ <h3>Method Details</h3>
244245
&quot;databases&quot;: [ # The databases in the project.
245246
{ # A Cloud Firestore Database. Currently only one database is allowed per cloud project; this database must have a `database_id` of &#x27;(default)&#x27;.
246247
&quot;concurrencyMode&quot;: &quot;A String&quot;, # The concurrency control mode to use for this database.
248+
&quot;earliestVersionTime&quot;: &quot;A String&quot;, # Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. Note that you should not need to query this field: if you know the `version_retention_period` then you can query within that time.
247249
&quot;etag&quot;: &quot;A String&quot;, # 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.
248250
&quot;locationId&quot;: &quot;A String&quot;, # The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
249251
&quot;name&quot;: &quot;A String&quot;, # The resource name of the Database. Format: `projects/{project}/databases/{database}`
@@ -264,6 +266,7 @@ <h3>Method Details</h3>
264266

265267
{ # A Cloud Firestore Database. Currently only one database is allowed per cloud project; this database must have a `database_id` of &#x27;(default)&#x27;.
266268
&quot;concurrencyMode&quot;: &quot;A String&quot;, # The concurrency control mode to use for this database.
269+
&quot;earliestVersionTime&quot;: &quot;A String&quot;, # Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. Note that you should not need to query this field: if you know the `version_retention_period` then you can query within that time.
267270
&quot;etag&quot;: &quot;A String&quot;, # 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.
268271
&quot;locationId&quot;: &quot;A String&quot;, # The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
269272
&quot;name&quot;: &quot;A String&quot;, # The resource name of the Database. Format: `projects/{project}/databases/{database}`

docs/dyn/firestore_v1beta1.projects.databases.documents.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ <h3>Method Details</h3>
225225
{ # A write on a document.
226226
&quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
227227
&quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
228-
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time.
228+
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
229229
},
230230
&quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
231231
&quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
@@ -554,7 +554,7 @@ <h3>Method Details</h3>
554554
{ # A write on a document.
555555
&quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
556556
&quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
557-
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time.
557+
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
558558
},
559559
&quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
560560
&quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
@@ -912,7 +912,7 @@ <h3>Method Details</h3>
912912
Args:
913913
name: string, Required. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. (required)
914914
currentDocument_exists: boolean, When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
915-
currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time.
915+
currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
916916
x__xgafv: string, V1 error format.
917917
Allowed values
918918
1 - v1 error format
@@ -1578,7 +1578,7 @@ <h3>Method Details</h3>
15781578
}
15791579

15801580
currentDocument_exists: boolean, When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
1581-
currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time.
1581+
currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
15821582
mask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
15831583
updateMask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
15841584
x__xgafv: string, V1 error format.
@@ -1861,7 +1861,7 @@ <h3>Method Details</h3>
18611861
{ # A write on a document.
18621862
&quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
18631863
&quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
1864-
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time.
1864+
&quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
18651865
},
18661866
&quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
18671867
&quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.

googleapiclient/discovery_cache/documents/firestore.v1.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@
677677
"type": "boolean"
678678
},
679679
"currentDocument.updateTime": {
680-
"description": "When set, the target document must exist and have been last updated at that time.",
680+
"description": "When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.",
681681
"format": "google-datetime",
682682
"location": "query",
683683
"type": "string"
@@ -917,7 +917,7 @@
917917
"type": "boolean"
918918
},
919919
"currentDocument.updateTime": {
920-
"description": "When set, the target document must exist and have been last updated at that time.",
920+
"description": "When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.",
921921
"format": "google-datetime",
922922
"location": "query",
923923
"type": "string"
@@ -1247,7 +1247,7 @@
12471247
}
12481248
}
12491249
},
1250-
"revision": "20210927",
1250+
"revision": "20211013",
12511251
"rootUrl": "https://firestore.googleapis.com/",
12521252
"schemas": {
12531253
"ArrayValue": {
@@ -1792,6 +1792,12 @@
17921792
],
17931793
"type": "string"
17941794
},
1795+
"earliestVersionTime": {
1796+
"description": "Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. Note that you should not need to query this field: if you know the `version_retention_period` then you can query within that time.",
1797+
"format": "google-datetime",
1798+
"readOnly": true,
1799+
"type": "string"
1800+
},
17951801
"etag": {
17961802
"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.",
17971803
"type": "string"
@@ -2646,7 +2652,7 @@
26462652
"type": "boolean"
26472653
},
26482654
"updateTime": {
2649-
"description": "When set, the target document must exist and have been last updated at that time.",
2655+
"description": "When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.",
26502656
"format": "google-datetime",
26512657
"type": "string"
26522658
}

googleapiclient/discovery_cache/documents/firestore.v1beta1.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
"type": "boolean"
353353
},
354354
"currentDocument.updateTime": {
355-
"description": "When set, the target document must exist and have been last updated at that time.",
355+
"description": "When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.",
356356
"format": "google-datetime",
357357
"location": "query",
358358
"type": "string"
@@ -592,7 +592,7 @@
592592
"type": "boolean"
593593
},
594594
"currentDocument.updateTime": {
595-
"description": "When set, the target document must exist and have been last updated at that time.",
595+
"description": "When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.",
596596
"format": "google-datetime",
597597
"location": "query",
598598
"type": "string"
@@ -849,7 +849,7 @@
849849
}
850850
}
851851
},
852-
"revision": "20210927",
852+
"revision": "20211013",
853853
"rootUrl": "https://firestore.googleapis.com/",
854854
"schemas": {
855855
"ArrayValue": {
@@ -1933,7 +1933,7 @@
19331933
"type": "boolean"
19341934
},
19351935
"updateTime": {
1936-
"description": "When set, the target document must exist and have been last updated at that time.",
1936+
"description": "When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.",
19371937
"format": "google-datetime",
19381938
"type": "string"
19391939
}

googleapiclient/discovery_cache/documents/firestore.v1beta2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@
415415
}
416416
}
417417
},
418-
"revision": "20210927",
418+
"revision": "20211013",
419419
"rootUrl": "https://firestore.googleapis.com/",
420420
"schemas": {
421421
"Empty": {

0 commit comments

Comments
 (0)