Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLP library (GAPIC-only) #2323

Merged
merged 12 commits into from
Jun 4, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
40 changes: 40 additions & 0 deletions packages/dlp/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"repository": "GoogleCloudPlatform/google-cloud-node",
"name": "dlp",

This comment was marked as spam.

This comment was marked as spam.

"version": "0.0.0",
"author": "Google Inc",
"description": "DLP API client for Node.js",
"main": "src/index.js",
"files": [
"src"

This comment was marked as spam.

This comment was marked as spam.

],
"keywords": [
"google apis client",
"google api client",
"google apis",
"google api",
"google",
"google cloud platform",
"google cloud",
"cloud",
"google dlp",
"dlp",
"DLP API"
],
"dependencies": {
"google-proto-files": "^0.12.0",
"google-gax": "^0.12.2",

This comment was marked as spam.

This comment was marked as spam.

"extend": "^3.0.0"
},
"devDependencies": {
"mocha": "3.2.0",

This comment was marked as spam.

This comment was marked as spam.

"through2": "2.0.3"
},
"scripts": {
"test": "mocha"

This comment was marked as spam.

This comment was marked as spam.

},
"license": "Apache-2.0",
"engines": {
"node": ">=4.0.0"
}
}
51 changes: 51 additions & 0 deletions packages/dlp/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright 2016 Google Inc. All rights reserved.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';

var gapic = {
v2beta1: require('./v2beta1'),
};

const VERSION = require('../package.json').version;

/**
* Create an dlpServiceClient with additional helpers for common
* tasks.
*
* @param {Object=} opts - The optional parameters.

This comment was marked as spam.

This comment was marked as spam.

* @param {String=} opts.servicePath
* The domain name of the API remote host.
* @param {number=} opts.port
* The port on which to connect to the remote host.
* @param {grpc.ClientCredentials=} opts.sslCreds
* A ClientCredentials for use with an SSL-enabled channel.
* @param {Object=} opts.clientConfig
* The customized config to build the call settings. See
* {@link gax.constructSettings} for the format.
*/
function dlp_v2beta1(opts) {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

// Define the header options.
opts = opts || {};
opts.libName = 'gccl';
opts.libVersion = VERSION;

// Create the image annotator client with the provided options.
var client = gapic.v2beta1(opts).dlpServiceClient(opts);
return client;
}

module.exports = dlp_v2beta1;
module.exports.v2beta1 = dlp_v2beta1;

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Loading