Skip to content

Commit

Permalink
docs: mention v1p1beta1 in index.js jsdoc (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored and JustinBeckwith committed Jun 7, 2018
1 parent ec00753 commit 1892f8b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/google-cloud-speech/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
/**
* @namespace google.cloud.speech.v1
*/
/**
* @namespace google.cloud.speech.v1p1beta1
*/
/**
* @namespace google.protobuf
*/
Expand Down Expand Up @@ -57,6 +60,9 @@ for (let gapicVersion of Object.keys(gapic)) {
* - `v1` - This is used for selecting or pinning a particular backend service
* version. It exports:
* - `SpeechClient` - Reference to {@link v1.SpeechClient}
* - `v1p1beta1` - This is used for selecting or pinning a beta backend service
* version. It exports:
* - `SpeechClient` - Reference to {@link v1p1beta1.SpeechClient}
*
* @module {object} @google-cloud/speech
* @alias nodejs-speech
Expand All @@ -83,6 +89,11 @@ module.exports = gapic.v1;
* @property {constructor} SpeechClient Reference to {@link v1.SpeechClient}.
*/
module.exports.v1 = gapic.v1;

/**
* @type {object}
* @property {constructor} SpeechClient Reference to {@link v1p1beta1.SpeechClient}.
*/
module.exports.v1p1beta1 = gapic.v1p1beta1;

// Alias `module.exports` as `module.exports.default`, for future-proofing.
Expand Down

0 comments on commit 1892f8b

Please sign in to comment.