GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.29k stars 1.73k forks source link

chore(samples): Add samples for Cloud Spanner Scheduled Backups #4393

Closed ketanv3 closed 1 week ago

ketanv3 commented 1 week ago

Description

This PR adds code samples for the following APIs:

  1. CreateBackupSchedule (both full and incremental backup schedules)
  2. ListBackupSchedules
  3. GetBackupSchedule
  4. UpdateBackupSchedule
  5. DeleteBackupSchedule

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

conventional-commit-lint-gcf[bot] commented 1 week ago

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot https://conventionalcommits.org/

snippet-bot[bot] commented 1 week ago

Here is the summary of changes.

You are about to add 6 region tags. - [spanner/spanner_snippets/spanner/spanner_create_full_backup_schedule.go:17](https://github.com/ketanv3/golang-samples/blob/3635de277bcaf70202097d6d379ea95bf83064d8/spanner/spanner_snippets/spanner/spanner_create_full_backup_schedule.go#L17), tag `spanner_create_full_backup_schedule` - [spanner/spanner_snippets/spanner/spanner_create_incremental_backup_schedule.go:17](https://github.com/ketanv3/golang-samples/blob/3635de277bcaf70202097d6d379ea95bf83064d8/spanner/spanner_snippets/spanner/spanner_create_incremental_backup_schedule.go#L17), tag `spanner_create_incremental_backup_schedule` - [spanner/spanner_snippets/spanner/spanner_delete_backup_schedule.go:17](https://github.com/ketanv3/golang-samples/blob/3635de277bcaf70202097d6d379ea95bf83064d8/spanner/spanner_snippets/spanner/spanner_delete_backup_schedule.go#L17), tag `spanner_delete_backup_schedule` - [spanner/spanner_snippets/spanner/spanner_get_backup_schedule.go:17](https://github.com/ketanv3/golang-samples/blob/3635de277bcaf70202097d6d379ea95bf83064d8/spanner/spanner_snippets/spanner/spanner_get_backup_schedule.go#L17), tag `spanner_get_backup_schedule` - [spanner/spanner_snippets/spanner/spanner_list_backup_schedules.go:17](https://github.com/ketanv3/golang-samples/blob/3635de277bcaf70202097d6d379ea95bf83064d8/spanner/spanner_snippets/spanner/spanner_list_backup_schedules.go#L17), tag `spanner_list_backup_schedules` - [spanner/spanner_snippets/spanner/spanner_update_backup_schedule.go:17](https://github.com/ketanv3/golang-samples/blob/3635de277bcaf70202097d6d379ea95bf83064d8/spanner/spanner_snippets/spanner/spanner_update_backup_schedule.go#L17), tag `spanner_update_backup_schedule`

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:

ketanv3 commented 1 week ago

Thanks for the quick review, @telpirion!

You may want to retry the Go/Build GitHub action as it failed due to a transient network error.