Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: samples and tests for admin backup APIs #1105

Merged
merged 5 commits into from
Feb 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
rahul2393 committed Feb 23, 2024
commit 840359647cc1c95097a03c9ee6dc02148759adfb
5 changes: 1 addition & 4 deletions samples/samples/admin/backup_snippet.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ def restore_database_with_encryption_key(
"encryption_type": RestoreDatabaseEncryptionConfig.EncryptionType.CUSTOMER_MANAGED_ENCRYPTION,
"kms_key_name": kms_key_name,
}
new_database = instance.database(
new_database_id, encryption_config=encryption_config
)

request = RestoreDatabaseRequest(
parent=instance.name,
Expand All @@ -183,7 +180,7 @@ def restore_database_with_encryption_key(
restore_info.backup_info.source_database,
new_database_id,
restore_info.backup_info.backup,
restore_info.encryption_config.kms_key_name,
db.encryption_config.kms_key_name,
)
)

Expand Down