Skip to content

Commit

Permalink
Add Firestore deletion protection
Browse files Browse the repository at this point in the history
  • Loading branch information
IchordeDionysos committed Sep 10, 2023
1 parent 20d170f commit 1c95044
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mmv1/products/firestore/Database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ properties:
that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes.
This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).
output: true
- !ruby/object:Api::Type::Enum
name: deleteProtectionState
description: |
State of delete protection for the database.
values:
- :DELETE_PROTECTION_STATE_UNSPECIFIED
- :DELETE_PROTECTION_ENABLED
- :DELETE_PROTECTION_DISABLED
default_from_api: true
- !ruby/object:Api::Type::Fingerprint
name: etag
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "google_firestore_database" "<%= ctx[:primary_resource_id] %>" {
type = "FIRESTORE_NATIVE"
concurrency_mode = "OPTIMISTIC"
app_engine_integration_mode = "DISABLED"
delete_protection_state = "DELETE_PROTECTION_ENABLED"

depends_on = [google_project_service.firestore]
}

0 comments on commit 1c95044

Please sign in to comment.