Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/pubsub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ function PubSub(options) {
* @param {string=} query.pageToken - Page token.
* @param {number=} query.pageSize - Max number of results to return.
* @param {function} callback - The callback function.
* @param {?error} callback.err - An error from the API call, may be null.
* @param {module:pubsub/topic[]} callback.topics - The list of topics returned.
* @param {object} callback.nextQuery - A query object representing the next page of topics.
* @param {object} callback.apiResponse - The full API response from the service.
*
* @example
* // Get all topics.
Expand Down Expand Up @@ -143,6 +147,9 @@ PubSub.prototype.getTopics = function(query, callback) {
*
* @param {string} name - Name of the topic.
* @param {function=} callback - The callback function.
* @param {?error} callback.err - An error from the API call, may be null.
* @param {module:pubsub/topic} callback.topic - The newly created topic.
* @param {object} callback.apiResponse - The full API response from the service.
*
* @example
* pubsub.createTopic('my-new-topic', function(err, topic, apiResponse) {
Expand Down Expand Up @@ -199,6 +206,10 @@ PubSub.prototype.topic = function(name, options) {
* @param {string=} query.pageToken - Page token.
* @param {number=} query.pageSize - Maximum number of results to return.
* @param {function} callback - The callback function.
* @param {?error} callback.err - An error from the API call, may be null.
* @param {module:pubsub/subscription[]} callback.subscriptions - The list of subscriptions returned.
* @param {object} callback.nextQuery - A query object representing the next page of topics.
* @param {object} callback.apiResponse - The full API response from the service.
*
* @example
* var callback = function(err, subscriptions, nextQuery, apiResponse) {
Expand Down