Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: added NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN to ScanRunWarningT…
Browse files Browse the repository at this point in the history
…race.Code (#741)

- [ ] 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: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjM3MDQyMDIzZjEwOGIxNGMwNDI3MTE4NDUyNDFmYmI2MmNmMmUwOCJ9

chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: googleapis/googleapis-gen@230a558
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 17, 2022
1 parent 97378f1 commit 9cd376d
Show file tree
Hide file tree
Showing 196 changed files with 3,270 additions and 754 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-websecurityscanner'
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-websecurityscanner:2.2.3'
implementation 'com.google.cloud:google-cloud-websecurityscanner:2.2.4'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.2.3"
libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.2.4"
```

## Authentication
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 9cd376d

Please sign in to comment.