Skip to content

Commit

Permalink
feat: auto-generate READMEs, add .repo-metdata.json (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored and JustinBeckwith committed May 28, 2019
1 parent 70a36e7 commit ffa3135
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dlp/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions dlp/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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]
2 changes: 2 additions & 0 deletions dlp/risk.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

'use strict';

// sample-metadata:
// title: Risk Analysis
async function numericalRiskAnalysis(
callingProjectId,
tableProjectId,
Expand Down
2 changes: 2 additions & 0 deletions dlp/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

'use strict';

// sample-metadata:
// title: Inspect Templates
async function createInspectTemplate(
callingProjectId,
templateId,
Expand Down
2 changes: 2 additions & 0 deletions dlp/triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

'use strict';

// sample-metadata:
// title: Job Triggers
async function createTrigger(
callingProjectId,
triggerId,
Expand Down

0 comments on commit ffa3135

Please sign in to comment.