google-apis-firestore_v1beta1 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: fc4c4e013da5c7cb5cf24776f3ee291edf189ec082b06172992d521fcafc9b52
4
- data.tar.gz: 19b39132dc9f4a0665771bc21e3718359bb9f25833478d25eda8de0e05074333
3
+ metadata.gz: dcacca90d087af63291d5060dddfd7a8a13daeac36edee54ad07d702d837af7e
4
+ data.tar.gz: b0a968d6398b25ac389b53c75f688142d6c1927f62ff7edb5f6cefc8aea8e575
5
5
  SHA512:
6
- metadata.gz: 5f9393db1a195b540e333a45ee45aa3904ff2e127871a12a815e6b554603da23f801623763920f4d04fa0a720f530f2c9138087563cca52dc3a0daebce6df3ed
7
- data.tar.gz: d73708c8cb653c9aa54938b4bb688c796b43332c65b11e77386a52cd9df6af49b49e78b486e820e54e390eaae93c8116ae2f5d08ef03212b623d801dd7e8dbdc
6
+ metadata.gz: 6f878beb243741d59f031852800e03fda0e5dbec3793d9aa06e59d82987a11e7f82918c8cb854b60aa860368c5e23b6738f490ad7356c3a1206404f08ffc155c
7
+ data.tar.gz: 9b99e3d036f996a8c2ea2c5312071546972796988a85c9fe332a1b3cdbd5c1ed7c16823bfc0ed3d102573b9454237f6afb1f8763996f9ea812aefecc9bdffab5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.30.0 (2023-07-23)
8
+
9
+ * Regenerated from discovery document revision 20230716
10
+
3
11
  ### v0.29.0 (2023-07-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20230621
@@ -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
@@ -122,8 +170,9 @@ module Google
122
170
  # @return [Google::Apis::FirestoreV1beta1::TransactionOptions]
123
171
  attr_accessor :new_transaction
124
172
 
125
- # Reads documents as they were at the given time. This may not be older than 270
126
- # seconds.
173
+ # Reads documents as they were at the given time. This must be a microsecond
174
+ # precision timestamp within the past one hour, or if Point-in-Time Recovery is
175
+ # enabled, can additionally be a whole minute timestamp within the past 7 days.
127
176
  # Corresponds to the JSON property `readTime`
128
177
  # @return [String]
129
178
  attr_accessor :read_time
@@ -780,7 +829,9 @@ module Google
780
829
  # The total count of documents that match target_id. If different from the count
781
830
  # of documents in the client that match, the client must manually determine
782
831
  # which documents no longer match the target. The client can use the `
783
- # 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.
784
835
  # Corresponds to the JSON property `count`
785
836
  # @return [Fixnum]
786
837
  attr_accessor :count
@@ -951,6 +1002,32 @@ module Google
951
1002
  end
952
1003
  end
953
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
+
954
1031
  # Metadata for the long-running operation from the RestoreDatabase request.
955
1032
  class GoogleFirestoreAdminV1RestoreDatabaseMetadata
956
1033
  include Google::Apis::Core::Hashable
@@ -975,6 +1052,12 @@ module Google
975
1052
  # @return [String]
976
1053
  attr_accessor :operation_state
977
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
+
978
1061
  # The time the restore was started.
979
1062
  # Corresponds to the JSON property `startTime`
980
1063
  # @return [String]
@@ -990,6 +1073,7 @@ module Google
990
1073
  @database = args[:database] if args.key?(:database)
991
1074
  @end_time = args[:end_time] if args.key?(:end_time)
992
1075
  @operation_state = args[:operation_state] if args.key?(:operation_state)
1076
+ @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
993
1077
  @start_time = args[:start_time] if args.key?(:start_time)
994
1078
  end
995
1079
  end
@@ -1488,8 +1572,9 @@ module Google
1488
1572
  # @return [String]
1489
1573
  attr_accessor :page_token
1490
1574
 
1491
- # Reads documents as they were at the given time. This may not be older than 270
1492
- # seconds.
1575
+ # Reads documents as they were at the given time. This must be a microsecond
1576
+ # precision timestamp within the past one hour, or if Point-in-Time Recovery is
1577
+ # enabled, can additionally be a whole minute timestamp within the past 7 days.
1493
1578
  # Corresponds to the JSON property `readTime`
1494
1579
  # @return [String]
1495
1580
  attr_accessor :read_time
@@ -1724,8 +1809,9 @@ module Google
1724
1809
  # @return [Fixnum]
1725
1810
  attr_accessor :partition_count
1726
1811
 
1727
- # Reads documents as they were at the given time. This may not be older than 270
1728
- # seconds.
1812
+ # Reads documents as they were at the given time. This must be a microsecond
1813
+ # precision timestamp within the past one hour, or if Point-in-Time Recovery is
1814
+ # enabled, can additionally be a whole minute timestamp within the past 7 days.
1729
1815
  # Corresponds to the JSON property `readTime`
1730
1816
  # @return [String]
1731
1817
  attr_accessor :read_time
@@ -1865,7 +1951,9 @@ module Google
1865
1951
  class ReadOnly
1866
1952
  include Google::Apis::Core::Hashable
1867
1953
 
1868
- # Reads documents at the given time. This may not be older than 60 seconds.
1954
+ # Reads documents at the given time. This must be a microsecond precision
1955
+ # timestamp within the past one hour, or if Point-in-Time Recovery is enabled,
1956
+ # can additionally be a whole minute timestamp within the past 7 days.
1869
1957
  # Corresponds to the JSON property `readTime`
1870
1958
  # @return [String]
1871
1959
  attr_accessor :read_time
@@ -1931,8 +2019,9 @@ module Google
1931
2019
  # @return [Google::Apis::FirestoreV1beta1::TransactionOptions]
1932
2020
  attr_accessor :new_transaction
1933
2021
 
1934
- # Executes the query at the given timestamp. Requires: * Cannot be more than 270
1935
- # seconds in the past.
2022
+ # Executes the query at the given timestamp. This must be a microsecond
2023
+ # precision timestamp within the past one hour, or if Point-in-Time Recovery is
2024
+ # enabled, can additionally be a whole minute timestamp within the past 7 days.
1936
2025
  # Corresponds to the JSON property `readTime`
1937
2026
  # @return [String]
1938
2027
  attr_accessor :read_time
@@ -2010,8 +2099,9 @@ module Google
2010
2099
  # @return [Google::Apis::FirestoreV1beta1::TransactionOptions]
2011
2100
  attr_accessor :new_transaction
2012
2101
 
2013
- # Reads documents as they were at the given time. This may not be older than 270
2014
- # seconds.
2102
+ # Reads documents as they were at the given time. This must be a microsecond
2103
+ # precision timestamp within the past one hour, or if Point-in-Time Recovery is
2104
+ # enabled, can additionally be a whole minute timestamp within the past 7 days.
2015
2105
  # Corresponds to the JSON property `readTime`
2016
2106
  # @return [String]
2017
2107
  attr_accessor :read_time
@@ -2237,6 +2327,36 @@ module Google
2237
2327
  end
2238
2328
  end
2239
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
+
2240
2360
  # A specification of a set of documents to listen to.
2241
2361
  class Target
2242
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.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 = "20230621"
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
@@ -363,8 +363,10 @@ module Google
363
363
  # The list of field paths in the mask. See Document.fields for a field path
364
364
  # syntax reference.
365
365
  # @param [String] read_time
366
- # Reads the version of the document at the given time. This may not be older
367
- # than 270 seconds.
366
+ # Reads the version of the document at the given time. This must be a
367
+ # microsecond precision timestamp within the past one hour, or if Point-in-Time
368
+ # Recovery is enabled, can additionally be a whole minute timestamp within the
369
+ # past 7 days.
368
370
  # @param [String] transaction
369
371
  # Reads the document in a transaction.
370
372
  # @param [String] fields
@@ -425,7 +427,9 @@ module Google
425
427
  # parameters (with the exception of `page_size`) must match the values set in
426
428
  # the request that generated the page token.
427
429
  # @param [String] read_time
428
- # Perform the read at the provided time. This may not be older than 270 seconds.
430
+ # Perform the read at the provided time. This must be a microsecond precision
431
+ # timestamp within the past one hour, or if Point-in-Time Recovery is enabled,
432
+ # can additionally be a whole minute timestamp within the past 7 days.
429
433
  # @param [Boolean] show_missing
430
434
  # If the list should show missing documents. A document is missing if it does
431
435
  # not exist, but there are sub-documents nested underneath it. When true, such
@@ -532,7 +536,9 @@ module Google
532
536
  # parameters (with the exception of `page_size`) must match the values set in
533
537
  # the request that generated the page token.
534
538
  # @param [String] read_time
535
- # Perform the read at the provided time. This may not be older than 270 seconds.
539
+ # Perform the read at the provided time. This must be a microsecond precision
540
+ # timestamp within the past one hour, or if Point-in-Time Recovery is enabled,
541
+ # can additionally be a whole minute timestamp within the past 7 days.
536
542
  # @param [Boolean] show_missing
537
543
  # If the list should show missing documents. A document is missing if it does
538
544
  # not exist, but there are sub-documents nested underneath it. When true, such
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.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-02 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.29.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: []