google-apis-datastore_v1 0.29.0 → 0.30.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: b40e30b000e46b9dabb44fc6dbf982d04b9d26cac4de0d9cbdb8eb8ebef34cfb
4
+ data.tar.gz: 5c3a93f8e872b60d1d8d18037f8c977e9feedea8b4d83aad199b8d0c4b235068
5
5
  SHA512:
6
- metadata.gz: 5a095725611c761f4600425b5a3ce1f8708537f4e6dc3d572bb9be3b0ddf905835eaa900415cce1fb20e2c82070d52d71b779074690cbe79415b9fa9ec5fc66c
7
- data.tar.gz: d19cda499257de41ca4330c7d049728f9165cc82c0e3b7a5ecca02bd20814cb8e3ee68ab5604f3d8856a1bf6a6b92bc7de82ae89322864fe138726fb4cb38187
6
+ metadata.gz: 21febca150da7270b94c17c1b80583f395bbb4e8d24d010fd6c9e474958eaaa7e3265ea8909e76bc561b5d3facc4b3d07929d1f4ef103c0acf7b09224b74e42c
7
+ data.tar.gz: 6c786eec74d3de8b7257710e135bbba942feec581379d379bbb1066cb1561252d4324d858d8ca8e06a99ba475cee2efbdc4f1b59f862a8c77e9375ef27dc093e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-datastore_v1
2
2
 
3
+ ### v0.30.0 (2023-08-06)
4
+
5
+ * Regenerated from discovery document revision 20230729
6
+
3
7
  ### v0.29.0 (2023-07-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20230716
@@ -38,12 +38,36 @@ 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`. * If the aggregated value set
44
+ # is empty, returns `NULL`. * Always returns the result as a double.
45
+ # Corresponds to the JSON property `avg`
46
+ # @return [Google::Apis::DatastoreV1::Avg]
47
+ attr_accessor :avg
48
+
41
49
  # Count of entities that match the query. The `COUNT(*)` aggregation function
42
50
  # operates on the entire entity so it does not require a field reference.
43
51
  # Corresponds to the JSON property `count`
44
52
  # @return [Google::Apis::DatastoreV1::Count]
45
53
  attr_accessor :count
46
54
 
55
+ # Sum of the values of the requested property. * Only numeric values will be
56
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
57
+ # aggregated values contain `NaN`, returns `NaN`. * If the aggregated value set
58
+ # is empty, returns 0. * Returns a 64-bit integer if the sum result is an
59
+ # integer value and does not overflow. Otherwise, the result is returned as a
60
+ # double. Note that even if all the aggregated values are integers, the result
61
+ # is returned as a double if it cannot fit within a 64-bit signed integer. When
62
+ # this occurs, the returned value will lose precision. * When underflow occurs,
63
+ # floating-point aggregation is non-deterministic. This means that running the
64
+ # same query repeatedly without any changes to the underlying values could
65
+ # produce slightly different results each time. In those cases, values should be
66
+ # stored as integers over floating-point numbers.
67
+ # Corresponds to the JSON property `sum`
68
+ # @return [Google::Apis::DatastoreV1::Sum]
69
+ attr_accessor :sum
70
+
47
71
  def initialize(**args)
48
72
  update!(**args)
49
73
  end
@@ -51,7 +75,9 @@ module Google
51
75
  # Update properties of this object
52
76
  def update!(**args)
53
77
  @alias = args[:alias] if args.key?(:alias)
78
+ @avg = args[:avg] if args.key?(:avg)
54
79
  @count = args[:count] if args.key?(:count)
80
+ @sum = args[:sum] if args.key?(:sum)
55
81
  end
56
82
  end
57
83
 
@@ -207,6 +233,28 @@ module Google
207
233
  end
208
234
  end
209
235
 
236
+ # Average of the values of the requested property. * Only numeric values will be
237
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
238
+ # aggregated values contain `NaN`, returns `NaN`. * If the aggregated value set
239
+ # is empty, returns `NULL`. * Always returns the result as a double.
240
+ class Avg
241
+ include Google::Apis::Core::Hashable
242
+
243
+ # A reference to a property relative to the kind expressions.
244
+ # Corresponds to the JSON property `property`
245
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
246
+ attr_accessor :property
247
+
248
+ def initialize(**args)
249
+ update!(**args)
250
+ end
251
+
252
+ # Update properties of this object
253
+ def update!(**args)
254
+ @property = args[:property] if args.key?(:property)
255
+ end
256
+ end
257
+
210
258
  # The request for Datastore.BeginTransaction.
211
259
  class BeginTransactionRequest
212
260
  include Google::Apis::Core::Hashable
@@ -2486,6 +2534,36 @@ module Google
2486
2534
  end
2487
2535
  end
2488
2536
 
2537
+ # Sum of the values of the requested property. * Only numeric values will be
2538
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
2539
+ # aggregated values contain `NaN`, returns `NaN`. * If the aggregated value set
2540
+ # is empty, returns 0. * Returns a 64-bit integer if the sum result is an
2541
+ # integer value and does not overflow. Otherwise, the result is returned as a
2542
+ # double. Note that even if all the aggregated values are integers, the result
2543
+ # is returned as a double if it cannot fit within a 64-bit signed integer. When
2544
+ # this occurs, the returned value will lose precision. * When underflow occurs,
2545
+ # floating-point aggregation is non-deterministic. This means that running the
2546
+ # same query repeatedly without any changes to the underlying values could
2547
+ # produce slightly different results each time. In those cases, values should be
2548
+ # stored as integers over floating-point numbers.
2549
+ class Sum
2550
+ include Google::Apis::Core::Hashable
2551
+
2552
+ # A reference to a property relative to the kind expressions.
2553
+ # Corresponds to the JSON property `property`
2554
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
2555
+ attr_accessor :property
2556
+
2557
+ def initialize(**args)
2558
+ update!(**args)
2559
+ end
2560
+
2561
+ # Update properties of this object
2562
+ def update!(**args)
2563
+ @property = args[:property] if args.key?(:property)
2564
+ end
2565
+ end
2566
+
2489
2567
  # Options for beginning a new transaction. Transactions can be created
2490
2568
  # explicitly with calls to Datastore.BeginTransaction or implicitly by setting
2491
2569
  # 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.30.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 = "20230729"
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.30.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-06 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.30.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: []