google-apis-datastore_v1 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2e8dda66e7b060105a34941dc8be086dd33adfda6256b811054daccccf3c220
|
4
|
+
data.tar.gz: a01a4ca826ad37f0084a034918d9adcab6245a3d165f5310b5cb6f4a9af5f79a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b840fae4cf821064df3442f187901de31f3276c7ac2917ba3c279eeb0434f1a585c989e9f05a2a067b1d0ff3af5d598ea6846ac3853e1e6f67f703de137f66
|
7
|
+
data.tar.gz: 899f1193ddc3fa3ae8649d58f327f00654682a5cf97f943b5dd67ee9f193565a20e463fcf54aef3020c5e7c22eb6d23f10bcbadfaa28205e2e930e261bcd0cbf
|
data/CHANGELOG.md
CHANGED
@@ -165,6 +165,11 @@ module Google
|
|
165
165
|
class CommitResponse
|
166
166
|
include Google::Apis::Core::Hashable
|
167
167
|
|
168
|
+
# The transaction commit timestamp. Not set for non-transactional commits.
|
169
|
+
# Corresponds to the JSON property `commitTime`
|
170
|
+
# @return [String]
|
171
|
+
attr_accessor :commit_time
|
172
|
+
|
168
173
|
# The number of index entries updated during the commit, or zero if none were
|
169
174
|
# updated.
|
170
175
|
# Corresponds to the JSON property `indexUpdates`
|
@@ -183,6 +188,7 @@ module Google
|
|
183
188
|
|
184
189
|
# Update properties of this object
|
185
190
|
def update!(**args)
|
191
|
+
@commit_time = args[:commit_time] if args.key?(:commit_time)
|
186
192
|
@index_updates = args[:index_updates] if args.key?(:index_updates)
|
187
193
|
@mutation_results = args[:mutation_results] if args.key?(:mutation_results)
|
188
194
|
end
|
@@ -279,6 +285,12 @@ module Google
|
|
279
285
|
# @return [Google::Apis::DatastoreV1::Entity]
|
280
286
|
attr_accessor :entity
|
281
287
|
|
288
|
+
# The time at which the entity was last changed. This field is set for `FULL`
|
289
|
+
# entity results. If this entity is missing, this field will not be set.
|
290
|
+
# Corresponds to the JSON property `updateTime`
|
291
|
+
# @return [String]
|
292
|
+
attr_accessor :update_time
|
293
|
+
|
282
294
|
# The version of the entity, a strictly positive number that monotonically
|
283
295
|
# increases with changes to the entity. This field is set for `FULL` entity
|
284
296
|
# results. For missing entities in `LookupResponse`, this is the version of the
|
@@ -296,6 +308,7 @@ module Google
|
|
296
308
|
def update!(**args)
|
297
309
|
@cursor = args[:cursor] if args.key?(:cursor)
|
298
310
|
@entity = args[:entity] if args.key?(:entity)
|
311
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
299
312
|
@version = args[:version] if args.key?(:version)
|
300
313
|
end
|
301
314
|
end
|
@@ -1446,6 +1459,11 @@ module Google
|
|
1446
1459
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
1447
1460
|
attr_accessor :missing
|
1448
1461
|
|
1462
|
+
# The time at which these entities were read or found missing.
|
1463
|
+
# Corresponds to the JSON property `readTime`
|
1464
|
+
# @return [String]
|
1465
|
+
attr_accessor :read_time
|
1466
|
+
|
1449
1467
|
def initialize(**args)
|
1450
1468
|
update!(**args)
|
1451
1469
|
end
|
@@ -1455,6 +1473,7 @@ module Google
|
|
1455
1473
|
@deferred = args[:deferred] if args.key?(:deferred)
|
1456
1474
|
@found = args[:found] if args.key?(:found)
|
1457
1475
|
@missing = args[:missing] if args.key?(:missing)
|
1476
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1458
1477
|
end
|
1459
1478
|
end
|
1460
1479
|
|
@@ -1489,6 +1508,12 @@ module Google
|
|
1489
1508
|
# @return [Google::Apis::DatastoreV1::Entity]
|
1490
1509
|
attr_accessor :update
|
1491
1510
|
|
1511
|
+
# The update time of the entity that this mutation is being applied to. If this
|
1512
|
+
# does not match the current update time on the server, the mutation conflicts.
|
1513
|
+
# Corresponds to the JSON property `updateTime`
|
1514
|
+
# @return [String]
|
1515
|
+
attr_accessor :update_time
|
1516
|
+
|
1492
1517
|
# A Datastore data object. An entity is limited to 1 megabyte when stored. That
|
1493
1518
|
# _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this
|
1494
1519
|
# message.
|
@@ -1506,6 +1531,7 @@ module Google
|
|
1506
1531
|
@delete = args[:delete] if args.key?(:delete)
|
1507
1532
|
@insert = args[:insert] if args.key?(:insert)
|
1508
1533
|
@update = args[:update] if args.key?(:update)
|
1534
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1509
1535
|
@upsert = args[:upsert] if args.key?(:upsert)
|
1510
1536
|
end
|
1511
1537
|
end
|
@@ -1528,6 +1554,14 @@ module Google
|
|
1528
1554
|
# @return [Google::Apis::DatastoreV1::Key]
|
1529
1555
|
attr_accessor :key
|
1530
1556
|
|
1557
|
+
# The update time of the entity on the server after processing the mutation. If
|
1558
|
+
# the mutation doesn't change anything on the server, then the timestamp will be
|
1559
|
+
# the update timestamp of the current entity. This field will not be set after a
|
1560
|
+
# 'delete'.
|
1561
|
+
# Corresponds to the JSON property `updateTime`
|
1562
|
+
# @return [String]
|
1563
|
+
attr_accessor :update_time
|
1564
|
+
|
1531
1565
|
# The version of the entity on the server after processing the mutation. If the
|
1532
1566
|
# mutation doesn't change anything on the server, then the version will be the
|
1533
1567
|
# version of the current entity or, if no entity is present, a version that is
|
@@ -1545,6 +1579,7 @@ module Google
|
|
1545
1579
|
def update!(**args)
|
1546
1580
|
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
1547
1581
|
@key = args[:key] if args.key?(:key)
|
1582
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1548
1583
|
@version = args[:version] if args.key?(:version)
|
1549
1584
|
end
|
1550
1585
|
end
|
@@ -1818,6 +1853,17 @@ module Google
|
|
1818
1853
|
# @return [String]
|
1819
1854
|
attr_accessor :more_results
|
1820
1855
|
|
1856
|
+
# Read timestamp this batch was returned from. This applies to the range of
|
1857
|
+
# results from the query's `start_cursor` (or the beginning of the query if no
|
1858
|
+
# cursor was given) to this batch's `end_cursor` (not the query's `end_cursor`).
|
1859
|
+
# In a single transaction, subsequent query result batches for the same query
|
1860
|
+
# can have a greater timestamp. Each batch's read timestamp is valid for all
|
1861
|
+
# preceding batches. This value will not be set for eventually consistent
|
1862
|
+
# queries in Cloud Datastore.
|
1863
|
+
# Corresponds to the JSON property `readTime`
|
1864
|
+
# @return [String]
|
1865
|
+
attr_accessor :read_time
|
1866
|
+
|
1821
1867
|
# A cursor that points to the position after the last skipped result. Will be
|
1822
1868
|
# set when `skipped_results` != 0.
|
1823
1869
|
# Corresponds to the JSON property `skippedCursor`
|
@@ -1851,6 +1897,7 @@ module Google
|
|
1851
1897
|
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
1852
1898
|
@entity_results = args[:entity_results] if args.key?(:entity_results)
|
1853
1899
|
@more_results = args[:more_results] if args.key?(:more_results)
|
1900
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1854
1901
|
@skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
|
1855
1902
|
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
1856
1903
|
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
@@ -1861,12 +1908,18 @@ module Google
|
|
1861
1908
|
class ReadOnly
|
1862
1909
|
include Google::Apis::Core::Hashable
|
1863
1910
|
|
1911
|
+
# Reads entities at the given time. This may not be older than 60 seconds.
|
1912
|
+
# Corresponds to the JSON property `readTime`
|
1913
|
+
# @return [String]
|
1914
|
+
attr_accessor :read_time
|
1915
|
+
|
1864
1916
|
def initialize(**args)
|
1865
1917
|
update!(**args)
|
1866
1918
|
end
|
1867
1919
|
|
1868
1920
|
# Update properties of this object
|
1869
1921
|
def update!(**args)
|
1922
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1870
1923
|
end
|
1871
1924
|
end
|
1872
1925
|
|
@@ -1880,6 +1933,12 @@ module Google
|
|
1880
1933
|
# @return [String]
|
1881
1934
|
attr_accessor :read_consistency
|
1882
1935
|
|
1936
|
+
# Reads entities as they were at the given time. This may not be older than 270
|
1937
|
+
# seconds. This value is only supported for Cloud Firestore in Datastore mode.
|
1938
|
+
# Corresponds to the JSON property `readTime`
|
1939
|
+
# @return [String]
|
1940
|
+
attr_accessor :read_time
|
1941
|
+
|
1883
1942
|
# The identifier of the transaction in which to read. A transaction identifier
|
1884
1943
|
# is returned by a call to Datastore.BeginTransaction.
|
1885
1944
|
# Corresponds to the JSON property `transaction`
|
@@ -1894,6 +1953,7 @@ module Google
|
|
1894
1953
|
# Update properties of this object
|
1895
1954
|
def update!(**args)
|
1896
1955
|
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
1956
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1897
1957
|
@transaction = args[:transaction] if args.key?(:transaction)
|
1898
1958
|
end
|
1899
1959
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DatastoreV1
|
18
18
|
# Version of the google-apis-datastore_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220402"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -470,6 +470,7 @@ module Google
|
|
470
470
|
class CommitResponse
|
471
471
|
# @private
|
472
472
|
class Representation < Google::Apis::Core::JsonRepresentation
|
473
|
+
property :commit_time, as: 'commitTime'
|
473
474
|
property :index_updates, as: 'indexUpdates'
|
474
475
|
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
|
475
476
|
|
@@ -507,6 +508,7 @@ module Google
|
|
507
508
|
property :cursor, :base64 => true, as: 'cursor'
|
508
509
|
property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
509
510
|
|
511
|
+
property :update_time, as: 'updateTime'
|
510
512
|
property :version, :numeric_string => true, as: 'version'
|
511
513
|
end
|
512
514
|
end
|
@@ -836,6 +838,7 @@ module Google
|
|
836
838
|
|
837
839
|
collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
|
838
840
|
|
841
|
+
property :read_time, as: 'readTime'
|
839
842
|
end
|
840
843
|
end
|
841
844
|
|
@@ -849,6 +852,7 @@ module Google
|
|
849
852
|
|
850
853
|
property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
851
854
|
|
855
|
+
property :update_time, as: 'updateTime'
|
852
856
|
property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
853
857
|
|
854
858
|
end
|
@@ -860,6 +864,7 @@ module Google
|
|
860
864
|
property :conflict_detected, as: 'conflictDetected'
|
861
865
|
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
862
866
|
|
867
|
+
property :update_time, as: 'updateTime'
|
863
868
|
property :version, :numeric_string => true, as: 'version'
|
864
869
|
end
|
865
870
|
end
|
@@ -944,6 +949,7 @@ module Google
|
|
944
949
|
collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
|
945
950
|
|
946
951
|
property :more_results, as: 'moreResults'
|
952
|
+
property :read_time, as: 'readTime'
|
947
953
|
property :skipped_cursor, :base64 => true, as: 'skippedCursor'
|
948
954
|
property :skipped_results, as: 'skippedResults'
|
949
955
|
property :snapshot_version, :numeric_string => true, as: 'snapshotVersion'
|
@@ -953,6 +959,7 @@ module Google
|
|
953
959
|
class ReadOnly
|
954
960
|
# @private
|
955
961
|
class Representation < Google::Apis::Core::JsonRepresentation
|
962
|
+
property :read_time, as: 'readTime'
|
956
963
|
end
|
957
964
|
end
|
958
965
|
|
@@ -960,6 +967,7 @@ module Google
|
|
960
967
|
# @private
|
961
968
|
class Representation < Google::Apis::Core::JsonRepresentation
|
962
969
|
property :read_consistency, as: 'readConsistency'
|
970
|
+
property :read_time, as: 'readTime'
|
963
971
|
property :transaction, :base64 => true, as: 'transaction'
|
964
972
|
end
|
965
973
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-datastore_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.13.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|