google-cloud-datastore-v1 0.8.0 → 0.9.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: c45c26b4609092449a125a9c82ea164e7a8cc8ae73dc4b221879fe2aec45d13e
4
- data.tar.gz: d0949170d61b922ecde9f8ceda24e9d169afc6949b344e91c9d536d04aa50099
3
+ metadata.gz: 2f4d55cf589fd16715958a83a516a24aa307ebbb8db950f0e20a1f1444b64346
4
+ data.tar.gz: 415e3d2094f91e8472bb508a4392d04084fc2e72cee9feaf6251038d903eff9f
5
5
  SHA512:
6
- metadata.gz: 7eee514105c9d4a2e2b98d5ff9948059d4c1b52f2770e2ad57843945f7dc89b8d61b383845125d7c1a070ddc2ae51c935db270237a90f7965657da0906698a94
7
- data.tar.gz: ea3a3d81f08b5b8d7232405bae7e7f9ae53a01842121e6363f80e030749052bc186a3ea15fe07d076272541a392f67c753b7e3ab24fd27055e3fdbeecdcc1d67
6
+ metadata.gz: 102167cf9d94a0208916c5b83d685a332378a3f0138c089593f6ed32a9d4611cbb02d1f9c86291c6d6811f2318d8f8ef8bd4381365c46af506f43e95fa8580b3
7
+ data.tar.gz: 4806f753317aaf0a47b22b1341062d27596abbdf7bc6ac6563bd190e111a4a0356f7fdcc39f37e280049fc025540d673fddb3fd26451a262db292d7f156aed89
@@ -589,7 +589,7 @@ module Google
589
589
  # @param options [::Gapic::CallOptions, ::Hash]
590
590
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
591
591
  #
592
- # @overload commit(project_id: nil, database_id: nil, mode: nil, transaction: nil, mutations: nil)
592
+ # @overload commit(project_id: nil, database_id: nil, mode: nil, transaction: nil, single_use_transaction: nil, mutations: nil)
593
593
  # Pass arguments to `commit` via keyword arguments. Note that at
594
594
  # least one keyword argument is required. To specify no parameters, or to keep all
595
595
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -607,6 +607,12 @@ module Google
607
607
  # The identifier of the transaction associated with the commit. A
608
608
  # transaction identifier is returned by a call to
609
609
  # {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
610
+ # @param single_use_transaction [::Google::Cloud::Datastore::V1::TransactionOptions, ::Hash]
611
+ # Options for beginning a new transaction for this request.
612
+ # The transaction is committed when the request completes. If specified,
613
+ # [TransactionOptions.mode][google.datastore.v1.TransactionOptions.mode]
614
+ # must be
615
+ # {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
610
616
  # @param mutations [::Array<::Google::Cloud::Datastore::V1::Mutation, ::Hash>]
611
617
  # The mutations to perform.
612
618
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Datastore
23
23
  module V1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
24
24
  repeated :found, :message, 1, "google.datastore.v1.EntityResult"
25
25
  repeated :missing, :message, 2, "google.datastore.v1.EntityResult"
26
26
  repeated :deferred, :message, 3, "google.datastore.v1.Key"
27
+ optional :transaction, :bytes, 5
27
28
  optional :read_time, :message, 7, "google.protobuf.Timestamp"
28
29
  end
29
30
  add_message "google.datastore.v1.RunQueryRequest" do
@@ -39,6 +40,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
39
40
  add_message "google.datastore.v1.RunQueryResponse" do
40
41
  optional :batch, :message, 1, "google.datastore.v1.QueryResultBatch"
41
42
  optional :query, :message, 2, "google.datastore.v1.Query"
43
+ optional :transaction, :bytes, 5
42
44
  end
43
45
  add_message "google.datastore.v1.RunAggregationQueryRequest" do
44
46
  optional :project_id, :string, 8
@@ -53,6 +55,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
53
55
  add_message "google.datastore.v1.RunAggregationQueryResponse" do
54
56
  optional :batch, :message, 1, "google.datastore.v1.AggregationResultBatch"
55
57
  optional :query, :message, 2, "google.datastore.v1.AggregationQuery"
58
+ optional :transaction, :bytes, 5
56
59
  end
57
60
  add_message "google.datastore.v1.BeginTransactionRequest" do
58
61
  optional :project_id, :string, 8
@@ -76,6 +79,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
76
79
  repeated :mutations, :message, 6, "google.datastore.v1.Mutation"
77
80
  oneof :transaction_selector do
78
81
  optional :transaction, :bytes, 1
82
+ optional :single_use_transaction, :message, 10, "google.datastore.v1.TransactionOptions"
79
83
  end
80
84
  end
81
85
  add_enum "google.datastore.v1.CommitRequest.Mode" do
@@ -125,6 +129,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
125
129
  oneof :consistency_type do
126
130
  optional :read_consistency, :enum, 1, "google.datastore.v1.ReadOptions.ReadConsistency"
127
131
  optional :transaction, :bytes, 2
132
+ optional :new_transaction, :message, 3, "google.datastore.v1.TransactionOptions"
128
133
  optional :read_time, :message, 4, "google.protobuf.Timestamp"
129
134
  end
130
135
  end
@@ -58,6 +58,13 @@ module Google
58
58
  # A list of keys that were not looked up due to resource constraints. The
59
59
  # order of results in this field is undefined and has no relation to the
60
60
  # order of the keys in the input.
61
+ # @!attribute [rw] transaction
62
+ # @return [::String]
63
+ # The identifier of the transaction that was started as part of this Lookup
64
+ # request.
65
+ #
66
+ # Set only when [ReadOptions.begin_transaction][] was set in
67
+ # {::Google::Cloud::Datastore::V1::LookupRequest#read_options LookupRequest.read_options}.
61
68
  # @!attribute [rw] read_time
62
69
  # @return [::Google::Protobuf::Timestamp]
63
70
  # The time at which these entities were read or found missing.
@@ -104,6 +111,13 @@ module Google
104
111
  # @!attribute [rw] query
105
112
  # @return [::Google::Cloud::Datastore::V1::Query]
106
113
  # The parsed form of the `GqlQuery` from the request, if it was set.
114
+ # @!attribute [rw] transaction
115
+ # @return [::String]
116
+ # The identifier of the transaction that was started as part of this
117
+ # RunQuery request.
118
+ #
119
+ # Set only when [ReadOptions.begin_transaction][] was set in
120
+ # {::Google::Cloud::Datastore::V1::RunQueryRequest#read_options RunQueryRequest.read_options}.
107
121
  class RunQueryResponse
108
122
  include ::Google::Protobuf::MessageExts
109
123
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -148,6 +162,13 @@ module Google
148
162
  # @!attribute [rw] query
149
163
  # @return [::Google::Cloud::Datastore::V1::AggregationQuery]
150
164
  # The parsed form of the `GqlQuery` from the request, if it was set.
165
+ # @!attribute [rw] transaction
166
+ # @return [::String]
167
+ # The identifier of the transaction that was started as part of this
168
+ # RunAggregationQuery request.
169
+ #
170
+ # Set only when [ReadOptions.begin_transaction][] was set in
171
+ # {::Google::Cloud::Datastore::V1::RunAggregationQueryRequest#read_options RunAggregationQueryRequest.read_options}.
151
172
  class RunAggregationQueryResponse
152
173
  include ::Google::Protobuf::MessageExts
153
174
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -227,6 +248,13 @@ module Google
227
248
  # The identifier of the transaction associated with the commit. A
228
249
  # transaction identifier is returned by a call to
229
250
  # {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
251
+ # @!attribute [rw] single_use_transaction
252
+ # @return [::Google::Cloud::Datastore::V1::TransactionOptions]
253
+ # Options for beginning a new transaction for this request.
254
+ # The transaction is committed when the request completes. If specified,
255
+ # [TransactionOptions.mode][google.datastore.v1.TransactionOptions.mode]
256
+ # must be
257
+ # {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
230
258
  # @!attribute [rw] mutations
231
259
  # @return [::Array<::Google::Cloud::Datastore::V1::Mutation>]
232
260
  # The mutations to perform.
@@ -404,6 +432,15 @@ module Google
404
432
  # The identifier of the transaction in which to read. A
405
433
  # transaction identifier is returned by a call to
406
434
  # {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
435
+ # @!attribute [rw] new_transaction
436
+ # @return [::Google::Cloud::Datastore::V1::TransactionOptions]
437
+ # Options for beginning a new transaction for this request.
438
+ #
439
+ # The new transaction identifier will be returned in the corresponding
440
+ # response as either
441
+ # {::Google::Cloud::Datastore::V1::LookupResponse#transaction LookupResponse.transaction}
442
+ # or
443
+ # {::Google::Cloud::Datastore::V1::RunQueryResponse#transaction RunQueryResponse.transaction}.
407
444
  # @!attribute [rw] read_time
408
445
  # @return [::Google::Protobuf::Timestamp]
409
446
  # Reads entities as they were at the given time. This may not be older
@@ -431,7 +468,7 @@ module Google
431
468
  # Transactions can be created explicitly with calls to
432
469
  # {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}
433
470
  # or implicitly by setting
434
- # [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction]
471
+ # {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
435
472
  # in read requests.
436
473
  # @!attribute [rw] read_write
437
474
  # @return [::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-datastore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.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-16 00:00:00.000000000 Z
11
+ date: 2023-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common