The gcloud.pubsub method will return a pubsub object, allowing you to create topics, publish messages, subscribe to topics, and more.
gcloud.pubsub
pubsub
To learn more about Pub/Sub, see the Google Cloud Pub/Sub overview.