google.appengine.ext.testbed.validate_project_id

Ensure that a GCP project ID is valid.

From https://cloud.google.com/resource-manager/docs/creating-managing-projects#before_you_begin The project ID must be a unique string of 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen.

project_id (str): project id, potentially including domain prefix, to validate.