Skip to content

Commit

Permalink
Update regex validator (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleaniz authored Dec 6, 2024
1 parent daa1f01 commit ee7a09f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/recipes/gce_disk_copy.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]?$"}],
Expand Down
2 changes: 1 addition & 1 deletion data/recipes/gce_disk_export.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]?$"}],
Expand Down

0 comments on commit ee7a09f

Please sign in to comment.