GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DLP library (GAPIC-only) by lukesneeringer · Pull Request #2323 · googleapis/google-cloud-node

Conversation

@lukesneeringer

@lukesneeringer lukesneeringer commented May 21, 2017

Copy link
Copy Markdown
Contributor

@ace-n Here is the DLP library to write samples against.

@swcloud Can you add the protos to the common protos package? Coordinate that with @stephenplusplus (who will teach you how to do it).

We also need a README. We can autogen one once googleapis/gapic-generator#1240 is merged.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Luke Sneeringer
DLP library (GAPIC-only)
7121b38
@lukesneeringer lukesneeringer self-assigned this May 21, 2017
@lukesneeringer
lukesneeringer requested review from ace-n, stephenplusplus and swcloud May 21, 2017 18:37
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 21, 2017
@swcloud

swcloud commented May 22, 2017

Copy link
Copy Markdown
Contributor

@lukesneeringer Do we know if the gapic-only client library is able to handle 'lint', 'unit test', 'snippet test' and 'system test'. I think these are needed in order to pass CI build. At least we need to ignore if they cannot pass.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed May 22, 2017
View reviewed changes
Comment thread packages/dlp/package.json Outdated
@@ -0,0 +1,40 @@
{
"repository": "GoogleCloudPlatform/google-cloud-node",
"name": "dlp",

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/package.json Outdated
],
"dependencies": {
"google-proto-files": "^0.12.0",
"google-gax": "^0.12.2",

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/src/index.js Outdated
@@ -0,0 +1,51 @@
/*
* Copyright 2016 Google Inc. All rights reserved.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/src/index.js Outdated
}

module.exports = dlp_v2beta1;
module.exports.v2beta1 = dlp_v2beta1; No newline at end of file

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/src/index.js Outdated
* 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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/src/index.js Outdated
* Create an dlpServiceClient with additional helpers for common
* tasks.
*
* @param {Object=} opts - The optional parameters.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed May 22, 2017
View reviewed changes
Comment thread packages/dlp/src/v2beta1/dlp_service_client.js
];

/**
* The DLP API is a service that allows clients

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@swcloud
swcloud requested a review from landrito May 22, 2017 17:29
@swcloud

swcloud commented May 22, 2017

Copy link
Copy Markdown
Contributor

@landrito Please review @stephenplusplus's comments so that we can add those to the auto-generated code.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@landrito

landrito commented May 22, 2017

Copy link
Copy Markdown
Contributor

Looking!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@swcloud

swcloud commented May 23, 2017

Copy link
Copy Markdown
Contributor

@lukesneeringer Confirmed that dlp proto files are already in google-proto-files package.

stephenplusplus and lukesneeringer reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lukesneeringer

lukesneeringer commented May 23, 2017

Copy link
Copy Markdown
Contributor Author

@lukesneeringer Do we know if the gapic-only client library is able to handle 'lint', 'unit test', 'snippet test' and 'system test'. I think these are needed in order to pass CI build. At least we need to ignore if they cannot pass.

Unit tests should pass.

I configured the linter to ignore auto-generated files. If we are failing on the linter, we need to double-check that and make sure they are being ignored.

Not sure about snippet and system tests. I am not aware of those being generated for GAPICs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ace-n
ace-n approved these changes May 23, 2017
View reviewed changes
stephenplusplus
stephenplusplus reviewed May 23, 2017
View reviewed changes
Comment thread packages/dlp/package.json Outdated
"description": "DLP API client for Node.js",
"main": "src/index.js",
"files": [
"src"

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed May 23, 2017
View reviewed changes
Comment thread packages/dlp/package.json Outdated
"extend": "^3.0.0"
},
"devDependencies": {
"mocha": "3.2.0",

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed May 23, 2017
View reviewed changes
Comment thread packages/dlp/package.json Outdated
"through2": "2.0.3"
},
"scripts": {
"test": "mocha"

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented May 23, 2017

Copy link
Copy Markdown
Contributor

Can we generate a README for this like in #2327?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@landrito

landrito commented May 23, 2017

Copy link
Copy Markdown
Contributor

@stephenplusplus I'll add these changes to the generator soon.

stephenplusplus reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed May 23, 2017
View reviewed changes
Comment thread packages/dlp/src/v2beta1/dlp_service_client.js Outdated
return new DlpServiceClientBuilder(gaxGrpc);
}

var dlpServiceClient = require('grpc-google-privacy-dlp-v2beta1').client;

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ace-n
ace-n suggested changes May 23, 2017
View reviewed changes

@ace-n ace-n left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See @stephenplusplus comment here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Luke Sneeringer
New autogen.
8b6f34a
This was referenced May 24, 2017
NodeJS: Use correct casing for partial veneers googleapis/gapic-generator#1295
Merged
NodeJS: Update partial veneer surface to add api documentation. googleapis/gapic-generator#1296
Merged
@landrito
Regen
950d332
@landrito

landrito commented May 25, 2017

Copy link
Copy Markdown
Contributor

Regenerated with all the toolkit fixes!

stephenplusplus reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus suggested changes May 25, 2017
View reviewed changes
Comment thread packages/dlp/package.json Outdated
"name": "dlp",
"version": "0.0.0",
"name": "@google-cloud/dlp",
"version": "0.7.1",

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/package.json Outdated
"version": "0.7.1",
"author": "Google Inc",
"description": "DLP API client for Node.js",
"url": "https://github.com/googleapis/googleapis",

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/package.json Outdated
"dependencies": {
"google-proto-files": "^0.12.0",
"google-gax": "^0.12.2",
"google-proto-files": "^0.8.6",

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/README.md Outdated

### Installation
```
$ npm install @google-cloud/dlp

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/dlp/README.md Outdated
In order to use this library, you first need to go through the following steps:

1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
2. [Enable the dlp api.](https://console.cloud.google.com/apis/api/dlp)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced May 25, 2017
NodeJS: bump generated dlp version googleapis/googleapis#357
Merged
NodeJS: Metadata updates. googleapis/gapic-generator#1298
Merged
stephenplusplus
stephenplusplus reviewed May 26, 2017
View reviewed changes
Comment thread scripts/helpers.js
var modulesExcludedFromSystemTests = [
'common',
'common-grpc',
'dlp',

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed May 26, 2017
View reviewed changes
Comment thread packages/dlp/test/gapic-v2beta1.js
client.createInspectOperation(request, function(err, response) {
assert.ifError(err);
assert.deepStrictEqual(response, expectedResponse);
done();

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@swcloud
Fix the long running operation method (#2346)
9c2a6ad
stephenplusplus
stephenplusplus previously approved these changes Jun 1, 2017
View reviewed changes
@stephenplusplus
stephenplusplus dismissed their stale review June 1, 2017 01:06

Found lint errors.

@stephenplusplus

stephenplusplus commented Jun 1, 2017

Copy link
Copy Markdown
Contributor

Some linting errors: https://ci.appveyor.com/project/GoogleCloudPlatform/google-cloud-node/build/1.0.1850/job/j9m6jw0u2wiy346o

$ npm run lint
packages\dlp\test\test-v2beta1.js: line 25, col 3, Missing "use strict" statement.
packages\dlp\test\test-v2beta1.js: line 62, col 52, 'response' is defined but never used.
packages\dlp\test\test-v2beta1.js: line 111, col 51, 'response' is defined but never used.
packages\dlp\test\test-v2beta1.js: line 170, col 24, 'responses' is defined but never used.
packages\dlp\test\test-v2beta1.js: line 184, col 55, Strings must use singlequote.
packages\dlp\test\test-v2beta1.js: line 208, col 55, Strings must use singlequote.
packages\dlp\test\test-v2beta1.js: line 216, col 57, 'response' is defined but never used.
packages\dlp\test\test-v2beta1.js: line 261, col 51, 'response' is defined but never used.
packages\dlp\test\test-v2beta1.js: line 302, col 56, 'response' is defined but never used.
packages\dlp\test\test-v2beta1.js: line 313, col 3, Missing "use strict" statement.
packages\dlp\test\test-v2beta1.js: line 326, col 3, Missing "use strict" statement.
packages\dlp\test\test-v2beta1.js: line 332, col 26, Missing semicolon.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Jun 1, 2017

Copy link
Copy Markdown
Contributor

I believe there is a pattern matching expression set to exclude files prefixed with "gapic-". That's what the test file was formerly called, but it is now "test-". If we switch it back, it should be good.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lukesneeringer

lukesneeringer commented Jun 1, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

I believe there is a pattern matching expression set to exclude files prefixed with "gapic-". That's what the test file was formerly called, but it is now "test-". If we switch it back, it should be good.

Yeah, I had been renaming that manually (for the precise reason of being able to do a precise exclusion). @landrito, any chance we could change that in toolkit?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@swcloud
Dlp (#2347)
3213175
* Fix the long running operation method

* fix lint error
stephenplusplus
stephenplusplus reviewed Jun 2, 2017
View reviewed changes
Comment thread packages/dlp/test/test-v2beta1.js Outdated
@@ -0,0 +1,341 @@
/*

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

swcloud added 2 commits June 1, 2017 18:21
@swcloud
Revert "Dlp (#2347)" (#2348)
5d44259
This reverts commit 3213175.
@swcloud
fix git mistake
d880a56
stephenplusplus
stephenplusplus reviewed Jun 2, 2017
View reviewed changes
Comment thread packages/dlp/test/gapic_v2beta1.js
@@ -0,0 +1,341 @@
/*

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus stephenplusplus added the dlp label Jun 2, 2017
@swcloud swcloud removed the cla: no This human has *not* signed the Contributor License Agreement. label Jun 2, 2017
@swcloud
rename gapic_v2beta1.js to gapic-v2beta1.js
554e361
@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Jun 2, 2017
@coveralls

coveralls commented Jun 2, 2017

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 99.925% when pulling 554e361 on dlp into d152416 on master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@swcloud swcloud removed the cla: no This human has *not* signed the Contributor License Agreement. label Jun 2, 2017
@stephenplusplus
stephenplusplus merged commit ba25793 into master Jun 4, 2017
@stephenplusplus
stephenplusplus deleted the dlp branch June 4, 2017 17:30
This was referenced Jul 5, 2017
Update dependency @google-cloud/datastore to version 1.0.7 Platane/velib-paris#24
Merged
Update dependency @google-cloud/storage to version 1.2.0 Platane/velib-paris#25
Merged
@stephenplusplus stephenplusplus added api: dlp Issues related to the Sensitive Data Protection API. and removed dlp labels Aug 18, 2017
@sofisl sofisl mentioned this pull request Jan 10, 2023
migrate code from googleapis/nodejs-dlp #3837
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Jan 10, 2023
@lukesneeringer @stephenplusplus
DLP library (GAPIC-only) (#2323)
a482870
@mikolajroszak mikolajroszak mentioned this pull request May 7, 2024
[Snyk] Upgrade yargs from 13.3.2 to 17.7.2 mikolajroszak/google-cloud-node#6
Open
sofisl pushed a commit that referenced this pull request Feb 25, 2026
@ddelgrosso1
fix: simplify the code for downloadInChunks (#2323)
d6e1de2
* fix: simplify the code for downloadInChunks

* cleanup p-limit function
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
@ddelgrosso1
fix: simplify the code for downloadInChunks (googleapis#2323)
db18f3e
* fix: simplify the code for downloadInChunks

* cleanup p-limit function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@swcloud swcloud Awaiting requested review from swcloud
@landrito landrito Awaiting requested review from landrito
2 more reviewers
@stephenplusplus stephenplusplus stephenplusplus left review comments
@ace-n ace-n ace-n requested changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lukesneeringer lukesneeringer

Labels

api: dlp Issues related to the Sensitive Data Protection API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@lukesneeringer @swcloud @landrito @stephenplusplus @googlebot @coveralls @ace-n
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.