Skip to content

Commit

Permalink
Fix region tags (#36)
Browse files Browse the repository at this point in the history
* Fix region tags

* Update risk.js

* Fix region tags
  • Loading branch information
Ace Nassri authored Mar 28, 2018
1 parent 0833cd7 commit 392c146
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dlp/deid.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function reidentifyWithFpe(
keyName,
wrappedKey
) {
// [START reidentify_fpe]
// [START dlp_reidentify_fpe]
// Imports the Google Cloud Data Loss Prevention library
const DLP = require('@google-cloud/dlp');

Expand Down Expand Up @@ -406,7 +406,7 @@ function reidentifyWithFpe(
.catch(err => {
console.log(`Error in reidentifyWithFpe: ${err.message || err}`);
});
// [END dlp_deidentify_fpe]
// [END dlp_reidentify_fpe]
}

const cli = require(`yargs`)
Expand Down
4 changes: 2 additions & 2 deletions dlp/risk.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ function kMapEstimationAnalysis(
regionCode,
quasiIds
) {
// [START k_map]
// [START dlp_k_map]
// Import the Google Cloud client libraries
const DLP = require('@google-cloud/dlp');
const Pubsub = require('@google-cloud/pubsub');
Expand Down Expand Up @@ -788,7 +788,7 @@ function kMapEstimationAnalysis(
console.log(`Error in kMapEstimationAnalysis: ${err.message || err}`);
});

// [END k_map]
// [END dlp_k_map]
}

const cli = require(`yargs`) // eslint-disable-line
Expand Down
12 changes: 6 additions & 6 deletions dlp/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function createInspectTemplate(
minLikelihood,
maxFindings
) {
// [START dlp_create_template]
// [START dlp_create_inspect_template]
// Imports the Google Cloud Data Loss Prevention library
const DLP = require('@google-cloud/dlp');

Expand Down Expand Up @@ -81,11 +81,11 @@ function createInspectTemplate(
.catch(err => {
console.log(`Error in createInspectTemplate: ${err.message || err}`);
});
// [END dlp_create_template]
// [END dlp_create_inspect_template]
}

function listInspectTemplates(callingProjectId) {
// [START dlp_list_templates]
// [START dlp_list_inspect_templates]
// Imports the Google Cloud Data Loss Prevention library
const DLP = require('@google-cloud/dlp');

Expand Down Expand Up @@ -136,11 +136,11 @@ function listInspectTemplates(callingProjectId) {
.catch(err => {
console.log(`Error in listInspectTemplates: ${err.message || err}`);
});
// [END dlp_list_templates]
// [END dlp_list_inspect_templates]
}

function deleteInspectTemplate(templateName) {
// [START dlp_delete_template]
// [START dlp_delete_inspect_template]
// Imports the Google Cloud Data Loss Prevention library
const DLP = require('@google-cloud/dlp');

Expand All @@ -165,7 +165,7 @@ function deleteInspectTemplate(templateName) {
.catch(err => {
console.log(`Error in deleteInspectTemplate: ${err.message || err}`);
});
// [END dlp_delete_template]
// [END dlp_delete_inspect_template]
}

const cli = require(`yargs`) // eslint-disable-line
Expand Down

0 comments on commit 392c146

Please sign in to comment.