diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java index 0a1fe58f75b0..9c34f47f9bea 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicyName name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); @@ -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 * NetworkSecuritySettings networkSecuritySettings = * NetworkSecuritySettings.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 * NetworkSecuritySettings networkSecuritySettings = * NetworkSecuritySettings.newBuilder().setEndpoint(myEndpoint).build(); * NetworkSecurityClient networkSecurityClient = @@ -177,8 +186,11 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (AuthorizationPolicy element : @@ -208,8 +220,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (AuthorizationPolicy element : @@ -236,8 +251,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies(St *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListAuthorizationPoliciesRequest request = * ListAuthorizationPoliciesRequest.newBuilder() @@ -267,8 +285,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListAuthorizationPoliciesRequest request = * ListAuthorizationPoliciesRequest.newBuilder() @@ -298,8 +319,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListAuthorizationPoliciesRequest request = * ListAuthorizationPoliciesRequest.newBuilder() @@ -335,8 +359,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicyName name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); @@ -363,8 +390,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(AuthorizationPolicyName *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") @@ -390,8 +420,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetAuthorizationPolicyRequest request = * GetAuthorizationPolicyRequest.newBuilder() @@ -417,8 +450,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetAuthorizationPolicyRequest request = * GetAuthorizationPolicyRequest.newBuilder() @@ -445,8 +481,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); @@ -487,8 +526,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); @@ -527,8 +569,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() @@ -556,8 +601,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() @@ -585,8 +633,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() @@ -613,8 +664,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -650,8 +704,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateAuthorizationPolicyRequest request = * UpdateAuthorizationPolicyRequest.newBuilder() @@ -678,8 +735,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateAuthorizationPolicyRequest request = * UpdateAuthorizationPolicyRequest.newBuilder() @@ -706,8 +766,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateAuthorizationPolicyRequest request = * UpdateAuthorizationPolicyRequest.newBuilder() @@ -733,8 +796,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicyName name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); @@ -762,8 +828,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") @@ -790,8 +859,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteAuthorizationPolicyRequest request = * DeleteAuthorizationPolicyRequest.newBuilder() @@ -818,8 +890,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteAuthorizationPolicyRequest request = * DeleteAuthorizationPolicyRequest.newBuilder() @@ -846,8 +921,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteAuthorizationPolicyRequest request = * DeleteAuthorizationPolicyRequest.newBuilder() @@ -874,8 +952,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (ServerTlsPolicy element : @@ -904,8 +985,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(LocationNa *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (ServerTlsPolicy element : @@ -932,8 +1016,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(String 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListServerTlsPoliciesRequest request = * ListServerTlsPoliciesRequest.newBuilder() @@ -963,8 +1050,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListServerTlsPoliciesRequest request = * ListServerTlsPoliciesRequest.newBuilder() @@ -993,8 +1083,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListServerTlsPoliciesRequest request = * ListServerTlsPoliciesRequest.newBuilder() @@ -1030,8 +1123,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ServerTlsPolicyName name = * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); @@ -1058,8 +1154,11 @@ public final ServerTlsPolicy getServerTlsPolicy(ServerTlsPolicyName 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); @@ -1084,8 +1183,11 @@ public final ServerTlsPolicy getServerTlsPolicy(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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetServerTlsPolicyRequest request = * GetServerTlsPolicyRequest.newBuilder() @@ -1111,8 +1213,11 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetServerTlsPolicyRequest request = * GetServerTlsPolicyRequest.newBuilder() @@ -1139,8 +1244,11 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); @@ -1178,8 +1286,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); @@ -1217,8 +1328,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() @@ -1245,8 +1359,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() @@ -1273,8 +1390,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() @@ -1301,8 +1421,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1335,8 +1458,11 @@ public final OperationFutureupdateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateServerTlsPolicyRequest request = * UpdateServerTlsPolicyRequest.newBuilder() @@ -1362,8 +1488,11 @@ public final OperationFutureupdateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateServerTlsPolicyRequest request = * UpdateServerTlsPolicyRequest.newBuilder() @@ -1389,8 +1518,11 @@ public final OperationFutureupdateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateServerTlsPolicyRequest request = * UpdateServerTlsPolicyRequest.newBuilder() @@ -1416,8 +1548,11 @@ public final OperationFutureupdateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ServerTlsPolicyName name = * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); @@ -1445,8 +1580,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); @@ -1471,8 +1609,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteServerTlsPolicyRequest request = * DeleteServerTlsPolicyRequest.newBuilder() @@ -1499,8 +1640,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteServerTlsPolicyRequest request = * DeleteServerTlsPolicyRequest.newBuilder() @@ -1527,8 +1671,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteServerTlsPolicyRequest request = * DeleteServerTlsPolicyRequest.newBuilder() @@ -1555,8 +1702,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (ClientTlsPolicy element : @@ -1585,8 +1735,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(LocationNa *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (ClientTlsPolicy element : @@ -1613,8 +1766,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(String 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListClientTlsPoliciesRequest request = * ListClientTlsPoliciesRequest.newBuilder() @@ -1644,8 +1800,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListClientTlsPoliciesRequest request = * ListClientTlsPoliciesRequest.newBuilder() @@ -1674,8 +1833,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListClientTlsPoliciesRequest request = * ListClientTlsPoliciesRequest.newBuilder() @@ -1711,8 +1873,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ClientTlsPolicyName name = * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); @@ -1739,8 +1904,11 @@ public final ClientTlsPolicy getClientTlsPolicy(ClientTlsPolicyName 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); @@ -1765,8 +1933,11 @@ public final ClientTlsPolicy getClientTlsPolicy(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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetClientTlsPolicyRequest request = * GetClientTlsPolicyRequest.newBuilder() @@ -1792,8 +1963,11 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetClientTlsPolicyRequest request = * GetClientTlsPolicyRequest.newBuilder() @@ -1820,8 +1994,11 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); @@ -1859,8 +2036,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); @@ -1898,8 +2078,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() @@ -1926,8 +2109,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() @@ -1954,8 +2140,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() @@ -1982,8 +2171,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2016,8 +2208,11 @@ public final OperationFutureupdateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateClientTlsPolicyRequest request = * UpdateClientTlsPolicyRequest.newBuilder() @@ -2043,8 +2238,11 @@ public final OperationFutureupdateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateClientTlsPolicyRequest request = * UpdateClientTlsPolicyRequest.newBuilder() @@ -2070,8 +2268,11 @@ public final OperationFutureupdateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateClientTlsPolicyRequest request = * UpdateClientTlsPolicyRequest.newBuilder() @@ -2097,8 +2298,11 @@ public final OperationFutureupdateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ClientTlsPolicyName name = * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); @@ -2126,8 +2330,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); @@ -2152,8 +2359,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteClientTlsPolicyRequest request = * DeleteClientTlsPolicyRequest.newBuilder() @@ -2180,8 +2390,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteClientTlsPolicyRequest request = * DeleteClientTlsPolicyRequest.newBuilder() @@ -2208,8 +2421,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteClientTlsPolicyRequest request = * DeleteClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java index 5dce47f8e58b..14b960707707 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java @@ -58,8 +58,11 @@ *For example, to set the total timeout of getAuthorizationPolicy 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 * NetworkSecuritySettings.Builder networkSecuritySettingsBuilder = * NetworkSecuritySettings.newBuilder(); * networkSecuritySettingsBuilder diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java index 3afe2545edd2..599ddb1bfa43 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java @@ -25,8 +25,11 @@ *Sample for NetworkSecurityClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicyName name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java index d9c8897c4469..cfd1fd0f9c52 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java @@ -98,8 +98,11 @@ *For example, to set the total timeout of getAuthorizationPolicy 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 * NetworkSecurityStubSettings.Builder networkSecuritySettingsBuilder = * NetworkSecurityStubSettings.newBuilder(); * networkSecuritySettingsBuilder diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java index cf60672e4e4e..c0d0a9ba172c 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java @@ -57,8 +57,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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicyName name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); @@ -96,8 +99,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 * NetworkSecuritySettings networkSecuritySettings = * NetworkSecuritySettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -109,8 +115,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 * NetworkSecuritySettings networkSecuritySettings = * NetworkSecuritySettings.newBuilder().setEndpoint(myEndpoint).build(); * NetworkSecurityClient networkSecurityClient = @@ -121,8 +130,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 * NetworkSecuritySettings networkSecuritySettings = * NetworkSecuritySettings.newBuilder() * .setTransportChannelProvider( @@ -217,8 +229,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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (AuthorizationPolicy element : @@ -248,8 +263,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (AuthorizationPolicy element : @@ -276,8 +294,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies(St *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListAuthorizationPoliciesRequest request = * ListAuthorizationPoliciesRequest.newBuilder() @@ -307,8 +328,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListAuthorizationPoliciesRequest request = * ListAuthorizationPoliciesRequest.newBuilder() @@ -338,8 +362,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListAuthorizationPoliciesRequest request = * ListAuthorizationPoliciesRequest.newBuilder() @@ -375,8 +402,11 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicyName name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); @@ -403,8 +433,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(AuthorizationPolicyName *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") @@ -430,8 +463,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetAuthorizationPolicyRequest request = * GetAuthorizationPolicyRequest.newBuilder() @@ -457,8 +493,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetAuthorizationPolicyRequest request = * GetAuthorizationPolicyRequest.newBuilder() @@ -485,8 +524,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); @@ -527,8 +569,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); @@ -567,8 +612,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() @@ -596,8 +644,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() @@ -625,8 +676,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateAuthorizationPolicyRequest request = * CreateAuthorizationPolicyRequest.newBuilder() @@ -653,8 +707,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -690,8 +747,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateAuthorizationPolicyRequest request = * UpdateAuthorizationPolicyRequest.newBuilder() @@ -718,8 +778,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateAuthorizationPolicyRequest request = * UpdateAuthorizationPolicyRequest.newBuilder() @@ -746,8 +809,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateAuthorizationPolicyRequest request = * UpdateAuthorizationPolicyRequest.newBuilder() @@ -773,8 +839,11 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicyName name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); @@ -802,8 +871,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") @@ -830,8 +902,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteAuthorizationPolicyRequest request = * DeleteAuthorizationPolicyRequest.newBuilder() @@ -858,8 +933,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteAuthorizationPolicyRequest request = * DeleteAuthorizationPolicyRequest.newBuilder() @@ -886,8 +964,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteAuthorizationPolicyRequest request = * DeleteAuthorizationPolicyRequest.newBuilder() @@ -914,8 +995,11 @@ public final OperationFuturedeleteAuthorizationPolicy * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (ServerTlsPolicy element : @@ -944,8 +1028,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(LocationNa *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (ServerTlsPolicy element : @@ -972,8 +1059,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(String 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListServerTlsPoliciesRequest request = * ListServerTlsPoliciesRequest.newBuilder() @@ -1003,8 +1093,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListServerTlsPoliciesRequest request = * ListServerTlsPoliciesRequest.newBuilder() @@ -1033,8 +1126,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListServerTlsPoliciesRequest request = * ListServerTlsPoliciesRequest.newBuilder() @@ -1070,8 +1166,11 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ServerTlsPolicyName name = * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); @@ -1098,8 +1197,11 @@ public final ServerTlsPolicy getServerTlsPolicy(ServerTlsPolicyName 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); @@ -1124,8 +1226,11 @@ public final ServerTlsPolicy getServerTlsPolicy(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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetServerTlsPolicyRequest request = * GetServerTlsPolicyRequest.newBuilder() @@ -1151,8 +1256,11 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetServerTlsPolicyRequest request = * GetServerTlsPolicyRequest.newBuilder() @@ -1179,8 +1287,11 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); @@ -1218,8 +1329,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); @@ -1257,8 +1371,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() @@ -1285,8 +1402,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() @@ -1313,8 +1433,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateServerTlsPolicyRequest request = * CreateServerTlsPolicyRequest.newBuilder() @@ -1341,8 +1464,11 @@ public final OperationFuturecreateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1375,8 +1501,11 @@ public final OperationFutureupdateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateServerTlsPolicyRequest request = * UpdateServerTlsPolicyRequest.newBuilder() @@ -1402,8 +1531,11 @@ public final OperationFutureupdateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateServerTlsPolicyRequest request = * UpdateServerTlsPolicyRequest.newBuilder() @@ -1429,8 +1561,11 @@ public final OperationFutureupdateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateServerTlsPolicyRequest request = * UpdateServerTlsPolicyRequest.newBuilder() @@ -1456,8 +1591,11 @@ public final OperationFutureupdateServerTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ServerTlsPolicyName name = * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); @@ -1485,8 +1623,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); @@ -1511,8 +1652,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteServerTlsPolicyRequest request = * DeleteServerTlsPolicyRequest.newBuilder() @@ -1539,8 +1683,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteServerTlsPolicyRequest request = * DeleteServerTlsPolicyRequest.newBuilder() @@ -1567,8 +1714,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteServerTlsPolicyRequest request = * DeleteServerTlsPolicyRequest.newBuilder() @@ -1595,8 +1745,11 @@ public final OperationFuturedeleteServerTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (ClientTlsPolicy element : @@ -1625,8 +1778,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(LocationNa *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (ClientTlsPolicy element : @@ -1653,8 +1809,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(String 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListClientTlsPoliciesRequest request = * ListClientTlsPoliciesRequest.newBuilder() @@ -1684,8 +1843,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListClientTlsPoliciesRequest request = * ListClientTlsPoliciesRequest.newBuilder() @@ -1714,8 +1876,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListClientTlsPoliciesRequest request = * ListClientTlsPoliciesRequest.newBuilder() @@ -1751,8 +1916,11 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ClientTlsPolicyName name = * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); @@ -1779,8 +1947,11 @@ public final ClientTlsPolicy getClientTlsPolicy(ClientTlsPolicyName 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); @@ -1805,8 +1976,11 @@ public final ClientTlsPolicy getClientTlsPolicy(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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetClientTlsPolicyRequest request = * GetClientTlsPolicyRequest.newBuilder() @@ -1832,8 +2006,11 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetClientTlsPolicyRequest request = * GetClientTlsPolicyRequest.newBuilder() @@ -1860,8 +2037,11 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); @@ -1899,8 +2079,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); @@ -1938,8 +2121,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() @@ -1966,8 +2152,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() @@ -1994,8 +2183,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * CreateClientTlsPolicyRequest request = * CreateClientTlsPolicyRequest.newBuilder() @@ -2022,8 +2214,11 @@ public final OperationFuturecreateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2056,8 +2251,11 @@ public final OperationFutureupdateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateClientTlsPolicyRequest request = * UpdateClientTlsPolicyRequest.newBuilder() @@ -2083,8 +2281,11 @@ public final OperationFutureupdateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateClientTlsPolicyRequest request = * UpdateClientTlsPolicyRequest.newBuilder() @@ -2110,8 +2311,11 @@ public final OperationFutureupdateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * UpdateClientTlsPolicyRequest request = * UpdateClientTlsPolicyRequest.newBuilder() @@ -2137,8 +2341,11 @@ public final OperationFutureupdateClientTls * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ClientTlsPolicyName name = * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); @@ -2166,8 +2373,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); @@ -2192,8 +2402,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteClientTlsPolicyRequest request = * DeleteClientTlsPolicyRequest.newBuilder() @@ -2220,8 +2433,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteClientTlsPolicyRequest request = * DeleteClientTlsPolicyRequest.newBuilder() @@ -2248,8 +2464,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * DeleteClientTlsPolicyRequest request = * DeleteClientTlsPolicyRequest.newBuilder() @@ -2276,8 +2495,11 @@ public final OperationFuturedeleteClientTlsPolicyAsyn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -2306,8 +2528,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -2337,8 +2562,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * ListLocationsRequest request = * ListLocationsRequest.newBuilder() @@ -2374,8 +2602,11 @@ public final UnaryCallablelistLoca * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * Location response = networkSecurityClient.getLocation(request); @@ -2396,8 +2627,11 @@ public final Location getLocation(GetLocationRequest 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = networkSecurityClient.getLocationCallable().futureCall(request); @@ -2419,8 +2653,11 @@ public final UnaryCallable getLocationCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -2450,8 +2687,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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -2479,8 +2719,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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -2508,8 +2751,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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -2540,8 +2786,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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -2573,8 +2822,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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java index 9d1210966635..46b0128df668 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java @@ -69,8 +69,11 @@ *For example, to set the total timeout of getAuthorizationPolicy 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 * NetworkSecuritySettings.Builder networkSecuritySettingsBuilder = * NetworkSecuritySettings.newBuilder(); * networkSecuritySettingsBuilder diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java index d31f1e36b459..4652f2ea1973 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/package-info.java @@ -27,8 +27,11 @@ *Sample for NetworkSecurityClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * AuthorizationPolicyName name = * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java index 8a129fbd18f6..d1f5b423b989 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java @@ -200,7 +200,10 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("authorizationPolicy", request.getAuthorizationPolicy())) + .toBody( + "authorizationPolicy", + request.getAuthorizationPolicy(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -244,7 +247,10 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("authorizationPolicy", request.getAuthorizationPolicy())) + .toBody( + "authorizationPolicy", + request.getAuthorizationPolicy(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -395,7 +401,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("serverTlsPolicy", request.getServerTlsPolicy())) + .toBody("serverTlsPolicy", request.getServerTlsPolicy(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -439,7 +445,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("serverTlsPolicy", request.getServerTlsPolicy())) + .toBody("serverTlsPolicy", request.getServerTlsPolicy(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -590,7 +596,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("clientTlsPolicy", request.getClientTlsPolicy())) + .toBody("clientTlsPolicy", request.getClientTlsPolicy(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -634,7 +640,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("clientTlsPolicy", request.getClientTlsPolicy())) + .toBody("clientTlsPolicy", request.getClientTlsPolicy(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -779,7 +785,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -854,7 +860,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java index 1541921eb721..4eef75987996 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java @@ -111,8 +111,11 @@ * For example, to set the total timeout of getAuthorizationPolicy 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 * NetworkSecurityStubSettings.Builder networkSecuritySettingsBuilder = * NetworkSecurityStubSettings.newBuilder(); * networkSecuritySettingsBuilder diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java index 75b43ca5d946..36ae1951a6c4 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library NetworkSecuritySettings networkSecuritySettings = NetworkSecuritySettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java index 6b436f374eee..0ac502579dcf 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library NetworkSecuritySettings networkSecuritySettings = NetworkSecuritySettings.newBuilder() .setTransportChannelProvider( diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java index da11cdd6e9e4..57bf903ffc1a 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library NetworkSecuritySettings networkSecuritySettings = NetworkSecuritySettings.newBuilder().setEndpoint(myEndpoint).build(); NetworkSecurityClient networkSecurityClient = diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java index 2113972675cc..bc34caf6a914 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateAuthorizationPolicyRequest request = CreateAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java index 7c00d5e8e217..18a5002d3174 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/AsyncCreateAuthorizationPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateAuthorizationPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateAuthorizationPolicyRequest request = CreateAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java index 828f31959767..c1b222adff17 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateAuthorizationPolicyRequest request = CreateAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java index d70559aea101..73c0832534be 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { public static void syncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java index 41d7ce7bb3aa..70b7583e2bee 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createauthorizationpolicy/SyncCreateAuthorizationPolicyStringAuthorizationpolicyString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { public static void syncCreateAuthorizationPolicyStringAuthorizationpolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java index 00cc09372762..a3342b4b87c6 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateClientTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java index b424c0ab2232..47f0475e080a 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/AsyncCreateClientTlsPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateClientTlsPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java index 8bde43065a9d..0efe261bed52 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java index 64e8a29c4166..7ec487b8da16 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyLocationnameClienttlspolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientTlsPolicyLocationnameClienttlspolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java index 2cd2a43f7eaf..5bd0e2e571d6 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createclienttlspolicy/SyncCreateClientTlsPolicyStringClienttlspolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientTlsPolicyStringClienttlspolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java index 0dafd358049a..51b773bbbc36 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateServerTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java index 81f6283fda80..f65ee35af9b1 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/AsyncCreateServerTlsPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateServerTlsPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java index abfa335959ca..051c9fdb706f 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServerTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java index 990118834031..dcb26268b68b 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyLocationnameServertlspolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServerTlsPolicyLocationnameServertlspolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java index 778fc498c4f0..491f90008153 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/createservertlspolicy/SyncCreateServerTlsPolicyStringServertlspolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServerTlsPolicyStringServertlspolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java index b47623c48c64..e7bb5bc1222f 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteAuthorizationPolicyRequest request = DeleteAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java index bf8636fffadd..4c27b92280d7 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/AsyncDeleteAuthorizationPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteAuthorizationPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteAuthorizationPolicyRequest request = DeleteAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java index de48eb00212f..e836b3760a72 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteAuthorizationPolicyRequest request = DeleteAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java index ce5485081514..4c001b3cd2cf 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyAuthorizationpolicyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAuthorizationPolicyAuthorizationpolicyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { AuthorizationPolicyName name = AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java index 78eac36a1971..af52c1210a2e 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteauthorizationpolicy/SyncDeleteAuthorizationPolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAuthorizationPolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String name = AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java index 2e56e6adeb9c..b978ef3799f2 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteClientTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteClientTlsPolicyRequest request = DeleteClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java index 60dbb3b685f9..44a55ffc1e24 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/AsyncDeleteClientTlsPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteClientTlsPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteClientTlsPolicyRequest request = DeleteClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java index cf07c342231c..569bafd5a6b9 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteClientTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteClientTlsPolicyRequest request = DeleteClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java index 464507abd37e..fed3319d1a87 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyClienttlspolicyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteClientTlsPolicyClienttlspolicyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ClientTlsPolicyName name = ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java index a0d928f5ebbd..8ed550f131c6 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteclienttlspolicy/SyncDeleteClientTlsPolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteClientTlsPolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String name = ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java index 3c60d7934878..3ebb59ba3f42 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteServerTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteServerTlsPolicyRequest request = DeleteServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java index f43f1c79d276..e6178486702c 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/AsyncDeleteServerTlsPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteServerTlsPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteServerTlsPolicyRequest request = DeleteServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java index 7a2cd5cb8c56..c53c0e0920cf 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServerTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { DeleteServerTlsPolicyRequest request = DeleteServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java index 9bfe8efd56fd..5ddb55e7d47c 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyServertlspolicyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServerTlsPolicyServertlspolicyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ServerTlsPolicyName name = ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java index 59605ae3d9db..84ca0bb96b41 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/deleteservertlspolicy/SyncDeleteServerTlsPolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServerTlsPolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String name = ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java index 05d54a62201c..9e4804839cf9 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/AsyncGetAuthorizationPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetAuthorizationPolicyRequest request = GetAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java index 9785908b7dec..44d7a7a8b1a5 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetAuthorizationPolicyRequest request = GetAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java index a147e19093a4..cb405fb52894 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyAuthorizationpolicyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorizationPolicyAuthorizationpolicyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { AuthorizationPolicyName name = AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java index b8099aeef1f4..de15fc514275 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getauthorizationpolicy/SyncGetAuthorizationPolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorizationPolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String name = AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java index 0a46f2ec9572..7330fbf8bc9e 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/AsyncGetClientTlsPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetClientTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetClientTlsPolicyRequest request = GetClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java index 97f1f1374791..798ef99a0cb6 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetClientTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetClientTlsPolicyRequest request = GetClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java index e79b00f17a37..90b852667255 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyClienttlspolicyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetClientTlsPolicyClienttlspolicyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ClientTlsPolicyName name = ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java index 07db8ba6ac29..ec4bb1931557 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getclienttlspolicy/SyncGetClientTlsPolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetClientTlsPolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String name = ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java index 9dc29e2fa0e7..f6831174f486 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/AsyncGetIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java index deb52a065ef4..3d4050f4a0de 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getiampolicy/SyncGetIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java index b4ee9eae14df..9a1cd0884333 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/AsyncGetLocation.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetLocation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); ApiFuturefuture = networkSecurityClient.getLocationCallable().futureCall(request); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java index b8e22b31299f..78bb961cded6 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getlocation/SyncGetLocation.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetLocation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); Location response = networkSecurityClient.getLocation(request); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java index dbf52e3dd214..1f5cacefdda6 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/AsyncGetServerTlsPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetServerTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetServerTlsPolicyRequest request = GetServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java index dfef44c66cff..0ccb68dbc3b2 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServerTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { GetServerTlsPolicyRequest request = GetServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java index e6e725abaf22..d83e67668718 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyServertlspolicyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServerTlsPolicyServertlspolicyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ServerTlsPolicyName name = ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java index 1c202e80ae28..f10578d98c21 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/getservertlspolicy/SyncGetServerTlsPolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServerTlsPolicyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String name = ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java index 34af8e34ef99..8ece1c422a5a 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPolicies.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAuthorizationPolicies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListAuthorizationPoliciesRequest request = ListAuthorizationPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java index e78eef58fec2..e5fc00f6505e 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/AsyncListAuthorizationPoliciesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAuthorizationPoliciesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListAuthorizationPoliciesRequest request = ListAuthorizationPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java index 8db22dd72656..54171d7e85be 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPolicies.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAuthorizationPolicies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListAuthorizationPoliciesRequest request = ListAuthorizationPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java index 2495e8f3b8ab..434f05485917 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAuthorizationPoliciesLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (AuthorizationPolicy element : diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java index 74a5b357403a..f4ff9c436c15 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listauthorizationpolicies/SyncListAuthorizationPoliciesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAuthorizationPoliciesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (AuthorizationPolicy element : diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java index 013db8b69993..be6f9dd43329 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPolicies.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListClientTlsPolicies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListClientTlsPoliciesRequest request = ListClientTlsPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java index 48065743b015..55298796d169 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/AsyncListClientTlsPoliciesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListClientTlsPoliciesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListClientTlsPoliciesRequest request = ListClientTlsPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java index 8ddbb2abc4d3..6359b4513d7a 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPolicies.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListClientTlsPolicies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListClientTlsPoliciesRequest request = ListClientTlsPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java index 76847084bb6a..60eb64be168b 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListClientTlsPoliciesLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (ClientTlsPolicy element : diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java index 910709661476..e20b08fdabd6 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listclienttlspolicies/SyncListClientTlsPoliciesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListClientTlsPoliciesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (ClientTlsPolicy element : diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java index dc382319116f..6a055a528d85 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocations.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListLocations() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java index 5157ef856a5b..e58aee14dffa 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/AsyncListLocationsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListLocationsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java index 9cd0118162db..92aa799b9e47 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listlocations/SyncListLocations.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListLocations() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java index 2952222a4f21..ac03bb832446 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPolicies.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListServerTlsPolicies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListServerTlsPoliciesRequest request = ListServerTlsPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java index 0d40acda1732..cb02c02fb816 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListServerTlsPoliciesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListServerTlsPoliciesRequest request = ListServerTlsPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java index 3909b300e56e..37fbebb1c59c 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPolicies.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServerTlsPolicies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ListServerTlsPoliciesRequest request = ListServerTlsPoliciesRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java index efe82605f91c..b5c178934d62 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServerTlsPoliciesLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (ServerTlsPolicy element : diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java index 220f14cf0d0e..52db087ec285 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/listservertlspolicies/SyncListServerTlsPoliciesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServerTlsPoliciesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (ServerTlsPolicy element : diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java index 94670d43fa8d..345c8525dc0b 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/AsyncSetIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSetIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java index d23430c8fac2..8f63685ef193 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/setiampolicy/SyncSetIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncSetIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java index dbd9629b8ad7..4d4d4fafe925 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/AsyncTestIamPermissions.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncTestIamPermissions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java index a3d3d3cf6921..525ee9b40cc0 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/testiampermissions/SyncTestIamPermissions.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncTestIamPermissions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java index 7d2875d91f9f..904d4b6e2d1f 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateAuthorizationPolicyRequest request = UpdateAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java index 6a6b3f7b582c..8330273a9901 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/AsyncUpdateAuthorizationPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateAuthorizationPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateAuthorizationPolicyRequest request = UpdateAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java index 9b7f0137339c..4402e250ac7c 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateAuthorizationPolicyRequest request = UpdateAuthorizationPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java index 6e5bc1b5192d..b4554383724d 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateauthorizationpolicy/SyncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateAuthorizationPolicyAuthorizationpolicyFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java index ee36efb53ea8..76e8accd9dc0 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateClientTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateClientTlsPolicyRequest request = UpdateClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java index e12cf5c630d3..f8fb4efc1ca9 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/AsyncUpdateClientTlsPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateClientTlsPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateClientTlsPolicyRequest request = UpdateClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java index e690b7cf67b8..64c2683f9e63 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateClientTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateClientTlsPolicyRequest request = UpdateClientTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java index f8d0f0b93773..bc1dd7c79c23 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateclienttlspolicy/SyncUpdateClientTlsPolicyClienttlspolicyFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateClientTlsPolicyClienttlspolicyFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java index 462fc65a5156..255a9a9ca322 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateServerTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateServerTlsPolicyRequest request = UpdateServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java index f84eed6ada81..9a6b5847cfff 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/AsyncUpdateServerTlsPolicyLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateServerTlsPolicyLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateServerTlsPolicyRequest request = UpdateServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java index b1c1eea6f725..67c65abbfa92 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateServerTlsPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { UpdateServerTlsPolicyRequest request = UpdateServerTlsPolicyRequest.newBuilder() diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java index 1b9c99fcd2da..a2c8a7eaecd7 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecurityclient/updateservertlspolicy/SyncUpdateServerTlsPolicyServertlspolicyFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateServerTlsPolicyServertlspolicyFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java index 70d790a8a2dc..9a75f838a6cf 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/networksecuritysettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library NetworkSecuritySettings.Builder networkSecuritySettingsBuilder = NetworkSecuritySettings.newBuilder(); networkSecuritySettingsBuilder diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java index 587bda1982f9..07ebe7726312 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1beta1/stub/networksecuritystubsettings/getauthorizationpolicy/SyncGetAuthorizationPolicy.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorizationPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library NetworkSecurityStubSettings.Builder networkSecuritySettingsBuilder = NetworkSecurityStubSettings.newBuilder(); networkSecuritySettingsBuilder