Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#307)
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] authored Nov 11, 2021
1 parent fe4b885 commit fc25765
Show file tree
Hide file tree
Showing 16 changed files with 348 additions and 360 deletions.
2 changes: 1 addition & 1 deletion packages/grafeas/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 @@ -35,7 +35,7 @@ function main(parent, notes) {
// Instantiates a client
const grafeasClient = new GrafeasClient();

async function batchCreateNotes() {
async function callBatchCreateNotes() {
// Construct request
const request = {
parent,
Expand All @@ -47,7 +47,7 @@ function main(parent, notes) {
console.log(response);
}

batchCreateNotes();
callBatchCreateNotes();
// [END containeranalysis_v1_generated_Grafeas_BatchCreateNotes_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function main(parent, occurrences) {
// Instantiates a client
const grafeasClient = new GrafeasClient();

async function batchCreateOccurrences() {
async function callBatchCreateOccurrences() {
// Construct request
const request = {
parent,
Expand All @@ -47,7 +47,7 @@ function main(parent, occurrences) {
console.log(response);
}

batchCreateOccurrences();
callBatchCreateOccurrences();
// [END containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_async]
}

Expand Down
6 changes: 3 additions & 3 deletions packages/grafeas/samples/generated/v1/grafeas.create_note.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ function main(parent, noteId, note) {
/**
* The note to create.
*/
// const note = ''
// const note = {}

// Imports the Grafeas library
const {GrafeasClient} = require('@google-cloud/grafeas').v1;

// Instantiates a client
const grafeasClient = new GrafeasClient();

async function createNote() {
async function callCreateNote() {
// Construct request
const request = {
parent,
Expand All @@ -52,7 +52,7 @@ function main(parent, noteId, note) {
console.log(response);
}

createNote();
callCreateNote();
// [END containeranalysis_v1_generated_Grafeas_CreateNote_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ function main(parent, occurrence) {
/**
* The occurrence to create.
*/
// const occurrence = ''
// const occurrence = {}

// Imports the Grafeas library
const {GrafeasClient} = require('@google-cloud/grafeas').v1;

// Instantiates a client
const grafeasClient = new GrafeasClient();

async function createOccurrence() {
async function callCreateOccurrence() {
// Construct request
const request = {
parent,
Expand All @@ -47,7 +47,7 @@ function main(parent, occurrence) {
console.log(response);
}

createOccurrence();
callCreateOccurrence();
// [END containeranalysis_v1_generated_Grafeas_CreateOccurrence_async]
}

Expand Down
4 changes: 2 additions & 2 deletions packages/grafeas/samples/generated/v1/grafeas.delete_note.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(name) {
// Instantiates a client
const grafeasClient = new GrafeasClient();

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

deleteNote();
callDeleteNote();
// [END containeranalysis_v1_generated_Grafeas_DeleteNote_async]
}

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

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

deleteOccurrence();
callDeleteOccurrence();
// [END containeranalysis_v1_generated_Grafeas_DeleteOccurrence_async]
}

Expand Down
4 changes: 2 additions & 2 deletions packages/grafeas/samples/generated/v1/grafeas.get_note.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(name) {
// Instantiates a client
const grafeasClient = new GrafeasClient();

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

getNote();
callGetNote();
// [END containeranalysis_v1_generated_Grafeas_GetNote_async]
}

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

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

getOccurrence();
callGetOccurrence();
// [END containeranalysis_v1_generated_Grafeas_GetOccurrence_async]
}

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

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

getOccurrenceNote();
callGetOccurrenceNote();
// [END containeranalysis_v1_generated_Grafeas_GetOccurrenceNote_async]
}

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

async function listNoteOccurrences() {
async function callListNoteOccurrences() {
// Construct request
const request = {
name,
Expand All @@ -56,7 +56,7 @@ function main(name) {
}
}

listNoteOccurrences();
callListNoteOccurrences();
// [END containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_async]
}

Expand Down
4 changes: 2 additions & 2 deletions packages/grafeas/samples/generated/v1/grafeas.list_notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function main(parent) {
// Instantiates a client
const grafeasClient = new GrafeasClient();

async function listNotes() {
async function callListNotes() {
// Construct request
const request = {
parent,
Expand All @@ -57,7 +57,7 @@ function main(parent) {
}
}

listNotes();
callListNotes();
// [END containeranalysis_v1_generated_Grafeas_ListNotes_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function main(parent) {
// Instantiates a client
const grafeasClient = new GrafeasClient();

async function listOccurrences() {
async function callListOccurrences() {
// Construct request
const request = {
parent,
Expand All @@ -57,7 +57,7 @@ function main(parent) {
}
}

listOccurrences();
callListOccurrences();
// [END containeranalysis_v1_generated_Grafeas_ListOccurrences_async]
}

Expand Down
8 changes: 4 additions & 4 deletions packages/grafeas/samples/generated/v1/grafeas.update_note.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ function main(name, note) {
/**
* The updated note.
*/
// const note = ''
// const note = {}
/**
* The fields to update.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Grafeas library
const {GrafeasClient} = require('@google-cloud/grafeas').v1;

// Instantiates a client
const grafeasClient = new GrafeasClient();

async function updateNote() {
async function callUpdateNote() {
// Construct request
const request = {
name,
Expand All @@ -51,7 +51,7 @@ function main(name, note) {
console.log(response);
}

updateNote();
callUpdateNote();
// [END containeranalysis_v1_generated_Grafeas_UpdateNote_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ function main(name, occurrence) {
/**
* The updated occurrence.
*/
// const occurrence = ''
// const occurrence = {}
/**
* The fields to update.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Grafeas library
const {GrafeasClient} = require('@google-cloud/grafeas').v1;

// Instantiates a client
const grafeasClient = new GrafeasClient();

async function updateOccurrence() {
async function callUpdateOccurrence() {
// Construct request
const request = {
name,
Expand All @@ -51,7 +51,7 @@ function main(name, occurrence) {
console.log(response);
}

updateOccurrence();
callUpdateOccurrence();
// [END containeranalysis_v1_generated_Grafeas_UpdateOccurrence_async]
}

Expand Down
Loading

0 comments on commit fc25765

Please sign in to comment.