diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java index aba5d6b99be0..6d7cbbfbfa74 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java +++ b/java-securitycenter/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 OperationFuturebulkMuteFindingsAs * 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 OperationFuturebulkMuteFindingsAs * 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 OperationFuturebulkMuteFindingsAs * 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 OperationFuturebulkMuteFindingsAs * 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 UnaryCallablebulkMuteFindingsC * 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 UnaryCallablecreateSourceCallable() { * 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 UnaryCallablecreateFindingCallable( * 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 UnaryCallablecreateMuteConfig * 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 UnaryCallabledeleteMuteConfigCalla * 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 UnaryCallablegetBigQuery * 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 UnaryCallablegetIamPolicyCallable() { * 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 UnaryCallablegetMuteConfigCallab * 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 UnaryCallablegetSourceCallable() { * 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 UnaryCallablegroupAssetsC * 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 UnaryCallablegroupFin * 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 UnaryCallablelistAsset * 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 UnaryCallablelistAssetsCall * 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 UnaryCallablelistFindin * 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 UnaryCallablelistSourcesC * 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 OperationFuturerunAssetDiscovery * 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 OperationFuturerunAssetDiscovery * 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 OperationFuturerunAssetDiscovery * 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 OperationFuturerunAssetDiscovery * 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 UnaryCallablerunAssetDiscover * 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 UnaryCallablesetFindingStateCalla * 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 UnaryCallablesetMuteCallable() { * 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 UnaryCallablesetIamPolicyCallable() { * 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]"); * Listpermissions = 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(); * Listpermissions = 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 UnaryCallableupdateFindingCallable( * 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 UnaryCallableupdateMuteConfig * 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 UnaryCallableupdateSourceCallable() { * 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 UnaryCallabledeleteBigQueryExp * 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/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java index 380ad1d6d421..e42ef771620b 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java +++ b/java-securitycenter/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/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java index dae109d826b8..ebc78a4b25ab 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java +++ b/java-securitycenter/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/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java index e1cb0e6cb020..b28fb3c2f8b7 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java +++ b/java-securitycenter/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.