google-apis-firestore_v1beta1 0.37.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: 76ecc92adc540edf809c95cb52b8fa816e7eba966b6c2ae2a6a493dadee1028a
4
- data.tar.gz: 6d6fd2dc62af611b3c479f4da47eb3a69d89b45a0b7a34b4d8da1c5a594439c6
3
+ metadata.gz: 0e9525f9b0c306b65b524f4cb6300a292e1eda4bc54c869d1244a03b06aeb2b2
4
+ data.tar.gz: 5c9b35cc8aaf6f2591f7153112489ad2452d532f656010f99f4bbbf3e9eda3d0
5
5
  SHA512:
6
- metadata.gz: 530fe9413e19bf5c4c0240da5a0162da199d5a01adcf1f11329d82b64af10b6ddf599e40fe5a3e6af4aa64529e986406b53deab720a777abe722974c044e2b83
7
- data.tar.gz: 586eb2f58c592f8ddc60ce32ca98c2fb1760801743c9eb80b9f18e40c92a4f73054eb1ff1f637e4e5e9c2d47a477e8253a612f9c9a2d636cdc3d730e5e4dced3
6
+ metadata.gz: 4fc374212db090399b4c524bf3cd0f30da6c7f88e0a0d8bf19c40c01593c09274006fb5785f77e68893698e0ffccfa14629e512f36a38f510b6ce1d6e2d5d95b
7
+ data.tar.gz: 10076803fa1f90623e58b48723a968dba313e2c5aa6e49202dad12d61a0b7fcb2421abe6f53199a94ed2199545215ca181ea34cb6c2a12faf3b14af6dd59712b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
7
+ ### v0.38.0 (2024-02-24)
8
+
9
+ * Regenerated from discovery document revision 20240215
10
+ * Regenerated using generator version 0.14.0
11
+
3
12
  ### v0.37.0 (2024-02-18)
4
13
 
5
14
  * Regenerated from discovery document revision 20240208
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/firestore) may provide guid
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -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,31 @@ 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
+
872
939
  # Explain options for the query.
873
940
  class ExplainOptions
874
941
  include Google::Apis::Core::Hashable
@@ -1926,6 +1993,27 @@ module Google
1926
1993
  end
1927
1994
  end
1928
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
+
1929
2017
  # A precondition on a document, used for conditional operations.
1930
2018
  class Precondition
1931
2019
  include Google::Apis::Core::Hashable
@@ -2118,6 +2206,11 @@ module Google
2118
2206
  class RunAggregationQueryResponse
2119
2207
  include Google::Apis::Core::Hashable
2120
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
+
2121
2214
  # The time at which the aggregate result was computed. This is always
2122
2215
  # monotonically increasing; in this case, the previous AggregationResult in the
2123
2216
  # result stream are guaranteed not to have changed between their `read_time` and
@@ -2147,6 +2240,7 @@ module Google
2147
2240
 
2148
2241
  # Update properties of this object
2149
2242
  def update!(**args)
2243
+ @explain_metrics = args[:explain_metrics] if args.key?(:explain_metrics)
2150
2244
  @read_time = args[:read_time] if args.key?(:read_time)
2151
2245
  @result = args[:result] if args.key?(:result)
2152
2246
  @transaction = args[:transaction] if args.key?(:transaction)
@@ -2217,6 +2311,11 @@ module Google
2217
2311
  attr_accessor :done
2218
2312
  alias_method :done?, :done
2219
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
+
2220
2319
  # The time at which the document was read. This may be monotonically increasing;
2221
2320
  # in this case, the previous documents in the result stream are guaranteed not
2222
2321
  # to have changed between their `read_time` and this one. If the query returns
@@ -2248,6 +2347,7 @@ module Google
2248
2347
  def update!(**args)
2249
2348
  @document = args[:document] if args.key?(:document)
2250
2349
  @done = args[:done] if args.key?(:done)
2350
+ @explain_metrics = args[:explain_metrics] if args.key?(:explain_metrics)
2251
2351
  @read_time = args[:read_time] if args.key?(:read_time)
2252
2352
  @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
2253
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.37.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.1"
22
+ GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240208"
25
+ REVISION = "20240317"
26
26
  end
27
27
  end
28
28
  end
@@ -178,12 +178,24 @@ 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
+
187
199
  class ExplainOptions
188
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
201
 
@@ -376,6 +388,12 @@ module Google
376
388
  include Google::Apis::Core::JsonObjectSupport
377
389
  end
378
390
 
391
+ class PlanSummary
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
379
397
  class Precondition
380
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
399
 
@@ -745,6 +763,16 @@ module Google
745
763
  end
746
764
  end
747
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
+
748
776
  class ExistenceFilter
749
777
  # @private
750
778
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -755,6 +783,16 @@ module Google
755
783
  end
756
784
  end
757
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
+
758
796
  class ExplainOptions
759
797
  # @private
760
798
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1067,6 +1105,13 @@ module Google
1067
1105
  end
1068
1106
  end
1069
1107
 
1108
+ class PlanSummary
1109
+ # @private
1110
+ class Representation < Google::Apis::Core::JsonRepresentation
1111
+ collection :indexes_used, as: 'indexesUsed'
1112
+ end
1113
+ end
1114
+
1070
1115
  class Precondition
1071
1116
  # @private
1072
1117
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1130,6 +1175,8 @@ module Google
1130
1175
  class RunAggregationQueryResponse
1131
1176
  # @private
1132
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
+
1133
1180
  property :read_time, as: 'readTime'
1134
1181
  property :result, as: 'result', class: Google::Apis::FirestoreV1beta1::AggregationResult, decorator: Google::Apis::FirestoreV1beta1::AggregationResult::Representation
1135
1182
 
@@ -1157,6 +1204,8 @@ module Google
1157
1204
  property :document, as: 'document', class: Google::Apis::FirestoreV1beta1::Document, decorator: Google::Apis::FirestoreV1beta1::Document::Representation
1158
1205
 
1159
1206
  property :done, as: 'done'
1207
+ property :explain_metrics, as: 'explainMetrics', class: Google::Apis::FirestoreV1beta1::ExplainMetrics, decorator: Google::Apis::FirestoreV1beta1::ExplainMetrics::Representation
1208
+
1160
1209
  property :read_time, as: 'readTime'
1161
1210
  property :skipped_results, as: 'skippedResults'
1162
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.37.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-18 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.12.0
19
+ version: 0.14.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.12.0
29
+ version: 0.14.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.37.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: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.3
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Firestore API V1beta1