gcloud
gcloud uses the REST API, which lowtide serves on the same TLS port as gRPC.
gcloud config set api_endpoint_overrides/pubsub https://lowtide.pubsub.svc/For a private CA:
gcloud config set core/custom_ca_certs_file /path/to/lowtide-ca.crtAfter that, gcloud pubsub topics, subscriptions and snapshots commands work as usual, including publish, pull and seek. With Cloud IAM authorization on, add-iam-policy-binding, remove-iam-policy-binding and get-iam-policy work too: lowtide forwards them to the shadow resource with your credentials.
gcloud pubsub topics create orders --project acmegcloud pubsub subscriptions create orders-billing --topic orders --project acmegcloud pubsub topics publish orders --message hello --project acmegcloud pubsub subscriptions pull orders-billing --auto-ack --project acmeSwitch back to Pub/Sub
Section titled “Switch back to Pub/Sub”gcloud config unset api_endpoint_overrides/pubsubThe override applies to every Pub/Sub command in the active gcloud configuration. To keep Pub/Sub and lowtide apart, use a separate configuration:
gcloud config configurations create lowtidegcloud config set api_endpoint_overrides/pubsub https://lowtide.pubsub.svc/gcloud config configurations activate default # back to Pub/SubOr override a single command with CLOUDSDK_API_ENDPOINT_OVERRIDES_PUBSUB=https://lowtide.pubsub.svc/ gcloud pubsub ....
Not supported
Section titled “Not supported”gcloud pubsub schemas commands: lowtide does not serve schemas. See Compatibility.