google-cloud-datastore-v1 0.9.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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 [ReadOptions.begin_transaction][] was set in
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 [ReadOptions.begin_transaction][] was set in
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 [ReadOptions.begin_transaction][] was set in
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
- # [TransactionOptions.mode][google.datastore.v1.TransactionOptions.mode]
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 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.9.0
4
+ version: 0.11.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-20 00:00:00.000000000 Z
11
+ date: 2023-03-08 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.18.0
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.18.0
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
@@ -174,6 +174,10 @@ files:
174
174
  - lib/google/cloud/datastore/v1/datastore.rb
175
175
  - lib/google/cloud/datastore/v1/datastore/client.rb
176
176
  - lib/google/cloud/datastore/v1/datastore/credentials.rb
177
+ - lib/google/cloud/datastore/v1/datastore/rest.rb
178
+ - lib/google/cloud/datastore/v1/datastore/rest/client.rb
179
+ - lib/google/cloud/datastore/v1/datastore/rest/service_stub.rb
180
+ - lib/google/cloud/datastore/v1/rest.rb
177
181
  - lib/google/cloud/datastore/v1/version.rb
178
182
  - lib/google/datastore/v1/aggregation_result_pb.rb
179
183
  - lib/google/datastore/v1/datastore_pb.rb
@@ -217,5 +221,6 @@ requirements: []
217
221
  rubygems_version: 3.4.2
218
222
  signing_key:
219
223
  specification_version: 4
220
- summary: API Client library for the Firestore in Datastore mode V1 API
224
+ summary: Accesses the schemaless NoSQL database to provide fully managed, robust,
225
+ scalable storage for your application.
221
226
  test_files: []