google-apis-datastore_v1 0.29.0 → 0.31.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: 31d6eb7fbf9537ecc88669d7ba11b7b748e62cb100398ef7e82f845c240cae48
4
- data.tar.gz: 3f08c67355c06cdbe4013359e5360098dc7227f297c5fef52314cea3f4144fc4
3
+ metadata.gz: '08516750d85af45817987bb90ef1980cfd302d67dfcf2f75808ffd1fdba77366'
4
+ data.tar.gz: 84ceeaccc89b2863e3f907c9369af37e9b25f7d0c7ca608dd7e4b51fcc9956ed
5
5
  SHA512:
6
- metadata.gz: 5a095725611c761f4600425b5a3ce1f8708537f4e6dc3d572bb9be3b0ddf905835eaa900415cce1fb20e2c82070d52d71b779074690cbe79415b9fa9ec5fc66c
7
- data.tar.gz: d19cda499257de41ca4330c7d049728f9165cc82c0e3b7a5ecca02bd20814cb8e3ee68ab5604f3d8856a1bf6a6b92bc7de82ae89322864fe138726fb4cb38187
6
+ metadata.gz: 2b868b93014e883434aa38485c6ac64ba68372adf46f53357065dc2838e71f161dc5b92c34fc28fdefbc19762a0e9a3ba56c7414fb22a6878d1a167ee5421907
7
+ data.tar.gz: fd9ad5d445f151041a627ac703274eed655aec46585913ebf49e1e1b3ae6624c25c6b8a16b0bbb421aa5cf447d653695648d00df453d7622e55e968e35a8facf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-datastore_v1
2
2
 
3
+ ### v0.31.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.30.0 (2023-08-06)
8
+
9
+ * Regenerated from discovery document revision 20230729
10
+
3
11
  ### v0.29.0 (2023-07-23)
4
12
 
5
13
  * Regenerated from discovery document revision 20230716
@@ -38,12 +38,38 @@ module Google
38
38
  # @return [String]
39
39
  attr_accessor :alias
40
40
 
41
+ # Average of the values of the requested property. * Only numeric values will be
42
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
43
+ # aggregated values contain `NaN`, returns `NaN`. Infinity math follows IEEE-754
44
+ # standards. * If the aggregated value set is empty, returns `NULL`. * Always
45
+ # returns the result as a double.
46
+ # Corresponds to the JSON property `avg`
47
+ # @return [Google::Apis::DatastoreV1::Avg]
48
+ attr_accessor :avg
49
+
41
50
  # Count of entities that match the query. The `COUNT(*)` aggregation function
42
51
  # operates on the entire entity so it does not require a field reference.
43
52
  # Corresponds to the JSON property `count`
44
53
  # @return [Google::Apis::DatastoreV1::Count]
45
54
  attr_accessor :count
46
55
 
56
+ # Sum of the values of the requested property. * Only numeric values will be
57
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
58
+ # aggregated values contain `NaN`, returns `NaN`. Infinity math follows IEEE-754
59
+ # standards. * If the aggregated value set is empty, returns 0. * Returns a 64-
60
+ # bit integer if all aggregated numbers are integers and the sum result does not
61
+ # overflow. Otherwise, the result is returned as a double. Note that even if all
62
+ # the aggregated values are integers, the result is returned as a double if it
63
+ # cannot fit within a 64-bit signed integer. When this occurs, the returned
64
+ # value will lose precision. * When underflow occurs, floating-point aggregation
65
+ # is non-deterministic. This means that running the same query repeatedly
66
+ # without any changes to the underlying values could produce slightly different
67
+ # results each time. In those cases, values should be stored as integers over
68
+ # floating-point numbers.
69
+ # Corresponds to the JSON property `sum`
70
+ # @return [Google::Apis::DatastoreV1::Sum]
71
+ attr_accessor :sum
72
+
47
73
  def initialize(**args)
48
74
  update!(**args)
49
75
  end
@@ -51,7 +77,9 @@ module Google
51
77
  # Update properties of this object
52
78
  def update!(**args)
53
79
  @alias = args[:alias] if args.key?(:alias)
80
+ @avg = args[:avg] if args.key?(:avg)
54
81
  @count = args[:count] if args.key?(:count)
82
+ @sum = args[:sum] if args.key?(:sum)
55
83
  end
56
84
  end
57
85
 
@@ -207,6 +235,29 @@ module Google
207
235
  end
208
236
  end
209
237
 
238
+ # Average of the values of the requested property. * Only numeric values will be
239
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
240
+ # aggregated values contain `NaN`, returns `NaN`. Infinity math follows IEEE-754
241
+ # standards. * If the aggregated value set is empty, returns `NULL`. * Always
242
+ # returns the result as a double.
243
+ class Avg
244
+ include Google::Apis::Core::Hashable
245
+
246
+ # A reference to a property relative to the kind expressions.
247
+ # Corresponds to the JSON property `property`
248
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
249
+ attr_accessor :property
250
+
251
+ def initialize(**args)
252
+ update!(**args)
253
+ end
254
+
255
+ # Update properties of this object
256
+ def update!(**args)
257
+ @property = args[:property] if args.key?(:property)
258
+ end
259
+ end
260
+
210
261
  # The request for Datastore.BeginTransaction.
211
262
  class BeginTransactionRequest
212
263
  include Google::Apis::Core::Hashable
@@ -1394,13 +1445,13 @@ module Google
1394
1445
  # @return [String]
1395
1446
  attr_accessor :name
1396
1447
 
1397
- # The normal response of the operation in case of success. If the original
1398
- # method returns no data on success, such as `Delete`, the response is `google.
1399
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1400
- # the response should be the resource. For other methods, the response should
1401
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1402
- # example, if the original method name is `TakeSnapshot()`, the inferred
1403
- # response type is `TakeSnapshotResponse`.
1448
+ # The normal, successful response of the operation. If the original method
1449
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1450
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1451
+ # response should be the resource. For other methods, the response should have
1452
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1453
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1454
+ # `TakeSnapshotResponse`.
1404
1455
  # Corresponds to the JSON property `response`
1405
1456
  # @return [Hash<String,Object>]
1406
1457
  attr_accessor :response
@@ -2486,6 +2537,37 @@ module Google
2486
2537
  end
2487
2538
  end
2488
2539
 
2540
+ # Sum of the values of the requested property. * Only numeric values will be
2541
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
2542
+ # aggregated values contain `NaN`, returns `NaN`. Infinity math follows IEEE-754
2543
+ # standards. * If the aggregated value set is empty, returns 0. * Returns a 64-
2544
+ # bit integer if all aggregated numbers are integers and the sum result does not
2545
+ # overflow. Otherwise, the result is returned as a double. Note that even if all
2546
+ # the aggregated values are integers, the result is returned as a double if it
2547
+ # cannot fit within a 64-bit signed integer. When this occurs, the returned
2548
+ # value will lose precision. * When underflow occurs, floating-point aggregation
2549
+ # is non-deterministic. This means that running the same query repeatedly
2550
+ # without any changes to the underlying values could produce slightly different
2551
+ # results each time. In those cases, values should be stored as integers over
2552
+ # floating-point numbers.
2553
+ class Sum
2554
+ include Google::Apis::Core::Hashable
2555
+
2556
+ # A reference to a property relative to the kind expressions.
2557
+ # Corresponds to the JSON property `property`
2558
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
2559
+ attr_accessor :property
2560
+
2561
+ def initialize(**args)
2562
+ update!(**args)
2563
+ end
2564
+
2565
+ # Update properties of this object
2566
+ def update!(**args)
2567
+ @property = args[:property] if args.key?(:property)
2568
+ end
2569
+ end
2570
+
2489
2571
  # Options for beginning a new transaction. Transactions can be created
2490
2572
  # explicitly with calls to Datastore.BeginTransaction or implicitly by setting
2491
2573
  # ReadOptions.new_transaction in read requests.
@@ -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.29.0"
19
+ GEM_VERSION = "0.31.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230716"
25
+ REVISION = "20230806"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class Avg
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class BeginTransactionRequest
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -448,6 +454,12 @@ module Google
448
454
  include Google::Apis::Core::JsonObjectSupport
449
455
  end
450
456
 
457
+ class Sum
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
451
463
  class TransactionOptions
452
464
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
465
 
@@ -464,8 +476,12 @@ module Google
464
476
  # @private
465
477
  class Representation < Google::Apis::Core::JsonRepresentation
466
478
  property :alias, as: 'alias'
479
+ property :avg, as: 'avg', class: Google::Apis::DatastoreV1::Avg, decorator: Google::Apis::DatastoreV1::Avg::Representation
480
+
467
481
  property :count, as: 'count', class: Google::Apis::DatastoreV1::Count, decorator: Google::Apis::DatastoreV1::Count::Representation
468
482
 
483
+ property :sum, as: 'sum', class: Google::Apis::DatastoreV1::Sum, decorator: Google::Apis::DatastoreV1::Sum::Representation
484
+
469
485
  end
470
486
  end
471
487
 
@@ -522,6 +538,14 @@ module Google
522
538
  end
523
539
  end
524
540
 
541
+ class Avg
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
545
+
546
+ end
547
+ end
548
+
525
549
  class BeginTransactionRequest
526
550
  # @private
527
551
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1167,6 +1191,14 @@ module Google
1167
1191
  end
1168
1192
  end
1169
1193
 
1194
+ class Sum
1195
+ # @private
1196
+ class Representation < Google::Apis::Core::JsonRepresentation
1197
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
1198
+
1199
+ end
1200
+ end
1201
+
1170
1202
  class TransactionOptions
1171
1203
  # @private
1172
1204
  class Representation < Google::Apis::Core::JsonRepresentation
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.29.0
4
+ version: 0.31.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-07-23 00:00:00.000000000 Z
11
+ date: 2023-08-20 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.29.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.31.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: []