From bd152fdd65fe109731d64a5ea5a8fbc9d17b1339 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 14 Jan 2021 09:12:30 +0000 Subject: [PATCH 01/19] chore: release 1.0.11-SNAPSHOT (#341) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-websecurityscanner-bom/pom.xml | 16 ++++++++-------- google-cloud-websecurityscanner/pom.xml | 4 ++-- grpc-google-cloud-websecurityscanner-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- .../pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-websecurityscanner-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- .../pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-websecurityscanner-bom/pom.xml b/google-cloud-websecurityscanner-bom/pom.xml index 6e3566d4..4a44b3dc 100644 --- a/google-cloud-websecurityscanner-bom/pom.xml +++ b/google-cloud-websecurityscanner-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner-bom - 1.0.10 + 1.0.11-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.84.10 + 0.84.11-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.84.10 + 0.84.11-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 1.0.10 + 1.0.11-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.84.10 + 0.84.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.84.10 + 0.84.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 1.0.10 + 1.0.11-SNAPSHOT com.google.cloud google-cloud-websecurityscanner - 1.0.10 + 1.0.11-SNAPSHOT diff --git a/google-cloud-websecurityscanner/pom.xml b/google-cloud-websecurityscanner/pom.xml index a0deba35..1315a425 100644 --- a/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-websecurityscanner/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner - 1.0.10 + 1.0.11-SNAPSHOT jar Google Cloud Web Security Scanner https://github.com/googleapis/java-websecurityscanner @@ -11,7 +11,7 @@ com.google.cloud google-cloud-websecurityscanner-parent - 1.0.10 + 1.0.11-SNAPSHOT google-cloud-websecurityscanner diff --git a/grpc-google-cloud-websecurityscanner-v1/pom.xml b/grpc-google-cloud-websecurityscanner-v1/pom.xml index 9a2cc41f..96ded2de 100644 --- a/grpc-google-cloud-websecurityscanner-v1/pom.xml +++ b/grpc-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 1.0.10 + 1.0.11-SNAPSHOT grpc-google-cloud-websecurityscanner-v1 GRPC library for grpc-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 1.0.10 + 1.0.11-SNAPSHOT diff --git a/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index 23cca3f6..ea63bd63 100644 --- a/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.84.10 + 0.84.11-SNAPSHOT grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 1.0.10 + 1.0.11-SNAPSHOT diff --git a/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/grpc-google-cloud-websecurityscanner-v1beta/pom.xml index 12d196aa..736cc3fb 100644 --- a/grpc-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/grpc-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.84.10 + 0.84.11-SNAPSHOT grpc-google-cloud-websecurityscanner-v1beta GRPC library for grpc-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 1.0.10 + 1.0.11-SNAPSHOT diff --git a/pom.xml b/pom.xml index c1bc0f9b..573173e0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-websecurityscanner-parent pom - 1.0.10 + 1.0.11-SNAPSHOT Google Cloud Web Security Scanner Parent https://github.com/googleapis/java-websecurityscanner @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.84.10 + 0.84.11-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.84.10 + 0.84.11-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 1.0.10 + 1.0.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.84.10 + 0.84.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.84.10 + 0.84.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 1.0.10 + 1.0.11-SNAPSHOT com.google.cloud google-cloud-websecurityscanner - 1.0.10 + 1.0.11-SNAPSHOT diff --git a/proto-google-cloud-websecurityscanner-v1/pom.xml b/proto-google-cloud-websecurityscanner-v1/pom.xml index a745f5e4..3c472a5e 100644 --- a/proto-google-cloud-websecurityscanner-v1/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 1.0.10 + 1.0.11-SNAPSHOT proto-google-cloud-websecurityscanner-v1 PROTO library for proto-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 1.0.10 + 1.0.11-SNAPSHOT diff --git a/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index 4d6b15b4..559c1fe7 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.84.10 + 0.84.11-SNAPSHOT proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 1.0.10 + 1.0.11-SNAPSHOT diff --git a/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/proto-google-cloud-websecurityscanner-v1beta/pom.xml index 6c34f533..3a63a6ae 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.84.10 + 0.84.11-SNAPSHOT proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 1.0.10 + 1.0.11-SNAPSHOT diff --git a/versions.txt b/versions.txt index 05ac038d..4322bcf7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-websecurityscanner-v1alpha:0.84.10:0.84.10 -proto-google-cloud-websecurityscanner-v1beta:0.84.10:0.84.10 -proto-google-cloud-websecurityscanner-v1:1.0.10:1.0.10 -grpc-google-cloud-websecurityscanner-v1alpha:0.84.10:0.84.10 -grpc-google-cloud-websecurityscanner-v1beta:0.84.10:0.84.10 -grpc-google-cloud-websecurityscanner-v1:1.0.10:1.0.10 -google-cloud-websecurityscanner:1.0.10:1.0.10 \ No newline at end of file +proto-google-cloud-websecurityscanner-v1alpha:0.84.10:0.84.11-SNAPSHOT +proto-google-cloud-websecurityscanner-v1beta:0.84.10:0.84.11-SNAPSHOT +proto-google-cloud-websecurityscanner-v1:1.0.10:1.0.11-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1alpha:0.84.10:0.84.11-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1beta:0.84.10:0.84.11-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1:1.0.10:1.0.11-SNAPSHOT +google-cloud-websecurityscanner:1.0.10:1.0.11-SNAPSHOT \ No newline at end of file From 6f8ed446dbe3f2786d9640cfefaade04fead9816 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Jan 2021 21:25:24 +0100 Subject: [PATCH 02/19] chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#343) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 32545082..0920c126 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import From 87c2790972a82614f8a14e6f838bf497d07ab647 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 20 Jan 2021 12:38:09 -0800 Subject: [PATCH 03/19] chore: regenerate README (#344) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-01-20 20:27:57,393 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-websecurityscanner/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-01-20 20:27:58,361 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/d348406e-edad-454c-a3a8-4b01a992f22f/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index ff92ec36..c297badb 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-websecurityscanner.git", - "sha": "b056a9921ea993c4795a69c5b0d597823e1c0cdc" + "sha": "6f8ed446dbe3f2786d9640cfefaade04fead9816" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "41a4e56982620d3edcf110d76f4fcdfdec471ac8" + "sha": "b259489b06b25f399768b74b8baa943991f38ea7" } } ] diff --git a/README.md b/README.md index 58a3abc5..90c98ac5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import @@ -45,7 +45,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:16.2.1') +implementation platform('com.google.cloud:libraries-bom:16.3.0') compile 'com.google.cloud:google-cloud-websecurityscanner' ``` From b7ecc68fd9c18550717ad6e6c17bc1f605ea55ae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 18:32:09 +0100 Subject: [PATCH 04/19] test(deps): update dependency com.google.truth:truth to v1.1.2 (#345) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.truth:truth](com/google/truth/truth) | `1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/compatibility-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/confidence-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-websecurityscanner). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a5541918..b977f700 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -42,7 +42,7 @@ com.google.truth truth - 1.1 + 1.1.2 test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 38ac3441..21f6aae7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.truth truth - 1.1 + 1.1.2 test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0920c126..86fe440a 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.1 + 1.1.2 test
From 288db147064cb6c3bf609945db2ebea55ac16d08 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 26 Jan 2021 14:28:03 +0100 Subject: [PATCH 05/19] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.10.0 (#346) --- google-cloud-websecurityscanner-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-websecurityscanner-bom/pom.xml b/google-cloud-websecurityscanner-bom/pom.xml index 4a44b3dc..e90dfe73 100644 --- a/google-cloud-websecurityscanner-bom/pom.xml +++ b/google-cloud-websecurityscanner-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.9.4 + 0.10.0 Google Cloud websecurityscanner BOM diff --git a/pom.xml b/pom.xml index 573173e0..daaac05b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.9.4 + 0.10.0 From 445b881740b46309ba2f13fd6053f4ec4a25c0cf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 26 Jan 2021 11:18:32 -0800 Subject: [PATCH 06/19] chore: adding docfx doclet resource (#347) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/fb259c82-85f3-40d2-bc0f-f477ba1cd888/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/3816b080296d4d52975079fd26c110dd26ba25af --- .kokoro/release/publish_javadoc.cfg | 3 +++ synth.metadata | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index cec7e00d..b9f54c0b 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -27,3 +27,6 @@ before_action { } } } + +# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 856d2b9d..66fdbbb4 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-websecurityscanner.git", - "sha": "81769d6bade4e2e05ac5c73ef12862c5c49e9367" + "sha": "b7ecc68fd9c18550717ad6e6c17bc1f605ea55ae" } }, { @@ -35,7 +35,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6133907dbb3ddab204a17a15d5c53ec0aae9b033" + "sha": "3816b080296d4d52975079fd26c110dd26ba25af" } } ], From a96a0b00bac716bd8f90f45cc4c27258c84ef6db Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 3 Feb 2021 13:22:09 -0800 Subject: [PATCH 07/19] build: migrate to flakybot (#348) --- .kokoro/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 66de1cec..1c1b47d9 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -110,8 +110,8 @@ bash .kokoro/coerce_logs.sh if [[ "${ENABLE_BUILD_COP}" == "true" ]] then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop - ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-websecurityscanner + chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot + ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-websecurityscanner fi echo "exiting with ${RETURN_CODE}" From 88c429946a210e3c843156c6394b97b52564580b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Feb 2021 14:54:56 +0100 Subject: [PATCH 08/19] chore(deps): update dependency com.google.cloud:google-cloud-websecurityscanner to v1.0.10 (#352) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b977f700..e49fc1d0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-websecurityscanner - 1.0.9 + 1.0.10 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 21f6aae7..af045d60 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-websecurityscanner - 1.0.9 + 1.0.10 From bfe0e1116fe1ad356564e6297881f4e63155bdc1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 5 Feb 2021 06:04:03 -0800 Subject: [PATCH 09/19] chore: regenerate README (#355) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-02-05 13:57:16,226 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-websecurityscanner/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-05 13:57:17,097 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/29713d86-5ae4-429d-8303-2c6806540ba3/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index c297badb..fa085539 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-websecurityscanner.git", - "sha": "6f8ed446dbe3f2786d9640cfefaade04fead9816" + "sha": "88c429946a210e3c843156c6394b97b52564580b" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b259489b06b25f399768b74b8baa943991f38ea7" + "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" } } ] diff --git a/README.md b/README.md index 90c98ac5..03d55f64 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 1.0.9 + 1.0.10 ``` @@ -51,12 +51,12 @@ compile 'com.google.cloud:google-cloud-websecurityscanner' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-websecurityscanner:1.0.9' +compile 'com.google.cloud:google-cloud-websecurityscanner:1.0.10' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "1.0.9" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "1.0.10" ``` ## Authentication From 5360f6f515659e0b17ed6d6e0ef0359002af8362 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 8 Feb 2021 16:14:02 -0800 Subject: [PATCH 10/19] build: migrate to flakybot (#349) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/48586af5-3b7f-45ff-b545-dab2ffdc5187/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/d1bb9173100f62c0cfc8f3138b62241e7f47ca6a --- synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synth.metadata b/synth.metadata index 66fdbbb4..50ca8062 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-websecurityscanner.git", - "sha": "b7ecc68fd9c18550717ad6e6c17bc1f605ea55ae" + "sha": "445b881740b46309ba2f13fd6053f4ec4a25c0cf" } }, { @@ -35,7 +35,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3816b080296d4d52975079fd26c110dd26ba25af" + "sha": "d1bb9173100f62c0cfc8f3138b62241e7f47ca6a" } } ], From 39acca94e0c6c5849cff86fdcafe5cba98da6de3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 9 Feb 2021 09:33:46 -0800 Subject: [PATCH 11/19] chore: Re-generated to pick up changes from synthtool. (#361) * build(java): generate docfx yml on release * feat: generate docfx yml on release * fix: updates name variable * fix: remove non needed resource * fix: update date Source-Author: Emily Ball Source-Date: Mon Feb 1 15:24:59 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 5de29e9434b63ea6d7e46dc348521c62969af1a1 Source-Link: https://github.com/googleapis/synthtool/commit/5de29e9434b63ea6d7e46dc348521c62969af1a1 * build(java): run linkage monitor as GitHub action Source-Author: Tomo Suzuki Source-Date: Tue Feb 2 16:20:26 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: e935c9ecb47da0f2e054f5f1845f7cf7c95fa625 Source-Link: https://github.com/googleapis/synthtool/commit/e935c9ecb47da0f2e054f5f1845f7cf7c95fa625 * build(java): update autorelease branch name check In response to the new multi release branch changes. Source-Author: Stephanie Wang Source-Date: Wed Feb 3 15:06:07 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: 140ba24a136c63e7f10a998a63e7898aed63ea7d Source-Link: https://github.com/googleapis/synthtool/commit/140ba24a136c63e7f10a998a63e7898aed63ea7d * chore: remove leading newline from LICENSE Co-authored-by: Christopher Wilcox Source-Author: Justin Beckwith Source-Date: Wed Feb 3 15:37:31 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 27b2d4f4674840628d0b75c5941e89c12af4764f Source-Link: https://github.com/googleapis/synthtool/commit/27b2d4f4674840628d0b75c5941e89c12af4764f * fix: update repo name java-memcache set for all accidentally Source-Author: Emily Ball Source-Date: Thu Feb 4 10:39:41 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5 Source-Link: https://github.com/googleapis/synthtool/commit/692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5 --- .github/workflows/auto-release.yaml | 2 +- .github/workflows/ci.yaml | 13 ++++++- .kokoro/linkage-monitor.sh | 46 ---------------------- .kokoro/release/publish_javadoc.cfg | 5 +-- .kokoro/release/publish_javadoc11.cfg | 30 +++++++++++++++ .kokoro/release/publish_javadoc11.sh | 55 +++++++++++++++++++++++++++ LICENSE | 1 - synth.metadata | 7 ++-- 8 files changed, 103 insertions(+), 56 deletions(-) delete mode 100755 .kokoro/linkage-monitor.sh create mode 100644 .kokoro/release/publish_javadoc11.cfg create mode 100755 .kokoro/release/publish_javadoc11.sh diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 2b6cdbc9..76e6404b 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -17,7 +17,7 @@ jobs: } // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { return; } diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 68302207..98a472e1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,7 +54,18 @@ jobs: with: java-version: 8 - run: java -version - - run: .kokoro/linkage-monitor.sh + - name: Install artifacts to local Maven repository + run: | + source .kokoro/common.sh + retry_with_backoff 3 10 \ + mvn install -B -V \ + -Dmaven.test.skip -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true + shell: bash + - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: diff --git a/.kokoro/linkage-monitor.sh b/.kokoro/linkage-monitor.sh deleted file mode 100755 index 759ab4e2..00000000 --- a/.kokoro/linkage-monitor.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail -# Display commands being run. -set -x - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java version -java -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true - -# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR -JAR=linkage-monitor-latest-all-deps.jar -curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}" - -# Fails if there's new linkage errors compared with baseline -java -jar ${JAR} com.google.cloud:libraries-bom diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index b9f54c0b..9f9bdeb5 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -26,7 +26,4 @@ before_action { keyname: "docuploader_service_account" } } -} - -# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file +} \ No newline at end of file diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg new file mode 100644 index 00000000..d0d1c433 --- /dev/null +++ b/.kokoro/release/publish_javadoc11.cfg @@ -0,0 +1,30 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "STAGING_BUCKET_V2" + value: "docs-staging-v2" + # Production will be at: docs-staging-v2 +} + +# Configure the docker image for kokoro-trampoline +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/release/publish_javadoc11.sh" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "docuploader_service_account" + } + } +} + +# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh new file mode 100755 index 00000000..bf995f7a --- /dev/null +++ b/.kokoro/release/publish_javadoc11.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# Copyright 2021 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +if [[ -z "${CREDENTIALS}" ]]; then + CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account +fi + +if [[ -z "${STAGING_BUCKET_V2}" ]]; then + echo "Need to set STAGING_BUCKET_V2 environment variable" + exit 1 +fi + +# work from the git root directory +pushd $(dirname "$0")/../../ + +# install docuploader package +python3 -m pip install gcp-docuploader + +# compile all packages +mvn clean install -B -q -DskipTests=true + +export NAME=google-cloud-websecurityscanner +export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) + +# V3 generates docfx yml from javadoc +# generate yml +mvn clean site -B -q -P docFX + +pushd target/docfx-yml + +# create metadata +python3 -m docuploader create-metadata \ + --name ${NAME} \ + --version ${VERSION} \ + --language java + +# upload yml +python3 -m docuploader upload . \ + --credentials ${CREDENTIALS} \ + --staging-bucket ${STAGING_BUCKET_V2} \ + --destination-prefix docfx- diff --git a/LICENSE b/LICENSE index d6456956..261eeb9e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,3 @@ - Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ diff --git a/synth.metadata b/synth.metadata index 50ca8062..cf75aafb 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-websecurityscanner.git", - "sha": "445b881740b46309ba2f13fd6053f4ec4a25c0cf" + "sha": "5360f6f515659e0b17ed6d6e0ef0359002af8362" } }, { @@ -35,7 +35,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d1bb9173100f62c0cfc8f3138b62241e7f47ca6a" + "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" } } ], @@ -93,7 +93,6 @@ ".kokoro/continuous/java8.cfg", ".kokoro/continuous/readme.cfg", ".kokoro/dependencies.sh", - ".kokoro/linkage-monitor.sh", ".kokoro/nightly/common.cfg", ".kokoro/nightly/integration.cfg", ".kokoro/nightly/java11.cfg", @@ -125,6 +124,8 @@ ".kokoro/release/promote.sh", ".kokoro/release/publish_javadoc.cfg", ".kokoro/release/publish_javadoc.sh", + ".kokoro/release/publish_javadoc11.cfg", + ".kokoro/release/publish_javadoc11.sh", ".kokoro/release/snapshot.cfg", ".kokoro/release/snapshot.sh", ".kokoro/release/stage.cfg", From 8d35709282635be780fab2aca600d93a9d860988 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 9 Feb 2021 09:44:02 -0800 Subject: [PATCH 12/19] chore: regenerate README (#363) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-02-09 17:36:09,876 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-websecurityscanner/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-09 17:36:10,755 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/f8d159f6-dbf5-43f0-9a97-14a4566d867a/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index fa085539..51e92276 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-websecurityscanner.git", - "sha": "88c429946a210e3c843156c6394b97b52564580b" + "sha": "39acca94e0c6c5849cff86fdcafe5cba98da6de3" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" + "sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e" } } ] diff --git a/README.md b/README.md index 03d55f64..2af62635 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,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:16.3.0') +implementation platform('com.google.cloud:libraries-bom:16.4.0') compile 'com.google.cloud:google-cloud-websecurityscanner' ``` From 61ac100f8f8ce7ab8c30bf0450dc7903e9bdb38b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 9 Feb 2021 10:30:05 -0800 Subject: [PATCH 13/19] feat: generate sample code in the Java microgenerator (#360) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b5715173-fa09-4f29-8c69-530ae787b970/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 356341083 Source-Link: https://github.com/googleapis/googleapis/commit/8d8c008e56f1af31d57f75561e0f1848ffb29eeb --- .../v1/WebSecurityScannerClient.java | 409 +++++++++++ .../websecurityscanner/v1/package-info.java | 11 + .../v1alpha/WebSecurityScannerClient.java | 693 ++++++++++++++++++ .../v1alpha/package-info.java | 8 + .../v1beta/WebSecurityScannerClient.java | 693 ++++++++++++++++++ .../v1beta/package-info.java | 8 + synth.metadata | 12 +- 7 files changed, 1828 insertions(+), 6 deletions(-) diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java index 54a891b9..e836e37d 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java @@ -44,6 +44,17 @@ *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * + *

{@code
+ * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+ *   CreateScanConfigRequest request =
+ *       CreateScanConfigRequest.newBuilder()
+ *           .setParent("parent-995424086")
+ *           .setScanConfig(ScanConfig.newBuilder().build())
+ *           .build();
+ *   ScanConfig response = webSecurityScannerClient.createScanConfig(request);
+ * }
+ * }
+ * *

Note: close() needs to be called on the WebSecurityScannerClient object to clean up resources * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). @@ -150,6 +161,19 @@ public WebSecurityScannerStub getStub() { /** * Creates a new ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   CreateScanConfigRequest request =
+   *       CreateScanConfigRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .build();
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -162,6 +186,20 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) { * Creates a new ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   CreateScanConfigRequest request =
+   *       CreateScanConfigRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.createScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable createScanConfigCallable() { return stub.createScanConfigCallable(); @@ -171,6 +209,16 @@ public final UnaryCallable createScanConfig /** * Deletes an existing ScanConfig and its child resources. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   DeleteScanConfigRequest request =
+   *       DeleteScanConfigRequest.newBuilder().setName("name3373707").build();
+   *   webSecurityScannerClient.deleteScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -183,6 +231,17 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) { * Deletes an existing ScanConfig and its child resources. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   DeleteScanConfigRequest request =
+   *       DeleteScanConfigRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.deleteScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
*/ public final UnaryCallable deleteScanConfigCallable() { return stub.deleteScanConfigCallable(); @@ -192,6 +251,16 @@ public final UnaryCallable deleteScanConfigCalla /** * Gets a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanConfigRequest request =
+   *       GetScanConfigRequest.newBuilder().setName("name3373707").build();
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -204,6 +273,17 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) { * Gets a ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanConfigRequest request =
+   *       GetScanConfigRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.getScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getScanConfigCallable() { return stub.getScanConfigCallable(); @@ -213,6 +293,22 @@ public final UnaryCallable getScanConfigCallab /** * Lists ScanConfigs under a given project. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanConfigsRequest request =
+   *       ListScanConfigsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -225,6 +321,23 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest * Lists ScanConfigs under a given project. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanConfigsRequest request =
+   *       ListScanConfigsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listScanConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ScanConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanConfigsPagedCallable() { @@ -236,6 +349,24 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest * Lists ScanConfigs under a given project. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListScanConfigsResponse response =
+   *         webSecurityScannerClient.listScanConfigsCallable().call(request);
+   *     for (ScanConfig element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanConfigsCallable() { @@ -246,6 +377,19 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest /** * Updates a ScanConfig. This method support partial update of a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   UpdateScanConfigRequest request =
+   *       UpdateScanConfigRequest.newBuilder()
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ScanConfig response = webSecurityScannerClient.updateScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -258,6 +402,20 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) { * Updates a ScanConfig. This method support partial update of a ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   UpdateScanConfigRequest request =
+   *       UpdateScanConfigRequest.newBuilder()
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.updateScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable updateScanConfigCallable() { return stub.updateScanConfigCallable(); @@ -267,6 +425,15 @@ public final UnaryCallable updateScanConfig /** * Start a ScanRun according to the given ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build();
+   *   ScanRun response = webSecurityScannerClient.startScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -279,6 +446,16 @@ public final ScanRun startScanRun(StartScanRunRequest request) { * Start a ScanRun according to the given ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.startScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable startScanRunCallable() { return stub.startScanRunCallable(); @@ -288,6 +465,15 @@ public final UnaryCallable startScanRunCallable() /** * Gets a ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build();
+   *   ScanRun response = webSecurityScannerClient.getScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -300,6 +486,15 @@ public final ScanRun getScanRun(GetScanRunRequest request) { * Gets a ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = webSecurityScannerClient.getScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getScanRunCallable() { return stub.getScanRunCallable(); @@ -309,6 +504,22 @@ public final UnaryCallable getScanRunCallable() { /** * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanRunsRequest request =
+   *       ListScanRunsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -321,6 +532,23 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanRunsRequest request =
+   *       ListScanRunsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listScanRunsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ScanRun element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanRunsPagedCallable() { @@ -332,6 +560,24 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListScanRunsResponse response =
+   *         webSecurityScannerClient.listScanRunsCallable().call(request);
+   *     for (ScanRun element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanRunsCallable() { return stub.listScanRunsCallable(); @@ -341,6 +587,15 @@ public final UnaryCallable listScanRu /** * Stops a ScanRun. The stopped ScanRun is returned. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build();
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -353,6 +608,16 @@ public final ScanRun stopScanRun(StopScanRunRequest request) { * Stops a ScanRun. The stopped ScanRun is returned. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.stopScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable stopScanRunCallable() { return stub.stopScanRunCallable(); @@ -362,6 +627,22 @@ public final UnaryCallable stopScanRunCallable() { /** * List CrawledUrls under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListCrawledUrlsRequest request =
+   *       ListCrawledUrlsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -374,6 +655,23 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * List CrawledUrls under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListCrawledUrlsRequest request =
+   *       ListCrawledUrlsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listCrawledUrlsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CrawledUrl element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listCrawledUrlsPagedCallable() { @@ -385,6 +683,24 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * List CrawledUrls under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListCrawledUrlsResponse response =
+   *         webSecurityScannerClient.listCrawledUrlsCallable().call(request);
+   *     for (CrawledUrl element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listCrawledUrlsCallable() { @@ -395,6 +711,15 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest /** * Gets a Finding. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build();
+   *   Finding response = webSecurityScannerClient.getFinding(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -407,6 +732,15 @@ public final Finding getFinding(GetFindingRequest request) { * Gets a Finding. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = webSecurityScannerClient.getFindingCallable().futureCall(request);
+   *   // Do something.
+   *   Finding response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getFindingCallable() { return stub.getFindingCallable(); @@ -416,6 +750,23 @@ public final UnaryCallable getFindingCallable() { /** * List Findings under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingsRequest request =
+   *       ListFindingsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setFilter("filter-1274492040")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (Finding element : webSecurityScannerClient.listFindings(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -428,6 +779,24 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * List Findings under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingsRequest request =
+   *       ListFindingsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setFilter("filter-1274492040")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listFindingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Finding element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listFindingsPagedCallable() { @@ -439,6 +808,24 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * List Findings under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListFindingsResponse response =
+   *         webSecurityScannerClient.listFindingsCallable().call(request);
+   *     for (Finding element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listFindingsCallable() { return stub.listFindingsCallable(); @@ -448,6 +835,17 @@ public final UnaryCallable listFindin /** * List all FindingTypeStats under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingTypeStatsRequest request =
+   *       ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build();
+   *   ListFindingTypeStatsResponse response =
+   *       webSecurityScannerClient.listFindingTypeStats(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -461,6 +859,17 @@ public final ListFindingTypeStatsResponse listFindingTypeStats( * List all FindingTypeStats under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingTypeStatsRequest request =
+   *       ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listFindingTypeStatsCallable().futureCall(request);
+   *   // Do something.
+   *   ListFindingTypeStatsResponse response = future.get();
+   * }
+   * }
*/ public final UnaryCallable listFindingTypeStatsCallable() { diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java index 9c47ead9..8353b7dd 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java @@ -24,6 +24,17 @@ * user inputs and event handlers as possible. * *

Sample for WebSecurityScannerClient: + * + *

{@code
+ * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+ *   CreateScanConfigRequest request =
+ *       CreateScanConfigRequest.newBuilder()
+ *           .setParent("parent-995424086")
+ *           .setScanConfig(ScanConfig.newBuilder().build())
+ *           .build();
+ *   ScanConfig response = webSecurityScannerClient.createScanConfig(request);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.websecurityscanner.v1; diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java index 72a1db01..29927941 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java @@ -45,6 +45,14 @@ *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * + *

{@code
+ * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+ *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+ * }
+ * }
+ * *

Note: close() needs to be called on the WebSecurityScannerClient object to clean up resources * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). @@ -152,6 +160,16 @@ public WebSecurityScannerStub getStub() { /** * Creates a new ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+   * }
+   * }
+ * * @param parent Required. The parent resource name where the scan is created, which should be a * project resource name in the format 'projects/{projectId}'. * @param scanConfig Required. The ScanConfig to be created. @@ -170,6 +188,16 @@ public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConf /** * Creates a new ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+   * }
+   * }
+ * * @param parent Required. The parent resource name where the scan is created, which should be a * project resource name in the format 'projects/{projectId}'. * @param scanConfig Required. The ScanConfig to be created. @@ -185,6 +213,19 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) { /** * Creates a new ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   CreateScanConfigRequest request =
+   *       CreateScanConfigRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .build();
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -197,6 +238,20 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) { * Creates a new ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   CreateScanConfigRequest request =
+   *       CreateScanConfigRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.createScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable createScanConfigCallable() { return stub.createScanConfigCallable(); @@ -206,6 +261,15 @@ public final UnaryCallable createScanConfig /** * Deletes an existing ScanConfig and its child resources. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   webSecurityScannerClient.deleteScanConfig(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be deleted. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -220,6 +284,15 @@ public final void deleteScanConfig(ScanConfigName name) { /** * Deletes an existing ScanConfig and its child resources. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
+   *   webSecurityScannerClient.deleteScanConfig(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be deleted. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -233,6 +306,18 @@ public final void deleteScanConfig(String name) { /** * Deletes an existing ScanConfig and its child resources. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   DeleteScanConfigRequest request =
+   *       DeleteScanConfigRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   webSecurityScannerClient.deleteScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -245,6 +330,19 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) { * Deletes an existing ScanConfig and its child resources. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   DeleteScanConfigRequest request =
+   *       DeleteScanConfigRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.deleteScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
*/ public final UnaryCallable deleteScanConfigCallable() { return stub.deleteScanConfigCallable(); @@ -254,6 +352,15 @@ public final UnaryCallable deleteScanConfigCalla /** * Gets a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be returned. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -268,6 +375,15 @@ public final ScanConfig getScanConfig(ScanConfigName name) { /** * Gets a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be returned. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -281,6 +397,18 @@ public final ScanConfig getScanConfig(String name) { /** * Gets a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanConfigRequest request =
+   *       GetScanConfigRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -293,6 +421,19 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) { * Gets a ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanConfigRequest request =
+   *       GetScanConfigRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.getScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getScanConfigCallable() { return stub.getScanConfigCallable(); @@ -302,6 +443,17 @@ public final UnaryCallable getScanConfigCallab /** * Lists ScanConfigs under a given project. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a project resource name in * the format 'projects/{projectId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -318,6 +470,17 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) { /** * Lists ScanConfigs under a given project. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a project resource name in * the format 'projects/{projectId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -331,6 +494,22 @@ public final ListScanConfigsPagedResponse listScanConfigs(String parent) { /** * Lists ScanConfigs under a given project. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanConfigsRequest request =
+   *       ListScanConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -343,6 +522,23 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest * Lists ScanConfigs under a given project. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanConfigsRequest request =
+   *       ListScanConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listScanConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ScanConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanConfigsPagedCallable() { @@ -354,6 +550,24 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest * Lists ScanConfigs under a given project. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListScanConfigsResponse response =
+   *         webSecurityScannerClient.listScanConfigsCallable().call(request);
+   *     for (ScanConfig element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanConfigsCallable() { @@ -364,6 +578,16 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest /** * Updates a ScanConfig. This method support partial update of a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ScanConfig response = webSecurityScannerClient.updateScanConfig(scanConfig, updateMask);
+   * }
+   * }
+ * * @param scanConfig Required. The ScanConfig to be updated. The name field must be set to * identify the resource to be updated. The values of fields not covered by the mask will be * ignored. @@ -385,6 +609,19 @@ public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask update /** * Updates a ScanConfig. This method support partial update of a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   UpdateScanConfigRequest request =
+   *       UpdateScanConfigRequest.newBuilder()
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ScanConfig response = webSecurityScannerClient.updateScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -397,6 +634,20 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) { * Updates a ScanConfig. This method support partial update of a ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   UpdateScanConfigRequest request =
+   *       UpdateScanConfigRequest.newBuilder()
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.updateScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable updateScanConfigCallable() { return stub.updateScanConfigCallable(); @@ -406,6 +657,15 @@ public final UnaryCallable updateScanConfig /** * Start a ScanRun according to the given ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanRun response = webSecurityScannerClient.startScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be used. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -420,6 +680,15 @@ public final ScanRun startScanRun(ScanConfigName name) { /** * Start a ScanRun according to the given ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
+   *   ScanRun response = webSecurityScannerClient.startScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be used. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -433,6 +702,18 @@ public final ScanRun startScanRun(String name) { /** * Start a ScanRun according to the given ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StartScanRunRequest request =
+   *       StartScanRunRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ScanRun response = webSecurityScannerClient.startScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -445,6 +726,19 @@ public final ScanRun startScanRun(StartScanRunRequest request) { * Start a ScanRun according to the given ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StartScanRunRequest request =
+   *       StartScanRunRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.startScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable startScanRunCallable() { return stub.startScanRunCallable(); @@ -454,6 +748,15 @@ public final UnaryCallable startScanRunCallable() /** * Gets a ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRun response = webSecurityScannerClient.getScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanRun to be returned. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -468,6 +771,15 @@ public final ScanRun getScanRun(ScanRunName name) { /** * Gets a ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   ScanRun response = webSecurityScannerClient.getScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanRun to be returned. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -481,6 +793,18 @@ public final ScanRun getScanRun(String name) { /** * Gets a ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanRunRequest request =
+   *       GetScanRunRequest.newBuilder()
+   *           .setName(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ScanRun response = webSecurityScannerClient.getScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -493,6 +817,18 @@ public final ScanRun getScanRun(GetScanRunRequest request) { * Gets a ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanRunRequest request =
+   *       GetScanRunRequest.newBuilder()
+   *           .setName(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ApiFuture future = webSecurityScannerClient.getScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getScanRunCallable() { return stub.getScanRunCallable(); @@ -502,6 +838,17 @@ public final UnaryCallable getScanRunCallable() { /** * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan resource name in the * format 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -518,6 +865,17 @@ public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) { /** * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan resource name in the * format 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -531,6 +889,22 @@ public final ListScanRunsPagedResponse listScanRuns(String parent) { /** * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanRunsRequest request =
+   *       ListScanRunsRequest.newBuilder()
+   *           .setParent(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -543,6 +917,23 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanRunsRequest request =
+   *       ListScanRunsRequest.newBuilder()
+   *           .setParent(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listScanRunsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ScanRun element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanRunsPagedCallable() { @@ -554,6 +945,24 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListScanRunsResponse response =
+   *         webSecurityScannerClient.listScanRunsCallable().call(request);
+   *     for (ScanRun element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanRunsCallable() { return stub.listScanRunsCallable(); @@ -563,6 +972,15 @@ public final UnaryCallable listScanRu /** * Stops a ScanRun. The stopped ScanRun is returned. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanRun to be stopped. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -577,6 +995,15 @@ public final ScanRun stopScanRun(ScanRunName name) { /** * Stops a ScanRun. The stopped ScanRun is returned. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanRun to be stopped. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -590,6 +1017,18 @@ public final ScanRun stopScanRun(String name) { /** * Stops a ScanRun. The stopped ScanRun is returned. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StopScanRunRequest request =
+   *       StopScanRunRequest.newBuilder()
+   *           .setName(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -602,6 +1041,19 @@ public final ScanRun stopScanRun(StopScanRunRequest request) { * Stops a ScanRun. The stopped ScanRun is returned. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StopScanRunRequest request =
+   *       StopScanRunRequest.newBuilder()
+   *           .setName(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.stopScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable stopScanRunCallable() { return stub.stopScanRunCallable(); @@ -611,6 +1063,17 @@ public final UnaryCallable stopScanRunCallable() { /** * List CrawledUrls under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -627,6 +1090,17 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) { /** * List CrawledUrls under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -640,6 +1114,22 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(String parent) { /** * List CrawledUrls under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListCrawledUrlsRequest request =
+   *       ListCrawledUrlsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -652,6 +1142,23 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * List CrawledUrls under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListCrawledUrlsRequest request =
+   *       ListCrawledUrlsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listCrawledUrlsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CrawledUrl element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listCrawledUrlsPagedCallable() { @@ -663,6 +1170,24 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * List CrawledUrls under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListCrawledUrlsResponse response =
+   *         webSecurityScannerClient.listCrawledUrlsCallable().call(request);
+   *     for (CrawledUrl element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listCrawledUrlsCallable() { @@ -673,6 +1198,15 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest /** * Gets a Finding. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
+   *   Finding response = webSecurityScannerClient.getFinding(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the Finding to be returned. The name follows the * format of * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. @@ -688,6 +1222,16 @@ public final Finding getFinding(FindingName name) { /** * Gets a Finding. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name =
+   *       FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString();
+   *   Finding response = webSecurityScannerClient.getFinding(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the Finding to be returned. The name follows the * format of * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. @@ -702,6 +1246,20 @@ public final Finding getFinding(String name) { /** * Gets a Finding. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetFindingRequest request =
+   *       GetFindingRequest.newBuilder()
+   *           .setName(
+   *               FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]")
+   *                   .toString())
+   *           .build();
+   *   Finding response = webSecurityScannerClient.getFinding(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -714,6 +1272,20 @@ public final Finding getFinding(GetFindingRequest request) { * Gets a Finding. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetFindingRequest request =
+   *       GetFindingRequest.newBuilder()
+   *           .setName(
+   *               FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = webSecurityScannerClient.getFindingCallable().futureCall(request);
+   *   // Do something.
+   *   Finding response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getFindingCallable() { return stub.getFindingCallable(); @@ -723,6 +1295,18 @@ public final UnaryCallable getFindingCallable() { /** * List Findings under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   String filter = "filter-1274492040";
+   *   for (Finding element : webSecurityScannerClient.listFindings(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @param filter Required. The filter expression. The expression must be in the format: @@ -743,6 +1327,18 @@ public final ListFindingsPagedResponse listFindings(ScanRunName parent, String f /** * List Findings under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   String filter = "filter-1274492040";
+   *   for (Finding element : webSecurityScannerClient.listFindings(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @param filter Required. The filter expression. The expression must be in the format: @@ -760,6 +1356,23 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter /** * List Findings under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingsRequest request =
+   *       ListFindingsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (Finding element : webSecurityScannerClient.listFindings(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -772,6 +1385,24 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * List Findings under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingsRequest request =
+   *       ListFindingsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listFindingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Finding element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listFindingsPagedCallable() { @@ -783,6 +1414,24 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * List Findings under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListFindingsResponse response =
+   *         webSecurityScannerClient.listFindingsCallable().call(request);
+   *     for (Finding element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listFindingsCallable() { return stub.listFindingsCallable(); @@ -792,6 +1441,15 @@ public final UnaryCallable listFindin /** * List all FindingTypeStats under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -808,6 +1466,15 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName paren /** * List all FindingTypeStats under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -822,6 +1489,19 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(String parent) { /** * List all FindingTypeStats under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingTypeStatsRequest request =
+   *       ListFindingTypeStatsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ListFindingTypeStatsResponse response =
+   *       webSecurityScannerClient.listFindingTypeStats(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -835,6 +1515,19 @@ public final ListFindingTypeStatsResponse listFindingTypeStats( * List all FindingTypeStats under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingTypeStatsRequest request =
+   *       ListFindingTypeStatsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listFindingTypeStatsCallable().futureCall(request);
+   *   // Do something.
+   *   ListFindingTypeStatsResponse response = future.get();
+   * }
+   * }
*/ public final UnaryCallable listFindingTypeStatsCallable() { diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java index 16c52f4b..3893293a 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java @@ -24,6 +24,14 @@ * exercise as many user inputs and event handlers as possible. * *

Sample for WebSecurityScannerClient: + * + *

{@code
+ * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+ *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.websecurityscanner.v1alpha; diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java index c768203d..636abdd9 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java @@ -45,6 +45,14 @@ *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * + *

{@code
+ * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+ *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+ * }
+ * }
+ * *

Note: close() needs to be called on the WebSecurityScannerClient object to clean up resources * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). @@ -152,6 +160,16 @@ public WebSecurityScannerStub getStub() { /** * Creates a new ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+   * }
+   * }
+ * * @param parent Required. The parent resource name where the scan is created, which should be a * project resource name in the format 'projects/{projectId}'. * @param scanConfig Required. The ScanConfig to be created. @@ -170,6 +188,16 @@ public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConf /** * Creates a new ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+   * }
+   * }
+ * * @param parent Required. The parent resource name where the scan is created, which should be a * project resource name in the format 'projects/{projectId}'. * @param scanConfig Required. The ScanConfig to be created. @@ -185,6 +213,19 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) { /** * Creates a new ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   CreateScanConfigRequest request =
+   *       CreateScanConfigRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .build();
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -197,6 +238,20 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) { * Creates a new ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   CreateScanConfigRequest request =
+   *       CreateScanConfigRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.createScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable createScanConfigCallable() { return stub.createScanConfigCallable(); @@ -206,6 +261,15 @@ public final UnaryCallable createScanConfig /** * Deletes an existing ScanConfig and its child resources. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   webSecurityScannerClient.deleteScanConfig(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be deleted. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -220,6 +284,15 @@ public final void deleteScanConfig(ScanConfigName name) { /** * Deletes an existing ScanConfig and its child resources. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
+   *   webSecurityScannerClient.deleteScanConfig(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be deleted. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -233,6 +306,18 @@ public final void deleteScanConfig(String name) { /** * Deletes an existing ScanConfig and its child resources. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   DeleteScanConfigRequest request =
+   *       DeleteScanConfigRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   webSecurityScannerClient.deleteScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -245,6 +330,19 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) { * Deletes an existing ScanConfig and its child resources. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   DeleteScanConfigRequest request =
+   *       DeleteScanConfigRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.deleteScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
*/ public final UnaryCallable deleteScanConfigCallable() { return stub.deleteScanConfigCallable(); @@ -254,6 +352,15 @@ public final UnaryCallable deleteScanConfigCalla /** * Gets a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be returned. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -268,6 +375,15 @@ public final ScanConfig getScanConfig(ScanConfigName name) { /** * Gets a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be returned. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -281,6 +397,18 @@ public final ScanConfig getScanConfig(String name) { /** * Gets a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanConfigRequest request =
+   *       GetScanConfigRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -293,6 +421,19 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) { * Gets a ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanConfigRequest request =
+   *       GetScanConfigRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.getScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getScanConfigCallable() { return stub.getScanConfigCallable(); @@ -302,6 +443,17 @@ public final UnaryCallable getScanConfigCallab /** * Lists ScanConfigs under a given project. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a project resource name in * the format 'projects/{projectId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -318,6 +470,17 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) { /** * Lists ScanConfigs under a given project. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a project resource name in * the format 'projects/{projectId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -331,6 +494,22 @@ public final ListScanConfigsPagedResponse listScanConfigs(String parent) { /** * Lists ScanConfigs under a given project. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanConfigsRequest request =
+   *       ListScanConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -343,6 +522,23 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest * Lists ScanConfigs under a given project. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanConfigsRequest request =
+   *       ListScanConfigsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listScanConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ScanConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanConfigsPagedCallable() { @@ -354,6 +550,24 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest * Lists ScanConfigs under a given project. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListScanConfigsResponse response =
+   *         webSecurityScannerClient.listScanConfigsCallable().call(request);
+   *     for (ScanConfig element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanConfigsCallable() { @@ -364,6 +578,16 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest /** * Updates a ScanConfig. This method support partial update of a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ScanConfig response = webSecurityScannerClient.updateScanConfig(scanConfig, updateMask);
+   * }
+   * }
+ * * @param scanConfig Required. The ScanConfig to be updated. The name field must be set to * identify the resource to be updated. The values of fields not covered by the mask will be * ignored. @@ -385,6 +609,19 @@ public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask update /** * Updates a ScanConfig. This method support partial update of a ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   UpdateScanConfigRequest request =
+   *       UpdateScanConfigRequest.newBuilder()
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ScanConfig response = webSecurityScannerClient.updateScanConfig(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -397,6 +634,20 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) { * Updates a ScanConfig. This method support partial update of a ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   UpdateScanConfigRequest request =
+   *       UpdateScanConfigRequest.newBuilder()
+   *           .setScanConfig(ScanConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.updateScanConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ScanConfig response = future.get();
+   * }
+   * }
*/ public final UnaryCallable updateScanConfigCallable() { return stub.updateScanConfigCallable(); @@ -406,6 +657,15 @@ public final UnaryCallable updateScanConfig /** * Start a ScanRun according to the given ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanRun response = webSecurityScannerClient.startScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be used. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -420,6 +680,15 @@ public final ScanRun startScanRun(ScanConfigName name) { /** * Start a ScanRun according to the given ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
+   *   ScanRun response = webSecurityScannerClient.startScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanConfig to be used. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -433,6 +702,18 @@ public final ScanRun startScanRun(String name) { /** * Start a ScanRun according to the given ScanConfig. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StartScanRunRequest request =
+   *       StartScanRunRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ScanRun response = webSecurityScannerClient.startScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -445,6 +726,19 @@ public final ScanRun startScanRun(StartScanRunRequest request) { * Start a ScanRun according to the given ScanConfig. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StartScanRunRequest request =
+   *       StartScanRunRequest.newBuilder()
+   *           .setName(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.startScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable startScanRunCallable() { return stub.startScanRunCallable(); @@ -454,6 +748,15 @@ public final UnaryCallable startScanRunCallable() /** * Gets a ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRun response = webSecurityScannerClient.getScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanRun to be returned. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -468,6 +771,15 @@ public final ScanRun getScanRun(ScanRunName name) { /** * Gets a ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   ScanRun response = webSecurityScannerClient.getScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanRun to be returned. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -481,6 +793,18 @@ public final ScanRun getScanRun(String name) { /** * Gets a ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanRunRequest request =
+   *       GetScanRunRequest.newBuilder()
+   *           .setName(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ScanRun response = webSecurityScannerClient.getScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -493,6 +817,18 @@ public final ScanRun getScanRun(GetScanRunRequest request) { * Gets a ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetScanRunRequest request =
+   *       GetScanRunRequest.newBuilder()
+   *           .setName(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ApiFuture future = webSecurityScannerClient.getScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getScanRunCallable() { return stub.getScanRunCallable(); @@ -502,6 +838,17 @@ public final UnaryCallable getScanRunCallable() { /** * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan resource name in the * format 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -518,6 +865,17 @@ public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) { /** * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString();
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan resource name in the * format 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -531,6 +889,22 @@ public final ListScanRunsPagedResponse listScanRuns(String parent) { /** * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanRunsRequest request =
+   *       ListScanRunsRequest.newBuilder()
+   *           .setParent(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -543,6 +917,23 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListScanRunsRequest request =
+   *       ListScanRunsRequest.newBuilder()
+   *           .setParent(ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listScanRunsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ScanRun element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanRunsPagedCallable() { @@ -554,6 +945,24 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListScanRunsResponse response =
+   *         webSecurityScannerClient.listScanRunsCallable().call(request);
+   *     for (ScanRun element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listScanRunsCallable() { return stub.listScanRunsCallable(); @@ -563,6 +972,15 @@ public final UnaryCallable listScanRu /** * Stops a ScanRun. The stopped ScanRun is returned. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanRun to be stopped. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -577,6 +995,15 @@ public final ScanRun stopScanRun(ScanRunName name) { /** * Stops a ScanRun. The stopped ScanRun is returned. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the ScanRun to be stopped. The name follows the * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -590,6 +1017,18 @@ public final ScanRun stopScanRun(String name) { /** * Stops a ScanRun. The stopped ScanRun is returned. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StopScanRunRequest request =
+   *       StopScanRunRequest.newBuilder()
+   *           .setName(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -602,6 +1041,19 @@ public final ScanRun stopScanRun(StopScanRunRequest request) { * Stops a ScanRun. The stopped ScanRun is returned. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   StopScanRunRequest request =
+   *       StopScanRunRequest.newBuilder()
+   *           .setName(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.stopScanRunCallable().futureCall(request);
+   *   // Do something.
+   *   ScanRun response = future.get();
+   * }
+   * }
*/ public final UnaryCallable stopScanRunCallable() { return stub.stopScanRunCallable(); @@ -611,6 +1063,17 @@ public final UnaryCallable stopScanRunCallable() { /** * List CrawledUrls under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -627,6 +1090,17 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) { /** * List CrawledUrls under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -640,6 +1114,22 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(String parent) { /** * List CrawledUrls under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListCrawledUrlsRequest request =
+   *       ListCrawledUrlsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -652,6 +1142,23 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * List CrawledUrls under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListCrawledUrlsRequest request =
+   *       ListCrawledUrlsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listCrawledUrlsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CrawledUrl element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listCrawledUrlsPagedCallable() { @@ -663,6 +1170,24 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * List CrawledUrls under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListCrawledUrlsResponse response =
+   *         webSecurityScannerClient.listCrawledUrlsCallable().call(request);
+   *     for (CrawledUrl element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listCrawledUrlsCallable() { @@ -673,6 +1198,15 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest /** * Gets a Finding. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
+   *   Finding response = webSecurityScannerClient.getFinding(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the Finding to be returned. The name follows the * format of * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. @@ -688,6 +1222,16 @@ public final Finding getFinding(FindingName name) { /** * Gets a Finding. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String name =
+   *       FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString();
+   *   Finding response = webSecurityScannerClient.getFinding(name);
+   * }
+   * }
+ * * @param name Required. The resource name of the Finding to be returned. The name follows the * format of * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. @@ -702,6 +1246,20 @@ public final Finding getFinding(String name) { /** * Gets a Finding. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetFindingRequest request =
+   *       GetFindingRequest.newBuilder()
+   *           .setName(
+   *               FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]")
+   *                   .toString())
+   *           .build();
+   *   Finding response = webSecurityScannerClient.getFinding(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -714,6 +1272,20 @@ public final Finding getFinding(GetFindingRequest request) { * Gets a Finding. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   GetFindingRequest request =
+   *       GetFindingRequest.newBuilder()
+   *           .setName(
+   *               FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = webSecurityScannerClient.getFindingCallable().futureCall(request);
+   *   // Do something.
+   *   Finding response = future.get();
+   * }
+   * }
*/ public final UnaryCallable getFindingCallable() { return stub.getFindingCallable(); @@ -723,6 +1295,18 @@ public final UnaryCallable getFindingCallable() { /** * List Findings under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   String filter = "filter-1274492040";
+   *   for (Finding element : webSecurityScannerClient.listFindings(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @param filter Required. The filter expression. The expression must be in the format: @@ -743,6 +1327,18 @@ public final ListFindingsPagedResponse listFindings(ScanRunName parent, String f /** * List Findings under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   String filter = "filter-1274492040";
+   *   for (Finding element : webSecurityScannerClient.listFindings(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @param filter Required. The filter expression. The expression must be in the format: @@ -760,6 +1356,23 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter /** * List Findings under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingsRequest request =
+   *       ListFindingsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (Finding element : webSecurityScannerClient.listFindings(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -772,6 +1385,24 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * List Findings under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingsRequest request =
+   *       ListFindingsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listFindingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Finding element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listFindingsPagedCallable() { @@ -783,6 +1414,24 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * List Findings under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   while (true) {
+   *     ListFindingsResponse response =
+   *         webSecurityScannerClient.listFindingsCallable().call(request);
+   *     for (Finding element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
*/ public final UnaryCallable listFindingsCallable() { return stub.listFindingsCallable(); @@ -792,6 +1441,15 @@ public final UnaryCallable listFindin /** * List all FindingTypeStats under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -808,6 +1466,15 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName paren /** * List all FindingTypeStats under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString();
+   *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
+   * }
+   * }
+ * * @param parent Required. The parent resource name, which should be a scan run resource name in * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -822,6 +1489,19 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(String parent) { /** * List all FindingTypeStats under a given ScanRun. * + *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingTypeStatsRequest request =
+   *       ListFindingTypeStatsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ListFindingTypeStatsResponse response =
+   *       webSecurityScannerClient.listFindingTypeStats(request);
+   * }
+   * }
+ * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -835,6 +1515,19 @@ public final ListFindingTypeStatsResponse listFindingTypeStats( * List all FindingTypeStats under a given ScanRun. * *

Sample code: + * + *

{@code
+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ListFindingTypeStatsRequest request =
+   *       ListFindingTypeStatsRequest.newBuilder()
+   *           .setParent(ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       webSecurityScannerClient.listFindingTypeStatsCallable().futureCall(request);
+   *   // Do something.
+   *   ListFindingTypeStatsResponse response = future.get();
+   * }
+   * }
*/ public final UnaryCallable listFindingTypeStatsCallable() { diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java index 21d5fea1..20e18b89 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java @@ -24,6 +24,14 @@ * exercise as many user inputs and event handlers as possible. * *

Sample for WebSecurityScannerClient: + * + *

{@code
+ * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+ *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.websecurityscanner.v1beta; diff --git a/synth.metadata b/synth.metadata index cf75aafb..e73313c8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,24 +11,24 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { From a222e64feb7f200b0ca253a4d75fe317cd65ac97 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Feb 2021 14:35:22 +0100 Subject: [PATCH 14/19] chore(deps): update dependency com.google.cloud:libraries-bom to v16.4.0 (#362) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 86fe440a..bef1f549 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import From 7ee72e01ba21fb1eceee9893cb39e1094d060f2e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Feb 2021 05:44:02 -0800 Subject: [PATCH 15/19] chore: regenerate README (#366) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-02-10 13:37:27,903 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-websecurityscanner/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-10 13:37:28,852 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/c849e7c5-72d7-4311-b59e-a5ed03e91752/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 51e92276..1c82431b 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-websecurityscanner.git", - "sha": "39acca94e0c6c5849cff86fdcafe5cba98da6de3" + "sha": "a222e64feb7f200b0ca253a4d75fe317cd65ac97" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e" + "sha": "2414b817065726eae0bc525346c7e874f969369d" } } ] diff --git a/README.md b/README.md index 2af62635..d93397d6 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import From 2fe57aa64edcc99e622a6e5b2a620aba5b38c047 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Feb 2021 09:03:20 -0800 Subject: [PATCH 16/19] build(java): update autorelease script (#365) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/3ed56491-ec66-4d43-9f98-af35b45c75fe/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/2414b817065726eae0bc525346c7e874f969369d --- .github/workflows/auto-release.yaml | 4 ++-- synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 76e6404b..7c8816a7 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -4,7 +4,7 @@ name: auto-release jobs: approve: runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-v') + if: contains(github.head_ref, 'release-please') steps: - uses: actions/github-script@v3 with: @@ -16,7 +16,7 @@ jobs: return; } - // only approve PRs like "chore: release " + // only approve PRs like "chore(master): release " if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { return; } diff --git a/synth.metadata b/synth.metadata index e73313c8..2a5249fa 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-websecurityscanner.git", - "sha": "5360f6f515659e0b17ed6d6e0ef0359002af8362" + "sha": "61ac100f8f8ce7ab8c30bf0450dc7903e9bdb38b" } }, { @@ -35,7 +35,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" + "sha": "2414b817065726eae0bc525346c7e874f969369d" } } ], From 50ccdb993f28c63ed61e0cd07c73b2f5186902e4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Feb 2021 19:06:36 +0100 Subject: [PATCH 17/19] test(deps): update dependency junit:junit to v4.13.2 (#367) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-websecurityscanner). --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index daaac05b..5cbcc62f 100644 --- a/pom.xml +++ b/pom.xml @@ -114,7 +114,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e49fc1d0..b5eefb22 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -36,7 +36,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index af045d60..a44c9107 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index bef1f549..4d57dad1 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -47,7 +47,7 @@ junit junit - 4.13.1 + 4.13.2 test From 97d886f186eea0b6b6caa3e5bc1621a222460358 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Feb 2021 19:13:26 +0100 Subject: [PATCH 18/19] test(deps): update dependency joda-time:joda-time to v2.10.10 (#356) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5cbcc62f..39570015 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ joda-time joda-time - 2.10.9 + 2.10.10 test
From 12e41ecf24f6cf9304f155e5c6b2e0158354d341 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 16 Feb 2021 18:52:10 +0000 Subject: [PATCH 19/19] chore(master): release 1.1.0 (#364) :robot: I have created a release \*beep\* \*boop\* --- ## [1.1.0](https://www.github.com/googleapis/java-websecurityscanner/compare/v1.0.10...v1.1.0) (2021-02-16) ### Features * generate sample code in the Java microgenerator ([#360](https://www.github.com/googleapis/java-websecurityscanner/issues/360)) ([61ac100](https://www.github.com/googleapis/java-websecurityscanner/commit/61ac100f8f8ce7ab8c30bf0450dc7903e9bdb38b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-websecurityscanner-bom/pom.xml | 16 ++++++++-------- google-cloud-websecurityscanner/pom.xml | 4 ++-- grpc-google-cloud-websecurityscanner-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- .../pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-websecurityscanner-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- .../pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe5802f0..eddd6d3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.1.0](https://www.github.com/googleapis/java-websecurityscanner/compare/v1.0.10...v1.1.0) (2021-02-16) + + +### Features + +* generate sample code in the Java microgenerator ([#360](https://www.github.com/googleapis/java-websecurityscanner/issues/360)) ([61ac100](https://www.github.com/googleapis/java-websecurityscanner/commit/61ac100f8f8ce7ab8c30bf0450dc7903e9bdb38b)) + ### [1.0.10](https://www.github.com/googleapis/java-websecurityscanner/compare/v1.0.9...v1.0.10) (2021-01-14) diff --git a/google-cloud-websecurityscanner-bom/pom.xml b/google-cloud-websecurityscanner-bom/pom.xml index e90dfe73..c9ac8292 100644 --- a/google-cloud-websecurityscanner-bom/pom.xml +++ b/google-cloud-websecurityscanner-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner-bom - 1.0.11-SNAPSHOT + 1.1.0 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.84.11-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.84.11-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 1.0.11-SNAPSHOT + 1.1.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.84.11-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.84.11-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 1.0.11-SNAPSHOT + 1.1.0 com.google.cloud google-cloud-websecurityscanner - 1.0.11-SNAPSHOT + 1.1.0
diff --git a/google-cloud-websecurityscanner/pom.xml b/google-cloud-websecurityscanner/pom.xml index 1315a425..c0176299 100644 --- a/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-websecurityscanner/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner - 1.0.11-SNAPSHOT + 1.1.0 jar Google Cloud Web Security Scanner https://github.com/googleapis/java-websecurityscanner @@ -11,7 +11,7 @@ com.google.cloud google-cloud-websecurityscanner-parent - 1.0.11-SNAPSHOT + 1.1.0 google-cloud-websecurityscanner diff --git a/grpc-google-cloud-websecurityscanner-v1/pom.xml b/grpc-google-cloud-websecurityscanner-v1/pom.xml index 96ded2de..7cfc9649 100644 --- a/grpc-google-cloud-websecurityscanner-v1/pom.xml +++ b/grpc-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 1.0.11-SNAPSHOT + 1.1.0 grpc-google-cloud-websecurityscanner-v1 GRPC library for grpc-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 1.0.11-SNAPSHOT + 1.1.0 diff --git a/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index ea63bd63..2698c82f 100644 --- a/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.84.11-SNAPSHOT + 0.85.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 1.0.11-SNAPSHOT + 1.1.0 diff --git a/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/grpc-google-cloud-websecurityscanner-v1beta/pom.xml index 736cc3fb..bc8b30ea 100644 --- a/grpc-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/grpc-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.84.11-SNAPSHOT + 0.85.0 grpc-google-cloud-websecurityscanner-v1beta GRPC library for grpc-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 1.0.11-SNAPSHOT + 1.1.0 diff --git a/pom.xml b/pom.xml index 39570015..cdc7e174 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-websecurityscanner-parent pom - 1.0.11-SNAPSHOT + 1.1.0 Google Cloud Web Security Scanner Parent https://github.com/googleapis/java-websecurityscanner @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.84.11-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.84.11-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 1.0.11-SNAPSHOT + 1.1.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.84.11-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.84.11-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 1.0.11-SNAPSHOT + 1.1.0 com.google.cloud google-cloud-websecurityscanner - 1.0.11-SNAPSHOT + 1.1.0 diff --git a/proto-google-cloud-websecurityscanner-v1/pom.xml b/proto-google-cloud-websecurityscanner-v1/pom.xml index 3c472a5e..6a633daf 100644 --- a/proto-google-cloud-websecurityscanner-v1/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 1.0.11-SNAPSHOT + 1.1.0 proto-google-cloud-websecurityscanner-v1 PROTO library for proto-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 1.0.11-SNAPSHOT + 1.1.0 diff --git a/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index 559c1fe7..5850fb6e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.84.11-SNAPSHOT + 0.85.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 1.0.11-SNAPSHOT + 1.1.0 diff --git a/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/proto-google-cloud-websecurityscanner-v1beta/pom.xml index 3a63a6ae..c01feafe 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.84.11-SNAPSHOT + 0.85.0 proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 1.0.11-SNAPSHOT + 1.1.0 diff --git a/versions.txt b/versions.txt index 4322bcf7..754b61c9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-websecurityscanner-v1alpha:0.84.10:0.84.11-SNAPSHOT -proto-google-cloud-websecurityscanner-v1beta:0.84.10:0.84.11-SNAPSHOT -proto-google-cloud-websecurityscanner-v1:1.0.10:1.0.11-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1alpha:0.84.10:0.84.11-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1beta:0.84.10:0.84.11-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1:1.0.10:1.0.11-SNAPSHOT -google-cloud-websecurityscanner:1.0.10:1.0.11-SNAPSHOT \ No newline at end of file +proto-google-cloud-websecurityscanner-v1alpha:0.85.0:0.85.0 +proto-google-cloud-websecurityscanner-v1beta:0.85.0:0.85.0 +proto-google-cloud-websecurityscanner-v1:1.1.0:1.1.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.85.0:0.85.0 +grpc-google-cloud-websecurityscanner-v1beta:0.85.0:0.85.0 +grpc-google-cloud-websecurityscanner-v1:1.1.0:1.1.0 +google-cloud-websecurityscanner:1.1.0:1.1.0 \ No newline at end of file