google-apis-firestore_v1beta1 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3dd747c3a43ec28e573688e420c555c3f8ee92f5f6db02ea3bf6589a1272727
4
- data.tar.gz: e48575adb4af3c4d13e42da99ed22bb5673b4f2d49bbc047b4d90472f7cb91ff
3
+ metadata.gz: 0e9525f9b0c306b65b524f4cb6300a292e1eda4bc54c869d1244a03b06aeb2b2
4
+ data.tar.gz: 5c9b35cc8aaf6f2591f7153112489ad2452d532f656010f99f4bbbf3e9eda3d0
5
5
  SHA512:
6
- metadata.gz: 9c353f4d8191e64bf47e05290493d68119cfc06b1fcd4181b4f7a444c2ffcb9f20c47ef50cfe4a219c6bfd27609e9b272630e125de79248ce1524a35dad69e41
7
- data.tar.gz: 2184f9c3a6214d42e056ee07af78621da2c1c2e14f6deb193dfa07faf2b1b84515d06d5136baefdb2c09cbf94dc084ad3bcde1dd29b517069986d9eeb1cbf721
6
+ metadata.gz: 4fc374212db090399b4c524bf3cd0f30da6c7f88e0a0d8bf19c40c01593c09274006fb5785f77e68893698e0ffccfa14629e512f36a38f510b6ce1d6e2d5d95b
7
+ data.tar.gz: 10076803fa1f90623e58b48723a968dba313e2c5aa6e49202dad12d61a0b7fcb2421abe6f53199a94ed2199545215ca181ea34cb6c2a12faf3b14af6dd59712b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firestore_v1beta1
2
2
 
3
+ ### v0.39.0 (2024-03-24)
4
+
5
+ * Regenerated from discovery document revision 20240317
6
+
3
7
  ### v0.38.0 (2024-02-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20240215
@@ -826,6 +826,48 @@ module Google
826
826
  end
827
827
  end
828
828
 
829
+ # Execution statistics for the query.
830
+ class ExecutionStats
831
+ include Google::Apis::Core::Hashable
832
+
833
+ # Debugging statistics from the execution of the query. Note that the debugging
834
+ # stats are subject to change as Firestore evolves. It could include: ` "
835
+ # indexes_entries_scanned": "1000", "documents_scanned": "20", "billing_details"
836
+ # : ` "documents_billable": "20", "index_entries_billable": "1000", "
837
+ # min_query_cost": "0" ` `
838
+ # Corresponds to the JSON property `debugStats`
839
+ # @return [Hash<String,Object>]
840
+ attr_accessor :debug_stats
841
+
842
+ # Total time to execute the query in the backend.
843
+ # Corresponds to the JSON property `executionDuration`
844
+ # @return [String]
845
+ attr_accessor :execution_duration
846
+
847
+ # Total billable read operations.
848
+ # Corresponds to the JSON property `readOperations`
849
+ # @return [Fixnum]
850
+ attr_accessor :read_operations
851
+
852
+ # Total number of results returned, including documents, projections,
853
+ # aggregation results, keys.
854
+ # Corresponds to the JSON property `resultsReturned`
855
+ # @return [Fixnum]
856
+ attr_accessor :results_returned
857
+
858
+ def initialize(**args)
859
+ update!(**args)
860
+ end
861
+
862
+ # Update properties of this object
863
+ def update!(**args)
864
+ @debug_stats = args[:debug_stats] if args.key?(:debug_stats)
865
+ @execution_duration = args[:execution_duration] if args.key?(:execution_duration)
866
+ @read_operations = args[:read_operations] if args.key?(:read_operations)
867
+ @results_returned = args[:results_returned] if args.key?(:results_returned)
868
+ end
869
+ end
870
+
829
871
  # A digest of all the documents that match a given target.
830
872
  class ExistenceFilter
831
873
  include Google::Apis::Core::Hashable
@@ -869,6 +911,54 @@ module Google
869
911
  end
870
912
  end
871
913
 
914
+ # Explain metrics for the query.
915
+ class ExplainMetrics
916
+ include Google::Apis::Core::Hashable
917
+
918
+ # Execution statistics for the query.
919
+ # Corresponds to the JSON property `executionStats`
920
+ # @return [Google::Apis::FirestoreV1beta1::ExecutionStats]
921
+ attr_accessor :execution_stats
922
+
923
+ # Planning phase information for the query.
924
+ # Corresponds to the JSON property `planSummary`
925
+ # @return [Google::Apis::FirestoreV1beta1::PlanSummary]
926
+ attr_accessor :plan_summary
927
+
928
+ def initialize(**args)
929
+ update!(**args)
930
+ end
931
+
932
+ # Update properties of this object
933
+ def update!(**args)
934
+ @execution_stats = args[:execution_stats] if args.key?(:execution_stats)
935
+ @plan_summary = args[:plan_summary] if args.key?(:plan_summary)
936
+ end
937
+ end
938
+
939
+ # Explain options for the query.
940
+ class ExplainOptions
941
+ include Google::Apis::Core::Hashable
942
+
943
+ # Optional. Whether to execute this query. When false (the default), the query
944
+ # will be planned, returning only metrics from the planning stages. When true,
945
+ # the query will be planned and executed, returning the full query results along
946
+ # with both planning and execution stage metrics.
947
+ # Corresponds to the JSON property `analyze`
948
+ # @return [Boolean]
949
+ attr_accessor :analyze
950
+ alias_method :analyze?, :analyze
951
+
952
+ def initialize(**args)
953
+ update!(**args)
954
+ end
955
+
956
+ # Update properties of this object
957
+ def update!(**args)
958
+ @analyze = args[:analyze] if args.key?(:analyze)
959
+ end
960
+ end
961
+
872
962
  # A filter on a specific field.
873
963
  class FieldFilter
874
964
  include Google::Apis::Core::Hashable
@@ -1903,6 +1993,27 @@ module Google
1903
1993
  end
1904
1994
  end
1905
1995
 
1996
+ # Planning phase information for the query.
1997
+ class PlanSummary
1998
+ include Google::Apis::Core::Hashable
1999
+
2000
+ # The indexes selected for the query. For example: [ `"query_scope": "Collection"
2001
+ # , "properties": "(foo ASC, __name__ ASC)"`, `"query_scope": "Collection", "
2002
+ # properties": "(bar ASC, __name__ ASC)"` ]
2003
+ # Corresponds to the JSON property `indexesUsed`
2004
+ # @return [Array<Hash<String,Object>>]
2005
+ attr_accessor :indexes_used
2006
+
2007
+ def initialize(**args)
2008
+ update!(**args)
2009
+ end
2010
+
2011
+ # Update properties of this object
2012
+ def update!(**args)
2013
+ @indexes_used = args[:indexes_used] if args.key?(:indexes_used)
2014
+ end
2015
+ end
2016
+
1906
2017
  # A precondition on a document, used for conditional operations.
1907
2018
  class Precondition
1908
2019
  include Google::Apis::Core::Hashable
@@ -2048,6 +2159,11 @@ module Google
2048
2159
  class RunAggregationQueryRequest
2049
2160
  include Google::Apis::Core::Hashable
2050
2161
 
2162
+ # Explain options for the query.
2163
+ # Corresponds to the JSON property `explainOptions`
2164
+ # @return [Google::Apis::FirestoreV1beta1::ExplainOptions]
2165
+ attr_accessor :explain_options
2166
+
2051
2167
  # Options for creating a new transaction.
2052
2168
  # Corresponds to the JSON property `newTransaction`
2053
2169
  # @return [Google::Apis::FirestoreV1beta1::TransactionOptions]
@@ -2078,6 +2194,7 @@ module Google
2078
2194
 
2079
2195
  # Update properties of this object
2080
2196
  def update!(**args)
2197
+ @explain_options = args[:explain_options] if args.key?(:explain_options)
2081
2198
  @new_transaction = args[:new_transaction] if args.key?(:new_transaction)
2082
2199
  @read_time = args[:read_time] if args.key?(:read_time)
2083
2200
  @structured_aggregation_query = args[:structured_aggregation_query] if args.key?(:structured_aggregation_query)
@@ -2089,6 +2206,11 @@ module Google
2089
2206
  class RunAggregationQueryResponse
2090
2207
  include Google::Apis::Core::Hashable
2091
2208
 
2209
+ # Explain metrics for the query.
2210
+ # Corresponds to the JSON property `explainMetrics`
2211
+ # @return [Google::Apis::FirestoreV1beta1::ExplainMetrics]
2212
+ attr_accessor :explain_metrics
2213
+
2092
2214
  # The time at which the aggregate result was computed. This is always
2093
2215
  # monotonically increasing; in this case, the previous AggregationResult in the
2094
2216
  # result stream are guaranteed not to have changed between their `read_time` and
@@ -2118,6 +2240,7 @@ module Google
2118
2240
 
2119
2241
  # Update properties of this object
2120
2242
  def update!(**args)
2243
+ @explain_metrics = args[:explain_metrics] if args.key?(:explain_metrics)
2121
2244
  @read_time = args[:read_time] if args.key?(:read_time)
2122
2245
  @result = args[:result] if args.key?(:result)
2123
2246
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -2128,6 +2251,11 @@ module Google
2128
2251
  class RunQueryRequest
2129
2252
  include Google::Apis::Core::Hashable
2130
2253
 
2254
+ # Explain options for the query.
2255
+ # Corresponds to the JSON property `explainOptions`
2256
+ # @return [Google::Apis::FirestoreV1beta1::ExplainOptions]
2257
+ attr_accessor :explain_options
2258
+
2131
2259
  # Options for creating a new transaction.
2132
2260
  # Corresponds to the JSON property `newTransaction`
2133
2261
  # @return [Google::Apis::FirestoreV1beta1::TransactionOptions]
@@ -2159,6 +2287,7 @@ module Google
2159
2287
 
2160
2288
  # Update properties of this object
2161
2289
  def update!(**args)
2290
+ @explain_options = args[:explain_options] if args.key?(:explain_options)
2162
2291
  @new_transaction = args[:new_transaction] if args.key?(:new_transaction)
2163
2292
  @read_time = args[:read_time] if args.key?(:read_time)
2164
2293
  @structured_query = args[:structured_query] if args.key?(:structured_query)
@@ -2182,6 +2311,11 @@ module Google
2182
2311
  attr_accessor :done
2183
2312
  alias_method :done?, :done
2184
2313
 
2314
+ # Explain metrics for the query.
2315
+ # Corresponds to the JSON property `explainMetrics`
2316
+ # @return [Google::Apis::FirestoreV1beta1::ExplainMetrics]
2317
+ attr_accessor :explain_metrics
2318
+
2185
2319
  # The time at which the document was read. This may be monotonically increasing;
2186
2320
  # in this case, the previous documents in the result stream are guaranteed not
2187
2321
  # to have changed between their `read_time` and this one. If the query returns
@@ -2213,6 +2347,7 @@ module Google
2213
2347
  def update!(**args)
2214
2348
  @document = args[:document] if args.key?(:document)
2215
2349
  @done = args[:done] if args.key?(:done)
2350
+ @explain_metrics = args[:explain_metrics] if args.key?(:explain_metrics)
2216
2351
  @read_time = args[:read_time] if args.key?(:read_time)
2217
2352
  @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
2218
2353
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -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.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240215"
25
+ REVISION = "20240317"
26
26
  end
27
27
  end
28
28
  end
@@ -178,12 +178,30 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class ExecutionStats
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class ExistenceFilter
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class ExplainMetrics
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class ExplainOptions
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
187
205
  class FieldFilter
188
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
207
 
@@ -370,6 +388,12 @@ module Google
370
388
  include Google::Apis::Core::JsonObjectSupport
371
389
  end
372
390
 
391
+ class PlanSummary
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
373
397
  class Precondition
374
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
399
 
@@ -739,6 +763,16 @@ module Google
739
763
  end
740
764
  end
741
765
 
766
+ class ExecutionStats
767
+ # @private
768
+ class Representation < Google::Apis::Core::JsonRepresentation
769
+ hash :debug_stats, as: 'debugStats'
770
+ property :execution_duration, as: 'executionDuration'
771
+ property :read_operations, :numeric_string => true, as: 'readOperations'
772
+ property :results_returned, :numeric_string => true, as: 'resultsReturned'
773
+ end
774
+ end
775
+
742
776
  class ExistenceFilter
743
777
  # @private
744
778
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -749,6 +783,23 @@ module Google
749
783
  end
750
784
  end
751
785
 
786
+ class ExplainMetrics
787
+ # @private
788
+ class Representation < Google::Apis::Core::JsonRepresentation
789
+ property :execution_stats, as: 'executionStats', class: Google::Apis::FirestoreV1beta1::ExecutionStats, decorator: Google::Apis::FirestoreV1beta1::ExecutionStats::Representation
790
+
791
+ property :plan_summary, as: 'planSummary', class: Google::Apis::FirestoreV1beta1::PlanSummary, decorator: Google::Apis::FirestoreV1beta1::PlanSummary::Representation
792
+
793
+ end
794
+ end
795
+
796
+ class ExplainOptions
797
+ # @private
798
+ class Representation < Google::Apis::Core::JsonRepresentation
799
+ property :analyze, as: 'analyze'
800
+ end
801
+ end
802
+
752
803
  class FieldFilter
753
804
  # @private
754
805
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1054,6 +1105,13 @@ module Google
1054
1105
  end
1055
1106
  end
1056
1107
 
1108
+ class PlanSummary
1109
+ # @private
1110
+ class Representation < Google::Apis::Core::JsonRepresentation
1111
+ collection :indexes_used, as: 'indexesUsed'
1112
+ end
1113
+ end
1114
+
1057
1115
  class Precondition
1058
1116
  # @private
1059
1117
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1103,6 +1161,8 @@ module Google
1103
1161
  class RunAggregationQueryRequest
1104
1162
  # @private
1105
1163
  class Representation < Google::Apis::Core::JsonRepresentation
1164
+ property :explain_options, as: 'explainOptions', class: Google::Apis::FirestoreV1beta1::ExplainOptions, decorator: Google::Apis::FirestoreV1beta1::ExplainOptions::Representation
1165
+
1106
1166
  property :new_transaction, as: 'newTransaction', class: Google::Apis::FirestoreV1beta1::TransactionOptions, decorator: Google::Apis::FirestoreV1beta1::TransactionOptions::Representation
1107
1167
 
1108
1168
  property :read_time, as: 'readTime'
@@ -1115,6 +1175,8 @@ module Google
1115
1175
  class RunAggregationQueryResponse
1116
1176
  # @private
1117
1177
  class Representation < Google::Apis::Core::JsonRepresentation
1178
+ property :explain_metrics, as: 'explainMetrics', class: Google::Apis::FirestoreV1beta1::ExplainMetrics, decorator: Google::Apis::FirestoreV1beta1::ExplainMetrics::Representation
1179
+
1118
1180
  property :read_time, as: 'readTime'
1119
1181
  property :result, as: 'result', class: Google::Apis::FirestoreV1beta1::AggregationResult, decorator: Google::Apis::FirestoreV1beta1::AggregationResult::Representation
1120
1182
 
@@ -1125,6 +1187,8 @@ module Google
1125
1187
  class RunQueryRequest
1126
1188
  # @private
1127
1189
  class Representation < Google::Apis::Core::JsonRepresentation
1190
+ property :explain_options, as: 'explainOptions', class: Google::Apis::FirestoreV1beta1::ExplainOptions, decorator: Google::Apis::FirestoreV1beta1::ExplainOptions::Representation
1191
+
1128
1192
  property :new_transaction, as: 'newTransaction', class: Google::Apis::FirestoreV1beta1::TransactionOptions, decorator: Google::Apis::FirestoreV1beta1::TransactionOptions::Representation
1129
1193
 
1130
1194
  property :read_time, as: 'readTime'
@@ -1140,6 +1204,8 @@ module Google
1140
1204
  property :document, as: 'document', class: Google::Apis::FirestoreV1beta1::Document, decorator: Google::Apis::FirestoreV1beta1::Document::Representation
1141
1205
 
1142
1206
  property :done, as: 'done'
1207
+ property :explain_metrics, as: 'explainMetrics', class: Google::Apis::FirestoreV1beta1::ExplainMetrics, decorator: Google::Apis::FirestoreV1beta1::ExplainMetrics::Representation
1208
+
1143
1209
  property :read_time, as: 'readTime'
1144
1210
  property :skipped_results, as: 'skippedResults'
1145
1211
  property :transaction, :base64 => true, as: 'transaction'
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.38.0
4
+ version: 0.39.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: 2024-02-25 00:00:00.000000000 Z
11
+ date: 2024-03-24 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.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1beta1/v0.39.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: []