Configuring the gcloud CLI for use behind a proxy/firewall  |  Google Cloud SDK  |  Google Cloud Documentation

https://docs.cloud.google.com/sdk/docs/proxy-settings