From b34972d2fcded32073825b2a5cbac7a833c29fa7 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Fri, 9 Feb 2018 10:51:31 -0500 Subject: [PATCH] docs: Subscription names are required. --- src/index.js | 2 +- src/subscription.js | 2 +- src/topic.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index ec006d81e..22616ff36 100644 --- a/src/index.js +++ b/src/index.js @@ -184,7 +184,7 @@ function PubSub(options) { * * @param {Topic|string} topic The Topic to create a * subscription to. - * @param {string} [name] The name of the subscription. + * @param {string} name The name of the subscription. * @param {CreateSubscriptionRequest} [options] See a * [Subscription resource](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions). * @param {CreateSubscriptionCallback} [callback] Callback function. diff --git a/src/subscription.js b/src/subscription.js index cd23beb4a..2de8e59e9 100644 --- a/src/subscription.js +++ b/src/subscription.js @@ -52,7 +52,7 @@ var Snapshot = require('./snapshot.js'); * @class * * @param {PubSub} pubsub PubSub object. - * @param {string} [name] The name of the subscription. + * @param {string} name The name of the subscription. * @param {object} [options] See a * [Subscription resource](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions) * @param {object} [options.flowControl] Flow control configurations for diff --git a/src/topic.js b/src/topic.js index 5312018c0..aaa6657af 100644 --- a/src/topic.js +++ b/src/topic.js @@ -159,7 +159,7 @@ Topic.prototype.create = function(gaxOpts, callback) { * * @throws {Error} If subscription name is omitted. * - * @param {string} [name] The name of the subscription. + * @param {string} name The name of the subscription. * @param {CreateSubscriptionRequest} [options] See a * [Subscription resource](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions). * @param {CreateSubscriptionCallback} [callback] Callback function.