Skip to content

Commit

Permalink
feat: move API to typescript code generation (#135)
Browse files Browse the repository at this point in the history
* remove docs/

* move to ts

* update synthtool

* run synthtool

* remove unneeded grafeas client

* update synthtool

* remove grafeas client

* cap class name

* broken link

* make it work

* lint

* debug

* sample test work

* test

* test

* retry 10 times

* finalize synth.py

* clean a little bit

* replace once, add to excludes

* fix doc

* feedback

* import os

* feedback

* fix

* remove file properly

* make it work

* linkinator

*  Update linkinator configure

* rerun synthtool for resources reorder

* remove google/api proto in list

* remove unneeded proto files in list

* format

* new line in proto list

* run synthtool
  • Loading branch information
xiaozhenliu-gg5 authored Feb 7, 2020
1 parent 5b6c5ac commit c9c4f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions container-analysis/snippets/occurrencesForNote.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async function main(
const [occurrences] = await client.getGrafeasClient().listNoteOccurrences({
name: formattedNote,
});

if (occurrences.length) {
console.log('Occurrences:');
occurrences.forEach(occurrence => {
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 @@ -29,7 +29,7 @@ const noteId = `test-note-${uuidVal}`;
const resourceUrl = `gcr.io/test-project/test-image-${uuidVal}`;
const subscriptionId = `occurrence-subscription-${uuidVal}`;
const timeoutSeconds = 5;
const retries = 5;
const retries = 10;

const {PubSub} = require('@google-cloud/pubsub');
const pubsub = new PubSub();
Expand Down

0 comments on commit c9c4f5a

Please sign in to comment.