From 1ff1969abcba19030711aaf4d69b83cc73cf20ff Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 18:30:31 +0000 Subject: [PATCH 1/2] feat: turns on self-signed JWT feature flag (#646) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 392067151 Source-Link: https://github.com/googleapis/googleapis/commit/06345f7b95c4b4a3ffe4303f1f2984ccc304b2e0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/95882b37970e41e4cd51b22fa507cfd46dc7c4b6 --- src/v2/dlp_service_client.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/v2/dlp_service_client.ts b/src/v2/dlp_service_client.ts index 943014b5..ed483574 100644 --- a/src/v2/dlp_service_client.ts +++ b/src/v2/dlp_service_client.ts @@ -139,6 +139,12 @@ export class DlpServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; From 447bcb031c85c9408b8702527efaf50f5a6aaa02 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 18:54:15 +0000 Subject: [PATCH 2/2] chore: release 3.2.0 (#647) :robot: I have created a release \*beep\* \*boop\* --- ## [3.2.0](https://www.github.com/googleapis/nodejs-dlp/compare/v3.1.8...v3.2.0) (2021-08-23) ### Features * turns on self-signed JWT feature flag ([#646](https://www.github.com/googleapis/nodejs-dlp/issues/646)) ([1ff1969](https://www.github.com/googleapis/nodejs-dlp/commit/1ff1969abcba19030711aaf4d69b83cc73cf20ff)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ package.json | 2 +- samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 159b121c..0d655e5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/PACKAGE NAME?activeTab=versions +## [3.2.0](https://www.github.com/googleapis/nodejs-dlp/compare/v3.1.8...v3.2.0) (2021-08-23) + + +### Features + +* turns on self-signed JWT feature flag ([#646](https://www.github.com/googleapis/nodejs-dlp/issues/646)) ([1ff1969](https://www.github.com/googleapis/nodejs-dlp/commit/1ff1969abcba19030711aaf4d69b83cc73cf20ff)) + ### [3.1.8](https://www.github.com/googleapis/nodejs-dlp/compare/v3.1.7...v3.1.8) (2021-08-17) diff --git a/package.json b/package.json index 86954e90..68218525 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/dlp", "description": "DLP API client for Node.js", - "version": "3.1.8", + "version": "3.2.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/samples/package.json b/samples/package.json index de82ec24..21559811 100644 --- a/samples/package.json +++ b/samples/package.json @@ -15,7 +15,7 @@ "test": "mocha system-test/*.test.js --timeout=600000" }, "dependencies": { - "@google-cloud/dlp": "^3.1.8", + "@google-cloud/dlp": "^3.2.0", "@google-cloud/pubsub": "^2.0.0", "mime": "^2.3.1", "yargs": "^16.0.0"