diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 6bf3e92e7..625929230 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:b2e8f445ca0e605d4bbefbfdbdf7335692d75cf1647af62243828dcc0ea4e690
-# created: 2022-07-14T21:08:10.768472192Z
+ digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 30fdb7b9c..db2d8ad17 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -8,3 +8,6 @@
# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/ @googleapis/yoshi-java
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ea9666a42..116568de7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,29 @@
# Changelog
+## [2.10.0](https://github.com/googleapis/java-securitycenter/compare/v2.9.0...v2.10.0) (2022-09-16)
+
+
+### Features
+
+* Adding database access information, such as queries field to a finding. A database may be a sub-resource of an instance (as in the case of CloudSQL instances or Cloud Spanner instances), or the database instance itself ([#902](https://github.com/googleapis/java-securitycenter/issues/902)) ([a5848b2](https://github.com/googleapis/java-securitycenter/commit/a5848b27a05732f43aa50198f8cc180442943260))
+* Adding uris to indicator of compromise (IOC) field ([#900](https://github.com/googleapis/java-securitycenter/issues/900)) ([ecf5a85](https://github.com/googleapis/java-securitycenter/commit/ecf5a857d487010ddba073b48e2cadb9e87167c5))
+* ServiceAccountKeyName, serviceAccountDelegationInfo, and principalSubject attributes added to the existing access attribute. These new attributes provide additional context about the principals that are associated with the finding ([#905](https://github.com/googleapis/java-securitycenter/issues/905)) ([d8795ac](https://github.com/googleapis/java-securitycenter/commit/d8795ac0b6e0d16ba4b50d69a72ba4908e6a6ce9))
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-bigquery to v2.14.6 ([#891](https://github.com/googleapis/java-securitycenter/issues/891)) ([78edca7](https://github.com/googleapis/java-securitycenter/commit/78edca7862a86dee1cd720ec39ad2af4c640e6c2))
+* Update dependency com.google.cloud:google-cloud-bigquery to v2.14.7 ([#903](https://github.com/googleapis/java-securitycenter/issues/903)) ([7d7bf9e](https://github.com/googleapis/java-securitycenter/commit/7d7bf9ea1cfc72dd1baefc5e8b5194852a53ef52))
+* Update dependency com.google.cloud:google-cloud-bigquery to v2.15.0 ([#906](https://github.com/googleapis/java-securitycenter/issues/906)) ([d427911](https://github.com/googleapis/java-securitycenter/commit/d4279118a242021eac86d859562d735149dd37f9))
+* Update dependency com.google.cloud:google-cloud-bigquery to v2.16.0 ([#912](https://github.com/googleapis/java-securitycenter/issues/912)) ([88a2980](https://github.com/googleapis/java-securitycenter/commit/88a298061fb73e4572e65c243985e73aea198cfa))
+* Update dependency com.google.cloud:google-cloud-pubsub to v1.120.11 ([#890](https://github.com/googleapis/java-securitycenter/issues/890)) ([b04ae65](https://github.com/googleapis/java-securitycenter/commit/b04ae652fb26e3c4382d85627b98306368f40922))
+* Update dependency com.google.cloud:google-cloud-pubsub to v1.120.12 ([#899](https://github.com/googleapis/java-securitycenter/issues/899)) ([53c1ffb](https://github.com/googleapis/java-securitycenter/commit/53c1ffb3099b9b078234657e5440152efd98d110))
+* Update dependency com.google.cloud:google-cloud-pubsub to v1.120.13 ([#904](https://github.com/googleapis/java-securitycenter/issues/904)) ([1846dd5](https://github.com/googleapis/java-securitycenter/commit/1846dd5d56570f629df4087f12223ca111095a5f))
+* Update dependency com.google.cloud:google-cloud-pubsub to v1.120.14 ([#911](https://github.com/googleapis/java-securitycenter/issues/911)) ([64f530b](https://github.com/googleapis/java-securitycenter/commit/64f530b720edcd2137f046b9c0bb4f2c3d74e82c))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#909](https://github.com/googleapis/java-securitycenter/issues/909)) ([ea2ba2a](https://github.com/googleapis/java-securitycenter/commit/ea2ba2a15b89cabbb59eedc4361473d07f24e6bf))
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#916](https://github.com/googleapis/java-securitycenter/issues/916)) ([c51e189](https://github.com/googleapis/java-securitycenter/commit/c51e1896d275444cbd3136fa832fa851f7ca2886))
+* Update dependency com.google.protobuf:protobuf-java-util to v3.21.5 ([#894](https://github.com/googleapis/java-securitycenter/issues/894)) ([1cbbdde](https://github.com/googleapis/java-securitycenter/commit/1cbbdde1ed2cca48522ae6e1704c6a7839f9d334))
+
## [2.9.0](https://github.com/googleapis/java-securitycenter/compare/v2.8.0...v2.9.0) (2022-08-06)
diff --git a/README.md b/README.md
index 38b6ead55..bd08a2ea4 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloudlibraries-bom
- 26.0.0
+ 26.1.1pomimport
@@ -30,7 +30,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloudgoogle-cloud-securitycenter
- 2.8.0
+ 2.9.0
@@ -52,7 +52,7 @@ If you are using Maven without BOM, add this to your dependencies:
com.google.cloudgoogle-cloud-securitycenter
- 2.8.0
+ 2.9.0
```
@@ -60,20 +60,20 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
-implementation platform('com.google.cloud:libraries-bom:26.0.0')
+implementation platform('com.google.cloud:libraries-bom:26.1.1')
implementation 'com.google.cloud:google-cloud-securitycenter'
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-securitycenter:2.8.0'
+implementation 'com.google.cloud:google-cloud-securitycenter:2.9.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.8.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.9.0"
```
## Authentication
diff --git a/google-cloud-securitycenter-bom/pom.xml b/google-cloud-securitycenter-bom/pom.xml
index c1760dd68..dfb056d43 100644
--- a/google-cloud-securitycenter-bom/pom.xml
+++ b/google-cloud-securitycenter-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0com.google.cloudgoogle-cloud-securitycenter-bom
- 2.9.0
+ 2.10.0pomcom.google.cloud
@@ -53,37 +53,37 @@
com.google.cloudgoogle-cloud-securitycenter
- 2.9.0
+ 2.10.0com.google.api.grpcgrpc-google-cloud-securitycenter-v1
- 2.9.0
+ 2.10.0com.google.api.grpcgrpc-google-cloud-securitycenter-v1beta1
- 0.104.0
+ 0.105.0com.google.api.grpcgrpc-google-cloud-securitycenter-v1p1beta1
- 0.104.0
+ 0.105.0com.google.api.grpcproto-google-cloud-securitycenter-v1
- 2.9.0
+ 2.10.0com.google.api.grpcproto-google-cloud-securitycenter-v1beta1
- 0.104.0
+ 0.105.0com.google.api.grpcproto-google-cloud-securitycenter-v1p1beta1
- 0.104.0
+ 0.105.0
diff --git a/google-cloud-securitycenter/pom.xml b/google-cloud-securitycenter/pom.xml
index fee665973..bf045febb 100644
--- a/google-cloud-securitycenter/pom.xml
+++ b/google-cloud-securitycenter/pom.xml
@@ -3,7 +3,7 @@
4.0.0com.google.cloudgoogle-cloud-securitycenter
- 2.9.0
+ 2.10.0jarGoogle Cloud Security Command Centerhttps://github.com/googleapis/java-securitycenter
@@ -11,7 +11,7 @@
com.google.cloudgoogle-cloud-securitycenter-parent
- 2.9.0
+ 2.10.0google-cloud-securitycenter
diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java
index aba5d6b99..6d7cbbfbf 100644
--- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java
+++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java
@@ -54,8 +54,11 @@
* calls that map to API methods. Sample code to get started:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* Source source = Source.newBuilder().build();
@@ -92,8 +95,11 @@
*
To customize credentials:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SecurityCenterSettings securityCenterSettings =
* SecurityCenterSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -104,8 +110,11 @@
*
To customize the endpoint:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SecurityCenterSettings securityCenterSettings =
* SecurityCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
* SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
@@ -115,8 +124,11 @@
* the wire:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SecurityCenterSettings securityCenterSettings =
* SecurityCenterSettings.newBuilder()
* .setTransportChannelProvider(
@@ -211,8 +223,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName parent = FolderName.of("[FOLDER]");
* BulkMuteFindingsResponse response = securityCenterClient.bulkMuteFindingsAsync(parent).get();
@@ -241,8 +256,11 @@ public final OperationFuture bulkMuteFindingsAs
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = FolderName.of("[FOLDER]").toString();
* BulkMuteFindingsResponse response = securityCenterClient.bulkMuteFindingsAsync(parent).get();
@@ -269,8 +287,11 @@ public final OperationFuture bulkMuteFindingsAs
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* BulkMuteFindingsRequest request =
* BulkMuteFindingsRequest.newBuilder()
@@ -299,8 +320,11 @@ public final OperationFuture bulkMuteFindingsAs
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* BulkMuteFindingsRequest request =
* BulkMuteFindingsRequest.newBuilder()
@@ -329,8 +353,11 @@ public final OperationFuture bulkMuteFindingsAs
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* BulkMuteFindingsRequest request =
* BulkMuteFindingsRequest.newBuilder()
@@ -356,8 +383,11 @@ public final UnaryCallable bulkMuteFindingsC
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* Source source = Source.newBuilder().build();
@@ -387,8 +417,11 @@ public final Source createSource(OrganizationName parent, Source source) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* Source source = Source.newBuilder().build();
@@ -415,8 +448,11 @@ public final Source createSource(String parent, Source source) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateSourceRequest request =
* CreateSourceRequest.newBuilder()
@@ -441,8 +477,11 @@ public final Source createSource(CreateSourceRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateSourceRequest request =
* CreateSourceRequest.newBuilder()
@@ -466,8 +505,11 @@ public final UnaryCallable createSourceCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* String findingId = "findingId439150212";
@@ -502,8 +544,11 @@ public final Finding createFinding(SourceName parent, String findingId, Finding
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
* String findingId = "findingId439150212";
@@ -538,8 +583,11 @@ public final Finding createFinding(String parent, String findingId, Finding find
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateFindingRequest request =
* CreateFindingRequest.newBuilder()
@@ -566,8 +614,11 @@ public final Finding createFinding(CreateFindingRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateFindingRequest request =
* CreateFindingRequest.newBuilder()
@@ -593,8 +644,11 @@ public final UnaryCallable createFindingCallable(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* FolderName parent = FolderName.of("[FOLDER]");
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
@@ -623,8 +677,11 @@ public final MuteConfig createMuteConfig(FolderName parent, MuteConfig muteConfi
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
@@ -653,8 +710,11 @@ public final MuteConfig createMuteConfig(OrganizationName parent, MuteConfig mut
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
@@ -683,8 +743,11 @@ public final MuteConfig createMuteConfig(ProjectName parent, MuteConfig muteConf
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
@@ -710,8 +773,11 @@ public final MuteConfig createMuteConfig(String parent, MuteConfig muteConfig) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* FolderName parent = FolderName.of("[FOLDER]");
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
@@ -746,8 +812,11 @@ public final MuteConfig createMuteConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
@@ -782,8 +851,11 @@ public final MuteConfig createMuteConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
@@ -818,8 +890,11 @@ public final MuteConfig createMuteConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
@@ -854,8 +929,11 @@ public final MuteConfig createMuteConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateMuteConfigRequest request =
* CreateMuteConfigRequest.newBuilder()
@@ -881,8 +959,11 @@ public final MuteConfig createMuteConfig(CreateMuteConfigRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateMuteConfigRequest request =
* CreateMuteConfigRequest.newBuilder()
@@ -908,8 +989,11 @@ public final UnaryCallable createMuteConfig
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
@@ -941,8 +1025,11 @@ public final NotificationConfig createNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
@@ -974,8 +1061,11 @@ public final NotificationConfig createNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* String configId = "configId-580140035";
@@ -1012,8 +1102,11 @@ public final NotificationConfig createNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* String configId = "configId-580140035";
@@ -1050,8 +1143,11 @@ public final NotificationConfig createNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateNotificationConfigRequest request =
* CreateNotificationConfigRequest.newBuilder()
@@ -1078,8 +1174,11 @@ public final NotificationConfig createNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateNotificationConfigRequest request =
* CreateNotificationConfigRequest.newBuilder()
@@ -1106,8 +1205,11 @@ public final NotificationConfig createNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* MuteConfigName name =
* MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]");
@@ -1133,8 +1235,11 @@ public final void deleteMuteConfig(MuteConfigName name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name =
* MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]").toString();
@@ -1159,8 +1264,11 @@ public final void deleteMuteConfig(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* DeleteMuteConfigRequest request =
* DeleteMuteConfigRequest.newBuilder()
@@ -1186,8 +1294,11 @@ public final void deleteMuteConfig(DeleteMuteConfigRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* DeleteMuteConfigRequest request =
* DeleteMuteConfigRequest.newBuilder()
@@ -1212,8 +1323,11 @@ public final UnaryCallable deleteMuteConfigCalla
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* NotificationConfigName name =
* NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
@@ -1240,8 +1354,11 @@ public final void deleteNotificationConfig(NotificationConfigName name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name = NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString();
* securityCenterClient.deleteNotificationConfig(name);
@@ -1265,8 +1382,11 @@ public final void deleteNotificationConfig(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* DeleteNotificationConfigRequest request =
* DeleteNotificationConfigRequest.newBuilder()
@@ -1291,8 +1411,11 @@ public final void deleteNotificationConfig(DeleteNotificationConfigRequest reque
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* DeleteNotificationConfigRequest request =
* DeleteNotificationConfigRequest.newBuilder()
@@ -1318,8 +1441,11 @@ public final void deleteNotificationConfig(DeleteNotificationConfigRequest reque
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* BigQueryExportName name =
* BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]");
@@ -1348,8 +1474,11 @@ public final BigQueryExport getBigQueryExport(BigQueryExportName name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name =
* BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]").toString();
@@ -1375,8 +1504,11 @@ public final BigQueryExport getBigQueryExport(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetBigQueryExportRequest request =
* GetBigQueryExportRequest.newBuilder()
@@ -1402,8 +1534,11 @@ public final BigQueryExport getBigQueryExport(GetBigQueryExportRequest request)
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetBigQueryExportRequest request =
* GetBigQueryExportRequest.newBuilder()
@@ -1429,8 +1564,11 @@ public final UnaryCallable getBigQuery
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* Policy response = securityCenterClient.getIamPolicy(resource);
@@ -1456,8 +1594,11 @@ public final Policy getIamPolicy(ResourceName resource) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String resource = FolderName.of("[FOLDER]").toString();
* Policy response = securityCenterClient.getIamPolicy(resource);
@@ -1480,8 +1621,11 @@ public final Policy getIamPolicy(String resource) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -1507,8 +1651,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -1533,8 +1680,11 @@ public final UnaryCallable getIamPolicyCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* MuteConfigName name =
* MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]");
@@ -1560,8 +1710,11 @@ public final MuteConfig getMuteConfig(MuteConfigName name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name =
* MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]").toString();
@@ -1586,8 +1739,11 @@ public final MuteConfig getMuteConfig(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetMuteConfigRequest request =
* GetMuteConfigRequest.newBuilder()
@@ -1613,8 +1769,11 @@ public final MuteConfig getMuteConfig(GetMuteConfigRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetMuteConfigRequest request =
* GetMuteConfigRequest.newBuilder()
@@ -1640,8 +1799,11 @@ public final UnaryCallable getMuteConfigCallab
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* NotificationConfigName name =
* NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
@@ -1668,8 +1830,11 @@ public final NotificationConfig getNotificationConfig(NotificationConfigName nam
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name = NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString();
* NotificationConfig response = securityCenterClient.getNotificationConfig(name);
@@ -1693,8 +1858,11 @@ public final NotificationConfig getNotificationConfig(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetNotificationConfigRequest request =
* GetNotificationConfigRequest.newBuilder()
@@ -1719,8 +1887,11 @@ public final NotificationConfig getNotificationConfig(GetNotificationConfigReque
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetNotificationConfigRequest request =
* GetNotificationConfigRequest.newBuilder()
@@ -1746,8 +1917,11 @@ public final NotificationConfig getNotificationConfig(GetNotificationConfigReque
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]");
* OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
@@ -1773,8 +1947,11 @@ public final OrganizationSettings getOrganizationSettings(OrganizationSettingsNa
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name = OrganizationSettingsName.of("[ORGANIZATION]").toString();
* OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
@@ -1798,8 +1975,11 @@ public final OrganizationSettings getOrganizationSettings(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetOrganizationSettingsRequest request =
* GetOrganizationSettingsRequest.newBuilder()
@@ -1824,8 +2004,11 @@ public final OrganizationSettings getOrganizationSettings(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetOrganizationSettingsRequest request =
* GetOrganizationSettingsRequest.newBuilder()
@@ -1850,8 +2033,11 @@ public final OrganizationSettings getOrganizationSettings(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* Source response = securityCenterClient.getSource(name);
@@ -1875,8 +2061,11 @@ public final Source getSource(SourceName name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
* Source response = securityCenterClient.getSource(name);
@@ -1899,8 +2088,11 @@ public final Source getSource(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetSourceRequest request =
* GetSourceRequest.newBuilder()
@@ -1924,8 +2116,11 @@ public final Source getSource(GetSourceRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetSourceRequest request =
* GetSourceRequest.newBuilder()
@@ -1948,8 +2143,11 @@ public final UnaryCallable getSourceCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupAssetsRequest request =
* GroupAssetsRequest.newBuilder()
@@ -1981,8 +2179,11 @@ public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupAssetsRequest request =
* GroupAssetsRequest.newBuilder()
@@ -2015,8 +2216,11 @@ public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupAssetsRequest request =
* GroupAssetsRequest.newBuilder()
@@ -2058,8 +2262,11 @@ public final UnaryCallable groupAssetsC
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* String groupBy = "groupBy293428022";
@@ -2113,8 +2320,11 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
* String groupBy = "groupBy293428022";
@@ -2165,8 +2375,11 @@ public final GroupFindingsPagedResponse groupFindings(String parent, String grou
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupFindingsRequest request =
* GroupFindingsRequest.newBuilder()
@@ -2203,8 +2416,11 @@ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest reque
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupFindingsRequest request =
* GroupFindingsRequest.newBuilder()
@@ -2242,8 +2458,11 @@ public final GroupFindingsPagedResponse groupFindings(GroupFindingsRequest reque
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupFindingsRequest request =
* GroupFindingsRequest.newBuilder()
@@ -2282,8 +2501,11 @@ public final UnaryCallable groupFin
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListAssetsRequest request =
* ListAssetsRequest.newBuilder()
@@ -2317,8 +2539,11 @@ public final ListAssetsPagedResponse listAssets(ListAssetsRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListAssetsRequest request =
* ListAssetsRequest.newBuilder()
@@ -2351,8 +2576,11 @@ public final UnaryCallable listAsset
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListAssetsRequest request =
* ListAssetsRequest.newBuilder()
@@ -2394,8 +2622,11 @@ public final UnaryCallable listAssetsCall
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListFindingsRequest request =
* ListFindingsRequest.newBuilder()
@@ -2433,8 +2664,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListFindingsRequest request =
* ListFindingsRequest.newBuilder()
@@ -2472,8 +2706,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListFindingsRequest request =
* ListFindingsRequest.newBuilder()
@@ -2514,8 +2751,11 @@ public final UnaryCallable listFindin
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* FolderName parent = FolderName.of("[FOLDER]");
* for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
@@ -2543,8 +2783,11 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(FolderName parent) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
@@ -2572,8 +2815,11 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationName paren
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
@@ -2601,8 +2847,11 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(ProjectName parent) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
@@ -2627,8 +2876,11 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(String parent) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListMuteConfigsRequest request =
* ListMuteConfigsRequest.newBuilder()
@@ -2656,8 +2908,11 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(ListMuteConfigsRequest
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListMuteConfigsRequest request =
* ListMuteConfigsRequest.newBuilder()
@@ -2686,8 +2941,11 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(ListMuteConfigsRequest
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListMuteConfigsRequest request =
* ListMuteConfigsRequest.newBuilder()
@@ -2723,8 +2981,11 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(ListMuteConfigsRequest
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* for (NotificationConfig element :
@@ -2754,8 +3015,11 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* for (NotificationConfig element :
@@ -2782,8 +3046,11 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(String
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListNotificationConfigsRequest request =
* ListNotificationConfigsRequest.newBuilder()
@@ -2813,8 +3080,11 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListNotificationConfigsRequest request =
* ListNotificationConfigsRequest.newBuilder()
@@ -2843,8 +3113,11 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListNotificationConfigsRequest request =
* ListNotificationConfigsRequest.newBuilder()
@@ -2880,8 +3153,11 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* FolderName parent = FolderName.of("[FOLDER]");
* for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
@@ -2909,8 +3185,11 @@ public final ListSourcesPagedResponse listSources(FolderName parent) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
@@ -2938,8 +3217,11 @@ public final ListSourcesPagedResponse listSources(OrganizationName parent) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
@@ -2967,8 +3249,11 @@ public final ListSourcesPagedResponse listSources(ProjectName parent) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
@@ -2993,8 +3278,11 @@ public final ListSourcesPagedResponse listSources(String parent) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListSourcesRequest request =
* ListSourcesRequest.newBuilder()
@@ -3022,8 +3310,11 @@ public final ListSourcesPagedResponse listSources(ListSourcesRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListSourcesRequest request =
* ListSourcesRequest.newBuilder()
@@ -3052,8 +3343,11 @@ public final ListSourcesPagedResponse listSources(ListSourcesRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListSourcesRequest request =
* ListSourcesRequest.newBuilder()
@@ -3090,8 +3384,11 @@ public final UnaryCallable listSourcesC
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* RunAssetDiscoveryResponse response =
@@ -3122,8 +3419,11 @@ public final OperationFuture runAssetDiscovery
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* RunAssetDiscoveryResponse response =
@@ -3152,8 +3452,11 @@ public final OperationFuture runAssetDiscovery
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* RunAssetDiscoveryRequest request =
* RunAssetDiscoveryRequest.newBuilder()
@@ -3182,8 +3485,11 @@ public final OperationFuture runAssetDiscovery
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* RunAssetDiscoveryRequest request =
* RunAssetDiscoveryRequest.newBuilder()
@@ -3211,8 +3517,11 @@ public final OperationFuture runAssetDiscovery
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* RunAssetDiscoveryRequest request =
* RunAssetDiscoveryRequest.newBuilder()
@@ -3236,8 +3545,11 @@ public final UnaryCallable runAssetDiscover
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* FindingName name =
* FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
@@ -3271,8 +3583,11 @@ public final Finding setFindingState(FindingName name, Finding.State state, Time
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name =
* FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]")
@@ -3307,8 +3622,11 @@ public final Finding setFindingState(String name, Finding.State state, Timestamp
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetFindingStateRequest request =
* SetFindingStateRequest.newBuilder()
@@ -3336,8 +3654,11 @@ public final Finding setFindingState(SetFindingStateRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetFindingStateRequest request =
* SetFindingStateRequest.newBuilder()
@@ -3365,8 +3686,11 @@ public final UnaryCallable setFindingStateCalla
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* FindingName name =
* FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
@@ -3399,8 +3723,11 @@ public final Finding setMute(FindingName name, Finding.Mute mute) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name =
* FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]")
@@ -3430,8 +3757,11 @@ public final Finding setMute(String name, Finding.Mute mute) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetMuteRequest request =
* SetMuteRequest.newBuilder()
@@ -3458,8 +3788,11 @@ public final Finding setMute(SetMuteRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetMuteRequest request =
* SetMuteRequest.newBuilder()
@@ -3485,8 +3818,11 @@ public final UnaryCallable setMuteCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* Policy policy = Policy.newBuilder().build();
@@ -3517,8 +3853,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String resource = FolderName.of("[FOLDER]").toString();
* Policy policy = Policy.newBuilder().build();
@@ -3546,8 +3885,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
@@ -3574,8 +3916,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
@@ -3601,8 +3946,11 @@ public final UnaryCallable setIamPolicyCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
* List permissions = new ArrayList<>();
@@ -3635,8 +3983,11 @@ public final TestIamPermissionsResponse testIamPermissions(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String resource = FolderName.of("[FOLDER]").toString();
* List permissions = new ArrayList<>();
@@ -3669,8 +4020,11 @@ public final TestIamPermissionsResponse testIamPermissions(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
@@ -3696,8 +4050,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
@@ -3724,8 +4081,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ExternalSystem externalSystem = ExternalSystem.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -3756,8 +4116,11 @@ public final ExternalSystem updateExternalSystem(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateExternalSystemRequest request =
* UpdateExternalSystemRequest.newBuilder()
@@ -3782,8 +4145,11 @@ public final ExternalSystem updateExternalSystem(UpdateExternalSystemRequest req
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateExternalSystemRequest request =
* UpdateExternalSystemRequest.newBuilder()
@@ -3810,8 +4176,11 @@ public final ExternalSystem updateExternalSystem(UpdateExternalSystemRequest req
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* Finding finding = Finding.newBuilder().build();
* Finding response = securityCenterClient.updateFinding(finding);
@@ -3837,8 +4206,11 @@ public final Finding updateFinding(Finding finding) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateFindingRequest request =
* UpdateFindingRequest.newBuilder()
@@ -3864,8 +4236,11 @@ public final Finding updateFinding(UpdateFindingRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateFindingRequest request =
* UpdateFindingRequest.newBuilder()
@@ -3889,8 +4264,11 @@ public final UnaryCallable updateFindingCallable(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* MuteConfig muteConfig = MuteConfig.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -3919,8 +4297,11 @@ public final MuteConfig updateMuteConfig(MuteConfig muteConfig, FieldMask update
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateMuteConfigRequest request =
* UpdateMuteConfigRequest.newBuilder()
@@ -3945,8 +4326,11 @@ public final MuteConfig updateMuteConfig(UpdateMuteConfigRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateMuteConfigRequest request =
* UpdateMuteConfigRequest.newBuilder()
@@ -3972,8 +4356,11 @@ public final UnaryCallable updateMuteConfig
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
* NotificationConfig response =
@@ -4000,8 +4387,11 @@ public final NotificationConfig updateNotificationConfig(NotificationConfig noti
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -4033,8 +4423,11 @@ public final NotificationConfig updateNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateNotificationConfigRequest request =
* UpdateNotificationConfigRequest.newBuilder()
@@ -4061,8 +4454,11 @@ public final NotificationConfig updateNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateNotificationConfigRequest request =
* UpdateNotificationConfigRequest.newBuilder()
@@ -4088,8 +4484,11 @@ public final NotificationConfig updateNotificationConfig(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build();
* OrganizationSettings response =
@@ -4116,8 +4515,11 @@ public final OrganizationSettings updateOrganizationSettings(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateOrganizationSettingsRequest request =
* UpdateOrganizationSettingsRequest.newBuilder()
@@ -4143,8 +4545,11 @@ public final OrganizationSettings updateOrganizationSettings(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateOrganizationSettingsRequest request =
* UpdateOrganizationSettingsRequest.newBuilder()
@@ -4170,8 +4575,11 @@ public final OrganizationSettings updateOrganizationSettings(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* Source source = Source.newBuilder().build();
* Source response = securityCenterClient.updateSource(source);
@@ -4193,8 +4601,11 @@ public final Source updateSource(Source source) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateSourceRequest request =
* UpdateSourceRequest.newBuilder()
@@ -4219,8 +4630,11 @@ public final Source updateSource(UpdateSourceRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateSourceRequest request =
* UpdateSourceRequest.newBuilder()
@@ -4244,8 +4658,11 @@ public final UnaryCallable updateSourceCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SecurityMarks securityMarks = SecurityMarks.newBuilder().build();
* SecurityMarks response = securityCenterClient.updateSecurityMarks(securityMarks);
@@ -4268,8 +4685,11 @@ public final SecurityMarks updateSecurityMarks(SecurityMarks securityMarks) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateSecurityMarksRequest request =
* UpdateSecurityMarksRequest.newBuilder()
@@ -4295,8 +4715,11 @@ public final SecurityMarks updateSecurityMarks(UpdateSecurityMarksRequest reques
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateSecurityMarksRequest request =
* UpdateSecurityMarksRequest.newBuilder()
@@ -4323,8 +4746,11 @@ public final SecurityMarks updateSecurityMarks(UpdateSecurityMarksRequest reques
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* FolderName parent = FolderName.of("[FOLDER]");
* BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
@@ -4360,8 +4786,11 @@ public final BigQueryExport createBigQueryExport(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
@@ -4397,8 +4826,11 @@ public final BigQueryExport createBigQueryExport(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
@@ -4434,8 +4866,11 @@ public final BigQueryExport createBigQueryExport(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
@@ -4471,8 +4906,11 @@ public final BigQueryExport createBigQueryExport(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateBigQueryExportRequest request =
* CreateBigQueryExportRequest.newBuilder()
@@ -4498,8 +4936,11 @@ public final BigQueryExport createBigQueryExport(CreateBigQueryExportRequest req
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateBigQueryExportRequest request =
* CreateBigQueryExportRequest.newBuilder()
@@ -4526,8 +4967,11 @@ public final BigQueryExport createBigQueryExport(CreateBigQueryExportRequest req
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* BigQueryExportName name =
* BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]");
@@ -4556,8 +5000,11 @@ public final void deleteBigQueryExport(BigQueryExportName name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name =
* BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]").toString();
@@ -4584,8 +5031,11 @@ public final void deleteBigQueryExport(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* DeleteBigQueryExportRequest request =
* DeleteBigQueryExportRequest.newBuilder()
@@ -4611,8 +5061,11 @@ public final void deleteBigQueryExport(DeleteBigQueryExportRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* DeleteBigQueryExportRequest request =
* DeleteBigQueryExportRequest.newBuilder()
@@ -4638,8 +5091,11 @@ public final UnaryCallable deleteBigQueryExp
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -4670,8 +5126,11 @@ public final BigQueryExport updateBigQueryExport(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateBigQueryExportRequest request =
* UpdateBigQueryExportRequest.newBuilder()
@@ -4696,8 +5155,11 @@ public final BigQueryExport updateBigQueryExport(UpdateBigQueryExportRequest req
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* UpdateBigQueryExportRequest request =
* UpdateBigQueryExportRequest.newBuilder()
@@ -4726,8 +5188,11 @@ public final BigQueryExport updateBigQueryExport(UpdateBigQueryExportRequest req
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* FolderName parent = FolderName.of("[FOLDER]");
* for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
@@ -4758,8 +5223,11 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(FolderName par
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
@@ -4790,8 +5258,11 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(OrganizationNa
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
@@ -4822,8 +5293,11 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(ProjectName pa
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
@@ -4852,8 +5326,11 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(String parent)
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListBigQueryExportsRequest request =
* ListBigQueryExportsRequest.newBuilder()
@@ -4886,8 +5363,11 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListBigQueryExportsRequest request =
* ListBigQueryExportsRequest.newBuilder()
@@ -4919,8 +5399,11 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ListBigQueryExportsRequest request =
* ListBigQueryExportsRequest.newBuilder()
diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java
index 380ad1d6d..e42ef7716 100644
--- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java
+++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java
@@ -69,17 +69,17 @@
*
For example, to set the total timeout of createSource to 30 seconds:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SecurityCenterSettings.Builder securityCenterSettingsBuilder =
* SecurityCenterSettings.newBuilder();
* securityCenterSettingsBuilder
* .createSourceSettings()
* .setRetrySettings(
- * securityCenterSettingsBuilder
- * .createSourceSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * securityCenterSettingsBuilder.createSourceSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build();
diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java
index dae109d82..ebc78a4b2 100644
--- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java
+++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java
@@ -26,8 +26,11 @@
*
Sample for SecurityCenterClient:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* Source source = Source.newBuilder().build();
diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java
index e1cb0e6cb..b28fb3c2f 100644
--- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java
+++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java
@@ -153,7 +153,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearParent().build()))
+ .toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -191,7 +191,8 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("source", request.getSource()))
+ ProtoRestSerializer.create()
+ .toBody("source", request.getSource(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -227,7 +228,8 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("finding", request.getFinding()))
+ ProtoRestSerializer.create()
+ .toBody("finding", request.getFinding(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -268,7 +270,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("muteConfig", request.getMuteConfig()))
+ .toBody("muteConfig", request.getMuteConfig(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -306,7 +308,8 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("notificationConfig", request.getNotificationConfig()))
+ .toBody(
+ "notificationConfig", request.getNotificationConfig(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -448,7 +451,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearResource().build()))
+ .toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -623,7 +626,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearParent().build()))
+ .toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -662,7 +665,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearParent().build()))
+ .toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -898,7 +901,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearParent().build()))
+ .toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -940,7 +943,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearName().build()))
+ .toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -978,7 +981,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearName().build()))
+ .toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1014,7 +1017,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearResource().build()))
+ .toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1050,7 +1053,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearResource().build()))
+ .toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1094,7 +1097,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("externalSystem", request.getExternalSystem()))
+ .toBody("externalSystem", request.getExternalSystem(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1134,7 +1137,8 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("finding", request.getFinding()))
+ ProtoRestSerializer.create()
+ .toBody("finding", request.getFinding(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1175,7 +1179,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("muteConfig", request.getMuteConfig()))
+ .toBody("muteConfig", request.getMuteConfig(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1216,7 +1220,8 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("notificationConfig", request.getNotificationConfig()))
+ .toBody(
+ "notificationConfig", request.getNotificationConfig(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1258,7 +1263,9 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
request ->
ProtoRestSerializer.create()
.toBody(
- "organizationSettings", request.getOrganizationSettings()))
+ "organizationSettings",
+ request.getOrganizationSettings(),
+ false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1295,7 +1302,8 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("source", request.getSource()))
+ ProtoRestSerializer.create()
+ .toBody("source", request.getSource(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1341,7 +1349,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("securityMarks", request.getSecurityMarks()))
+ .toBody("securityMarks", request.getSecurityMarks(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1383,7 +1391,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("bigQueryExport", request.getBigQueryExport()))
+ .toBody("bigQueryExport", request.getBigQueryExport(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -1464,7 +1472,7 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("bigQueryExport", request.getBigQueryExport()))
+ .toBody("bigQueryExport", request.getBigQueryExport(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java
index ddb4873ae..4d1042fa4 100644
--- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java
+++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java
@@ -141,17 +141,17 @@
*
For example, to set the total timeout of createSource to 30 seconds:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SecurityCenterStubSettings.Builder securityCenterSettingsBuilder =
* SecurityCenterStubSettings.newBuilder();
* securityCenterSettingsBuilder
* .createSourceSettings()
* .setRetrySettings(
- * securityCenterSettingsBuilder
- * .createSourceSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * securityCenterSettingsBuilder.createSourceSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* SecurityCenterStubSettings securityCenterSettings = securityCenterSettingsBuilder.build();
diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java
index 5c6cac1d1..6028b757e 100644
--- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java
+++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java
@@ -53,8 +53,11 @@
* calls that map to API methods. Sample code to get started:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* Source source = Source.newBuilder().build();
@@ -91,8 +94,11 @@
*
To customize credentials:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SecurityCenterSettings securityCenterSettings =
* SecurityCenterSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -103,8 +109,11 @@
*
To customize the endpoint:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SecurityCenterSettings securityCenterSettings =
* SecurityCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
* SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
@@ -114,8 +123,11 @@
* the wire:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SecurityCenterSettings securityCenterSettings =
* SecurityCenterSettings.newBuilder()
* .setTransportChannelProvider(
@@ -209,8 +221,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
* Source source = Source.newBuilder().build();
@@ -240,8 +255,11 @@ public final Source createSource(OrganizationName parent, Source source) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = OrganizationName.of("[ORGANIZATION]").toString();
* Source source = Source.newBuilder().build();
@@ -268,8 +286,11 @@ public final Source createSource(String parent, Source source) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateSourceRequest request =
* CreateSourceRequest.newBuilder()
@@ -294,8 +315,11 @@ public final Source createSource(CreateSourceRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateSourceRequest request =
* CreateSourceRequest.newBuilder()
@@ -319,8 +343,11 @@ public final UnaryCallable createSourceCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* String findingId = "findingId439150212";
@@ -355,8 +382,11 @@ public final Finding createFinding(SourceName parent, String findingId, Finding
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String parent = SourceName.of("[ORGANIZATION]", "[SOURCE]").toString();
* String findingId = "findingId439150212";
@@ -391,8 +421,11 @@ public final Finding createFinding(String parent, String findingId, Finding find
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateFindingRequest request =
* CreateFindingRequest.newBuilder()
@@ -418,8 +451,11 @@ public final Finding createFinding(CreateFindingRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* CreateFindingRequest request =
* CreateFindingRequest.newBuilder()
@@ -444,8 +480,11 @@ public final UnaryCallable createFindingCallable(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* Policy response = securityCenterClient.getIamPolicy(resource);
@@ -471,8 +510,11 @@ public final Policy getIamPolicy(ResourceName resource) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String resource = OrganizationName.of("[ORGANIZATION]").toString();
* Policy response = securityCenterClient.getIamPolicy(resource);
@@ -495,8 +537,11 @@ public final Policy getIamPolicy(String resource) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -521,8 +566,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -546,8 +594,11 @@ public final UnaryCallable getIamPolicyCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]");
* OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
@@ -573,8 +624,11 @@ public final OrganizationSettings getOrganizationSettings(OrganizationSettingsNa
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name = OrganizationSettingsName.of("[ORGANIZATION]").toString();
* OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
@@ -598,8 +652,11 @@ public final OrganizationSettings getOrganizationSettings(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetOrganizationSettingsRequest request =
* GetOrganizationSettingsRequest.newBuilder()
@@ -624,8 +681,11 @@ public final OrganizationSettings getOrganizationSettings(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetOrganizationSettingsRequest request =
* GetOrganizationSettingsRequest.newBuilder()
@@ -650,8 +710,11 @@ public final OrganizationSettings getOrganizationSettings(
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* Source response = securityCenterClient.getSource(name);
@@ -675,8 +738,11 @@ public final Source getSource(SourceName name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String name = SourceName.of("[ORGANIZATION]", "[SOURCE]").toString();
* Source response = securityCenterClient.getSource(name);
@@ -699,8 +765,11 @@ public final Source getSource(String name) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetSourceRequest request =
* GetSourceRequest.newBuilder()
@@ -724,8 +793,11 @@ public final Source getSource(GetSourceRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetSourceRequest request =
* GetSourceRequest.newBuilder()
@@ -748,8 +820,11 @@ public final UnaryCallable getSourceCallable() {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupAssetsRequest request =
* GroupAssetsRequest.newBuilder()
@@ -781,8 +856,11 @@ public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupAssetsRequest request =
* GroupAssetsRequest.newBuilder()
@@ -815,8 +893,11 @@ public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) {
*
Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GroupAssetsRequest request =
* GroupAssetsRequest.newBuilder()
@@ -857,8 +938,11 @@ public final UnaryCallable groupAssetsC
*