File tree Expand file tree Collapse file tree
google-cloud-contactcenterinsights
google-cloud-securitycenter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ also contains samples.
134134
135135## Supported Node.js Versions
136136
137- Our client libraries follow the [ Node.js release schedule] ( https://nodejs.org/en/about/releases/ ) .
137+ Our client libraries follow the [ Node.js release schedule] ( https://github.com/nodejs/release#release-schedule ) .
138138Libraries are compatible with all current _ active_ and _ maintenance_ versions of
139139Node.js.
140140If you are using an end-of-life version of Node.js, we recommend that you update
Original file line number Diff line number Diff line change 1515 "dependencies" : {
1616 "@google-cloud/bigquery" : " ^6.0.0" ,
1717 "@google-cloud/contact-center-insights" : " ^2.9.0" ,
18- "@google-cloud/pubsub" : " ^3 .0.0"
18+ "@google-cloud/pubsub" : " ^4 .0.0"
1919 },
2020 "devDependencies" : {
2121 "c8" : " ^7.1.0" ,
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ also contains samples.
9090
9191## Supported Node.js Versions
9292
93- Our client libraries follow the [ Node.js release schedule] ( https://nodejs.org/en/about/releases/ ) .
93+ Our client libraries follow the [ Node.js release schedule] ( https://github.com/nodejs/release#release-schedule ) .
9494Libraries are compatible with all current _ active_ and _ maintenance_ versions of
9595Node.js.
9696If you are using an end-of-life version of Node.js, we recommend that you update
Original file line number Diff line number Diff line change 1616 },
1717 "dependencies" : {
1818 "@google-cloud/iot" : " ^3.2.3" ,
19- "@google-cloud/pubsub" : " ^3 .0.0" ,
19+ "@google-cloud/pubsub" : " ^4 .0.0" ,
2020 "@google-cloud/storage" : " ^6.0.0"
2121 },
2222 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -63,15 +63,21 @@ const sc = require('@google-cloud/security-center');
6363const client = new sc.SecurityCenterClient ();
6464
6565async function quickstart () {
66- // TODO(developer): choose the organization to use
67- // const organization = 'your-organization';
68- const [source ] = await client .createSource ({
69- parent: client .organizationPath (organization),
70- source: {},
71- });
72- // The newly created source.
73- console .log (' Source created.' );
74- console .log (source);
66+ // TODO(developer): choose the project to use
67+ // const project = 'your-project';
68+
69+ if (! project) {
70+ project = await client .getProjectId ();
71+ }
72+
73+ let counter = 0 ;
74+ for await (const source of client .listSourcesAsync ({
75+ parent: ` projects/${ project} ` ,
76+ })) {
77+ ++ counter;
78+ console .log (source);
79+ }
80+ console .log (` ${ counter} sources listed.` );
7581}
7682quickstart ();
7783
@@ -179,7 +185,7 @@ also contains samples.
179185
180186## Supported Node.js Versions
181187
182- Our client libraries follow the [ Node.js release schedule] ( https://nodejs.org/en/about/releases/ ) .
188+ Our client libraries follow the [ Node.js release schedule] ( https://github.com/nodejs/release#release-schedule ) .
183189Libraries are compatible with all current _ active_ and _ maintenance_ versions of
184190Node.js.
185191If you are using an end-of-life version of Node.js, we recommend that you update
Original file line number Diff line number Diff line change 1313 },
1414 "license" : " Apache-2.0" ,
1515 "dependencies" : {
16- "@google-cloud/pubsub" : " ^3 .0.0" ,
16+ "@google-cloud/pubsub" : " ^4 .0.0" ,
1717 "@google-cloud/security-center" : " ^7.6.0"
1818 },
1919 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ also contains samples.
168168
169169## Supported Node.js Versions
170170
171- Our client libraries follow the [ Node.js release schedule] ( https://nodejs.org/en/about/releases/ ) .
171+ Our client libraries follow the [ Node.js release schedule] ( https://github.com/nodejs/release#release-schedule ) .
172172Libraries are compatible with all current _ active_ and _ maintenance_ versions of
173173Node.js.
174174If you are using an end-of-life version of Node.js, we recommend that you update
Original file line number Diff line number Diff line change 1616 },
1717 "dependencies" : {
1818 "@google-cloud/dlp" : " ^4.4.3" ,
19- "@google-cloud/pubsub" : " ^3 .0.0" ,
19+ "@google-cloud/pubsub" : " ^4 .0.0" ,
2020 "mime" : " ^3.0.0" ,
2121 "yargs" : " ^17.0.0"
2222 },
You can’t perform that action at this time.
0 commit comments