Skip to content

Commit

Permalink
feat: [websecurityscanner] added NO_STARTING_URL_FOUND_FOR_MANAGED_SC…
Browse files Browse the repository at this point in the history
…AN to ScanRunWarningTrace.Code (#8306)

- [ ] Regenerate this pull request now.

fix: Added fix to return a list of the endpoints that encountered errors during crawl, along with the specific error message when the starting URL returns Http errors
fix: GoogleAccount is deprecated

PiperOrigin-RevId: 472758119

Source-Link: googleapis/googleapis@4356ba6

Source-Link: googleapis/googleapis-gen@2370420
Copy-Tag: eyJwIjoiamF2YS13ZWJzZWN1cml0eXNjYW5uZXIvLk93bEJvdC55YW1sIiwiaCI6IjIzNzA0MjAyM2YxMDhiMTRjMDQyNzExODQ1MjQxZmJiNjJjZjJlMDgifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Sep 8, 2022
1 parent 38322b0 commit 94651cd
Show file tree
Hide file tree
Showing 196 changed files with 3,270 additions and 754 deletions.
4 changes: 2 additions & 2 deletions java-websecurityscanner/README.md
Expand Up @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.1.0</version>
<version>26.1.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -49,7 +49,7 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.1.0')
implementation platform('com.google.cloud:libraries-bom:26.1.1')
implementation 'com.google.cloud:google-cloud-websecurityscanner'
```
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -58,8 +58,11 @@
* <p>For example, to set the total timeout of createScanConfig to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder =
* WebSecurityScannerSettings.newBuilder();
* webSecurityScannerSettingsBuilder
Expand Down
Expand Up @@ -28,8 +28,11 @@
* <p>Sample for WebSecurityScannerClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
* CreateScanConfigRequest request =
* CreateScanConfigRequest.newBuilder()
Expand Down
Expand Up @@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("scanConfig", request.getScanConfig()))
.toBody("scanConfig", request.getScanConfig(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ScanConfig>newBuilder()
Expand Down Expand Up @@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("scanConfig", request.getScanConfig()))
.toBody("scanConfig", request.getScanConfig(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ScanConfig>newBuilder()
Expand Down Expand Up @@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ScanRun>newBuilder()
Expand Down Expand Up @@ -388,7 +388,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ScanRun>newBuilder()
Expand Down
Expand Up @@ -97,8 +97,11 @@
* <p>For example, to set the total timeout of createScanConfig to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder =
* WebSecurityScannerStubSettings.newBuilder();
* webSecurityScannerSettingsBuilder
Expand Down

0 comments on commit 94651cd

Please sign in to comment.