google-cloud-datastore-v1 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/datastore/v1/datastore/client.rb +1 -2
- data/lib/google/cloud/datastore/v1/version.rb +1 -1
- data/lib/google/datastore/v1/datastore_pb.rb +1 -0
- data/lib/google/datastore/v1/query_pb.rb +2 -0
- data/proto_docs/google/datastore/v1/aggregation_result.rb +4 -3
- data/proto_docs/google/datastore/v1/datastore.rb +13 -5
- data/proto_docs/google/datastore/v1/entity.rb +4 -3
- data/proto_docs/google/datastore/v1/query.rb +27 -12
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ee86be8450c4c9fa93dde885e6123c02a1594bc3b7f6b91c54cb4c7e44ffb43
|
4
|
+
data.tar.gz: 625a108f4b7e8ccc7111ad56ab8a1aa373988ebf9cea13aec9f1a08226d3bd68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bc93332492ac570e2c652916c679d05e5d79eb0298fd29b4ea9fcb8a6f5f1afb9c6544db664aaf241c72f6093ae50e8b8afbaa3be0f13967887c2857401684f
|
7
|
+
data.tar.gz: 596052603a97f1bd5cda2986d7700f8e434b04173204be7b9303227f2d788b43ae5b58ffbb54cafe2f539ab142d50966f5f243ed1dfa30419497f3f0fb67196b
|
@@ -610,8 +610,7 @@ module Google
|
|
610
610
|
# @param single_use_transaction [::Google::Cloud::Datastore::V1::TransactionOptions, ::Hash]
|
611
611
|
# Options for beginning a new transaction for this request.
|
612
612
|
# The transaction is committed when the request completes. If specified,
|
613
|
-
#
|
614
|
-
# must be
|
613
|
+
# {::Google::Cloud::Datastore::V1::TransactionOptions TransactionOptions.mode} must be
|
615
614
|
# {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
|
616
615
|
# @param mutations [::Array<::Google::Cloud::Datastore::V1::Mutation, ::Hash>]
|
617
616
|
# The mutations to perform.
|
@@ -122,6 +122,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
122
122
|
add_message "google.datastore.v1.MutationResult" do
|
123
123
|
optional :key, :message, 3, "google.datastore.v1.Key"
|
124
124
|
optional :version, :int64, 4
|
125
|
+
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
125
126
|
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
126
127
|
optional :conflict_detected, :bool, 5
|
127
128
|
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
|
34
|
-
# assigned to
|
35
|
-
#
|
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
|
@@ -63,7 +63,9 @@ module Google
|
|
63
63
|
# The identifier of the transaction that was started as part of this Lookup
|
64
64
|
# request.
|
65
65
|
#
|
66
|
-
# Set only when
|
66
|
+
# Set only when
|
67
|
+
# {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
|
68
|
+
# was set in
|
67
69
|
# {::Google::Cloud::Datastore::V1::LookupRequest#read_options LookupRequest.read_options}.
|
68
70
|
# @!attribute [rw] read_time
|
69
71
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -116,7 +118,9 @@ module Google
|
|
116
118
|
# The identifier of the transaction that was started as part of this
|
117
119
|
# RunQuery request.
|
118
120
|
#
|
119
|
-
# Set only when
|
121
|
+
# Set only when
|
122
|
+
# {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
|
123
|
+
# was set in
|
120
124
|
# {::Google::Cloud::Datastore::V1::RunQueryRequest#read_options RunQueryRequest.read_options}.
|
121
125
|
class RunQueryResponse
|
122
126
|
include ::Google::Protobuf::MessageExts
|
@@ -167,7 +171,9 @@ module Google
|
|
167
171
|
# The identifier of the transaction that was started as part of this
|
168
172
|
# RunAggregationQuery request.
|
169
173
|
#
|
170
|
-
# Set only when
|
174
|
+
# Set only when
|
175
|
+
# {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
|
176
|
+
# was set in
|
171
177
|
# {::Google::Cloud::Datastore::V1::RunAggregationQueryRequest#read_options RunAggregationQueryRequest.read_options}.
|
172
178
|
class RunAggregationQueryResponse
|
173
179
|
include ::Google::Protobuf::MessageExts
|
@@ -252,8 +258,7 @@ module Google
|
|
252
258
|
# @return [::Google::Cloud::Datastore::V1::TransactionOptions]
|
253
259
|
# Options for beginning a new transaction for this request.
|
254
260
|
# The transaction is committed when the request completes. If specified,
|
255
|
-
#
|
256
|
-
# must be
|
261
|
+
# {::Google::Cloud::Datastore::V1::TransactionOptions TransactionOptions.mode} must be
|
257
262
|
# {::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite TransactionOptions.ReadWrite}.
|
258
263
|
# @!attribute [rw] mutations
|
259
264
|
# @return [::Array<::Google::Cloud::Datastore::V1::Mutation>]
|
@@ -408,6 +413,9 @@ module Google
|
|
408
413
|
# be the version of the current entity or, if no entity is present, a version
|
409
414
|
# that is strictly greater than the version of any previous entity and less
|
410
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'.
|
411
419
|
# @!attribute [rw] update_time
|
412
420
|
# @return [::Google::Protobuf::Timestamp]
|
413
421
|
# The update time of the entity on the server after processing the mutation.
|
@@ -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
|
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
|
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
|
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
|
37
|
-
# is the version of the snapshot that was used to look
|
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
|
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
|
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
|
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
|
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
|
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
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|