|
112 | 112 | "resources": {
|
113 | 113 | "databases": {
|
114 | 114 | "methods": {
|
| 115 | +"bulkDeleteDocuments": { |
| 116 | +"description": "Bulk deletes a subset of documents from Google Cloud Firestore. Documents created or updated after the underlying system starts to process the request will not be deleted. The bulk delete occurs in the background and its progress can be monitored and managed via the Operation resource that is created. For more details on bulk delete behavior, refer to: https://cloud.google.com/firestore/docs/manage-data/bulk-delete", |
| 117 | +"flatPath": "v1/projects/{projectsId}/databases/{databasesId}:bulkDeleteDocuments", |
| 118 | +"httpMethod": "POST", |
| 119 | +"id": "firestore.projects.databases.bulkDeleteDocuments", |
| 120 | +"parameterOrder": [ |
| 121 | +"name" |
| 122 | +], |
| 123 | +"parameters": { |
| 124 | +"name": { |
| 125 | +"description": "Required. Database to operate. Should be of the form: `projects/{project_id}/databases/{database_id}`.", |
| 126 | +"location": "path", |
| 127 | +"pattern": "^projects/[^/]+/databases/[^/]+$", |
| 128 | +"required": true, |
| 129 | +"type": "string" |
| 130 | +} |
| 131 | +}, |
| 132 | +"path": "v1/{+name}:bulkDeleteDocuments", |
| 133 | +"request": { |
| 134 | +"$ref": "GoogleFirestoreAdminV1BulkDeleteDocumentsRequest" |
| 135 | +}, |
| 136 | +"response": { |
| 137 | +"$ref": "GoogleLongrunningOperation" |
| 138 | +}, |
| 139 | +"scopes": [ |
| 140 | +"https://www.googleapis.com/auth/cloud-platform", |
| 141 | +"https://www.googleapis.com/auth/datastore" |
| 142 | +] |
| 143 | +}, |
115 | 144 | "create": {
|
116 | 145 | "description": "Create a database.",
|
117 | 146 | "flatPath": "v1/projects/{projectsId}/databases",
|
|
1677 | 1706 | }
|
1678 | 1707 | }
|
1679 | 1708 | },
|
1680 |
| -"revision": "20240610", |
| 1709 | +"revision": "20240617", |
1681 | 1710 | "rootUrl": "https://firestore.googleapis.com/",
|
1682 | 1711 | "schemas": {
|
1683 | 1712 | "Aggregation": {
|
|
2487 | 2516 | },
|
2488 | 2517 | "type": "object"
|
2489 | 2518 | },
|
| 2519 | +"GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata": { |
| 2520 | +"description": "Metadata for google.longrunning.Operation results from FirestoreAdmin.BulkDeleteDocuments.", |
| 2521 | +"id": "GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata", |
| 2522 | +"properties": { |
| 2523 | +"collectionIds": { |
| 2524 | +"description": "The ids of the collection groups that are being deleted.", |
| 2525 | +"items": { |
| 2526 | +"type": "string" |
| 2527 | +}, |
| 2528 | +"type": "array" |
| 2529 | +}, |
| 2530 | +"endTime": { |
| 2531 | +"description": "The time this operation completed. Will be unset if operation still in progress.", |
| 2532 | +"format": "google-datetime", |
| 2533 | +"type": "string" |
| 2534 | +}, |
| 2535 | +"namespaceIds": { |
| 2536 | +"description": "Which namespace ids are being deleted.", |
| 2537 | +"items": { |
| 2538 | +"type": "string" |
| 2539 | +}, |
| 2540 | +"type": "array" |
| 2541 | +}, |
| 2542 | +"operationState": { |
| 2543 | +"description": "The state of the operation.", |
| 2544 | +"enum": [ |
| 2545 | +"OPERATION_STATE_UNSPECIFIED", |
| 2546 | +"INITIALIZING", |
| 2547 | +"PROCESSING", |
| 2548 | +"CANCELLING", |
| 2549 | +"FINALIZING", |
| 2550 | +"SUCCESSFUL", |
| 2551 | +"FAILED", |
| 2552 | +"CANCELLED" |
| 2553 | +], |
| 2554 | +"enumDescriptions": [ |
| 2555 | +"Unspecified.", |
| 2556 | +"Request is being prepared for processing.", |
| 2557 | +"Request is actively being processed.", |
| 2558 | +"Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.", |
| 2559 | +"Request has been processed and is in its finalization stage.", |
| 2560 | +"Request has completed successfully.", |
| 2561 | +"Request has finished being processed, but encountered an error.", |
| 2562 | +"Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation." |
| 2563 | +], |
| 2564 | +"type": "string" |
| 2565 | +}, |
| 2566 | +"progressBytes": { |
| 2567 | +"$ref": "GoogleFirestoreAdminV1Progress", |
| 2568 | +"description": "The progress, in bytes, of this operation." |
| 2569 | +}, |
| 2570 | +"progressDocuments": { |
| 2571 | +"$ref": "GoogleFirestoreAdminV1Progress", |
| 2572 | +"description": "The progress, in documents, of this operation." |
| 2573 | +}, |
| 2574 | +"snapshotTime": { |
| 2575 | +"description": "The timestamp that corresponds to the version of the database that is being read to get the list of documents to delete. This time can also be used as the timestamp of PITR in case of disaster recovery (subject to PITR window limit).", |
| 2576 | +"format": "google-datetime", |
| 2577 | +"type": "string" |
| 2578 | +}, |
| 2579 | +"startTime": { |
| 2580 | +"description": "The time this operation started.", |
| 2581 | +"format": "google-datetime", |
| 2582 | +"type": "string" |
| 2583 | +} |
| 2584 | +}, |
| 2585 | +"type": "object" |
| 2586 | +}, |
| 2587 | +"GoogleFirestoreAdminV1BulkDeleteDocumentsRequest": { |
| 2588 | +"description": "The request for FirestoreAdmin.BulkDeleteDocuments. When both collection_ids and namespace_ids are set, only documents satisfying both conditions will be deleted. Requests with namespace_ids and collection_ids both empty will be rejected. Please use FirestoreAdmin.DeleteDatabase instead.", |
| 2589 | +"id": "GoogleFirestoreAdminV1BulkDeleteDocumentsRequest", |
| 2590 | +"properties": { |
| 2591 | +"collectionIds": { |
| 2592 | +"description": "Optional. IDs of the collection groups to delete. Unspecified means all collection groups. Each collection group in this list must be unique.", |
| 2593 | +"items": { |
| 2594 | +"type": "string" |
| 2595 | +}, |
| 2596 | +"type": "array" |
| 2597 | +}, |
| 2598 | +"namespaceIds": { |
| 2599 | +"description": "Optional. Namespaces to delete. An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces. An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them. Each namespace in this list must be unique.", |
| 2600 | +"items": { |
| 2601 | +"type": "string" |
| 2602 | +}, |
| 2603 | +"type": "array" |
| 2604 | +} |
| 2605 | +}, |
| 2606 | +"type": "object" |
| 2607 | +}, |
2490 | 2608 | "GoogleFirestoreAdminV1CmekConfig": {
|
2491 | 2609 | "description": "The CMEK (Customer Managed Encryption Key) configuration for a Firestore database. If not present, the database is secured by the default Google encryption key.",
|
2492 | 2610 | "id": "GoogleFirestoreAdminV1CmekConfig",
|
|
2637 | 2755 | "DATASTORE_MODE"
|
2638 | 2756 | ],
|
2639 | 2757 | "enumDescriptions": [
|
2640 |
| -"The default value. This value is used if the database type is omitted.", |
| 2758 | +"Not used.", |
2641 | 2759 | "Firestore Native Mode",
|
2642 | 2760 | "Firestore in Datastore Mode."
|
2643 | 2761 | ],
|
|
2663 | 2781 | },
|
2664 | 2782 | "type": "object"
|
2665 | 2783 | },
|
2666 |
| -"GoogleFirestoreAdminV1DatabaseSnapshot": { |
2667 |
| -"description": "A consistent snapshot of a database at a specific point in time.", |
2668 |
| -"id": "GoogleFirestoreAdminV1DatabaseSnapshot", |
2669 |
| -"properties": { |
2670 |
| -"database": { |
2671 |
| -"description": "Required. A name of the form `projects/{project_id}/databases/{database_id}`", |
2672 |
| -"type": "string" |
2673 |
| -}, |
2674 |
| -"snapshotTime": { |
2675 |
| -"description": "Required. The timestamp at which the database snapshot is taken. The requested timestamp must be a whole minute within the PITR window.", |
2676 |
| -"format": "google-datetime", |
2677 |
| -"type": "string" |
2678 |
| -} |
2679 |
| -}, |
2680 |
| -"type": "object" |
2681 |
| -}, |
2682 | 2784 | "GoogleFirestoreAdminV1DeleteDatabaseMetadata": {
|
2683 | 2785 | "description": "Metadata related to the delete database operation.",
|
2684 | 2786 | "id": "GoogleFirestoreAdminV1DeleteDatabaseMetadata",
|
|
3366 | 3468 | "description": "Required. The ID to use for the database, which will become the final component of the database's resource name. This database id must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. \"(default)\" database id is also valid.",
|
3367 | 3469 | "type": "string"
|
3368 | 3470 | },
|
3369 |
| -"databaseSnapshot": { |
3370 |
| -"$ref": "GoogleFirestoreAdminV1DatabaseSnapshot", |
3371 |
| -"description": "Database snapshot to restore from. The source database must exist and have enabled PITR. The restored database will be created in the same location as the source database." |
3372 |
| -}, |
3373 | 3471 | "kmsKeyName": {
|
3374 | 3472 | "description": "Use Customer Managed Encryption Keys (CMEK) for encryption. Only keys in the same location as this database are allowed to be used for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
|
3375 | 3473 | "type": "string"
|
|
0 commit comments