From 4d0ad0a5021b91f1eb0a4361fca2c0828d8aba3a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 20:28:14 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#547) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../SecurityCenterSettingsServiceClient.java | 329 +++++++++++++----- ...SecurityCenterSettingsServiceSettings.java | 7 +- .../settings/v1beta1/package-info.java | 7 +- ...rityCenterSettingsServiceStubSettings.java | 7 +- 4 files changed, 250 insertions(+), 100 deletions(-) diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceClient.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceClient.java index 3ffa47ef6b33..9b66e723a7ff 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceClient.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceClient.java @@ -47,8 +47,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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ServiceAccountName name = ServiceAccountName.of("[ORGANIZATION]"); @@ -86,8 +89,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 * SecurityCenterSettingsServiceSettings securityCenterSettingsServiceSettings = * SecurityCenterSettingsServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -99,8 +105,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 * SecurityCenterSettingsServiceSettings securityCenterSettingsServiceSettings = * SecurityCenterSettingsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = @@ -178,8 +187,11 @@ public SecurityCenterSettingsServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ServiceAccountName name = ServiceAccountName.of("[ORGANIZATION]"); @@ -213,8 +225,11 @@ public final ServiceAccount getServiceAccount(ServiceAccountName 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * String name = ServiceAccountName.of("[ORGANIZATION]").toString(); @@ -245,8 +260,11 @@ public final ServiceAccount getServiceAccount(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * GetServiceAccountRequest request = @@ -278,8 +296,11 @@ public final ServiceAccount getServiceAccount(GetServiceAccountRequest 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * GetServiceAccountRequest request = @@ -304,8 +325,11 @@ public final UnaryCallablegetServiceA * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * SettingsName name = SettingsName.ofOrganizationName("[ORGANIZATION]"); @@ -334,8 +358,11 @@ public final Settings getSettings(SettingsName 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * String name = SettingsName.ofOrganizationName("[ORGANIZATION]").toString(); @@ -363,8 +390,11 @@ public final Settings getSettings(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * GetSettingsRequest request = @@ -389,8 +419,11 @@ public final Settings getSettings(GetSettingsRequest 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * GetSettingsRequest request = @@ -415,8 +448,11 @@ public final UnaryCallablegetSettingsCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * Settings settings = Settings.newBuilder().build(); @@ -448,8 +484,11 @@ public final Settings updateSettings(Settings settings, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * UpdateSettingsRequest request = @@ -475,8 +514,11 @@ public final Settings updateSettings(UpdateSettingsRequest 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * UpdateSettingsRequest request = @@ -510,8 +552,11 @@ public final UnaryCallableupdateSettingsCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ResetSettingsRequest request = @@ -545,8 +590,11 @@ public final void resetSettings(ResetSettingsRequest 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ResetSettingsRequest request = @@ -572,8 +620,11 @@ public final UnaryCallableresetSettingsCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * BatchGetSettingsRequest request = @@ -600,8 +651,11 @@ public final BatchGetSettingsResponse batchGetSettings(BatchGetSettingsRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * BatchGetSettingsRequest request = @@ -633,8 +687,11 @@ public final BatchGetSettingsResponse batchGetSettings(BatchGetSettingsRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * SettingsName name = SettingsName.ofOrganizationName("[ORGANIZATION]"); @@ -670,8 +727,11 @@ public final Settings calculateEffectiveSettings(SettingsName 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * String name = SettingsName.ofOrganizationName("[ORGANIZATION]").toString(); @@ -705,8 +765,11 @@ public final Settings calculateEffectiveSettings(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * CalculateEffectiveSettingsRequest request = @@ -736,8 +799,11 @@ public final Settings calculateEffectiveSettings(CalculateEffectiveSettingsReque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * CalculateEffectiveSettingsRequest request = @@ -765,8 +831,11 @@ public final Settings calculateEffectiveSettings(CalculateEffectiveSettingsReque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * BatchCalculateEffectiveSettingsRequest request = @@ -794,8 +863,11 @@ public final BatchCalculateEffectiveSettingsResponse batchCalculateEffectiveSett *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * BatchCalculateEffectiveSettingsRequest request = @@ -825,8 +897,11 @@ public final BatchCalculateEffectiveSettingsResponse batchCalculateEffectiveSett *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ComponentSettingsName name = @@ -860,8 +935,11 @@ public final ComponentSettings getComponentSettings(ComponentSettingsName 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * String name = @@ -894,8 +972,11 @@ public final ComponentSettings getComponentSettings(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * GetComponentSettingsRequest request = @@ -923,8 +1004,11 @@ public final ComponentSettings getComponentSettings(GetComponentSettingsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * GetComponentSettingsRequest request = @@ -952,8 +1036,11 @@ public final ComponentSettings getComponentSettings(GetComponentSettingsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ComponentSettings componentSettings = ComponentSettings.newBuilder().build(); @@ -993,8 +1080,11 @@ public final ComponentSettings updateComponentSettings( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * UpdateComponentSettingsRequest request = @@ -1021,8 +1111,11 @@ public final ComponentSettings updateComponentSettings(UpdateComponentSettingsRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * UpdateComponentSettingsRequest request = @@ -1052,8 +1145,11 @@ public final ComponentSettings updateComponentSettings(UpdateComponentSettingsRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ResetComponentSettingsRequest request = @@ -1084,8 +1180,11 @@ public final void resetComponentSettings(ResetComponentSettingsRequest 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ResetComponentSettingsRequest request = @@ -1114,8 +1213,11 @@ public final void resetComponentSettings(ResetComponentSettingsRequest 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ComponentSettingsName name = @@ -1150,8 +1252,11 @@ public final ComponentSettings calculateEffectiveComponentSettings(ComponentSett *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * String name = @@ -1185,8 +1290,11 @@ public final ComponentSettings calculateEffectiveComponentSettings(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * CalculateEffectiveComponentSettingsRequest request = @@ -1215,8 +1323,11 @@ public final ComponentSettings calculateEffectiveComponentSettings( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * CalculateEffectiveComponentSettingsRequest request = @@ -1246,8 +1357,11 @@ public final ComponentSettings calculateEffectiveComponentSettings( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); @@ -1277,8 +1391,11 @@ public final ListDetectorsPagedResponse listDetectors(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); @@ -1305,8 +1422,11 @@ public final ListDetectorsPagedResponse listDetectors(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ListDetectorsRequest request = @@ -1337,8 +1457,11 @@ public final ListDetectorsPagedResponse listDetectors(ListDetectorsRequest 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ListDetectorsRequest request = @@ -1369,8 +1492,11 @@ public final ListDetectorsPagedResponse listDetectors(ListDetectorsRequest 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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ListDetectorsRequest request = @@ -1407,8 +1533,11 @@ public final UnaryCallablelistDete * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); @@ -1438,8 +1567,11 @@ public final ListComponentsPagedResponse listComponents(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); @@ -1466,8 +1598,11 @@ public final ListComponentsPagedResponse listComponents(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 (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ListComponentsRequest request = @@ -1497,8 +1632,11 @@ public final ListComponentsPagedResponse listComponents(ListComponentsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ListComponentsRequest request = @@ -1528,8 +1666,11 @@ public final ListComponentsPagedResponse listComponents(ListComponentsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ListComponentsRequest request = diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceSettings.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceSettings.java index 9bae2f03dcd6..7c0a0743e7ac 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceSettings.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceSettings.java @@ -55,8 +55,11 @@ *For example, to set the total timeout of getServiceAccount 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 * SecurityCenterSettingsServiceSettings.Builder securityCenterSettingsServiceSettingsBuilder = * SecurityCenterSettingsServiceSettings.newBuilder(); * securityCenterSettingsServiceSettingsBuilder diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/package-info.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/package-info.java index 85c4b40cf6a6..6bf60921bc3f 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/package-info.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/package-info.java @@ -28,8 +28,11 @@ *Sample for SecurityCenterSettingsServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SecurityCenterSettingsServiceClient securityCenterSettingsServiceClient = * SecurityCenterSettingsServiceClient.create()) { * ServiceAccountName name = ServiceAccountName.of("[ORGANIZATION]"); diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java index 74c85212016f..5bd76d49f773 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java @@ -91,8 +91,11 @@ *For example, to set the total timeout of getServiceAccount 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 * SecurityCenterSettingsServiceStubSettings.Builder securityCenterSettingsServiceSettingsBuilder = * SecurityCenterSettingsServiceStubSettings.newBuilder(); * securityCenterSettingsServiceSettingsBuilder