-
Notifications
You must be signed in to change notification settings - Fork 592
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
DLP library (GAPIC-only) #2323
Changes from 1 commit
7121b38
8b6f34a
950d332
8549ad9
c051b4b
772ac48
9790bcb
9c2a6ad
3213175
5d44259
d880a56
554e361
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"repository": "GoogleCloudPlatform/google-cloud-node", | ||
"name": "dlp", | ||
"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.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
], | ||
"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.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
"extend": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "3.2.0", | ||
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
"through2": "2.0.3" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
}, | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
} | ||
} |
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.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
* | ||
* 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.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
* @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.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
// 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.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.