GoogleCloudPlatform / java-docs-samples

Java and Kotlin Code samples used on cloud.google.com
https://cloud.google.com/java
Apache License 2.0
1.75k stars 2.82k forks source link

feat: Adding API v2 Bigquery export samples #9291

Closed rafaelMurata closed 3 months ago

rafaelMurata commented 4 months ago

Description

b/335222583

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

snippet-bot[bot] commented 4 months ago

Here is the summary of changes.

You are about to add 5 region tags. - [security-command-center/snippets/src/main/java/vtwo/bigquery/CreateBigQueryExport.java:19](https://github.com/rafaelMurata/java-docs-samples/blob/36758186ffed3c3208b69656dec2b3518669682e/security-command-center/snippets/src/main/java/vtwo/bigquery/CreateBigQueryExport.java#L19), tag `securitycenter_create_bigquery_export_v2` - [security-command-center/snippets/src/main/java/vtwo/bigquery/DeleteBigQueryExport.java:19](https://github.com/rafaelMurata/java-docs-samples/blob/36758186ffed3c3208b69656dec2b3518669682e/security-command-center/snippets/src/main/java/vtwo/bigquery/DeleteBigQueryExport.java#L19), tag `securitycenter_delete_bigquery_export_v2` - [security-command-center/snippets/src/main/java/vtwo/bigquery/GetBigQueryExport.java:19](https://github.com/rafaelMurata/java-docs-samples/blob/36758186ffed3c3208b69656dec2b3518669682e/security-command-center/snippets/src/main/java/vtwo/bigquery/GetBigQueryExport.java#L19), tag `securitycenter_get_bigquery_export_v2` - [security-command-center/snippets/src/main/java/vtwo/bigquery/ListBigQueryExports.java:19](https://github.com/rafaelMurata/java-docs-samples/blob/36758186ffed3c3208b69656dec2b3518669682e/security-command-center/snippets/src/main/java/vtwo/bigquery/ListBigQueryExports.java#L19), tag `securitycenter_list_bigquery_export_v2` - [security-command-center/snippets/src/main/java/vtwo/bigquery/UpdateBigQueryExport.java:19](https://github.com/rafaelMurata/java-docs-samples/blob/36758186ffed3c3208b69656dec2b3518669682e/security-command-center/snippets/src/main/java/vtwo/bigquery/UpdateBigQueryExport.java#L19), tag `securitycenter_update_bigquery_export_v2`

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:

Sita04 commented 4 months ago

@rafaelMurata @RajviM I see this PR refactors the existing v1 samples. Acc to previous discussions, IIUC, we are trying to create new samples in addition to the existing ones right?

rafaelMurata commented 4 months ago

@Sita04 @RajviM revert done

Sita04 commented 4 months ago

@rafaelMurata Kindly address the test failures.

rafaelMurata commented 4 months ago

@Sita04

Done. Please try again.

rafaelMurata commented 4 months ago

/gcbrun

rafaelMurata commented 4 months ago

@Sita04 Please run kokoro again. Thanks.

rafaelMurata commented 4 months ago

@Sita04 I had the same problem when trying to create a bigquery dataset in my machine. so I changed it to be the same way as in v1, but apparently I have the same problem. I suspect it is permission in kokoro. Is there anything I can do?

[ERROR] vtwo.BigQueryExportIT Time elapsed: 1.817 s <<< ERROR! com.google.api.gax.rpc.PermissionDeniedException: io.grpc.StatusRuntimeException: PERMISSION_DENIED: The caller does not have permission Caused by: io.grpc.StatusRuntimeException: PERMISSION_DENIED: The caller does not have permission