Skip to content

Commit bdc4af4

Browse files
feat: added NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN to ScanRunWarningTrace.Code (googleapis#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: https://github.com/googleapis/googleapis-gen/commit/237042023f108b14c042711845241fbb62cf2e08 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: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
1 parent 42b0ce7 commit bdc4af4

File tree

196 files changed

+3270
-754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+3270
-754
lines changed

java-websecurityscanner/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-websecurityscanner'
5656
If you are using Gradle without BOM, add this to your dependencies:
5757

5858
```Groovy
59-
implementation 'com.google.cloud:google-cloud-websecurityscanner:2.2.3'
59+
implementation 'com.google.cloud:google-cloud-websecurityscanner:2.2.4'
6060
```
6161

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

6464
```Scala
65-
libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.2.3"
65+
libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.2.4"
6666
```
6767

6868
## Authentication

java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java

+170-68
Large diffs are not rendered by default.

java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@
5858
* <p>For example, to set the total timeout of createScanConfig to 30 seconds:
5959
*
6060
* <pre>{@code
61-
* // This snippet has been automatically generated for illustrative purposes only.
62-
* // It may require modifications to work in your environment.
61+
* // This snippet has been automatically generated and should be regarded as a code template only.
62+
* // It will require modifications to work:
63+
* // - It may require correct/in-range values for request initialization.
64+
* // - It may require specifying regional endpoints when creating the service client as shown in
65+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6366
* WebSecurityScannerSettings.Builder webSecurityScannerSettingsBuilder =
6467
* WebSecurityScannerSettings.newBuilder();
6568
* webSecurityScannerSettingsBuilder

java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@
2828
* <p>Sample for WebSecurityScannerClient:
2929
*
3030
* <pre>{@code
31-
* // This snippet has been automatically generated for illustrative purposes only.
32-
* // It may require modifications to work in your environment.
31+
* // This snippet has been automatically generated and should be regarded as a code template only.
32+
* // It will require modifications to work:
33+
* // - It may require correct/in-range values for request initialization.
34+
* // - It may require specifying regional endpoints when creating the service client as shown in
35+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
* try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
3437
* CreateScanConfigRequest request =
3538
* CreateScanConfigRequest.newBuilder()

java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
103103
.setRequestBodyExtractor(
104104
request ->
105105
ProtoRestSerializer.create()
106-
.toBody("scanConfig", request.getScanConfig()))
106+
.toBody("scanConfig", request.getScanConfig(), false))
107107
.build())
108108
.setResponseParser(
109109
ProtoMessageResponseParser.<ScanConfig>newBuilder()
@@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
246246
.setRequestBodyExtractor(
247247
request ->
248248
ProtoRestSerializer.create()
249-
.toBody("scanConfig", request.getScanConfig()))
249+
.toBody("scanConfig", request.getScanConfig(), false))
250250
.build())
251251
.setResponseParser(
252252
ProtoMessageResponseParser.<ScanConfig>newBuilder()
@@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
283283
.setRequestBodyExtractor(
284284
request ->
285285
ProtoRestSerializer.create()
286-
.toBody("*", request.toBuilder().clearName().build()))
286+
.toBody("*", request.toBuilder().clearName().build(), false))
287287
.build())
288288
.setResponseParser(
289289
ProtoMessageResponseParser.<ScanRun>newBuilder()
@@ -388,7 +388,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub {
388388
.setRequestBodyExtractor(
389389
request ->
390390
ProtoRestSerializer.create()
391-
.toBody("*", request.toBuilder().clearName().build()))
391+
.toBody("*", request.toBuilder().clearName().build(), false))
392392
.build())
393393
.setResponseParser(
394394
ProtoMessageResponseParser.<ScanRun>newBuilder()

java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@
9797
* <p>For example, to set the total timeout of createScanConfig to 30 seconds:
9898
*
9999
* <pre>{@code
100-
* // This snippet has been automatically generated for illustrative purposes only.
101-
* // It may require modifications to work in your environment.
100+
* // This snippet has been automatically generated and should be regarded as a code template only.
101+
* // It will require modifications to work:
102+
* // - It may require correct/in-range values for request initialization.
103+
* // - It may require specifying regional endpoints when creating the service client as shown in
104+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
102105
* WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder =
103106
* WebSecurityScannerStubSettings.newBuilder();
104107
* webSecurityScannerSettingsBuilder

0 commit comments

Comments
 (0)