Skip to content

Commit 9c47713

Browse files
renovate-botalexander-fenstergcf-owl-bot[bot]
authored
fix(deps): update dependency @google-cloud/pubsub to v4 (#4490)
* fix(deps): update dependency @google-cloud/pubsub to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Alexander Fenster <[email protected]> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 186ef35 commit 9c47713

8 files changed

Lines changed: 23 additions & 17 deletions

File tree

packages/google-cloud-contactcenterinsights/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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).
138138
Libraries are compatible with all current _active_ and _maintenance_ versions of
139139
Node.js.
140140
If you are using an end-of-life version of Node.js, we recommend that you update

packages/google-cloud-contactcenterinsights/samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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",

packages/google-cloud-iot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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).
9494
Libraries are compatible with all current _active_ and _maintenance_ versions of
9595
Node.js.
9696
If you are using an end-of-life version of Node.js, we recommend that you update

packages/google-cloud-iot/samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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": {

packages/google-cloud-securitycenter/README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,21 @@ const sc = require('@google-cloud/security-center');
6363
const client = new sc.SecurityCenterClient();
6464

6565
async 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
}
7682
quickstart();
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).
183189
Libraries are compatible with all current _active_ and _maintenance_ versions of
184190
Node.js.
185191
If you are using an end-of-life version of Node.js, we recommend that you update

packages/google-cloud-securitycenter/samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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": {

packages/google-privacy-dlp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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).
172172
Libraries are compatible with all current _active_ and _maintenance_ versions of
173173
Node.js.
174174
If you are using an end-of-life version of Node.js, we recommend that you update

packages/google-privacy-dlp/samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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
},

0 commit comments

Comments
 (0)