Skip to content

Commit

Permalink
Remove v2beta1 endpoint from library (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox authored Apr 16, 2018
1 parent b89b3de commit ae96439
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 6,404 deletions.
1,329 changes: 0 additions & 1,329 deletions packages/google-privacy-dlp/protos/google/privacy/dlp/v2beta1/dlp.proto

This file was deleted.

This file was deleted.

14 changes: 6 additions & 8 deletions packages/google-privacy-dlp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,25 @@
* @namespace google.cloud.dlp
*/
/**
* @namespace google.cloud.dlp.v2beta1
* @namespace google.cloud.dlp.v2
*/

'use strict';

// Import the clients for each version supported by this package.
const gapic = Object.freeze({
v2beta1: require('./v2beta1'),
v2: require('./v2'),
});

/**
* The `@google-cloud/dlp` package has the following named exports:
*
* - `DlpServiceClient` - Reference to
* {@link v2beta1.DlpServiceClient}
* - `v2beta1` - This is used for selecting or pinning a
* {@link v2.DlpServiceClient}
* - `v2` - This is used for selecting or pinning a
* particular backend service version. It exports:
* - `DlpServiceClient` - Reference to
* {@link v2beta1.DlpServiceClient}
* {@link v2.DlpServiceClient}
*
* @module {object} @google-cloud/dlp
* @alias nodejs-dlp
Expand All @@ -65,16 +64,15 @@ const gapic = Object.freeze({
/**
* @type {object}
* @property {constructor} DlpServiceClient
* Reference to {@link v2beta1.DlpServiceClient}
* Reference to {@link v2.DlpServiceClient}
*/
module.exports = gapic.v2;

/**
* @type {object}
* @property {constructor} DlpServiceClient
* Reference to {@link v2beta1.DlpServiceClient}
* Reference to {@link v2.DlpServiceClient}
*/
module.exports.v2beta1 = gapic.v2beta1;
module.exports.v2 = gapic.v2;

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

0 comments on commit ae96439

Please sign in to comment.