google-apis-firestore_v1beta1 0.30.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: 40d2c244899625804a7518d0f9450d6dd206ff9440a674e3ca23cd50a66059cc
4
- data.tar.gz: 561c0b71e8b1ab00fd7f560f7585c71ed5a5b2b382df9af5591cbdf4608d2d11
3
+ metadata.gz: dcacca90d087af63291d5060dddfd7a8a13daeac36edee54ad07d702d837af7e
4
+ data.tar.gz: b0a968d6398b25ac389b53c75f688142d6c1927f62ff7edb5f6cefc8aea8e575
5
5
  SHA512:
6
- metadata.gz: 1a2b3ed19c928bdbd4b9d8ce99d5c00423892f699aab91ff8f2f96980b52060121b4177ac3701db910888cd3433032a0f3f87d28ce0902258ae59c37c1480089
7
- data.tar.gz: c130f7221c7f3d451ae663eabd5f82ac949758d1d05e0acbaac09c9519aa79a1273a339c6be6b20457772e1d61fd9ef10b75932c8a89e42e2f3fb4fa428db9a0
6
+ metadata.gz: 6f878beb243741d59f031852800e03fda0e5dbec3793d9aa06e59d82987a11e7f82918c8cb854b60aa860368c5e23b6738f490ad7356c3a1206404f08ffc155c
7
+ data.tar.gz: 9b99e3d036f996a8c2ea2c5312071546972796988a85c9fe332a1b3cdbd5c1ed7c16823bfc0ed3d102573b9454237f6afb1f8763996f9ea812aefecc9bdffab5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firestore_v1beta1
2
2
 
3
+ ### v0.31.0 (2023-08-06)
4
+
5
+ * Regenerated from discovery document revision 20230729
6
+
3
7
  ### v0.30.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 field. * 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::FirestoreV1beta1::Avg]
47
+ attr_accessor :avg
48
+
41
49
  # Count of documents that match the query. The `COUNT(*)` aggregation function
42
50
  # operates on the entire document so it does not require a field reference.
43
51
  # Corresponds to the JSON property `count`
44
52
  # @return [Google::Apis::FirestoreV1beta1::Count]
45
53
  attr_accessor :count
46
54
 
55
+ # Sum of the values of the requested field. * 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::FirestoreV1beta1::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
 
@@ -97,6 +123,28 @@ module Google
97
123
  end
98
124
  end
99
125
 
126
+ # Average of the values of the requested field. * Only numeric values will be
127
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
128
+ # aggregated values contain `NaN`, returns `NaN`. * If the aggregated value set
129
+ # is empty, returns `NULL`. * Always returns the result as a double.
130
+ class Avg
131
+ include Google::Apis::Core::Hashable
132
+
133
+ # A reference to a field in a document, ex: `stats.operations`.
134
+ # Corresponds to the JSON property `field`
135
+ # @return [Google::Apis::FirestoreV1beta1::FieldReference]
136
+ attr_accessor :field
137
+
138
+ def initialize(**args)
139
+ update!(**args)
140
+ end
141
+
142
+ # Update properties of this object
143
+ def update!(**args)
144
+ @field = args[:field] if args.key?(:field)
145
+ end
146
+ end
147
+
100
148
  # The request for Firestore.BatchGetDocuments.
101
149
  class BatchGetDocumentsRequest
102
150
  include Google::Apis::Core::Hashable
@@ -781,7 +829,9 @@ module Google
781
829
  # The total count of documents that match target_id. If different from the count
782
830
  # of documents in the client that match, the client must manually determine
783
831
  # which documents no longer match the target. The client can use the `
784
- # unchanged_names` bloom filter to assist with this determination.
832
+ # unchanged_names` bloom filter to assist with this determination by testing ALL
833
+ # the document names against the filter; if the document name is NOT in the
834
+ # filter, it means the document no longer matches the target.
785
835
  # Corresponds to the JSON property `count`
786
836
  # @return [Fixnum]
787
837
  attr_accessor :count
@@ -952,6 +1002,32 @@ module Google
952
1002
  end
953
1003
  end
954
1004
 
1005
+ # Describes the progress of the operation. Unit of work is generic and must be
1006
+ # interpreted based on where Progress is used.
1007
+ class GoogleFirestoreAdminV1Progress
1008
+ include Google::Apis::Core::Hashable
1009
+
1010
+ # The amount of work completed.
1011
+ # Corresponds to the JSON property `completedWork`
1012
+ # @return [Fixnum]
1013
+ attr_accessor :completed_work
1014
+
1015
+ # The amount of work estimated.
1016
+ # Corresponds to the JSON property `estimatedWork`
1017
+ # @return [Fixnum]
1018
+ attr_accessor :estimated_work
1019
+
1020
+ def initialize(**args)
1021
+ update!(**args)
1022
+ end
1023
+
1024
+ # Update properties of this object
1025
+ def update!(**args)
1026
+ @completed_work = args[:completed_work] if args.key?(:completed_work)
1027
+ @estimated_work = args[:estimated_work] if args.key?(:estimated_work)
1028
+ end
1029
+ end
1030
+
955
1031
  # Metadata for the long-running operation from the RestoreDatabase request.
956
1032
  class GoogleFirestoreAdminV1RestoreDatabaseMetadata
957
1033
  include Google::Apis::Core::Hashable
@@ -976,6 +1052,12 @@ module Google
976
1052
  # @return [String]
977
1053
  attr_accessor :operation_state
978
1054
 
1055
+ # Describes the progress of the operation. Unit of work is generic and must be
1056
+ # interpreted based on where Progress is used.
1057
+ # Corresponds to the JSON property `progressPercentage`
1058
+ # @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1Progress]
1059
+ attr_accessor :progress_percentage
1060
+
979
1061
  # The time the restore was started.
980
1062
  # Corresponds to the JSON property `startTime`
981
1063
  # @return [String]
@@ -991,6 +1073,7 @@ module Google
991
1073
  @database = args[:database] if args.key?(:database)
992
1074
  @end_time = args[:end_time] if args.key?(:end_time)
993
1075
  @operation_state = args[:operation_state] if args.key?(:operation_state)
1076
+ @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
994
1077
  @start_time = args[:start_time] if args.key?(:start_time)
995
1078
  end
996
1079
  end
@@ -2244,6 +2327,36 @@ module Google
2244
2327
  end
2245
2328
  end
2246
2329
 
2330
+ # Sum of the values of the requested field. * Only numeric values will be
2331
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
2332
+ # aggregated values contain `NaN`, returns `NaN`. * If the aggregated value set
2333
+ # is empty, returns 0. * Returns a 64-bit integer if the sum result is an
2334
+ # integer value and does not overflow. Otherwise, the result is returned as a
2335
+ # double. Note that even if all the aggregated values are integers, the result
2336
+ # is returned as a double if it cannot fit within a 64-bit signed integer. When
2337
+ # this occurs, the returned value will lose precision. * When underflow occurs,
2338
+ # floating-point aggregation is non-deterministic. This means that running the
2339
+ # same query repeatedly without any changes to the underlying values could
2340
+ # produce slightly different results each time. In those cases, values should be
2341
+ # stored as integers over floating-point numbers.
2342
+ class Sum
2343
+ include Google::Apis::Core::Hashable
2344
+
2345
+ # A reference to a field in a document, ex: `stats.operations`.
2346
+ # Corresponds to the JSON property `field`
2347
+ # @return [Google::Apis::FirestoreV1beta1::FieldReference]
2348
+ attr_accessor :field
2349
+
2350
+ def initialize(**args)
2351
+ update!(**args)
2352
+ end
2353
+
2354
+ # Update properties of this object
2355
+ def update!(**args)
2356
+ @field = args[:field] if args.key?(:field)
2357
+ end
2358
+ end
2359
+
2247
2360
  # A specification of a set of documents to listen to.
2248
2361
  class Target
2249
2362
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirestoreV1beta1
18
18
  # Version of the google-apis-firestore_v1beta1 gem
19
- GEM_VERSION = "0.30.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 = "20230729"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class Avg
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class BatchGetDocumentsRequest
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -202,6 +208,12 @@ module Google
202
208
  include Google::Apis::Core::JsonObjectSupport
203
209
  end
204
210
 
211
+ class GoogleFirestoreAdminV1Progress
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class GoogleFirestoreAdminV1RestoreDatabaseMetadata
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -424,6 +436,12 @@ module Google
424
436
  include Google::Apis::Core::JsonObjectSupport
425
437
  end
426
438
 
439
+ class Sum
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
427
445
  class Target
428
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
429
447
 
@@ -482,8 +500,12 @@ module Google
482
500
  # @private
483
501
  class Representation < Google::Apis::Core::JsonRepresentation
484
502
  property :alias, as: 'alias'
503
+ property :avg, as: 'avg', class: Google::Apis::FirestoreV1beta1::Avg, decorator: Google::Apis::FirestoreV1beta1::Avg::Representation
504
+
485
505
  property :count, as: 'count', class: Google::Apis::FirestoreV1beta1::Count, decorator: Google::Apis::FirestoreV1beta1::Count::Representation
486
506
 
507
+ property :sum, as: 'sum', class: Google::Apis::FirestoreV1beta1::Sum, decorator: Google::Apis::FirestoreV1beta1::Sum::Representation
508
+
487
509
  end
488
510
  end
489
511
 
@@ -503,6 +525,14 @@ module Google
503
525
  end
504
526
  end
505
527
 
528
+ class Avg
529
+ # @private
530
+ class Representation < Google::Apis::Core::JsonRepresentation
531
+ property :field, as: 'field', class: Google::Apis::FirestoreV1beta1::FieldReference, decorator: Google::Apis::FirestoreV1beta1::FieldReference::Representation
532
+
533
+ end
534
+ end
535
+
506
536
  class BatchGetDocumentsRequest
507
537
  # @private
508
538
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -755,6 +785,14 @@ module Google
755
785
  end
756
786
  end
757
787
 
788
+ class GoogleFirestoreAdminV1Progress
789
+ # @private
790
+ class Representation < Google::Apis::Core::JsonRepresentation
791
+ property :completed_work, :numeric_string => true, as: 'completedWork'
792
+ property :estimated_work, :numeric_string => true, as: 'estimatedWork'
793
+ end
794
+ end
795
+
758
796
  class GoogleFirestoreAdminV1RestoreDatabaseMetadata
759
797
  # @private
760
798
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -762,6 +800,8 @@ module Google
762
800
  property :database, as: 'database'
763
801
  property :end_time, as: 'endTime'
764
802
  property :operation_state, as: 'operationState'
803
+ property :progress_percentage, as: 'progressPercentage', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1Progress::Representation
804
+
765
805
  property :start_time, as: 'startTime'
766
806
  end
767
807
  end
@@ -1121,6 +1161,14 @@ module Google
1121
1161
  end
1122
1162
  end
1123
1163
 
1164
+ class Sum
1165
+ # @private
1166
+ class Representation < Google::Apis::Core::JsonRepresentation
1167
+ property :field, as: 'field', class: Google::Apis::FirestoreV1beta1::FieldReference, decorator: Google::Apis::FirestoreV1beta1::FieldReference::Representation
1168
+
1169
+ end
1170
+ end
1171
+
1124
1172
  class Target
1125
1173
  # @private
1126
1174
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firestore_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.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-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-firestore_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1beta1/v0.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1beta1/v0.31.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firestore_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []