You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/docs/docs.html
+18
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,24 @@ <h3>Datastore Overview</h3>
73
73
</p>
74
74
</article>
75
75
76
+
<articleng-if="isActiveDoc('pubsub')">
77
+
<h3>Pub/Sub Overview</h3>
78
+
<pclass="notice">
79
+
Google Cloud Pub/Sub is in Alpha status. As a result, it might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
80
+
</p>
81
+
<p>
82
+
The <code>gcloud.pubsub</code> method will return a <code>pubsub</code> object, allowing you to create topics, publish messages, subscribe to topics, and more. See the <ahref="https://developers.google.com/pubsub/overview">Google Cloud Pub/Sub overview</a> for more information.
83
+
</p>
84
+
<divhljs>
85
+
var pubsub = gcloud.pubsub({
86
+
projectId: 'myProject',
87
+
keyFilename: '/path/to/keyfile.json'
88
+
});</div>
89
+
<p>
90
+
See the examples below, which demonstrate everything from creating a topic to subscribing to messages on a topic.
0 commit comments