Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#356)
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 3dacbb1 commit f2117f9
Show file tree
Hide file tree
Showing 43 changed files with 692 additions and 708 deletions.
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 @@ -28,7 +28,7 @@ function main(resource) {
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`. This field is only used by Cloud IAM.
*/
// const options = ''
// const options = {}

// Imports the Containeranalysis library
const {ContainerAnalysisClient} =
Expand All @@ -37,7 +37,7 @@ function main(resource) {
// Instantiates a client
const containeranalysisClient = new ContainerAnalysisClient();

async function getIamPolicy() {
async function callGetIamPolicy() {
// Construct request
const request = {
resource,
Expand All @@ -48,7 +48,7 @@ function main(resource) {
console.log(response);
}

getIamPolicy();
callGetIamPolicy();
// [END containeranalysis_v1_generated_ContainerAnalysis_GetIamPolicy_async]
}

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

async function getVulnerabilityOccurrencesSummary() {
async function callGetVulnerabilityOccurrencesSummary() {
// Construct request
const request = {
parent,
Expand All @@ -48,7 +48,7 @@ function main(parent) {
console.log(response);
}

getVulnerabilityOccurrencesSummary();
callGetVulnerabilityOccurrencesSummary();
// [END containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function main(resource, policy) {
* valid policy but certain Cloud Platform services (such as Projects)
* might reject them.
*/
// const policy = ''
// const policy = {}

// Imports the Containeranalysis library
const {ContainerAnalysisClient} =
Expand All @@ -39,7 +39,7 @@ function main(resource, policy) {
// Instantiates a client
const containeranalysisClient = new ContainerAnalysisClient();

async function setIamPolicy() {
async function callSetIamPolicy() {
// Construct request
const request = {
resource,
Expand All @@ -51,7 +51,7 @@ function main(resource, policy) {
console.log(response);
}

setIamPolicy();
callSetIamPolicy();
// [END containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function main(resource, permissions) {
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
* information see
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
* IAM Overview (https://cloud.google.com/iam/docs/overview#permissions).
*/
// const permissions = 'abc123'

Expand All @@ -39,7 +39,7 @@ function main(resource, permissions) {
// Instantiates a client
const containeranalysisClient = new ContainerAnalysisClient();

async function testIamPermissions() {
async function callTestIamPermissions() {
// Construct request
const request = {
resource,
Expand All @@ -51,7 +51,7 @@ function main(resource, permissions) {
console.log(response);
}

testIamPermissions();
callTestIamPermissions();
// [END containeranalysis_v1_generated_ContainerAnalysis_TestIamPermissions_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function main(parent, notes) {
// Instantiates a client
const containeranalysisClient = 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 containeranalysisClient = new GrafeasClient();

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

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

Expand Down
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 Containeranalysis library
const {GrafeasClient} = require('@google-cloud/containeranalysis').v1;

// Instantiates a client
const containeranalysisClient = 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 Containeranalysis library
const {GrafeasClient} = require('@google-cloud/containeranalysis').v1;

// Instantiates a client
const containeranalysisClient = 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
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(name) {
// Instantiates a client
const containeranalysisClient = 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 containeranalysisClient = 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
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(name) {
// Instantiates a client
const containeranalysisClient = 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 containeranalysisClient = 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 containeranalysisClient = 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 containeranalysisClient = new GrafeasClient();

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

listNoteOccurrences();
callListNoteOccurrences();
// [END containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_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 containeranalysisClient = 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 containeranalysisClient = new GrafeasClient();

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

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

Expand Down
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 Containeranalysis library
const {GrafeasClient} = require('@google-cloud/containeranalysis').v1;

// Instantiates a client
const containeranalysisClient = 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
Loading

0 comments on commit f2117f9

Please sign in to comment.