Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 6ef122a

Browse files
authored
fix(backup): backup name regex (#970)
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
1 parent 30c65e8 commit 6ef122a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google/cloud/bigtable/backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
r"^projects/(?P<project>[^/]+)/"
2929
r"instances/(?P<instance_id>[a-z][-a-z0-9]*)/"
3030
r"clusters/(?P<cluster_id>[a-z][-a-z0-9]*)/"
31-
r"backups/(?P<backup_id>[a-z][a-z0-9_\-]*[a-z0-9])$"
31+
r"backups/(?P<backup_id>[_a-zA-Z0-9][-_.a-zA-Z0-9]*)$"
3232
)
3333

3434
_TABLE_NAME_RE = re.compile(

0 commit comments

Comments
 (0)