Skip to content

Commit

Permalink
fixed occurrence typo
Browse files Browse the repository at this point in the history
  • Loading branch information
murog committed May 29, 2019
1 parent 3e3c530 commit a71693d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions container-analysis/snippets/createOccurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
async function main(
noteProjectId = 'your-project-id', // Your GCP Project Id
noteId = 'my-note-id', // Id of the note
occurenceProjectId = 'your-project-id', // GCP Project Id of Occurence
occurrenceProjectId = 'your-project-id', // GCP Project Id of Occurrence
imageUrl = 'https://gcr.io/my-project/my-image:123' // Image to attach metadata to
) {
// [START containeranalysis_create_occurrence]
Expand All @@ -14,15 +14,15 @@ async function main(
*/
// const noteProjectId = 'your-project-id', // Your GCP Project Id
// const noteId = 'my-note-id', // Id of the note
// const occurenceProjectId = 'your-project-id', // GCP Project Id of Occurence
// const occurrenceProjectId = 'your-project-id', // GCP Project Id of Occurrence
// const imageUrl = 'https://gcr.io/my-project/my-image:123' // Image to attach metadata to

// Import the library and create a client
const containerAnalysis = require('@google-cloud/containeranalysis');
const client = new containerAnalysis.v1beta1.GrafeasV1Beta1Client();

// Construct request
const formattedParent = client.projectPath(occurenceProjectId);
const formattedParent = client.projectPath(occurrenceProjectId);
const formattedNote = client.notePath(noteProjectId, noteId);

// Creates and returns a new Occurrence associated with an existing Note
Expand Down
2 changes: 1 addition & 1 deletion container-analysis/snippets/test/containerAnalysis.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('Note tests', () => {
assert.include(output, `Occurrence name: ${occurrence.name}`);
});

it('should get occurences for note', () => {
it('should get occurrences for note', () => {
let output;
for (let i = 0; i < retries; i++) {
output = execSync(
Expand Down

0 comments on commit a71693d

Please sign in to comment.