Skip to content

Commit bb96d54

Browse files
gcf-owl-bot[bot]Benjamin E. Coesofisl
authored
build: add auto-approve to Node libraries (#1100) (#7)
* build: add auto-approve to Node libraries (#1100) * build: add auto-approve to Node libraries Co-authored-by: Benjamin E. Coe <bencoe@google.com> Source-Link: googleapis/synthtool@5cae043 Post-Processor: gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:65aa68f2242c172345d7c1e780bced839bfdc344955d6aa460aa63b4481d93e5 * 🦉 Updates from OwlBot * 🦉 Updates from OwlBot * 🦉 Updates from OwlBot Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Benjamin E. Coe <bencoe@google.com> Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
1 parent fd3ee2c commit bb96d54

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

packages/google-cloud-apigeeconnect/README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,22 @@ npm install @google-cloud/apigee-connect
6262

6363
// remove this line after package is released
6464
// eslint-disable-next-line node/no-missing-require
65-
const {TetherClient} = require('@google-cloud/apigee-connect');
65+
const {ConnectionServiceClient} = require('@google-cloud/apigee-connect');
6666

6767
// TODO(developer): replace with your prefered project ID.
6868
// const projectId = 'my-project'
6969

7070
// Creates a client
7171
// eslint-disable-next-line no-unused-vars
72-
const client = new {TetherClient}();
73-
74-
//TODO(library generator): write the actual function you will be testing
75-
async function doSomething() {
76-
console.log('DPE! Change this code so that it shows how to use the library! See comments below on structure.')
77-
// const [thing] = await client.methodName({
78-
// });
79-
// console.info(thing);
72+
const client = new ConnectionServiceClient();
73+
74+
async function listConnections() {
75+
const connections = await client.listConnections({
76+
parent: `projects/${projectId}/endpoints/${endpoint}`,
77+
});
78+
console.info(connections);
8079
}
81-
doSomething();
80+
listConnections();
8281

8382
```
8483

0 commit comments

Comments
 (0)