google-apis-firestore_v1 0.57.0 → 0.59.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: cf35ac5ab5216d3a9791cdee286cc9ba9827680bb17a65226ab8b87b9954ae9a
4
- data.tar.gz: 04e49bd9e54449bb102f89ba88c361a5db38f2bb3462d1f8a1d2159cb91f6437
3
+ metadata.gz: fedadd7cdb074145da950c43314396e867330291a06dc596bcad1f45bb216489
4
+ data.tar.gz: 718975c306c05e45058dc74f6bac3761424ba7962c1e3da48ab67ed43a1682de
5
5
  SHA512:
6
- metadata.gz: b131fbd29589441e56abc870f53e84838a5e9a1baf999d55900db01d840c3ff68a97f656b73e92c8702aeafa46181fc5e6cf14e81e67fb851db0011ca8f766f8
7
- data.tar.gz: 648f7ee4698de14c42b9d1fbd6dd62d8224b9a05f30a930dec2821bad0c9e9bff4a48d6b4c81931f04ccc18c746b215fe5a9d7aa06f52d806934ca379e3a9cad
6
+ metadata.gz: 6341d7d6960d2b058e95a12f058ed3f96cb662a08f7aa2d9d820c0127ea063c098fa55d883007fdf6ae3d6f1a03590af8cfd62aff13a129a26e3fa30dbc89499
7
+ data.tar.gz: 893d5843ecbcef7f59d97918ddfbcc087ccaab67573c47c434adb4ad64783b287bfae4279b694769ac95525206ea829d3e3ea5c53b830f8621966fa9c0ce0da4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-firestore_v1
2
2
 
3
+ ### v0.59.0 (2024-02-18)
4
+
5
+ * Regenerated from discovery document revision 20240208
6
+
7
+ ### v0.58.0 (2024-02-11)
8
+
9
+ * Regenerated from discovery document revision 20240131
10
+ * Regenerated using generator version 0.13.1
11
+
3
12
  ### v0.57.0 (2024-01-23)
4
13
 
5
14
  * Regenerated from discovery document revision 20240117
@@ -869,6 +869,29 @@ module Google
869
869
  end
870
870
  end
871
871
 
872
+ # Explain options for the query.
873
+ class ExplainOptions
874
+ include Google::Apis::Core::Hashable
875
+
876
+ # Optional. Whether to execute this query. When false (the default), the query
877
+ # will be planned, returning only metrics from the planning stages. When true,
878
+ # the query will be planned and executed, returning the full query results along
879
+ # with both planning and execution stage metrics.
880
+ # Corresponds to the JSON property `analyze`
881
+ # @return [Boolean]
882
+ attr_accessor :analyze
883
+ alias_method :analyze?, :analyze
884
+
885
+ def initialize(**args)
886
+ update!(**args)
887
+ end
888
+
889
+ # Update properties of this object
890
+ def update!(**args)
891
+ @analyze = args[:analyze] if args.key?(:analyze)
892
+ end
893
+ end
894
+
872
895
  # A filter on a specific field.
873
896
  class FieldFilter
874
897
  include Google::Apis::Core::Hashable
@@ -1126,6 +1149,42 @@ module Google
1126
1149
  end
1127
1150
  end
1128
1151
 
1152
+ # The CMEK (Customer Managed Encryption Key) configuration for a Firestore
1153
+ # database. If not present, the database is secured by the default Google
1154
+ # encryption key.
1155
+ class GoogleFirestoreAdminV1CmekConfig
1156
+ include Google::Apis::Core::Hashable
1157
+
1158
+ # Output only. Currently in-use [KMS key versions](https://cloud.google.com/kms/
1159
+ # docs/resource-hierarchy#key_versions). During [key rotation](https://cloud.
1160
+ # google.com/kms/docs/key-rotation), there can be multiple in-use key versions.
1161
+ # The expected format is `projects/`project_id`/locations/`kms_location`/
1162
+ # keyRings/`key_ring`/cryptoKeys/`crypto_key`/cryptoKeyVersions/`key_version``.
1163
+ # Corresponds to the JSON property `activeKeyVersion`
1164
+ # @return [Array<String>]
1165
+ attr_accessor :active_key_version
1166
+
1167
+ # Required. Only keys in the same location as this database are allowed to be
1168
+ # used for encryption. For Firestore's nam5 multi-region, this corresponds to
1169
+ # Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds
1170
+ # to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/
1171
+ # locations. The expected format is `projects/`project_id`/locations/`
1172
+ # kms_location`/keyRings/`key_ring`/cryptoKeys/`crypto_key``.
1173
+ # Corresponds to the JSON property `kmsKeyName`
1174
+ # @return [String]
1175
+ attr_accessor :kms_key_name
1176
+
1177
+ def initialize(**args)
1178
+ update!(**args)
1179
+ end
1180
+
1181
+ # Update properties of this object
1182
+ def update!(**args)
1183
+ @active_key_version = args[:active_key_version] if args.key?(:active_key_version)
1184
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
1185
+ end
1186
+ end
1187
+
1129
1188
  # Metadata related to the create database operation.
1130
1189
  class GoogleFirestoreAdminV1CreateDatabaseMetadata
1131
1190
  include Google::Apis::Core::Hashable
@@ -1162,6 +1221,13 @@ module Google
1162
1221
  # @return [String]
1163
1222
  attr_accessor :app_engine_integration_mode
1164
1223
 
1224
+ # The CMEK (Customer Managed Encryption Key) configuration for a Firestore
1225
+ # database. If not present, the database is secured by the default Google
1226
+ # encryption key.
1227
+ # Corresponds to the JSON property `cmekConfig`
1228
+ # @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1CmekConfig]
1229
+ attr_accessor :cmek_config
1230
+
1165
1231
  # The concurrency control mode to use for this database.
1166
1232
  # Corresponds to the JSON property `concurrencyMode`
1167
1233
  # @return [String]
@@ -1255,6 +1321,7 @@ module Google
1255
1321
  # Update properties of this object
1256
1322
  def update!(**args)
1257
1323
  @app_engine_integration_mode = args[:app_engine_integration_mode] if args.key?(:app_engine_integration_mode)
1324
+ @cmek_config = args[:cmek_config] if args.key?(:cmek_config)
1258
1325
  @concurrency_mode = args[:concurrency_mode] if args.key?(:concurrency_mode)
1259
1326
  @create_time = args[:create_time] if args.key?(:create_time)
1260
1327
  @delete_protection_state = args[:delete_protection_state] if args.key?(:delete_protection_state)
@@ -2876,27 +2943,6 @@ module Google
2876
2943
  end
2877
2944
  end
2878
2945
 
2879
- # Plan for the query.
2880
- class QueryPlan
2881
- include Google::Apis::Core::Hashable
2882
-
2883
- # Planning phase information for the query. It will include: ` "indexes_used": [
2884
- # `"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"`, `"
2885
- # query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"` ] `
2886
- # Corresponds to the JSON property `planInfo`
2887
- # @return [Hash<String,Object>]
2888
- attr_accessor :plan_info
2889
-
2890
- def initialize(**args)
2891
- update!(**args)
2892
- end
2893
-
2894
- # Update properties of this object
2895
- def update!(**args)
2896
- @plan_info = args[:plan_info] if args.key?(:plan_info)
2897
- end
2898
- end
2899
-
2900
2946
  # A target specified by a query.
2901
2947
  class QueryTarget
2902
2948
  include Google::Apis::Core::Hashable
@@ -2970,35 +3016,6 @@ module Google
2970
3016
  end
2971
3017
  end
2972
3018
 
2973
- # Planning and execution statistics for the query.
2974
- class ResultSetStats
2975
- include Google::Apis::Core::Hashable
2976
-
2977
- # Plan for the query.
2978
- # Corresponds to the JSON property `queryPlan`
2979
- # @return [Google::Apis::FirestoreV1::QueryPlan]
2980
- attr_accessor :query_plan
2981
-
2982
- # Aggregated statistics from the execution of the query. This will only be
2983
- # present when the request specifies `PROFILE` mode. For example, a query will
2984
- # return the statistics including: ` "results_returned": "20", "
2985
- # documents_scanned": "20", "indexes_entries_scanned": "10050", "
2986
- # total_execution_time": "100.7 msecs" `
2987
- # Corresponds to the JSON property `queryStats`
2988
- # @return [Hash<String,Object>]
2989
- attr_accessor :query_stats
2990
-
2991
- def initialize(**args)
2992
- update!(**args)
2993
- end
2994
-
2995
- # Update properties of this object
2996
- def update!(**args)
2997
- @query_plan = args[:query_plan] if args.key?(:query_plan)
2998
- @query_stats = args[:query_stats] if args.key?(:query_stats)
2999
- end
3000
- end
3001
-
3002
3019
  # The request for Firestore.Rollback.
3003
3020
  class RollbackRequest
3004
3021
  include Google::Apis::Core::Hashable
@@ -3023,12 +3040,10 @@ module Google
3023
3040
  class RunAggregationQueryRequest
3024
3041
  include Google::Apis::Core::Hashable
3025
3042
 
3026
- # Optional. The mode in which the query request is processed. This field is
3027
- # optional, and when not provided, it defaults to `NORMAL` mode where no
3028
- # additional statistics will be returned with the query results.
3029
- # Corresponds to the JSON property `mode`
3030
- # @return [String]
3031
- attr_accessor :mode
3043
+ # Explain options for the query.
3044
+ # Corresponds to the JSON property `explainOptions`
3045
+ # @return [Google::Apis::FirestoreV1::ExplainOptions]
3046
+ attr_accessor :explain_options
3032
3047
 
3033
3048
  # Options for creating a new transaction.
3034
3049
  # Corresponds to the JSON property `newTransaction`
@@ -3060,7 +3075,7 @@ module Google
3060
3075
 
3061
3076
  # Update properties of this object
3062
3077
  def update!(**args)
3063
- @mode = args[:mode] if args.key?(:mode)
3078
+ @explain_options = args[:explain_options] if args.key?(:explain_options)
3064
3079
  @new_transaction = args[:new_transaction] if args.key?(:new_transaction)
3065
3080
  @read_time = args[:read_time] if args.key?(:read_time)
3066
3081
  @structured_aggregation_query = args[:structured_aggregation_query] if args.key?(:structured_aggregation_query)
@@ -3088,11 +3103,6 @@ module Google
3088
3103
  # @return [Google::Apis::FirestoreV1::AggregationResult]
3089
3104
  attr_accessor :result
3090
3105
 
3091
- # Planning and execution statistics for the query.
3092
- # Corresponds to the JSON property `stats`
3093
- # @return [Google::Apis::FirestoreV1::ResultSetStats]
3094
- attr_accessor :stats
3095
-
3096
3106
  # The transaction that was started as part of this request. Only present on the
3097
3107
  # first response when the request requested to start a new transaction.
3098
3108
  # Corresponds to the JSON property `transaction`
@@ -3108,7 +3118,6 @@ module Google
3108
3118
  def update!(**args)
3109
3119
  @read_time = args[:read_time] if args.key?(:read_time)
3110
3120
  @result = args[:result] if args.key?(:result)
3111
- @stats = args[:stats] if args.key?(:stats)
3112
3121
  @transaction = args[:transaction] if args.key?(:transaction)
3113
3122
  end
3114
3123
  end
@@ -3117,12 +3126,10 @@ module Google
3117
3126
  class RunQueryRequest
3118
3127
  include Google::Apis::Core::Hashable
3119
3128
 
3120
- # Optional. The mode in which the query request is processed. This field is
3121
- # optional, and when not provided, it defaults to `NORMAL` mode where no
3122
- # additional statistics will be returned with the query results.
3123
- # Corresponds to the JSON property `mode`
3124
- # @return [String]
3125
- attr_accessor :mode
3129
+ # Explain options for the query.
3130
+ # Corresponds to the JSON property `explainOptions`
3131
+ # @return [Google::Apis::FirestoreV1::ExplainOptions]
3132
+ attr_accessor :explain_options
3126
3133
 
3127
3134
  # Options for creating a new transaction.
3128
3135
  # Corresponds to the JSON property `newTransaction`
@@ -3155,7 +3162,7 @@ module Google
3155
3162
 
3156
3163
  # Update properties of this object
3157
3164
  def update!(**args)
3158
- @mode = args[:mode] if args.key?(:mode)
3165
+ @explain_options = args[:explain_options] if args.key?(:explain_options)
3159
3166
  @new_transaction = args[:new_transaction] if args.key?(:new_transaction)
3160
3167
  @read_time = args[:read_time] if args.key?(:read_time)
3161
3168
  @structured_query = args[:structured_query] if args.key?(:structured_query)
@@ -3194,11 +3201,6 @@ module Google
3194
3201
  # @return [Fixnum]
3195
3202
  attr_accessor :skipped_results
3196
3203
 
3197
- # Planning and execution statistics for the query.
3198
- # Corresponds to the JSON property `stats`
3199
- # @return [Google::Apis::FirestoreV1::ResultSetStats]
3200
- attr_accessor :stats
3201
-
3202
3204
  # The transaction that was started as part of this request. Can only be set in
3203
3205
  # the first response, and only if RunQueryRequest.new_transaction was set in the
3204
3206
  # request. If set, no other fields will be set in this response.
@@ -3217,7 +3219,6 @@ module Google
3217
3219
  @done = args[:done] if args.key?(:done)
3218
3220
  @read_time = args[:read_time] if args.key?(:read_time)
3219
3221
  @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
3220
- @stats = args[:stats] if args.key?(:stats)
3221
3222
  @transaction = args[:transaction] if args.key?(:transaction)
3222
3223
  end
3223
3224
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirestoreV1
18
18
  # Version of the google-apis-firestore_v1 gem
19
- GEM_VERSION = "0.57.0"
19
+ GEM_VERSION = "0.59.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240117"
25
+ REVISION = "20240208"
26
26
  end
27
27
  end
28
28
  end
@@ -184,6 +184,12 @@ module Google
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
+ class ExplainOptions
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
187
193
  class FieldFilter
188
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
195
 
@@ -220,6 +226,12 @@ module Google
220
226
  include Google::Apis::Core::JsonObjectSupport
221
227
  end
222
228
 
229
+ class GoogleFirestoreAdminV1CmekConfig
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
223
235
  class GoogleFirestoreAdminV1CreateDatabaseMetadata
224
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
237
 
@@ -520,12 +532,6 @@ module Google
520
532
  include Google::Apis::Core::JsonObjectSupport
521
533
  end
522
534
 
523
- class QueryPlan
524
- class Representation < Google::Apis::Core::JsonRepresentation; end
525
-
526
- include Google::Apis::Core::JsonObjectSupport
527
- end
528
-
529
535
  class QueryTarget
530
536
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
537
 
@@ -544,12 +550,6 @@ module Google
544
550
  include Google::Apis::Core::JsonObjectSupport
545
551
  end
546
552
 
547
- class ResultSetStats
548
- class Representation < Google::Apis::Core::JsonRepresentation; end
549
-
550
- include Google::Apis::Core::JsonObjectSupport
551
- end
552
-
553
553
  class RollbackRequest
554
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
555
 
@@ -899,6 +899,13 @@ module Google
899
899
  end
900
900
  end
901
901
 
902
+ class ExplainOptions
903
+ # @private
904
+ class Representation < Google::Apis::Core::JsonRepresentation
905
+ property :analyze, as: 'analyze'
906
+ end
907
+ end
908
+
902
909
  class FieldFilter
903
910
  # @private
904
911
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -975,6 +982,14 @@ module Google
975
982
  end
976
983
  end
977
984
 
985
+ class GoogleFirestoreAdminV1CmekConfig
986
+ # @private
987
+ class Representation < Google::Apis::Core::JsonRepresentation
988
+ collection :active_key_version, as: 'activeKeyVersion'
989
+ property :kms_key_name, as: 'kmsKeyName'
990
+ end
991
+ end
992
+
978
993
  class GoogleFirestoreAdminV1CreateDatabaseMetadata
979
994
  # @private
980
995
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -991,6 +1006,8 @@ module Google
991
1006
  # @private
992
1007
  class Representation < Google::Apis::Core::JsonRepresentation
993
1008
  property :app_engine_integration_mode, as: 'appEngineIntegrationMode'
1009
+ property :cmek_config, as: 'cmekConfig', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1CmekConfig, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1CmekConfig::Representation
1010
+
994
1011
  property :concurrency_mode, as: 'concurrencyMode'
995
1012
  property :create_time, as: 'createTime'
996
1013
  property :delete_protection_state, as: 'deleteProtectionState'
@@ -1459,13 +1476,6 @@ module Google
1459
1476
  end
1460
1477
  end
1461
1478
 
1462
- class QueryPlan
1463
- # @private
1464
- class Representation < Google::Apis::Core::JsonRepresentation
1465
- hash :plan_info, as: 'planInfo'
1466
- end
1467
- end
1468
-
1469
1479
  class QueryTarget
1470
1480
  # @private
1471
1481
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1489,15 +1499,6 @@ module Google
1489
1499
  end
1490
1500
  end
1491
1501
 
1492
- class ResultSetStats
1493
- # @private
1494
- class Representation < Google::Apis::Core::JsonRepresentation
1495
- property :query_plan, as: 'queryPlan', class: Google::Apis::FirestoreV1::QueryPlan, decorator: Google::Apis::FirestoreV1::QueryPlan::Representation
1496
-
1497
- hash :query_stats, as: 'queryStats'
1498
- end
1499
- end
1500
-
1501
1502
  class RollbackRequest
1502
1503
  # @private
1503
1504
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1508,7 +1509,8 @@ module Google
1508
1509
  class RunAggregationQueryRequest
1509
1510
  # @private
1510
1511
  class Representation < Google::Apis::Core::JsonRepresentation
1511
- property :mode, as: 'mode'
1512
+ property :explain_options, as: 'explainOptions', class: Google::Apis::FirestoreV1::ExplainOptions, decorator: Google::Apis::FirestoreV1::ExplainOptions::Representation
1513
+
1512
1514
  property :new_transaction, as: 'newTransaction', class: Google::Apis::FirestoreV1::TransactionOptions, decorator: Google::Apis::FirestoreV1::TransactionOptions::Representation
1513
1515
 
1514
1516
  property :read_time, as: 'readTime'
@@ -1524,8 +1526,6 @@ module Google
1524
1526
  property :read_time, as: 'readTime'
1525
1527
  property :result, as: 'result', class: Google::Apis::FirestoreV1::AggregationResult, decorator: Google::Apis::FirestoreV1::AggregationResult::Representation
1526
1528
 
1527
- property :stats, as: 'stats', class: Google::Apis::FirestoreV1::ResultSetStats, decorator: Google::Apis::FirestoreV1::ResultSetStats::Representation
1528
-
1529
1529
  property :transaction, :base64 => true, as: 'transaction'
1530
1530
  end
1531
1531
  end
@@ -1533,7 +1533,8 @@ module Google
1533
1533
  class RunQueryRequest
1534
1534
  # @private
1535
1535
  class Representation < Google::Apis::Core::JsonRepresentation
1536
- property :mode, as: 'mode'
1536
+ property :explain_options, as: 'explainOptions', class: Google::Apis::FirestoreV1::ExplainOptions, decorator: Google::Apis::FirestoreV1::ExplainOptions::Representation
1537
+
1537
1538
  property :new_transaction, as: 'newTransaction', class: Google::Apis::FirestoreV1::TransactionOptions, decorator: Google::Apis::FirestoreV1::TransactionOptions::Representation
1538
1539
 
1539
1540
  property :read_time, as: 'readTime'
@@ -1551,8 +1552,6 @@ module Google
1551
1552
  property :done, as: 'done'
1552
1553
  property :read_time, as: 'readTime'
1553
1554
  property :skipped_results, as: 'skippedResults'
1554
- property :stats, as: 'stats', class: Google::Apis::FirestoreV1::ResultSetStats, decorator: Google::Apis::FirestoreV1::ResultSetStats::Representation
1555
-
1556
1555
  property :transaction, :base64 => true, as: 'transaction'
1557
1556
  end
1558
1557
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firestore_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.0
4
+ version: 0.59.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-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-18 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.57.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.59.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firestore_v1
63
63
  post_install_message:
64
64
  rdoc_options: []