google.internal.gcp_project_id
Resolves the project id from `credentials_json` when it carries one, else from the google-auth chain (`GOOGLE_CLOUD_PROJECT` / `GCLOUD_PROJECT`, the ADC and gcloud config files, the GCE metadata server). `null` means "not discoverable" — the caller reports it.
Reference version
Signature
function google.internal.gcp_project_id(credentials_json: string | null) -> string | null
Resolves the project id from credentials_json when it carries one, else
from the google-auth chain (GOOGLE_CLOUD_PROJECT / GCLOUD_PROJECT, the
ADC and gcloud config files, the GCE metadata server). null means "not
discoverable" — the caller reports it.
Source:<builtin>/google/ns_internal/auth.bamlbytes 1707–1822