google-apis-datastore_v1 0.21.0 → 0.22.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: b50cd04c8c1bf47003a2f66e0de6351a9e8ade4d213ed5911e5c63cb1feef0b5
4
- data.tar.gz: fc11c6da7218fad6ba92d62251b5175d5d75dac637c7a94c14d733688cff31bb
3
+ metadata.gz: 0d7eda263b317c40cc63b55248b2953f4990631c712550c33f9dec75ade7fc09
4
+ data.tar.gz: 10392abea71c7af796b4fa46e1a00e5b233fe75097792ad0c92aa58c9a8de5ac
5
5
  SHA512:
6
- metadata.gz: b3ff55ecfa8d00eff3b9cfdb02e361fd45a7c292240ee5aa6828904d665ea8f1db2652761a43977ebf650e94c4ce770baa799fca6981713345aaaa35cec98d84
7
- data.tar.gz: e5b5deca8ae029fdcfbf1d49531f2f98e48b4e3bae7b4c083ec0db0f89175648d309820541d74b59ba9fd7e817e3c93c99c225d16fef324653d9d119bd105737
6
+ metadata.gz: 481dfaf73cff773abe91a9bbec90afd7c5912934dd23d512809ac6ab5af79d1b28c967a9d8313aae9ec827cfada454d23830983c9c142ed697543ea5082436d4
7
+ data.tar.gz: 5937be70372812f0951e55112fb284d9abc4fc1699a761900dacd3305f73b493fb64d98de9fdab7664a4054f684c18ce4b336d514115928a69801f16d09cac34
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-datastore_v1
2
2
 
3
+ ### v0.22.0 (2023-01-22)
4
+
5
+ * Regenerated from discovery document revision 20230118
6
+
3
7
  ### v0.21.0 (2023-01-15)
4
8
 
5
9
  * Regenerated from discovery document revision 20230110
@@ -280,6 +280,13 @@ module Google
280
280
  # @return [Array<Google::Apis::DatastoreV1::Mutation>]
281
281
  attr_accessor :mutations
282
282
 
283
+ # Options for beginning a new transaction. Transactions can be created
284
+ # explicitly with calls to Datastore.BeginTransaction or implicitly by setting
285
+ # ReadOptions.new_transaction in read requests.
286
+ # Corresponds to the JSON property `singleUseTransaction`
287
+ # @return [Google::Apis::DatastoreV1::TransactionOptions]
288
+ attr_accessor :single_use_transaction
289
+
283
290
  # The identifier of the transaction associated with the commit. A transaction
284
291
  # identifier is returned by a call to Datastore.BeginTransaction.
285
292
  # Corresponds to the JSON property `transaction`
@@ -296,6 +303,7 @@ module Google
296
303
  @database_id = args[:database_id] if args.key?(:database_id)
297
304
  @mode = args[:mode] if args.key?(:mode)
298
305
  @mutations = args[:mutations] if args.key?(:mutations)
306
+ @single_use_transaction = args[:single_use_transaction] if args.key?(:single_use_transaction)
299
307
  @transaction = args[:transaction] if args.key?(:transaction)
300
308
  end
301
309
  end
@@ -1643,6 +1651,14 @@ module Google
1643
1651
  # @return [String]
1644
1652
  attr_accessor :read_time
1645
1653
 
1654
+ # The identifier of the transaction that was started as part of this Lookup
1655
+ # request. Set only when ReadOptions.begin_transaction was set in LookupRequest.
1656
+ # read_options.
1657
+ # Corresponds to the JSON property `transaction`
1658
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1659
+ # @return [String]
1660
+ attr_accessor :transaction
1661
+
1646
1662
  def initialize(**args)
1647
1663
  update!(**args)
1648
1664
  end
@@ -1653,6 +1669,7 @@ module Google
1653
1669
  @found = args[:found] if args.key?(:found)
1654
1670
  @missing = args[:missing] if args.key?(:missing)
1655
1671
  @read_time = args[:read_time] if args.key?(:read_time)
1672
+ @transaction = args[:transaction] if args.key?(:transaction)
1656
1673
  end
1657
1674
  end
1658
1675
 
@@ -2121,6 +2138,13 @@ module Google
2121
2138
  class ReadOptions
2122
2139
  include Google::Apis::Core::Hashable
2123
2140
 
2141
+ # Options for beginning a new transaction. Transactions can be created
2142
+ # explicitly with calls to Datastore.BeginTransaction or implicitly by setting
2143
+ # ReadOptions.new_transaction in read requests.
2144
+ # Corresponds to the JSON property `newTransaction`
2145
+ # @return [Google::Apis::DatastoreV1::TransactionOptions]
2146
+ attr_accessor :new_transaction
2147
+
2124
2148
  # The non-transactional read consistency to use.
2125
2149
  # Corresponds to the JSON property `readConsistency`
2126
2150
  # @return [String]
@@ -2145,6 +2169,7 @@ module Google
2145
2169
 
2146
2170
  # Update properties of this object
2147
2171
  def update!(**args)
2172
+ @new_transaction = args[:new_transaction] if args.key?(:new_transaction)
2148
2173
  @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
2149
2174
  @read_time = args[:read_time] if args.key?(:read_time)
2150
2175
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -2319,6 +2344,14 @@ module Google
2319
2344
  # @return [Google::Apis::DatastoreV1::AggregationQuery]
2320
2345
  attr_accessor :query
2321
2346
 
2347
+ # The identifier of the transaction that was started as part of this
2348
+ # RunAggregationQuery request. Set only when ReadOptions.begin_transaction was
2349
+ # set in RunAggregationQueryRequest.read_options.
2350
+ # Corresponds to the JSON property `transaction`
2351
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2352
+ # @return [String]
2353
+ attr_accessor :transaction
2354
+
2322
2355
  def initialize(**args)
2323
2356
  update!(**args)
2324
2357
  end
@@ -2327,6 +2360,7 @@ module Google
2327
2360
  def update!(**args)
2328
2361
  @batch = args[:batch] if args.key?(:batch)
2329
2362
  @query = args[:query] if args.key?(:query)
2363
+ @transaction = args[:transaction] if args.key?(:transaction)
2330
2364
  end
2331
2365
  end
2332
2366
 
@@ -2397,6 +2431,14 @@ module Google
2397
2431
  # @return [Google::Apis::DatastoreV1::Query]
2398
2432
  attr_accessor :query
2399
2433
 
2434
+ # The identifier of the transaction that was started as part of this RunQuery
2435
+ # request. Set only when ReadOptions.begin_transaction was set in
2436
+ # RunQueryRequest.read_options.
2437
+ # Corresponds to the JSON property `transaction`
2438
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2439
+ # @return [String]
2440
+ attr_accessor :transaction
2441
+
2400
2442
  def initialize(**args)
2401
2443
  update!(**args)
2402
2444
  end
@@ -2405,6 +2447,7 @@ module Google
2405
2447
  def update!(**args)
2406
2448
  @batch = args[:batch] if args.key?(:batch)
2407
2449
  @query = args[:query] if args.key?(:query)
2450
+ @transaction = args[:transaction] if args.key?(:transaction)
2408
2451
  end
2409
2452
  end
2410
2453
 
@@ -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.21.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230110"
25
+ REVISION = "20230118"
26
26
  end
27
27
  end
28
28
  end
@@ -545,6 +545,8 @@ module Google
545
545
  property :mode, as: 'mode'
546
546
  collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
547
547
 
548
+ property :single_use_transaction, as: 'singleUseTransaction', class: Google::Apis::DatastoreV1::TransactionOptions, decorator: Google::Apis::DatastoreV1::TransactionOptions::Representation
549
+
548
550
  property :transaction, :base64 => true, as: 'transaction'
549
551
  end
550
552
  end
@@ -930,6 +932,7 @@ module Google
930
932
  collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
931
933
 
932
934
  property :read_time, as: 'readTime'
935
+ property :transaction, :base64 => true, as: 'transaction'
933
936
  end
934
937
  end
935
938
 
@@ -1059,6 +1062,8 @@ module Google
1059
1062
  class ReadOptions
1060
1063
  # @private
1061
1064
  class Representation < Google::Apis::Core::JsonRepresentation
1065
+ property :new_transaction, as: 'newTransaction', class: Google::Apis::DatastoreV1::TransactionOptions, decorator: Google::Apis::DatastoreV1::TransactionOptions::Representation
1066
+
1062
1067
  property :read_consistency, as: 'readConsistency'
1063
1068
  property :read_time, as: 'readTime'
1064
1069
  property :transaction, :base64 => true, as: 'transaction'
@@ -1123,6 +1128,7 @@ module Google
1123
1128
 
1124
1129
  property :query, as: 'query', class: Google::Apis::DatastoreV1::AggregationQuery, decorator: Google::Apis::DatastoreV1::AggregationQuery::Representation
1125
1130
 
1131
+ property :transaction, :base64 => true, as: 'transaction'
1126
1132
  end
1127
1133
  end
1128
1134
 
@@ -1148,6 +1154,7 @@ module Google
1148
1154
 
1149
1155
  property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
1150
1156
 
1157
+ property :transaction, :base64 => true, as: 'transaction'
1151
1158
  end
1152
1159
  end
1153
1160
 
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.21.0
4
+ version: 0.22.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: 2023-01-15 00:00:00.000000000 Z
11
+ date: 2023-01-22 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.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.22.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: []