Skip to content

Commit ffa3135

Browse files
bcoeJustinBeckwith
authored andcommitted
feat: auto-generate READMEs, add .repo-metdata.json (#293)
1 parent 70a36e7 commit ffa3135

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

dlp/jobs.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
'use strict';
1717

18+
// sample-metadata:
19+
// title: Job Management
1820
async function listJobs(callingProjectId, filter, jobType) {
1921
// [START dlp_list_jobs]
2022
// Imports the Google Cloud Data Loss Prevention library

dlp/quickstart.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515

1616
'use strict';
1717

18-
// [START dlp_quickstart]
1918
// Imports the Google Cloud Data Loss Prevention library
2019
const DLP = require('@google-cloud/dlp');
2120

2221
async function quickStart() {
22+
// [START dlp_quickstart]
23+
2324
// Instantiates a client
2425
const dlp = new DLP.DlpServiceClient();
2526

@@ -73,8 +74,8 @@ async function quickStart() {
7374
} else {
7475
console.log(`No findings.`);
7576
}
77+
// [END dlp_quickstart]
7678
}
7779
quickStart().catch(err => {
7880
console.error(`Error in inspectString: ${err.message || err}`);
7981
});
80-
// [END dlp_quickstart]

dlp/risk.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
'use strict';
1717

18+
// sample-metadata:
19+
// title: Risk Analysis
1820
async function numericalRiskAnalysis(
1921
callingProjectId,
2022
tableProjectId,

dlp/templates.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
'use strict';
1717

18+
// sample-metadata:
19+
// title: Inspect Templates
1820
async function createInspectTemplate(
1921
callingProjectId,
2022
templateId,

dlp/triggers.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
'use strict';
1717

18+
// sample-metadata:
19+
// title: Job Triggers
1820
async function createTrigger(
1921
callingProjectId,
2022
triggerId,

0 commit comments

Comments
 (0)