GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(spanner): add MR CMEK samples by panerorenn9541 · Pull Request #2044 · GoogleCloudPlatform/php-docs-samples

Conversation

@panerorenn9541

@panerorenn9541 panerorenn9541 commented Aug 28, 2024

Copy link
Copy Markdown
Contributor

Add samples and tests for create database, create backup, copy backup, and restore backup.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
panerorenn9541 added 11 commits August 27, 2024 11:07
@panerorenn9541
Add create_database_with_MR_CMEK.php
a10b814
@panerorenn9541
Add testCreateDatabaseWithMRCMEK to spannerTest.php
9ff75b4
@panerorenn9541
Add create_backup_with_MR_CMEK
0d15ed3
@panerorenn9541
Add testCreateBackupWithMRCMEK to spannerBackupTest.php
83fa89c
@panerorenn9541
Add restore_backup_with_MR_CMEK
593060f
@panerorenn9541
Add testRestoreBackupWithMRCMEK to spannerBackupTest.php
06bcc20
@panerorenn9541
Rename create_backup_with_MR_CMEK to create_backup_with_MR_CMEK.php
ab16eb8
@panerorenn9541
Rename restore_backup_with_MR_CMEK to restore_backup_with_MR_CMEK.php
27b4c90
@panerorenn9541
Add copy_backup_with_MR_CMEK.php
fae82c3
@panerorenn9541
Add testCopyBackupWithMRCMEK to spannerBackupTest.php
a20201b
@panerorenn9541
Update copy_backup_with_MR_CMEK.php
3256866
@panerorenn9541
panerorenn9541 requested review from a team as code owners August 28, 2024 15:49
@snippet-bot

snippet-bot Bot commented Aug 28, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 4 region tags.
  • spanner/src/copy_backup_with_mr_cmek.php:26, tag spanner_copy_backup_with_MR_CMEK
  • spanner/src/create_backup_with_mr_cmek.php:26, tag spanner_create_backup_with_MR_CMEK
  • spanner/src/create_database_with_mr_cmek.php:26, tag spanner_create_database_with_MR_CMEK
  • spanner/src/restore_backup_with_mr_cmek.php:26, tag spanner_restore_backup_with_MR_CMEK

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@product-auto-label product-auto-label Bot added api: spanner Issues related to the Spanner API. samples Issues that are directly related to samples. labels Aug 28, 2024
Hectorhammett
Hectorhammett requested changes Sep 3, 2024
View reviewed changes
Comment thread spanner/src/copy_backup_with_MR_CMEK.php Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread spanner/src/copy_backup_with_MR_CMEK.php Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Hectorhammett

Hectorhammett commented Sep 3, 2024

Copy link
Copy Markdown
Collaborator

Looking good but there are some errors on the syntax and style on the tests :).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@panerorenn9541
Update copy_backup_with_MR_CMEK.php
3cb136a
@panerorenn9541
panerorenn9541 requested a review from Hectorhammett September 4, 2024 00:14
panerorenn9541 added 7 commits September 4, 2024 09:53
@panerorenn9541
Update create_database_with_MR_CMEK.php
1f2a41b
Add indentation
@panerorenn9541
Update copy_backup_with_MR_CMEK.php
51fa722
@panerorenn9541
Update copy_backup_with_MR_CMEK.php
03b7244
@panerorenn9541
Update create_database_with_MR_CMEK.php
92e9cd9
@panerorenn9541
Update restore_backup_with_MR_CMEK.php
449c7e2
@panerorenn9541
Update create_backup_with_MR_CMEK.php
69c652f
Use encryptionInformation
@panerorenn9541
Update copy_backup_with_MR_CMEK.php
52536f9
Use encryptionInformation
Hectorhammett
Hectorhammett approved these changes Sep 5, 2024
View reviewed changes
@Hectorhammett
Hectorhammett self-requested a review September 6, 2024 21:52
Hectorhammett
Hectorhammett approved these changes Sep 6, 2024
View reviewed changes
@panerorenn9541
Update print_firewall_rule.php formatting
6299ff4
bshaffer
bshaffer reviewed Sep 9, 2024
View reviewed changes
Comment thread spanner/src/copy_backup_with_MR_CMEK.php Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread spanner/src/create_backup_with_MR_CMEK.php Resolved

Uh oh!

There was an error while loading. Please reload this page.

bshaffer and others added 7 commits October 8, 2024 09:50
@bshaffer
Merge branch 'main' into main
5b2b85d
@panerorenn9541
Update and rename copy_backup_with_MR_CMEK.php to copy_backup_with_mr…
cef2f51
…_cmek.php

Change from MR_CMEK to mr_cmek
@panerorenn9541
Update and rename create_backup_with_MR_CMEK.php to create_backup_wit…
4e434f2
…h_mr_cmek.php

Change from MR_CMEK to mr_cmek
@panerorenn9541
Update and rename create_database_with_MR_CMEK.php to create_database…
9d831b3
…_with_mr_cmek.php

Change from MR_CMEK to mr_cmek
@panerorenn9541
Update and rename restore_backup_with_MR_CMEK.php to restore_backup_w…
467aabe
…ith_mr_cmek.php

Change from MR_CMEK to mr_cmek
@panerorenn9541
Update spannerBackupTest.php
9a1ca4d
Change from MR_CMEK to mr_cmek
@panerorenn9541
Update spannerTest.php
ac49f3b
Change from MR_CMEK to mr_cmek
@panerorenn9541
panerorenn9541 requested a review from bshaffer October 15, 2024 20:16
bshaffer
bshaffer approved these changes Oct 15, 2024
View reviewed changes
@bshaffer
bshaffer enabled auto-merge (squash) October 15, 2024 20:39
@panerorenn9541
Update spannerTest.php
b78580d
Add self::$ to kmsKeyName
auto-merge was automatically disabled October 16, 2024 00:31

Head branch was pushed to by a user without write access

panerorenn9541 added 11 commits October 15, 2024 17:34
@panerorenn9541
Update spannerBackupTest.php
bfc74d4
Add self::$ to kmsKeyName
@panerorenn9541
Update spannerTest.php
bbf0c0d
@panerorenn9541
Update spannerTest.php
a9e66d2
Shorten database id
@panerorenn9541
Update spannerBackupTest.php
ed6e7c6
Shorten names
@panerorenn9541
Update spannerTest.php
edc82c7
Use MR instance
@panerorenn9541
Update spannerTest.php
a0e4d6d
Add spanner client
@panerorenn9541
Update spannerBackupTest.php
6f50317
Add mr copy instance
@panerorenn9541
Update spannerTest.php
0630b47
Add self::$instanceConfig
@panerorenn9541
Update spannerTest.php
32d0e6f
Create instance config
@panerorenn9541
Update spannerBackupTest.php
a56a5cd
@panerorenn9541
Update spannerBackupTest.php
7d5784d
@Hectorhammett
Hectorhammett merged commit 5ad66db into GoogleCloudPlatform:main Oct 18, 2024
This was referenced Dec 4, 2024
docs: add Multi Region Encryption samples googleapis/java-spanner#3524
Merged
feat(spanner): add samples for using multi-region encryption keys for backups and database GoogleCloudPlatform/golang-samples#4790
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bshaffer bshaffer bshaffer approved these changes
@Hectorhammett Hectorhammett Hectorhammett approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: spanner Issues related to the Spanner API. samples Issues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@panerorenn9541 @Hectorhammett @bshaffer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.