From ee7a09f039ecd0f2449984fcc69130cf007aad46 Mon Sep 17 00:00:00 2001 From: Juan Leaniz Date: Fri, 6 Dec 2024 04:16:23 -0600 Subject: [PATCH] Update regex validator (#938) --- data/recipes/gce_disk_copy.json | 2 +- data/recipes/gce_disk_export.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/recipes/gce_disk_copy.json b/data/recipes/gce_disk_copy.json index 40240c7c..7ef4f6ad 100644 --- a/data/recipes/gce_disk_copy.json +++ b/data/recipes/gce_disk_copy.json @@ -33,7 +33,7 @@ } }], "args": [ - ["source_project_name", "Source project containing the disks to export.", null, {"format": "regex", "comma_separated": false, "regex": "^[a-z][-a-z0-9]{4,28}[a-z0-9]$"}], + ["source_project_name", "Source project containing the disks to export.", null, {"format": "regex", "comma_separated": false, "regex": "^[a-z][-a-z0-9.:]{4,28}[a-z0-9]$"}], ["--destination_project_name", "Project to where the disk images are exported. If not provided, source_project_name is used.", null, {"format": "regex", "comma_separated": false, "regex": "^[a-z][-a-z0-9]{4,28}[a-z0-9]$"}], ["--source_disk_names", "Comma-separated list of disk names to export. If not provided, disks attached to `remote_instance_name` will be used.", null, {"format": "regex", "comma_separated": true, "regex": "^[a-z][-a-z0-9]{0,61}[a-z0-9]?$"}], ["--remote_instance_names", "Comma-separated list of instances in source project from which to copy disks. If not provided, `disk_names` will be used.", null, {"format": "regex", "comma_separated": true, "regex": "^[a-z][-a-z0-9]{0,61}[a-z0-9]?$"}], diff --git a/data/recipes/gce_disk_export.json b/data/recipes/gce_disk_export.json index 8bb2483e..f7171d0d 100644 --- a/data/recipes/gce_disk_export.json +++ b/data/recipes/gce_disk_export.json @@ -33,7 +33,7 @@ } }], "args": [ - ["source_project_name", "Source project containing the disk to export.", null, {"format": "regex", "comma_separated": false, "regex": "^[a-z][-a-z0-9]{4,28}[a-z0-9]$"}], + ["source_project_name", "Source project containing the disk to export.", null, {"format": "regex", "comma_separated": false, "regex": "^[a-z][-a-z0-9.:]{4,28}[a-z0-9]$"}], ["gcs_output_location", "Google Cloud Storage parent bucket/folder to which to export the image.", null, {"format": "regex", "regex": "^(gs:\/\/)?[0-9a-z][-\\.0-9a-z_]{1,61}[0-9a-z](\/[-\\.0-9a-z_]*)*$"}], ["--analysis_project_name", "Project where the disk image is created then exported. If not provided, the image is exported to a bucket in the source project.", null, {"format": "regex", "comma_separated": false, "regex": "^[a-z][-a-z0-9]{4,28}[a-z0-9]$"}], ["--source_disk_names", "Comma-separated list of disk names to export. If not provided, disks attached to `remote_instance_name` will be used.", null, {"format": "regex", "comma_separated": true, "regex": "^[a-z][-a-z0-9]{0,61}[a-z0-9]?$"}],