diff --git a/dlp/jobs.js b/dlp/jobs.js index faa6fe3ac0..10842b8c0e 100644 --- a/dlp/jobs.js +++ b/dlp/jobs.js @@ -15,6 +15,8 @@ 'use strict'; +// sample-metadata: +// title: Job Management async function listJobs(callingProjectId, filter, jobType) { // [START dlp_list_jobs] // Imports the Google Cloud Data Loss Prevention library diff --git a/dlp/quickstart.js b/dlp/quickstart.js index 70acd37ab7..d5f2e9c86d 100644 --- a/dlp/quickstart.js +++ b/dlp/quickstart.js @@ -15,11 +15,12 @@ 'use strict'; -// [START dlp_quickstart] // Imports the Google Cloud Data Loss Prevention library const DLP = require('@google-cloud/dlp'); async function quickStart() { + // [START dlp_quickstart] + // Instantiates a client const dlp = new DLP.DlpServiceClient(); @@ -73,8 +74,8 @@ async function quickStart() { } else { console.log(`No findings.`); } + // [END dlp_quickstart] } quickStart().catch(err => { console.error(`Error in inspectString: ${err.message || err}`); }); -// [END dlp_quickstart] diff --git a/dlp/risk.js b/dlp/risk.js index 5c8619d727..6146955376 100644 --- a/dlp/risk.js +++ b/dlp/risk.js @@ -15,6 +15,8 @@ 'use strict'; +// sample-metadata: +// title: Risk Analysis async function numericalRiskAnalysis( callingProjectId, tableProjectId, diff --git a/dlp/templates.js b/dlp/templates.js index 5b21664264..88a714a4cf 100644 --- a/dlp/templates.js +++ b/dlp/templates.js @@ -15,6 +15,8 @@ 'use strict'; +// sample-metadata: +// title: Inspect Templates async function createInspectTemplate( callingProjectId, templateId, diff --git a/dlp/triggers.js b/dlp/triggers.js index b6c1669308..f5d45ff4ad 100644 --- a/dlp/triggers.js +++ b/dlp/triggers.js @@ -15,6 +15,8 @@ 'use strict'; +// sample-metadata: +// title: Job Triggers async function createTrigger( callingProjectId, triggerId,