google-cloud-datastore-v1 0.8.0 → 0.10.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: c45c26b4609092449a125a9c82ea164e7a8cc8ae73dc4b221879fe2aec45d13e
4
- data.tar.gz: d0949170d61b922ecde9f8ceda24e9d169afc6949b344e91c9d536d04aa50099
3
+ metadata.gz: 1ee86be8450c4c9fa93dde885e6123c02a1594bc3b7f6b91c54cb4c7e44ffb43
4
+ data.tar.gz: 625a108f4b7e8ccc7111ad56ab8a1aa373988ebf9cea13aec9f1a08226d3bd68
5
5
  SHA512:
6
- metadata.gz: 7eee514105c9d4a2e2b98d5ff9948059d4c1b52f2770e2ad57843945f7dc89b8d61b383845125d7c1a070ddc2ae51c935db270237a90f7965657da0906698a94
7
- data.tar.gz: ea3a3d81f08b5b8d7232405bae7e7f9ae53a01842121e6363f80e030749052bc186a3ea15fe07d076272541a392f67c753b7e3ab24fd27055e3fdbeecdcc1d67
6
+ metadata.gz: 7bc93332492ac570e2c652916c679d05e5d79eb0298fd29b4ea9fcb8a6f5f1afb9c6544db664aaf241c72f6093ae50e8b8afbaa3be0f13967887c2857401684f
7
+ data.tar.gz: 596052603a97f1bd5cda2986d7700f8e434b04173204be7b9303227f2d788b43ae5b58ffbb54cafe2f539ab142d50966f5f243ed1dfa30419497f3f0fb67196b
@@ -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,11 @@ 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
+ # {::Google::Cloud::Datastore::V1::TransactionOptions TransactionOptions.mode} must be
614
+ # {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
610
615
  # @param mutations [::Array<::Google::Cloud::Datastore::V1::Mutation, ::Hash>]
611
616
  # The mutations to perform.
612
617
  #
@@ -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.10.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
@@ -118,6 +122,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
118
122
  add_message "google.datastore.v1.MutationResult" do
119
123
  optional :key, :message, 3, "google.datastore.v1.Key"
120
124
  optional :version, :int64, 4
125
+ optional :create_time, :message, 7, "google.protobuf.Timestamp"
121
126
  optional :update_time, :message, 6, "google.protobuf.Timestamp"
122
127
  optional :conflict_detected, :bool, 5
123
128
  end
@@ -125,6 +130,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
125
130
  oneof :consistency_type do
126
131
  optional :read_consistency, :enum, 1, "google.datastore.v1.ReadOptions.ReadConsistency"
127
132
  optional :transaction, :bytes, 2
133
+ optional :new_transaction, :message, 3, "google.datastore.v1.TransactionOptions"
128
134
  optional :read_time, :message, 4, "google.protobuf.Timestamp"
129
135
  end
130
136
  end
@@ -13,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_message "google.datastore.v1.EntityResult" do
14
14
  optional :entity, :message, 1, "google.datastore.v1.Entity"
15
15
  optional :version, :int64, 4
16
+ optional :create_time, :message, 6, "google.protobuf.Timestamp"
16
17
  optional :update_time, :message, 5, "google.protobuf.Timestamp"
17
18
  optional :cursor, :bytes, 3
18
19
  end
@@ -79,6 +80,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
79
80
  add_enum "google.datastore.v1.CompositeFilter.Operator" do
80
81
  value :OPERATOR_UNSPECIFIED, 0
81
82
  value :AND, 1
83
+ value :OR, 2
82
84
  end
83
85
  add_message "google.datastore.v1.PropertyFilter" do
84
86
  optional :property, :message, 1, "google.datastore.v1.PropertyReference"
@@ -30,9 +30,10 @@ module Google
30
30
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value}]
31
31
  # The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
32
32
  #
33
- # The key is the {::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation#alias alias}
34
- # assigned to the aggregation function on input and the size of this map
35
- # equals the number of aggregation functions in the query.
33
+ # The key is the
34
+ # {::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation#alias alias} assigned to
35
+ # the aggregation function on input and the size of this map equals the
36
+ # number of aggregation functions in the query.
36
37
  class AggregationResult
37
38
  include ::Google::Protobuf::MessageExts
38
39
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -58,6 +58,15 @@ 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
67
+ # {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
68
+ # was set in
69
+ # {::Google::Cloud::Datastore::V1::LookupRequest#read_options LookupRequest.read_options}.
61
70
  # @!attribute [rw] read_time
62
71
  # @return [::Google::Protobuf::Timestamp]
63
72
  # The time at which these entities were read or found missing.
@@ -104,6 +113,15 @@ module Google
104
113
  # @!attribute [rw] query
105
114
  # @return [::Google::Cloud::Datastore::V1::Query]
106
115
  # The parsed form of the `GqlQuery` from the request, if it was set.
116
+ # @!attribute [rw] transaction
117
+ # @return [::String]
118
+ # The identifier of the transaction that was started as part of this
119
+ # RunQuery request.
120
+ #
121
+ # Set only when
122
+ # {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
123
+ # was set in
124
+ # {::Google::Cloud::Datastore::V1::RunQueryRequest#read_options RunQueryRequest.read_options}.
107
125
  class RunQueryResponse
108
126
  include ::Google::Protobuf::MessageExts
109
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -148,6 +166,15 @@ module Google
148
166
  # @!attribute [rw] query
149
167
  # @return [::Google::Cloud::Datastore::V1::AggregationQuery]
150
168
  # The parsed form of the `GqlQuery` from the request, if it was set.
169
+ # @!attribute [rw] transaction
170
+ # @return [::String]
171
+ # The identifier of the transaction that was started as part of this
172
+ # RunAggregationQuery request.
173
+ #
174
+ # Set only when
175
+ # {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
176
+ # was set in
177
+ # {::Google::Cloud::Datastore::V1::RunAggregationQueryRequest#read_options RunAggregationQueryRequest.read_options}.
151
178
  class RunAggregationQueryResponse
152
179
  include ::Google::Protobuf::MessageExts
153
180
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -227,6 +254,12 @@ module Google
227
254
  # The identifier of the transaction associated with the commit. A
228
255
  # transaction identifier is returned by a call to
229
256
  # {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
257
+ # @!attribute [rw] single_use_transaction
258
+ # @return [::Google::Cloud::Datastore::V1::TransactionOptions]
259
+ # Options for beginning a new transaction for this request.
260
+ # The transaction is committed when the request completes. If specified,
261
+ # {::Google::Cloud::Datastore::V1::TransactionOptions TransactionOptions.mode} must be
262
+ # {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
230
263
  # @!attribute [rw] mutations
231
264
  # @return [::Array<::Google::Cloud::Datastore::V1::Mutation>]
232
265
  # The mutations to perform.
@@ -380,6 +413,9 @@ module Google
380
413
  # be the version of the current entity or, if no entity is present, a version
381
414
  # that is strictly greater than the version of any previous entity and less
382
415
  # than the version of any possible future entity.
416
+ # @!attribute [rw] create_time
417
+ # @return [::Google::Protobuf::Timestamp]
418
+ # The create time of the entity. This field will not be set after a 'delete'.
383
419
  # @!attribute [rw] update_time
384
420
  # @return [::Google::Protobuf::Timestamp]
385
421
  # The update time of the entity on the server after processing the mutation.
@@ -404,6 +440,15 @@ module Google
404
440
  # The identifier of the transaction in which to read. A
405
441
  # transaction identifier is returned by a call to
406
442
  # {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
443
+ # @!attribute [rw] new_transaction
444
+ # @return [::Google::Cloud::Datastore::V1::TransactionOptions]
445
+ # Options for beginning a new transaction for this request.
446
+ #
447
+ # The new transaction identifier will be returned in the corresponding
448
+ # response as either
449
+ # {::Google::Cloud::Datastore::V1::LookupResponse#transaction LookupResponse.transaction}
450
+ # or
451
+ # {::Google::Cloud::Datastore::V1::RunQueryResponse#transaction RunQueryResponse.transaction}.
407
452
  # @!attribute [rw] read_time
408
453
  # @return [::Google::Protobuf::Timestamp]
409
454
  # Reads entities as they were at the given time. This may not be older
@@ -431,7 +476,7 @@ module Google
431
476
  # Transactions can be created explicitly with calls to
432
477
  # {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}
433
478
  # or implicitly by setting
434
- # [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction]
479
+ # {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
435
480
  # in read requests.
436
481
  # @!attribute [rw] read_write
437
482
  # @return [::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite]
@@ -39,7 +39,8 @@ module Google
39
39
  #
40
40
  # Foreign partition IDs (in which the project ID does
41
41
  # not match the context project ID ) are discouraged.
42
- # Reads and writes of foreign partition IDs may fail if the project is not in an active state.
42
+ # Reads and writes of foreign partition IDs may fail if the project is not in
43
+ # an active state.
43
44
  # @!attribute [rw] project_id
44
45
  # @return [::String]
45
46
  # The ID of the project to which the entities belong.
@@ -160,8 +161,8 @@ module Google
160
161
  # @!attribute [rw] string_value
161
162
  # @return [::String]
162
163
  # A UTF-8 encoded string value.
163
- # When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
164
- # Otherwise, may be set to at most 1,000,000 bytes.
164
+ # When `exclude_from_indexes` is false (it is indexed) , may have at most
165
+ # 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
165
166
  # @!attribute [rw] blob_value
166
167
  # @return [::String]
167
168
  # A blob value.
@@ -30,17 +30,23 @@ module Google
30
30
  # The version of the entity, a strictly positive number that monotonically
31
31
  # increases with changes to the entity.
32
32
  #
33
- # This field is set for {::Google::Cloud::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity
34
- # results.
33
+ # This field is set for
34
+ # {::Google::Cloud::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity results.
35
35
  #
36
- # For {::Google::Cloud::Datastore::V1::LookupResponse#missing missing} entities in `LookupResponse`, this
37
- # is the version of the snapshot that was used to look up the entity, and it
38
- # is always set except for eventually consistent reads.
36
+ # For {::Google::Cloud::Datastore::V1::LookupResponse#missing missing} entities in
37
+ # `LookupResponse`, this is the version of the snapshot that was used to look
38
+ # up the entity, and it is always set except for eventually consistent reads.
39
+ # @!attribute [rw] create_time
40
+ # @return [::Google::Protobuf::Timestamp]
41
+ # The time at which the entity was created.
42
+ # This field is set for
43
+ # {::Google::Cloud::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity results.
44
+ # If this entity is missing, this field will not be set.
39
45
  # @!attribute [rw] update_time
40
46
  # @return [::Google::Protobuf::Timestamp]
41
47
  # The time at which the entity was last changed.
42
- # This field is set for {::Google::Cloud::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity
43
- # results.
48
+ # This field is set for
49
+ # {::Google::Cloud::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity results.
44
50
  # If this entity is missing, this field will not be set.
45
51
  # @!attribute [rw] cursor
46
52
  # @return [::String]
@@ -116,13 +122,15 @@ module Google
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
117
123
  end
118
124
 
119
- # Datastore query for running an aggregation over a {::Google::Cloud::Datastore::V1::Query Query}.
125
+ # Datastore query for running an aggregation over a
126
+ # {::Google::Cloud::Datastore::V1::Query Query}.
120
127
  # @!attribute [rw] nested_query
121
128
  # @return [::Google::Cloud::Datastore::V1::Query]
122
129
  # Nested query for aggregation
123
130
  # @!attribute [rw] aggregations
124
131
  # @return [::Array<::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation>]
125
- # Optional. Series of aggregations to apply over the results of the `nested_query`.
132
+ # Optional. Series of aggregations to apply over the results of the
133
+ # `nested_query`.
126
134
  #
127
135
  # Requires:
128
136
  #
@@ -137,7 +145,8 @@ module Google
137
145
  # Count aggregator.
138
146
  # @!attribute [rw] alias
139
147
  # @return [::String]
140
- # Optional. Optional name of the property to store the result of the aggregation.
148
+ # Optional. Optional name of the property to store the result of the
149
+ # aggregation.
141
150
  #
142
151
  # If not provided, Datastore will pick a default name following the format
143
152
  # `property_<incremental_id++>`. For example:
@@ -169,7 +178,8 @@ module Google
169
178
  # Requires:
170
179
  #
171
180
  # * Must be unique across all aggregation aliases.
172
- # * Conform to {::Google::Cloud::Datastore::V1::Entity#properties entity property name} limitations.
181
+ # * Conform to [entity property
182
+ # name][google.datastore.v1.Entity.properties] limitations.
173
183
  class Aggregation
174
184
  include ::Google::Protobuf::MessageExts
175
185
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -180,7 +190,8 @@ module Google
180
190
  # so it does not require a field reference.
181
191
  # @!attribute [rw] up_to
182
192
  # @return [::Google::Protobuf::Int64Value]
183
- # Optional. Optional constraint on the maximum number of entities to count.
193
+ # Optional. Optional constraint on the maximum number of entities to
194
+ # count.
184
195
  #
185
196
  # This provides a way to set an upper bound on the number of entities
186
197
  # to scan, limiting latency and cost.
@@ -292,6 +303,9 @@ module Google
292
303
 
293
304
  # The results are required to satisfy each of the combined filters.
294
305
  AND = 1
306
+
307
+ # Documents are required to satisfy at least one of the combined filters.
308
+ OR = 2
295
309
  end
296
310
  end
297
311
 
@@ -366,6 +380,7 @@ module Google
366
380
  # Requires:
367
381
  #
368
382
  # * That `value` is an entity key.
383
+ # * No other `HAS_ANCESTOR` is in the same query.
369
384
  HAS_ANCESTOR = 11
370
385
 
371
386
  # The value of the `property` is not in the given array.
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.10.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-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.16.0
19
+ version: 0.17.1
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.16.0
29
+ version: 0.17.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.26.1
53
+ version: 1.26.3
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.26.1
60
+ version: 1.26.3
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement