Skip to content

Commit

Permalink
fix(backup): backup name regex (#970)
Browse files Browse the repository at this point in the history
Change the regular expression to match the format specified in the Bigtable Admin API documentation: https://cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.clusters.backups/create
  • Loading branch information
AmitMatsil committed May 29, 2024
1 parent 30c65e8 commit 6ef122a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/bigtable/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
r"^projects/(?P<project>[^/]+)/"
r"instances/(?P<instance_id>[a-z][-a-z0-9]*)/"
r"clusters/(?P<cluster_id>[a-z][-a-z0-9]*)/"
r"backups/(?P<backup_id>[a-z][a-z0-9_\-]*[a-z0-9])$"
r"backups/(?P<backup_id>[_a-zA-Z0-9][-_.a-zA-Z0-9]*)$"
)

_TABLE_NAME_RE = re.compile(
Expand Down

0 comments on commit 6ef122a

Please sign in to comment.