google-apis-datastore_v1 0.11.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6292f4e8adb28d7753b2772082c3ac278035d72e90384aa391829a471d015a41
4
- data.tar.gz: 1d276b701ee28bed4009a7417c31f09cf549227299ca552c859cedf847fa0d3d
3
+ metadata.gz: b792c119d7e1951886e9ba48eda00d07c3f77e645c1ae811a5949d3c81dd17e8
4
+ data.tar.gz: '09ad399630da0394b42ceedff8d96a1dd3e6910556937a20be96b96678de237f'
5
5
  SHA512:
6
- metadata.gz: 1382065d102e107b48253203395eeece7689a4e918119a2c709d54e48972851d8adb2ef82308994c75e7760e9a11a1405d01730c85f0b2ca97b79c5ca1260065
7
- data.tar.gz: 2a93ad9265e384ce4e8dc72908a78b4bf1ba39394d08b66fd3e74e6739e8b38a276b89516449fbe9d062e6679ffce2c35527d268532150e20ad40894a6961a9c
6
+ metadata.gz: 9f4e40e3ab152718e2f0940716cc61cc65efbc3c7e9f79c96d37751a5e017aa62dddf5cd35fcc493815b44d92a79fec13430a784e3e871858c963f9900bc2cd6
7
+ data.tar.gz: bc4284f5e9d81c311bfac310326be0fe0eda8af42e7cf1b4a75ec497d86ee4da94e9cb99a5616c607877c935b5de966d20e9c3012b167efbc3c6bd22adc8f958
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-datastore_v1
2
2
 
3
+ ### v0.14.0 (2022-06-06)
4
+
5
+ * Regenerated from discovery document revision 20220524
6
+ * Regenerated using generator version 0.5.0
7
+
8
+ ### v0.13.0 (2022-04-09)
9
+
10
+ * Regenerated from discovery document revision 20220402
11
+
12
+ ### v0.12.0 (2022-03-30)
13
+
14
+ * Regenerated from discovery document revision 20220319
15
+
3
16
  ### v0.11.0 (2022-01-21)
4
17
 
5
18
  * Regenerated from discovery document revision 20220110
@@ -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
@@ -216,8 +222,7 @@ module Google
216
222
  # A generic empty message that you can re-use to avoid defining duplicated empty
217
223
  # messages in your APIs. A typical example is to use it as the request or the
218
224
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
219
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
220
- # `Empty` is empty JSON object ````.
225
+ # protobuf.Empty) returns (google.protobuf.Empty); `
221
226
  class Empty
222
227
  include Google::Apis::Core::Hashable
223
228
 
@@ -280,6 +285,12 @@ module Google
280
285
  # @return [Google::Apis::DatastoreV1::Entity]
281
286
  attr_accessor :entity
282
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
+
283
294
  # The version of the entity, a strictly positive number that monotonically
284
295
  # increases with changes to the entity. This field is set for `FULL` entity
285
296
  # results. For missing entities in `LookupResponse`, this is the version of the
@@ -297,6 +308,7 @@ module Google
297
308
  def update!(**args)
298
309
  @cursor = args[:cursor] if args.key?(:cursor)
299
310
  @entity = args[:entity] if args.key?(:entity)
311
+ @update_time = args[:update_time] if args.key?(:update_time)
300
312
  @version = args[:version] if args.key?(:version)
301
313
  end
302
314
  end
@@ -1447,6 +1459,11 @@ module Google
1447
1459
  # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
1448
1460
  attr_accessor :missing
1449
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
+
1450
1467
  def initialize(**args)
1451
1468
  update!(**args)
1452
1469
  end
@@ -1456,6 +1473,7 @@ module Google
1456
1473
  @deferred = args[:deferred] if args.key?(:deferred)
1457
1474
  @found = args[:found] if args.key?(:found)
1458
1475
  @missing = args[:missing] if args.key?(:missing)
1476
+ @read_time = args[:read_time] if args.key?(:read_time)
1459
1477
  end
1460
1478
  end
1461
1479
 
@@ -1490,6 +1508,12 @@ module Google
1490
1508
  # @return [Google::Apis::DatastoreV1::Entity]
1491
1509
  attr_accessor :update
1492
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
+
1493
1517
  # A Datastore data object. An entity is limited to 1 megabyte when stored. That
1494
1518
  # _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this
1495
1519
  # message.
@@ -1507,6 +1531,7 @@ module Google
1507
1531
  @delete = args[:delete] if args.key?(:delete)
1508
1532
  @insert = args[:insert] if args.key?(:insert)
1509
1533
  @update = args[:update] if args.key?(:update)
1534
+ @update_time = args[:update_time] if args.key?(:update_time)
1510
1535
  @upsert = args[:upsert] if args.key?(:upsert)
1511
1536
  end
1512
1537
  end
@@ -1529,6 +1554,14 @@ module Google
1529
1554
  # @return [Google::Apis::DatastoreV1::Key]
1530
1555
  attr_accessor :key
1531
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
+
1532
1565
  # The version of the entity on the server after processing the mutation. If the
1533
1566
  # mutation doesn't change anything on the server, then the version will be the
1534
1567
  # version of the current entity or, if no entity is present, a version that is
@@ -1546,6 +1579,7 @@ module Google
1546
1579
  def update!(**args)
1547
1580
  @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
1548
1581
  @key = args[:key] if args.key?(:key)
1582
+ @update_time = args[:update_time] if args.key?(:update_time)
1549
1583
  @version = args[:version] if args.key?(:version)
1550
1584
  end
1551
1585
  end
@@ -1597,13 +1631,16 @@ module Google
1597
1631
 
1598
1632
  # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only.
1599
1633
  # A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`
1600
- # .
1634
+ # . Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
1635
+ # encoded as `__bytes__` where `` is the base-64 encoding of the bytes.
1601
1636
  # Corresponds to the JSON property `kind`
1602
1637
  # @return [String]
1603
1638
  attr_accessor :kind
1604
1639
 
1605
1640
  # The name of the entity. A name matching regex `__.*__` is reserved/read-only.
1606
1641
  # A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
1642
+ # Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are encoded
1643
+ # as `__bytes__` where `` is the base-64 encoding of the bytes.
1607
1644
  # Corresponds to the JSON property `name`
1608
1645
  # @return [String]
1609
1646
  attr_accessor :name
@@ -1819,6 +1856,17 @@ module Google
1819
1856
  # @return [String]
1820
1857
  attr_accessor :more_results
1821
1858
 
1859
+ # Read timestamp this batch was returned from. This applies to the range of
1860
+ # results from the query's `start_cursor` (or the beginning of the query if no
1861
+ # cursor was given) to this batch's `end_cursor` (not the query's `end_cursor`).
1862
+ # In a single transaction, subsequent query result batches for the same query
1863
+ # can have a greater timestamp. Each batch's read timestamp is valid for all
1864
+ # preceding batches. This value will not be set for eventually consistent
1865
+ # queries in Cloud Datastore.
1866
+ # Corresponds to the JSON property `readTime`
1867
+ # @return [String]
1868
+ attr_accessor :read_time
1869
+
1822
1870
  # A cursor that points to the position after the last skipped result. Will be
1823
1871
  # set when `skipped_results` != 0.
1824
1872
  # Corresponds to the JSON property `skippedCursor`
@@ -1852,6 +1900,7 @@ module Google
1852
1900
  @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
1853
1901
  @entity_results = args[:entity_results] if args.key?(:entity_results)
1854
1902
  @more_results = args[:more_results] if args.key?(:more_results)
1903
+ @read_time = args[:read_time] if args.key?(:read_time)
1855
1904
  @skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
1856
1905
  @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
1857
1906
  @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
@@ -1862,12 +1911,18 @@ module Google
1862
1911
  class ReadOnly
1863
1912
  include Google::Apis::Core::Hashable
1864
1913
 
1914
+ # Reads entities at the given time. This may not be older than 60 seconds.
1915
+ # Corresponds to the JSON property `readTime`
1916
+ # @return [String]
1917
+ attr_accessor :read_time
1918
+
1865
1919
  def initialize(**args)
1866
1920
  update!(**args)
1867
1921
  end
1868
1922
 
1869
1923
  # Update properties of this object
1870
1924
  def update!(**args)
1925
+ @read_time = args[:read_time] if args.key?(:read_time)
1871
1926
  end
1872
1927
  end
1873
1928
 
@@ -1881,6 +1936,12 @@ module Google
1881
1936
  # @return [String]
1882
1937
  attr_accessor :read_consistency
1883
1938
 
1939
+ # Reads entities as they were at the given time. This may not be older than 270
1940
+ # seconds. This value is only supported for Cloud Firestore in Datastore mode.
1941
+ # Corresponds to the JSON property `readTime`
1942
+ # @return [String]
1943
+ attr_accessor :read_time
1944
+
1884
1945
  # The identifier of the transaction in which to read. A transaction identifier
1885
1946
  # is returned by a call to Datastore.BeginTransaction.
1886
1947
  # Corresponds to the JSON property `transaction`
@@ -1895,6 +1956,7 @@ module Google
1895
1956
  # Update properties of this object
1896
1957
  def update!(**args)
1897
1958
  @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
1959
+ @read_time = args[:read_time] if args.key?(:read_time)
1898
1960
  @transaction = args[:transaction] if args.key?(:transaction)
1899
1961
  end
1900
1962
  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.11.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220110"
25
+ REVISION = "20220524"
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.11.0
4
+ version: 0.14.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-01-24 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.14.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Datastore API V1