google.internal.gcp_quota_project_id

Resolves the quota/billing project for the `x-goog-user-project` header, matching google-auth's `Credentials.apply`: `GOOGLE_CLOUD_QUOTA_PROJECT` always wins, then the credential document's `quota_project_id`.

Reference version

Signature

function google.internal.gcp_quota_project_id(credentials_json: string | null) -> string | null

Resolves the quota/billing project for the x-goog-user-project header, matching google-auth's Credentials.apply: GOOGLE_CLOUD_QUOTA_PROJECT always wins, then the credential document's quota_project_id.

Source:<builtin>/google/ns_internal/auth.bamlbytes 20462173