google-apis-firestore_v1 0.67.0 → 0.68.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: 3b481467d958456adbd319282e0bf54e0ccef002e1c8bd436420aa4ac171c647
4
- data.tar.gz: 8ff15f67e2207b3facef81bd4b9e9e396f591ded6a2bcf91464dd6aec7529882
3
+ metadata.gz: 55fa77a9da6977af6f6a8093919887293a4a8c885cbd70de201de28ef8aea920
4
+ data.tar.gz: 7c67acb04c961d86ef12c68eff94e931f21f76eba2e279bb144029dcd6b10dc4
5
5
  SHA512:
6
- metadata.gz: 9dca20f7a7c7404ad4469e31121cb17707479c99a0c637024031419710fed15979fc5e956cd72c2229f5a8c1c440df0f9f8b706d6534c732d72ab1d2382ea2cb
7
- data.tar.gz: f4f9f0c06b66fd24792281420728ef21a4764484d9fc66b1bc42c0cce794fa0c7194b7c679fabbbd64811730f38576075ba5d4137ef3a4f40db30be3caef58ee
6
+ metadata.gz: 207058b7e8d61b18a027ceee70e57a7d6d6216d1c225a5c02f2c1745d3e04b606d9d2b5e3a9e901fbea607787bf21a3a3603e93dd58ebe6e40e4bd5d881665c3
7
+ data.tar.gz: efe4f6bc674ceae19ad6e246b5c4d18fd4973129dc330595c22ac304aa7db9d88bed272ab0000bfc277f121a16bde98104f08746e49c0d8938b7500d7de8a898
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firestore_v1
2
2
 
3
+ ### v0.68.0 (2024-06-23)
4
+
5
+ * Regenerated from discovery document revision 20240617
6
+
3
7
  ### v0.67.0 (2024-06-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20240610
@@ -1256,6 +1256,106 @@ module Google
1256
1256
  end
1257
1257
  end
1258
1258
 
1259
+ # Metadata for google.longrunning.Operation results from FirestoreAdmin.
1260
+ # BulkDeleteDocuments.
1261
+ class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata
1262
+ include Google::Apis::Core::Hashable
1263
+
1264
+ # The ids of the collection groups that are being deleted.
1265
+ # Corresponds to the JSON property `collectionIds`
1266
+ # @return [Array<String>]
1267
+ attr_accessor :collection_ids
1268
+
1269
+ # The time this operation completed. Will be unset if operation still in
1270
+ # progress.
1271
+ # Corresponds to the JSON property `endTime`
1272
+ # @return [String]
1273
+ attr_accessor :end_time
1274
+
1275
+ # Which namespace ids are being deleted.
1276
+ # Corresponds to the JSON property `namespaceIds`
1277
+ # @return [Array<String>]
1278
+ attr_accessor :namespace_ids
1279
+
1280
+ # The state of the operation.
1281
+ # Corresponds to the JSON property `operationState`
1282
+ # @return [String]
1283
+ attr_accessor :operation_state
1284
+
1285
+ # Describes the progress of the operation. Unit of work is generic and must be
1286
+ # interpreted based on where Progress is used.
1287
+ # Corresponds to the JSON property `progressBytes`
1288
+ # @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Progress]
1289
+ attr_accessor :progress_bytes
1290
+
1291
+ # Describes the progress of the operation. Unit of work is generic and must be
1292
+ # interpreted based on where Progress is used.
1293
+ # Corresponds to the JSON property `progressDocuments`
1294
+ # @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Progress]
1295
+ attr_accessor :progress_documents
1296
+
1297
+ # The timestamp that corresponds to the version of the database that is being
1298
+ # read to get the list of documents to delete. This time can also be used as the
1299
+ # timestamp of PITR in case of disaster recovery (subject to PITR window limit).
1300
+ # Corresponds to the JSON property `snapshotTime`
1301
+ # @return [String]
1302
+ attr_accessor :snapshot_time
1303
+
1304
+ # The time this operation started.
1305
+ # Corresponds to the JSON property `startTime`
1306
+ # @return [String]
1307
+ attr_accessor :start_time
1308
+
1309
+ def initialize(**args)
1310
+ update!(**args)
1311
+ end
1312
+
1313
+ # Update properties of this object
1314
+ def update!(**args)
1315
+ @collection_ids = args[:collection_ids] if args.key?(:collection_ids)
1316
+ @end_time = args[:end_time] if args.key?(:end_time)
1317
+ @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
1318
+ @operation_state = args[:operation_state] if args.key?(:operation_state)
1319
+ @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
1320
+ @progress_documents = args[:progress_documents] if args.key?(:progress_documents)
1321
+ @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
1322
+ @start_time = args[:start_time] if args.key?(:start_time)
1323
+ end
1324
+ end
1325
+
1326
+ # The request for FirestoreAdmin.BulkDeleteDocuments. When both collection_ids
1327
+ # and namespace_ids are set, only documents satisfying both conditions will be
1328
+ # deleted. Requests with namespace_ids and collection_ids both empty will be
1329
+ # rejected. Please use FirestoreAdmin.DeleteDatabase instead.
1330
+ class GoogleFirestoreAdminV1BulkDeleteDocumentsRequest
1331
+ include Google::Apis::Core::Hashable
1332
+
1333
+ # Optional. IDs of the collection groups to delete. Unspecified means all
1334
+ # collection groups. Each collection group in this list must be unique.
1335
+ # Corresponds to the JSON property `collectionIds`
1336
+ # @return [Array<String>]
1337
+ attr_accessor :collection_ids
1338
+
1339
+ # Optional. Namespaces to delete. An empty list means all namespaces. This is
1340
+ # the recommended usage for databases that don't use namespaces. An empty string
1341
+ # element represents the default namespace. This should be used if the database
1342
+ # has data in non-default namespaces, but doesn't want to delete from them. Each
1343
+ # namespace in this list must be unique.
1344
+ # Corresponds to the JSON property `namespaceIds`
1345
+ # @return [Array<String>]
1346
+ attr_accessor :namespace_ids
1347
+
1348
+ def initialize(**args)
1349
+ update!(**args)
1350
+ end
1351
+
1352
+ # Update properties of this object
1353
+ def update!(**args)
1354
+ @collection_ids = args[:collection_ids] if args.key?(:collection_ids)
1355
+ @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
1356
+ end
1357
+ end
1358
+
1259
1359
  # The CMEK (Customer Managed Encryption Key) configuration for a Firestore
1260
1360
  # database. If not present, the database is secured by the default Google
1261
1361
  # encryption key.
@@ -1466,32 +1566,6 @@ module Google
1466
1566
  end
1467
1567
  end
1468
1568
 
1469
- # A consistent snapshot of a database at a specific point in time.
1470
- class GoogleFirestoreAdminV1DatabaseSnapshot
1471
- include Google::Apis::Core::Hashable
1472
-
1473
- # Required. A name of the form `projects/`project_id`/databases/`database_id``
1474
- # Corresponds to the JSON property `database`
1475
- # @return [String]
1476
- attr_accessor :database
1477
-
1478
- # Required. The timestamp at which the database snapshot is taken. The requested
1479
- # timestamp must be a whole minute within the PITR window.
1480
- # Corresponds to the JSON property `snapshotTime`
1481
- # @return [String]
1482
- attr_accessor :snapshot_time
1483
-
1484
- def initialize(**args)
1485
- update!(**args)
1486
- end
1487
-
1488
- # Update properties of this object
1489
- def update!(**args)
1490
- @database = args[:database] if args.key?(:database)
1491
- @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
1492
- end
1493
- end
1494
-
1495
1569
  # Metadata related to the delete database operation.
1496
1570
  class GoogleFirestoreAdminV1DeleteDatabaseMetadata
1497
1571
  include Google::Apis::Core::Hashable
@@ -2354,11 +2428,6 @@ module Google
2354
2428
  # @return [String]
2355
2429
  attr_accessor :database_id
2356
2430
 
2357
- # A consistent snapshot of a database at a specific point in time.
2358
- # Corresponds to the JSON property `databaseSnapshot`
2359
- # @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot]
2360
- attr_accessor :database_snapshot
2361
-
2362
2431
  # Use Customer Managed Encryption Keys (CMEK) for encryption. Only keys in the
2363
2432
  # same location as this database are allowed to be used for encryption. For
2364
2433
  # Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us.
@@ -2394,7 +2463,6 @@ module Google
2394
2463
  def update!(**args)
2395
2464
  @backup = args[:backup] if args.key?(:backup)
2396
2465
  @database_id = args[:database_id] if args.key?(:database_id)
2397
- @database_snapshot = args[:database_snapshot] if args.key?(:database_snapshot)
2398
2466
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
2399
2467
  @use_backup_encryption = args[:use_backup_encryption] if args.key?(:use_backup_encryption)
2400
2468
  @use_google_default_encryption = args[:use_google_default_encryption] if args.key?(:use_google_default_encryption)
@@ -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.67.0"
19
+ GEM_VERSION = "0.68.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240610"
25
+ REVISION = "20240617"
26
26
  end
27
27
  end
28
28
  end
@@ -244,31 +244,37 @@ module Google
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
- class GoogleFirestoreAdminV1CmekConfig
247
+ class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata
248
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
249
 
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
- class GoogleFirestoreAdminV1CreateDatabaseMetadata
253
+ class GoogleFirestoreAdminV1BulkDeleteDocumentsRequest
254
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
255
 
256
256
  include Google::Apis::Core::JsonObjectSupport
257
257
  end
258
258
 
259
- class GoogleFirestoreAdminV1DailyRecurrence
259
+ class GoogleFirestoreAdminV1CmekConfig
260
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
261
 
262
262
  include Google::Apis::Core::JsonObjectSupport
263
263
  end
264
264
 
265
- class GoogleFirestoreAdminV1Database
265
+ class GoogleFirestoreAdminV1CreateDatabaseMetadata
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class GoogleFirestoreAdminV1DailyRecurrence
266
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
273
 
268
274
  include Google::Apis::Core::JsonObjectSupport
269
275
  end
270
276
 
271
- class GoogleFirestoreAdminV1DatabaseSnapshot
277
+ class GoogleFirestoreAdminV1Database
272
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
279
 
274
280
  include Google::Apis::Core::JsonObjectSupport
@@ -1044,6 +1050,30 @@ module Google
1044
1050
  end
1045
1051
  end
1046
1052
 
1053
+ class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata
1054
+ # @private
1055
+ class Representation < Google::Apis::Core::JsonRepresentation
1056
+ collection :collection_ids, as: 'collectionIds'
1057
+ property :end_time, as: 'endTime'
1058
+ collection :namespace_ids, as: 'namespaceIds'
1059
+ property :operation_state, as: 'operationState'
1060
+ property :progress_bytes, as: 'progressBytes', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Progress, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Progress::Representation
1061
+
1062
+ property :progress_documents, as: 'progressDocuments', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Progress, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Progress::Representation
1063
+
1064
+ property :snapshot_time, as: 'snapshotTime'
1065
+ property :start_time, as: 'startTime'
1066
+ end
1067
+ end
1068
+
1069
+ class GoogleFirestoreAdminV1BulkDeleteDocumentsRequest
1070
+ # @private
1071
+ class Representation < Google::Apis::Core::JsonRepresentation
1072
+ collection :collection_ids, as: 'collectionIds'
1073
+ collection :namespace_ids, as: 'namespaceIds'
1074
+ end
1075
+ end
1076
+
1047
1077
  class GoogleFirestoreAdminV1CmekConfig
1048
1078
  # @private
1049
1079
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1090,14 +1120,6 @@ module Google
1090
1120
  end
1091
1121
  end
1092
1122
 
1093
- class GoogleFirestoreAdminV1DatabaseSnapshot
1094
- # @private
1095
- class Representation < Google::Apis::Core::JsonRepresentation
1096
- property :database, as: 'database'
1097
- property :snapshot_time, as: 'snapshotTime'
1098
- end
1099
- end
1100
-
1101
1123
  class GoogleFirestoreAdminV1DeleteDatabaseMetadata
1102
1124
  # @private
1103
1125
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1331,8 +1353,6 @@ module Google
1331
1353
  class Representation < Google::Apis::Core::JsonRepresentation
1332
1354
  property :backup, as: 'backup'
1333
1355
  property :database_id, as: 'databaseId'
1334
- property :database_snapshot, as: 'databaseSnapshot', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot::Representation
1335
-
1336
1356
  property :kms_key_name, as: 'kmsKeyName'
1337
1357
  property :use_backup_encryption, as: 'useBackupEncryption', class: Google::Apis::FirestoreV1::Empty, decorator: Google::Apis::FirestoreV1::Empty::Representation
1338
1358
 
@@ -52,6 +52,45 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # Bulk deletes a subset of documents from Google Cloud Firestore. Documents
56
+ # created or updated after the underlying system starts to process the request
57
+ # will not be deleted. The bulk delete occurs in the background and its progress
58
+ # can be monitored and managed via the Operation resource that is created. For
59
+ # more details on bulk delete behavior, refer to: https://cloud.google.com/
60
+ # firestore/docs/manage-data/bulk-delete
61
+ # @param [String] name
62
+ # Required. Database to operate. Should be of the form: `projects/`project_id`/
63
+ # databases/`database_id``.
64
+ # @param [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1BulkDeleteDocumentsRequest] google_firestore_admin_v1_bulk_delete_documents_request_object
65
+ # @param [String] fields
66
+ # Selector specifying which fields to include in a partial response.
67
+ # @param [String] quota_user
68
+ # Available to use for quota purposes for server-side applications. Can be any
69
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::FirestoreV1::GoogleLongrunningOperation] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::FirestoreV1::GoogleLongrunningOperation]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def bulk_project_database_delete_documents(name, google_firestore_admin_v1_bulk_delete_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ command = make_simple_command(:post, 'v1/{+name}:bulkDeleteDocuments', options)
84
+ command.request_representation = Google::Apis::FirestoreV1::GoogleFirestoreAdminV1BulkDeleteDocumentsRequest::Representation
85
+ command.request_object = google_firestore_admin_v1_bulk_delete_documents_request_object
86
+ command.response_representation = Google::Apis::FirestoreV1::GoogleLongrunningOperation::Representation
87
+ command.response_class = Google::Apis::FirestoreV1::GoogleLongrunningOperation
88
+ command.params['name'] = name unless name.nil?
89
+ command.query['fields'] = fields unless fields.nil?
90
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
91
+ execute_or_queue_command(command, &block)
92
+ end
93
+
55
94
  # Create a database.
56
95
  # @param [String] parent
57
96
  # Required. A parent name of the form `projects/`project_id``
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.67.0
4
+ version: 0.68.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-06-16 00:00:00.000000000 Z
11
+ date: 2024-06-23 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.67.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.68.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: []