Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#666)
Browse files Browse the repository at this point in the history
* docs(samples): add example tags to generated samples

PiperOrigin-RevId: 408439482

Source-Link: googleapis/googleapis@b9f6184

Source-Link: googleapis/googleapis-gen@eb888bc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Nov 10, 2021
1 parent cef0305 commit e8e7af9
Show file tree
Hide file tree
Showing 36 changed files with 1,013 additions and 1,093 deletions.
2 changes: 1 addition & 1 deletion packages/google-privacy-dlp/linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"img.shields.io"
],
"silent": true,
"concurrency": 10
"concurrency": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(name) {
// Instantiates a client
const dlpClient = new DlpServiceClient();

async function activateJobTrigger() {
async function callActivateJobTrigger() {
// Construct request
const request = {
name,
Expand All @@ -42,7 +42,7 @@ function main(name) {
console.log(response);
}

activateJobTrigger();
callActivateJobTrigger();
// [END dlp_v2_generated_DlpService_ActivateJobTrigger_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function main(name) {
// Instantiates a client
const dlpClient = new DlpServiceClient();

async function cancelDlpJob() {
async function callCancelDlpJob() {
// Construct request
const request = {
name,
Expand All @@ -41,7 +41,7 @@ function main(name) {
console.log(response);
}

cancelDlpJob();
callCancelDlpJob();
// [END dlp_v2_generated_DlpService_CancelDlpJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function main(parent, deidentifyTemplate) {
/**
* Required. Parent resource name.
* The format of this value varies depending on the scope of the request
* (project or organization) and whether you have [specified a processing
* location](https://cloud.google.com/dlp/docs/specifying-location):
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/dlp/docs/specifying-location):
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
Expand All @@ -41,26 +41,22 @@ function main(parent, deidentifyTemplate) {
/**
* Required. The DeidentifyTemplate to create.
*/
// const deidentifyTemplate = ''
// const deidentifyTemplate = {}
/**
* The template id can contain uppercase and lowercase letters,
* numbers, and hyphens; that is, it must match the regular
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
* characters. Can be empty to allow the system to generate one.
*/
// const templateId = 'abc123'
/**
* Deprecated. This field has no effect.
*/
// const locationId = 'abc123'

// Imports the Dlp library
const {DlpServiceClient} = require('@google-cloud/dlp').v2;

// Instantiates a client
const dlpClient = new DlpServiceClient();

async function createDeidentifyTemplate() {
async function callCreateDeidentifyTemplate() {
// Construct request
const request = {
parent,
Expand All @@ -72,7 +68,7 @@ function main(parent, deidentifyTemplate) {
console.log(response);
}

createDeidentifyTemplate();
callCreateDeidentifyTemplate();
// [END dlp_v2_generated_DlpService_CreateDeidentifyTemplate_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function main(parent) {
*/
/**
* Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a
* The format of this value varies depending on whether you have specified a
* processing
* location](https://cloud.google.com/dlp/docs/specifying-location):
* location (https://cloud.google.com/dlp/docs/specifying-location):
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
Expand All @@ -37,30 +37,26 @@ function main(parent) {
/**
* Set to control what and how to inspect.
*/
// const inspectJob = ''
// const inspectJob = {}
/**
* Set to choose what metric to calculate.
*/
// const riskJob = ''
// const riskJob = {}
/**
* The job id can contain uppercase and lowercase letters,
* numbers, and hyphens; that is, it must match the regular
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
* characters. Can be empty to allow the system to generate one.
*/
// const jobId = 'abc123'
/**
* Deprecated. This field has no effect.
*/
// const locationId = 'abc123'

// Imports the Dlp library
const {DlpServiceClient} = require('@google-cloud/dlp').v2;

// Instantiates a client
const dlpClient = new DlpServiceClient();

async function createDlpJob() {
async function callCreateDlpJob() {
// Construct request
const request = {
parent,
Expand All @@ -71,7 +67,7 @@ function main(parent) {
console.log(response);
}

createDlpJob();
callCreateDlpJob();
// [END dlp_v2_generated_DlpService_CreateDlpJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function main(parent, inspectTemplate) {
/**
* Required. Parent resource name.
* The format of this value varies depending on the scope of the request
* (project or organization) and whether you have [specified a processing
* location](https://cloud.google.com/dlp/docs/specifying-location):
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/dlp/docs/specifying-location):
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
Expand All @@ -41,26 +41,22 @@ function main(parent, inspectTemplate) {
/**
* Required. The InspectTemplate to create.
*/
// const inspectTemplate = ''
// const inspectTemplate = {}
/**
* The template id can contain uppercase and lowercase letters,
* numbers, and hyphens; that is, it must match the regular
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
* characters. Can be empty to allow the system to generate one.
*/
// const templateId = 'abc123'
/**
* Deprecated. This field has no effect.
*/
// const locationId = 'abc123'

// Imports the Dlp library
const {DlpServiceClient} = require('@google-cloud/dlp').v2;

// Instantiates a client
const dlpClient = new DlpServiceClient();

async function createInspectTemplate() {
async function callCreateInspectTemplate() {
// Construct request
const request = {
parent,
Expand All @@ -72,7 +68,7 @@ function main(parent, inspectTemplate) {
console.log(response);
}

createInspectTemplate();
callCreateInspectTemplate();
// [END dlp_v2_generated_DlpService_CreateInspectTemplate_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function main(parent, jobTrigger) {
*/
/**
* Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a
* The format of this value varies depending on whether you have specified a
* processing
* location](https://cloud.google.com/dlp/docs/specifying-location):
* location (https://cloud.google.com/dlp/docs/specifying-location):
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
Expand All @@ -37,26 +37,22 @@ function main(parent, jobTrigger) {
/**
* Required. The JobTrigger to create.
*/
// const jobTrigger = ''
// const jobTrigger = {}
/**
* The trigger id can contain uppercase and lowercase letters,
* numbers, and hyphens; that is, it must match the regular
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
* characters. Can be empty to allow the system to generate one.
*/
// const triggerId = 'abc123'
/**
* Deprecated. This field has no effect.
*/
// const locationId = 'abc123'

// Imports the Dlp library
const {DlpServiceClient} = require('@google-cloud/dlp').v2;

// Instantiates a client
const dlpClient = new DlpServiceClient();

async function createJobTrigger() {
async function callCreateJobTrigger() {
// Construct request
const request = {
parent,
Expand All @@ -68,7 +64,7 @@ function main(parent, jobTrigger) {
console.log(response);
}

createJobTrigger();
callCreateJobTrigger();
// [END dlp_v2_generated_DlpService_CreateJobTrigger_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function main(parent, config) {
/**
* Required. Parent resource name.
* The format of this value varies depending on the scope of the request
* (project or organization) and whether you have [specified a processing
* location](https://cloud.google.com/dlp/docs/specifying-location):
* (project or organization) and whether you have specified a processing
* location (https://cloud.google.com/dlp/docs/specifying-location):
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
Expand All @@ -41,26 +41,22 @@ function main(parent, config) {
/**
* Required. Configuration of the storedInfoType to create.
*/
// const config = ''
// const config = {}
/**
* The storedInfoType ID can contain uppercase and lowercase letters,
* numbers, and hyphens; that is, it must match the regular
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
* characters. Can be empty to allow the system to generate one.
*/
// const storedInfoTypeId = 'abc123'
/**
* Deprecated. This field has no effect.
*/
// const locationId = 'abc123'

// Imports the Dlp library
const {DlpServiceClient} = require('@google-cloud/dlp').v2;

// Instantiates a client
const dlpClient = new DlpServiceClient();

async function createStoredInfoType() {
async function callCreateStoredInfoType() {
// Construct request
const request = {
parent,
Expand All @@ -72,7 +68,7 @@ function main(parent, config) {
console.log(response);
}

createStoredInfoType();
callCreateStoredInfoType();
// [END dlp_v2_generated_DlpService_CreateStoredInfoType_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function main() {
*/
/**
* Parent resource name.
* The format of this value varies depending on whether you have [specified a
* The format of this value varies depending on whether you have specified a
* processing
* location](https://cloud.google.com/dlp/docs/specifying-location):
* location (https://cloud.google.com/dlp/docs/specifying-location):
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
Expand All @@ -39,17 +39,17 @@ function main() {
* Items specified here will override the template referenced by the
* deidentify_template_name argument.
*/
// const deidentifyConfig = ''
// const deidentifyConfig = {}
/**
* Configuration for the inspector.
* Items specified here will override the template referenced by the
* inspect_template_name argument.
*/
// const inspectConfig = ''
// const inspectConfig = {}
/**
* The item to de-identify. Will be treated as text.
*/
// const item = ''
// const item = {}
/**
* Template to use. Any configuration directly specified in
* inspect_config will override those set in the template. Singular fields
Expand All @@ -66,18 +66,14 @@ function main() {
* are recursively merged.
*/
// const deidentifyTemplateName = 'abc123'
/**
* Deprecated. This field has no effect.
*/
// const locationId = 'abc123'

// Imports the Dlp library
const {DlpServiceClient} = require('@google-cloud/dlp').v2;

// Instantiates a client
const dlpClient = new DlpServiceClient();

async function deidentifyContent() {
async function callDeidentifyContent() {
// Construct request
const request = {};

Expand All @@ -86,7 +82,7 @@ function main() {
console.log(response);
}

deidentifyContent();
callDeidentifyContent();
// [END dlp_v2_generated_DlpService_DeidentifyContent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function main(name) {
// Instantiates a client
const dlpClient = new DlpServiceClient();

async function deleteDeidentifyTemplate() {
async function callDeleteDeidentifyTemplate() {
// Construct request
const request = {
name,
Expand All @@ -43,7 +43,7 @@ function main(name) {
console.log(response);
}

deleteDeidentifyTemplate();
callDeleteDeidentifyTemplate();
// [END dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function main(name) {
// Instantiates a client
const dlpClient = new DlpServiceClient();

async function deleteDlpJob() {
async function callDeleteDlpJob() {
// Construct request
const request = {
name,
Expand All @@ -41,7 +41,7 @@ function main(name) {
console.log(response);
}

deleteDlpJob();
callDeleteDlpJob();
// [END dlp_v2_generated_DlpService_DeleteDlpJob_async]
}

Expand Down
Loading

0 comments on commit e8e7af9

Please sign in to comment.