google-apis-firestore_v1beta1 0.30.0 → 0.32.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: 5cb34314f8dbedb53e463d542946ae33295865404e786ecbea9939b51f138fbc
4
+ data.tar.gz: 9e68d45702174e6d2fe59220eaef767fb785dbd78de79d55e0d58369030c7340
5
5
  SHA512:
6
- metadata.gz: 1a2b3ed19c928bdbd4b9d8ce99d5c00423892f699aab91ff8f2f96980b52060121b4177ac3701db910888cd3433032a0f3f87d28ce0902258ae59c37c1480089
7
- data.tar.gz: c130f7221c7f3d451ae663eabd5f82ac949758d1d05e0acbaac09c9519aa79a1273a339c6be6b20457772e1d61fd9ef10b75932c8a89e42e2f3fb4fa428db9a0
6
+ metadata.gz: 9b19acb596c18d89b4123bbe66bc2cda31a867630cdc2082bc455700b898791551389d1986cddf52e5b0de50b7848649527460e3fe266b928d3148ab74d13fe0
7
+ data.tar.gz: 586f51599ac78bad382d44152897e4f13008d3e6d18d5b14ca7132f0c12c59fcd85c06d7abb4b5cd4d340b9c8cd80ece040980c611821a304112b7d97e980f65
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firestore_v1beta1
2
2
 
3
+ ### v0.32.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.31.0 (2023-08-06)
8
+
9
+ * Regenerated from discovery document revision 20230729
10
+
3
11
  ### v0.30.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 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`. 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::FirestoreV1beta1::Avg]
48
+ attr_accessor :avg
49
+
41
50
  # Count of documents that match the query. The `COUNT(*)` aggregation function
42
51
  # operates on the entire document so it does not require a field reference.
43
52
  # Corresponds to the JSON property `count`
44
53
  # @return [Google::Apis::FirestoreV1beta1::Count]
45
54
  attr_accessor :count
46
55
 
56
+ # Sum of the values of the requested field. * 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::FirestoreV1beta1::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
 
@@ -97,6 +125,29 @@ module Google
97
125
  end
98
126
  end
99
127
 
128
+ # Average of the values of the requested field. * Only numeric values will be
129
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
130
+ # aggregated values contain `NaN`, returns `NaN`. Infinity math follows IEEE-754
131
+ # standards. * If the aggregated value set is empty, returns `NULL`. * Always
132
+ # returns the result as a double.
133
+ class Avg
134
+ include Google::Apis::Core::Hashable
135
+
136
+ # A reference to a field in a document, ex: `stats.operations`.
137
+ # Corresponds to the JSON property `field`
138
+ # @return [Google::Apis::FirestoreV1beta1::FieldReference]
139
+ attr_accessor :field
140
+
141
+ def initialize(**args)
142
+ update!(**args)
143
+ end
144
+
145
+ # Update properties of this object
146
+ def update!(**args)
147
+ @field = args[:field] if args.key?(:field)
148
+ end
149
+ end
150
+
100
151
  # The request for Firestore.BatchGetDocuments.
101
152
  class BatchGetDocumentsRequest
102
153
  include Google::Apis::Core::Hashable
@@ -781,7 +832,9 @@ module Google
781
832
  # The total count of documents that match target_id. If different from the count
782
833
  # of documents in the client that match, the client must manually determine
783
834
  # which documents no longer match the target. The client can use the `
784
- # unchanged_names` bloom filter to assist with this determination.
835
+ # unchanged_names` bloom filter to assist with this determination by testing ALL
836
+ # the document names against the filter; if the document name is NOT in the
837
+ # filter, it means the document no longer matches the target.
785
838
  # Corresponds to the JSON property `count`
786
839
  # @return [Fixnum]
787
840
  attr_accessor :count
@@ -952,6 +1005,32 @@ module Google
952
1005
  end
953
1006
  end
954
1007
 
1008
+ # Describes the progress of the operation. Unit of work is generic and must be
1009
+ # interpreted based on where Progress is used.
1010
+ class GoogleFirestoreAdminV1Progress
1011
+ include Google::Apis::Core::Hashable
1012
+
1013
+ # The amount of work completed.
1014
+ # Corresponds to the JSON property `completedWork`
1015
+ # @return [Fixnum]
1016
+ attr_accessor :completed_work
1017
+
1018
+ # The amount of work estimated.
1019
+ # Corresponds to the JSON property `estimatedWork`
1020
+ # @return [Fixnum]
1021
+ attr_accessor :estimated_work
1022
+
1023
+ def initialize(**args)
1024
+ update!(**args)
1025
+ end
1026
+
1027
+ # Update properties of this object
1028
+ def update!(**args)
1029
+ @completed_work = args[:completed_work] if args.key?(:completed_work)
1030
+ @estimated_work = args[:estimated_work] if args.key?(:estimated_work)
1031
+ end
1032
+ end
1033
+
955
1034
  # Metadata for the long-running operation from the RestoreDatabase request.
956
1035
  class GoogleFirestoreAdminV1RestoreDatabaseMetadata
957
1036
  include Google::Apis::Core::Hashable
@@ -976,6 +1055,12 @@ module Google
976
1055
  # @return [String]
977
1056
  attr_accessor :operation_state
978
1057
 
1058
+ # Describes the progress of the operation. Unit of work is generic and must be
1059
+ # interpreted based on where Progress is used.
1060
+ # Corresponds to the JSON property `progressPercentage`
1061
+ # @return [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1Progress]
1062
+ attr_accessor :progress_percentage
1063
+
979
1064
  # The time the restore was started.
980
1065
  # Corresponds to the JSON property `startTime`
981
1066
  # @return [String]
@@ -991,6 +1076,7 @@ module Google
991
1076
  @database = args[:database] if args.key?(:database)
992
1077
  @end_time = args[:end_time] if args.key?(:end_time)
993
1078
  @operation_state = args[:operation_state] if args.key?(:operation_state)
1079
+ @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
994
1080
  @start_time = args[:start_time] if args.key?(:start_time)
995
1081
  end
996
1082
  end
@@ -1422,13 +1508,13 @@ module Google
1422
1508
  # @return [String]
1423
1509
  attr_accessor :name
1424
1510
 
1425
- # The normal response of the operation in case of success. If the original
1426
- # method returns no data on success, such as `Delete`, the response is `google.
1427
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1428
- # the response should be the resource. For other methods, the response should
1429
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1430
- # example, if the original method name is `TakeSnapshot()`, the inferred
1431
- # response type is `TakeSnapshotResponse`.
1511
+ # The normal, successful response of the operation. If the original method
1512
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1513
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1514
+ # response should be the resource. For other methods, the response should have
1515
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1516
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1517
+ # `TakeSnapshotResponse`.
1432
1518
  # Corresponds to the JSON property `response`
1433
1519
  # @return [Hash<String,Object>]
1434
1520
  attr_accessor :response
@@ -2244,6 +2330,37 @@ module Google
2244
2330
  end
2245
2331
  end
2246
2332
 
2333
+ # Sum of the values of the requested field. * Only numeric values will be
2334
+ # aggregated. All non-numeric values including `NULL` are skipped. * If the
2335
+ # aggregated values contain `NaN`, returns `NaN`. Infinity math follows IEEE-754
2336
+ # standards. * If the aggregated value set is empty, returns 0. * Returns a 64-
2337
+ # bit integer if all aggregated numbers are integers and the sum result does not
2338
+ # overflow. Otherwise, the result is returned as a double. Note that even if all
2339
+ # the aggregated values are integers, the result is returned as a double if it
2340
+ # cannot fit within a 64-bit signed integer. When this occurs, the returned
2341
+ # value will lose precision. * When underflow occurs, floating-point aggregation
2342
+ # is non-deterministic. This means that running the same query repeatedly
2343
+ # without any changes to the underlying values could produce slightly different
2344
+ # results each time. In those cases, values should be stored as integers over
2345
+ # floating-point numbers.
2346
+ class Sum
2347
+ include Google::Apis::Core::Hashable
2348
+
2349
+ # A reference to a field in a document, ex: `stats.operations`.
2350
+ # Corresponds to the JSON property `field`
2351
+ # @return [Google::Apis::FirestoreV1beta1::FieldReference]
2352
+ attr_accessor :field
2353
+
2354
+ def initialize(**args)
2355
+ update!(**args)
2356
+ end
2357
+
2358
+ # Update properties of this object
2359
+ def update!(**args)
2360
+ @field = args[:field] if args.key?(:field)
2361
+ end
2362
+ end
2363
+
2247
2364
  # A specification of a set of documents to listen to.
2248
2365
  class Target
2249
2366
  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.32.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
@@ -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.32.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-13 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.32.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: []