GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(samples): added samples and tests for BigQuery export RPCs by Sita04 · Pull Request #782 · googleapis/java-securitycenter

This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Conversation

@Sita04

@Sita04 Sita04 commented Mar 15, 2022

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

If you write sample code, please follow the samples format.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Sita04
docs(samples): added samples and tests for BigQuery export RPCs
cedb9a1
@Sita04
Sita04 requested a review from a team March 15, 2022 08:43
@generated-files-bot

generated-files-bot Bot commented Mar 15, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning: This pull request is touching the following templated files:

  • .kokoro/presubmit/samples.cfg
  • samples/snapshot/pom.xml
  • samples/snippets/pom.xml
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@snippet-bot

snippet-bot Bot commented Mar 15, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 5 region tags.
  • samples/snippets/src/main/java/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/CreateBigQueryExport.java:19, tag securitycenter_create_bigquery_export
  • samples/snippets/src/main/java/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/DeleteBigQueryExport.java:19, tag securitycenter_delete_bigquery_export
  • samples/snippets/src/main/java/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/GetBigQueryExport.java:19, tag securitycenter_get_bigquery_export
  • samples/snippets/src/main/java/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/ListBigQueryExports.java:19, tag securitycenter_list_bigquery_export
  • samples/snippets/src/main/java/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/UpdateBigQueryExport.java:19, tag securitycenter_update_bigquery_export

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@product-auto-label product-auto-label Bot added api: securitycenter Issues related to the googleapis/java-securitycenter API. samples Issues that are directly related to samples. labels Mar 15, 2022
@blunderbuss-gcf blunderbuss-gcf Bot assigned Shabirmean Mar 15, 2022
@Sita04
Sita04 requested a review from catherinerosesantos March 15, 2022 08:44
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
d6c7822
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
catherinerosesantos
catherinerosesantos reviewed Mar 19, 2022
View reviewed changes

@catherinerosesantos catherinerosesantos left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a few comments.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/CreateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/UpdateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/CreateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Shabirmean
Shabirmean reviewed Mar 21, 2022
View reviewed changes

@Shabirmean Shabirmean left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed this PR as part of the onboarding process to become a java-samples reviewer. @kurtisvg can you shadow review my reviews on this PR?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/CreateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/CreateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/CreateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/DeleteBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...va/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/ListBigQueryExports.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...ippets/src/test/java/com/google/cloud/examples/securitycenter/snippets/BigQueryExportIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...ippets/src/test/java/com/google/cloud/examples/securitycenter/snippets/BigQueryExportIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

kurtisvg
kurtisvg reviewed Mar 21, 2022
View reviewed changes
Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/CreateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/CreateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...a/com/google/cloud/examples/securitycenter/snippets/bigqueryexport/UpdateBigQueryExport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Sita04 and others added 6 commits March 24, 2022 18:12
@Sita04
docs(samples): updated acc to review comments
2903818
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
b7dbd18
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@Sita04
update to latest version of bom
370e52c
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
5235e4a
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@Sita04
docs(samples): updated pom.xml with bigquery
0791995
@Sita04
Merge remote-tracking branch 'origin/bigquery-export-samples' into bi…
52900a7
…gquery-export-samples
Shabirmean
Shabirmean reviewed Mar 24, 2022
View reviewed changes

@Shabirmean Shabirmean left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the changes. It seems like some tests are failing. PTAL!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Sita04 Sita04 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 24, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 24, 2022
@Sita04 Sita04 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 25, 2022
@Sita04
Merge branch 'main' into bigquery-export-samples
4cfc1e4
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 25, 2022
gcf-owl-bot Bot and others added 2 commits March 25, 2022 20:00
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
438c5f6
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@Sita04
including test project specific secrets
9994efa
@Sita04 Sita04 added the owlbot:ignore instruct owl-bot to ignore a PR label Mar 25, 2022
Sita04 added 3 commits March 26, 2022 01:57
@Sita04
docs(samples): lint fix
956cd0b
@Sita04
Merge remote-tracking branch 'origin/bigquery-export-samples' into bi…
5fcfde0
…gquery-export-samples
@Sita04
docs(samples): lint fix
6975cf3
Sita04 added 2 commits March 31, 2022 02:25
@Sita04
Merge branch 'main' into bigquery-export-samples
cce927a
@Sita04
Merge branch 'main' into bigquery-export-samples
74d851b
@suztomo

suztomo commented Apr 4, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Memo:

com.google.api.gax.rpc.PermissionDeniedException: io.grpc.StatusRuntimeException: PERMISSION_DENIED: The caller does not have permission
	at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:53)
	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)
	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)
	at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:97)
	at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:68)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1133)
	at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1277)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1038)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:808)
	at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:564)
	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:534)
	at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
	at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
	at com.google.api.gax.grpc.ChannelPool$ReleasingClientCall$1.onClose(ChannelPool.java:455)
	at io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:463)
	at io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:427)
	at io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:460)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:562)
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:743)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:722)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)
	Suppressed: com.google.api.gax.rpc.AsyncTaskException: Asynchronous task failed
		at com.google.api.gax.rpc.ApiExceptions.callAndTranslateApiException(ApiExceptions.java:57)
		at com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112)
		at com.google.cloud.securitycenter.v1.SecurityCenterClient.createBigQueryExport(SecurityCenterClient.java:4167)
		at com.google.cloud.examples.securitycenter.snippets.bigqueryexport.CreateBigQueryExport.createBigQueryExport(CreateBigQueryExport.java:83)
		at com.google.cloud.examples.securitycenter.snippets.BigQueryExportIT.setUp(BigQueryExportIT.java:76)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)

From .kokoro/presubmit/samples.cfg :

  • GOOGLE_CLOUD_PROJECT: java-docs-samples-testing
  • GOOGLE_APPLICATION_CREDENTIALS: secret_manager/java-docs-samples-service-account
  • SECRET_MANAGER_KEYS: java-docs-samples-service-account,java-scc-samples-secrets
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@suztomo

suztomo commented Apr 4, 2022

Copy link
Copy Markdown
Member

Would "SECRET_MANAGER_KEYS" work for multiple keys? (The environment variable is plural but I'm not sure)

Screen Shot 2022-04-04 at 11 11 57 AM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Neenu1995

Neenu1995 commented Apr 4, 2022

Copy link
Copy Markdown
Contributor

The kokoro configuration looks correct. It will work with multiple keys.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Sita04 Sita04 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 26, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 26, 2022
@Sita04
modified project id for testing
8c4855e
@product-auto-label product-auto-label Bot added the size: l Pull request size is large. label Apr 27, 2022
@Sita04 Sita04 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2022
@Sita04
Sita04 requested review from Shabirmean and catherinerosesantos April 27, 2022 02:39
@Sita04
Update BigQueryExportIT.java
264b0ed
Shabirmean
Shabirmean approved these changes Apr 28, 2022
View reviewed changes

@Shabirmean Shabirmean left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
catherinerosesantos
catherinerosesantos approved these changes Apr 29, 2022
View reviewed changes
@Sita04 Sita04 added the automerge Merge the pull request once unit tests and other checks pass. label Apr 29, 2022
Neenu1995
Neenu1995 approved these changes Apr 29, 2022
View reviewed changes
@gcf-merge-on-green

gcf-merge-on-green Bot commented Apr 30, 2022

Copy link
Copy Markdown

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 30, 2022
@Sita04
Sita04 merged commit 279624f into main May 4, 2022
@Sita04
Sita04 deleted the bigquery-export-samples branch May 4, 2022 14:19
@release-please release-please Bot mentioned this pull request May 4, 2022
chore(main): release 2.6.0 #820
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request May 24, 2022
@release-please
chore(main): release 2.6.0 (#820)
bb67bf6
🤖 I have created a release *beep* *boop*
---


## [2.6.0](v2.5.6...v2.6.0) (2022-05-19)


### Features

* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-securitycenter/issues/1440)) ([#831](#831)) ([c9e86b6](c9e86b6))
* Add connection and description field to finding's list of attributes ([eddf09a](eddf09a))
* Add iam_binding field to findings attributes. It represents particular IAM bindings, which captures a member's role addition, removal, or state ([eddf09a](eddf09a))
* Add next_steps field to finding's list of attributes ([eddf09a](eddf09a))
* AuditConfig for IAM v1 ([eddf09a](eddf09a))


### Documentation

* **samples:** added samples and tests for BigQuery export RPCs ([#782](#782)) ([279624f](279624f))


### Dependencies

* update dependency com.google.cloud:google-cloud-bigquery to v2.10.10 ([#823](#823)) ([033d05a](033d05a))
* update dependency com.google.cloud:google-cloud-bigquery to v2.11.0 ([#824](#824)) ([6cb75b3](6cb75b3))
* update dependency com.google.cloud:google-cloud-bigquery to v2.11.1 ([#827](#827)) ([794bd01](794bd01))
* update dependency com.google.cloud:google-cloud-bigquery to v2.11.2 ([#828](#828)) ([4b4b2df](4b4b2df))
* update dependency com.google.cloud:google-cloud-pubsub to v1.117.0 ([#825](#825)) ([6685899](6685899))
* update dependency com.google.cloud:google-cloud-pubsub to v1.118.0 ([#829](#829)) ([1af1799](1af1799))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#830](#830)) ([602eb69](602eb69))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions Bot pushed a commit to meltsufin/monorepo-experiments that referenced this pull request May 24, 2022
@release-please
chore(main): release 2.6.0 (#820)
f93440e
🤖 I have created a release *beep* *boop*
---


## [2.6.0](googleapis/java-securitycenter@v2.5.6...v2.6.0) (2022-05-19)


### Features

* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-securitycenter/issues/1440)) ([#831](googleapis/java-securitycenter#831)) ([228f74c](googleapis/java-securitycenter@228f74c))
* Add connection and description field to finding's list of attributes ([76cfbce](googleapis/java-securitycenter@76cfbce))
* Add iam_binding field to findings attributes. It represents particular IAM bindings, which captures a member's role addition, removal, or state ([76cfbce](googleapis/java-securitycenter@76cfbce))
* Add next_steps field to finding's list of attributes ([76cfbce](googleapis/java-securitycenter@76cfbce))
* AuditConfig for IAM v1 ([76cfbce](googleapis/java-securitycenter@76cfbce))


### Documentation

* **samples:** added samples and tests for BigQuery export RPCs ([#782](googleapis/java-securitycenter#782)) ([3bbab26](googleapis/java-securitycenter@3bbab26))


### Dependencies

* update dependency com.google.cloud:google-cloud-bigquery to v2.10.10 ([#823](googleapis/java-securitycenter#823)) ([3e053aa](googleapis/java-securitycenter@3e053aa))
* update dependency com.google.cloud:google-cloud-bigquery to v2.11.0 ([#824](googleapis/java-securitycenter#824)) ([a3e7c36](googleapis/java-securitycenter@a3e7c36))
* update dependency com.google.cloud:google-cloud-bigquery to v2.11.1 ([#827](googleapis/java-securitycenter#827)) ([a33d75a](googleapis/java-securitycenter@a33d75a))
* update dependency com.google.cloud:google-cloud-bigquery to v2.11.2 ([#828](googleapis/java-securitycenter#828)) ([244d0b3](googleapis/java-securitycenter@244d0b3))
* update dependency com.google.cloud:google-cloud-pubsub to v1.117.0 ([#825](googleapis/java-securitycenter#825)) ([4b7697f](googleapis/java-securitycenter@4b7697f))
* update dependency com.google.cloud:google-cloud-pubsub to v1.118.0 ([#829](googleapis/java-securitycenter#829)) ([4a06182](googleapis/java-securitycenter@4a06182))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#830](googleapis/java-securitycenter#830)) ([e568092](googleapis/java-securitycenter@e568092))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

4 more reviewers
@kurtisvg kurtisvg kurtisvg left review comments
@Shabirmean Shabirmean Shabirmean approved these changes
@Neenu1995 Neenu1995 Neenu1995 approved these changes
@catherinerosesantos catherinerosesantos catherinerosesantos approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Shabirmean Shabirmean

Labels

api: securitycenter Issues related to the googleapis/java-securitycenter API. owlbot:ignore instruct owl-bot to ignore a PR samples Issues that are directly related to samples. size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@Sita04 @suztomo @Neenu1995 @Shabirmean @kurtisvg @catherinerosesantos @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.