From 949524736aab730f57d6c40bec7adb4923d7fd83 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:04:25 +0000 Subject: [PATCH] feat: added High Throughput Logging API for Google Kubernetes Engine (#780) - [ ] Regenerate this pull request now. docs: ReservationAffinity key field docs incorrect docs: missing period in description for min CPU platform PiperOrigin-RevId: 474706444 Source-Link: https://github.com/googleapis/googleapis/commit/a5a88292731bf4038e37b14aba1286de98a76a14 Source-Link: https://github.com/googleapis/googleapis-gen/commit/992389d809ed37f8fd4d787209048551d9e61154 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTkyMzg5ZDgwOWVkMzdmOGZkNGQ3ODcyMDkwNDg1NTFkOWU2MTE1NCJ9 feat: added High Throughput Logging API for Google Kubernetes Engine docs: ReservationAffinity key field docs incorrect docs: missing period in description for min CPU platform PiperOrigin-RevId: 474671838 Source-Link: https://github.com/googleapis/googleapis/commit/9212f73b84076661487d62c6bc889ad69b3561fb Source-Link: https://github.com/googleapis/googleapis-gen/commit/37e23437f2e8778b75d034d29401f75cca97493c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzdlMjM0MzdmMmU4Nzc4Yjc1ZDAzNGQyOTQwMWY3NWNjYTk3NDkzYyJ9 chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../container/v1/ClusterManagerClient.java | 821 ++++-- .../container/v1/ClusterManagerSettings.java | 12 +- .../cloud/container/v1/package-info.java | 7 +- .../v1/stub/ClusterManagerStubSettings.java | 12 +- .../v1beta1/ClusterManagerClient.java | 702 ++++-- .../v1beta1/ClusterManagerSettings.java | 12 +- .../cloud/container/v1beta1/package-info.java | 7 +- .../stub/ClusterManagerStubSettings.java | 12 +- .../v1/ClusterManagerClientTest.java | 4 + .../v1beta1/ClusterManagerClientTest.java | 4 + .../com/google/container/v1/AddonsConfig.java | 8 +- .../container/v1/AddonsConfigOrBuilder.java | 4 +- .../v1/AutoprovisioningNodePoolDefaults.java | 28 +- ...provisioningNodePoolDefaultsOrBuilder.java | 8 +- .../container/v1/BinaryAuthorization.java | 8 +- .../v1/BinaryAuthorizationOrBuilder.java | 2 +- .../container/v1/CancelOperationRequest.java | 42 +- .../v1/CancelOperationRequestOrBuilder.java | 12 +- .../java/com/google/container/v1/Cluster.java | 92 +- .../google/container/v1/ClusterOrBuilder.java | 28 +- .../container/v1/ClusterServiceProto.java | 1925 +++++++------- .../google/container/v1/ClusterUpdate.java | 296 +++ .../container/v1/ClusterUpdateOrBuilder.java | 35 + .../v1/CompleteIPRotationRequest.java | 42 +- .../CompleteIPRotationRequestOrBuilder.java | 12 +- .../container/v1/CreateClusterRequest.java | 28 +- .../v1/CreateClusterRequestOrBuilder.java | 8 +- .../container/v1/CreateNodePoolRequest.java | 42 +- .../v1/CreateNodePoolRequestOrBuilder.java | 12 +- .../container/v1/DeleteClusterRequest.java | 42 +- .../v1/DeleteClusterRequestOrBuilder.java | 12 +- .../container/v1/DeleteNodePoolRequest.java | 56 +- .../v1/DeleteNodePoolRequestOrBuilder.java | 16 +- .../container/v1/GetClusterRequest.java | 42 +- .../v1/GetClusterRequestOrBuilder.java | 12 +- .../container/v1/GetNodePoolRequest.java | 56 +- .../v1/GetNodePoolRequestOrBuilder.java | 16 +- .../container/v1/GetOperationRequest.java | 42 +- .../v1/GetOperationRequestOrBuilder.java | 12 +- .../container/v1/GetServerConfigRequest.java | 28 +- .../v1/GetServerConfigRequestOrBuilder.java | 8 +- .../container/v1/IPAllocationPolicy.java | 42 +- .../v1/IPAllocationPolicyOrBuilder.java | 12 +- .../container/v1/ListClustersRequest.java | 28 +- .../v1/ListClustersRequestOrBuilder.java | 8 +- .../container/v1/ListNodePoolsRequest.java | 42 +- .../v1/ListNodePoolsRequestOrBuilder.java | 12 +- .../container/v1/ListOperationsRequest.java | 28 +- .../v1/ListOperationsRequestOrBuilder.java | 8 +- .../container/v1/LoggingVariantConfig.java | 770 ++++++ .../v1/LoggingVariantConfigOrBuilder.java | 50 + .../com/google/container/v1/MasterAuth.java | 28 +- .../container/v1/MasterAuthOrBuilder.java | 8 +- .../com/google/container/v1/NodeConfig.java | 278 ++ .../container/v1/NodeConfigDefaults.java | 278 ++ .../v1/NodeConfigDefaultsOrBuilder.java | 35 + .../container/v1/NodeConfigOrBuilder.java | 35 + .../com/google/container/v1/NodePool.java | 14 +- .../container/v1/NodePoolLoggingConfig.java | 734 ++++++ .../v1/NodePoolLoggingConfigOrBuilder.java | 60 + .../container/v1/NodePoolOrBuilder.java | 4 +- .../com/google/container/v1/Operation.java | 28 +- .../container/v1/OperationOrBuilder.java | 8 +- .../container/v1/ReservationAffinity.java | 35 +- .../v1/ReservationAffinityOrBuilder.java | 10 +- .../v1/RollbackNodePoolUpgradeRequest.java | 56 +- ...llbackNodePoolUpgradeRequestOrBuilder.java | 16 +- .../container/v1/SetAddonsConfigRequest.java | 42 +- .../v1/SetAddonsConfigRequestOrBuilder.java | 12 +- .../google/container/v1/SetLabelsRequest.java | 42 +- .../v1/SetLabelsRequestOrBuilder.java | 12 +- .../container/v1/SetLegacyAbacRequest.java | 42 +- .../v1/SetLegacyAbacRequestOrBuilder.java | 12 +- .../container/v1/SetLocationsRequest.java | 42 +- .../v1/SetLocationsRequestOrBuilder.java | 12 +- .../v1/SetLoggingServiceRequest.java | 42 +- .../v1/SetLoggingServiceRequestOrBuilder.java | 12 +- .../container/v1/SetMasterAuthRequest.java | 42 +- .../v1/SetMasterAuthRequestOrBuilder.java | 12 +- .../v1/SetMonitoringServiceRequest.java | 42 +- .../SetMonitoringServiceRequestOrBuilder.java | 12 +- .../container/v1/SetNetworkPolicyRequest.java | 42 +- .../v1/SetNetworkPolicyRequestOrBuilder.java | 12 +- .../v1/SetNodePoolAutoscalingRequest.java | 56 +- ...etNodePoolAutoscalingRequestOrBuilder.java | 16 +- .../v1/SetNodePoolManagementRequest.java | 56 +- ...SetNodePoolManagementRequestOrBuilder.java | 16 +- .../container/v1/SetNodePoolSizeRequest.java | 56 +- .../v1/SetNodePoolSizeRequestOrBuilder.java | 16 +- .../container/v1/StartIPRotationRequest.java | 42 +- .../v1/StartIPRotationRequestOrBuilder.java | 12 +- .../google/container/v1/StatusCondition.java | 14 +- .../v1/StatusConditionOrBuilder.java | 4 +- .../container/v1/UpdateClusterRequest.java | 42 +- .../v1/UpdateClusterRequestOrBuilder.java | 12 +- .../container/v1/UpdateMasterRequest.java | 42 +- .../v1/UpdateMasterRequestOrBuilder.java | 12 +- .../container/v1/UpdateNodePoolRequest.java | 334 ++- .../v1/UpdateNodePoolRequestOrBuilder.java | 51 +- .../google/container/v1/cluster_service.proto | 43 +- .../container/v1beta1/AcceleratorConfig.java | 8 +- .../v1beta1/AcceleratorConfigOrBuilder.java | 2 +- .../container/v1beta1/AddonsConfig.java | 24 +- .../v1beta1/AddonsConfigOrBuilder.java | 12 +- .../AutoprovisioningNodePoolDefaults.java | 28 +- ...provisioningNodePoolDefaultsOrBuilder.java | 8 +- .../v1beta1/BinaryAuthorization.java | 8 +- .../v1beta1/BinaryAuthorizationOrBuilder.java | 2 +- .../v1beta1/CancelOperationRequest.java | 42 +- .../CancelOperationRequestOrBuilder.java | 12 +- .../com/google/container/v1beta1/Cluster.java | 114 +- .../container/v1beta1/ClusterOrBuilder.java | 34 +- .../v1beta1/ClusterServiceProto.java | 2236 +++++++++-------- .../container/v1beta1/ClusterUpdate.java | 300 +++ .../v1beta1/ClusterUpdateOrBuilder.java | 39 + .../v1beta1/CompleteIPRotationRequest.java | 42 +- .../CompleteIPRotationRequestOrBuilder.java | 12 +- .../v1beta1/CreateClusterRequest.java | 28 +- .../CreateClusterRequestOrBuilder.java | 8 +- .../v1beta1/CreateNodePoolRequest.java | 42 +- .../CreateNodePoolRequestOrBuilder.java | 12 +- .../v1beta1/DeleteClusterRequest.java | 42 +- .../DeleteClusterRequestOrBuilder.java | 12 +- .../v1beta1/DeleteNodePoolRequest.java | 56 +- .../DeleteNodePoolRequestOrBuilder.java | 16 +- .../container/v1beta1/GetClusterRequest.java | 42 +- .../v1beta1/GetClusterRequestOrBuilder.java | 12 +- .../container/v1beta1/GetNodePoolRequest.java | 56 +- .../v1beta1/GetNodePoolRequestOrBuilder.java | 16 +- .../v1beta1/GetOperationRequest.java | 42 +- .../v1beta1/GetOperationRequestOrBuilder.java | 12 +- .../v1beta1/GetServerConfigRequest.java | 28 +- .../GetServerConfigRequestOrBuilder.java | 8 +- .../container/v1beta1/IPAllocationPolicy.java | 42 +- .../v1beta1/IPAllocationPolicyOrBuilder.java | 12 +- .../google/container/v1beta1/IstioConfig.java | 22 +- .../v1beta1/IstioConfigOrBuilder.java | 6 +- .../google/container/v1beta1/KalmConfig.java | 8 +- .../v1beta1/KalmConfigOrBuilder.java | 2 +- .../v1beta1/ListClustersRequest.java | 28 +- .../v1beta1/ListClustersRequestOrBuilder.java | 8 +- .../v1beta1/ListNodePoolsRequest.java | 42 +- .../ListNodePoolsRequestOrBuilder.java | 12 +- .../v1beta1/ListOperationsRequest.java | 28 +- .../ListOperationsRequestOrBuilder.java | 8 +- .../v1beta1/LoggingVariantConfig.java | 776 ++++++ .../LoggingVariantConfigOrBuilder.java | 50 + .../google/container/v1beta1/MasterAuth.java | 28 +- .../v1beta1/MasterAuthOrBuilder.java | 8 +- .../google/container/v1beta1/NodeConfig.java | 293 ++- .../container/v1beta1/NodeConfigDefaults.java | 279 ++ .../v1beta1/NodeConfigDefaultsOrBuilder.java | 35 + .../v1beta1/NodeConfigOrBuilder.java | 39 +- .../google/container/v1beta1/NodePool.java | 14 +- .../v1beta1/NodePoolLoggingConfig.java | 737 ++++++ .../NodePoolLoggingConfigOrBuilder.java | 60 + .../container/v1beta1/NodePoolOrBuilder.java | 4 +- .../google/container/v1beta1/Operation.java | 28 +- .../container/v1beta1/OperationOrBuilder.java | 8 +- .../v1beta1/ReservationAffinity.java | 35 +- .../v1beta1/ReservationAffinityOrBuilder.java | 10 +- .../RollbackNodePoolUpgradeRequest.java | 56 +- ...llbackNodePoolUpgradeRequestOrBuilder.java | 16 +- .../container/v1beta1/SandboxConfig.java | 14 +- .../v1beta1/SandboxConfigOrBuilder.java | 4 +- .../v1beta1/SetAddonsConfigRequest.java | 42 +- .../SetAddonsConfigRequestOrBuilder.java | 12 +- .../container/v1beta1/SetLabelsRequest.java | 42 +- .../v1beta1/SetLabelsRequestOrBuilder.java | 12 +- .../v1beta1/SetLegacyAbacRequest.java | 42 +- .../SetLegacyAbacRequestOrBuilder.java | 12 +- .../v1beta1/SetLocationsRequest.java | 42 +- .../v1beta1/SetLocationsRequestOrBuilder.java | 12 +- .../v1beta1/SetLoggingServiceRequest.java | 42 +- .../SetLoggingServiceRequestOrBuilder.java | 12 +- .../v1beta1/SetMasterAuthRequest.java | 42 +- .../SetMasterAuthRequestOrBuilder.java | 12 +- .../v1beta1/SetMonitoringServiceRequest.java | 42 +- .../SetMonitoringServiceRequestOrBuilder.java | 12 +- .../v1beta1/SetNetworkPolicyRequest.java | 42 +- .../SetNetworkPolicyRequestOrBuilder.java | 12 +- .../SetNodePoolAutoscalingRequest.java | 56 +- ...etNodePoolAutoscalingRequestOrBuilder.java | 16 +- .../v1beta1/SetNodePoolManagementRequest.java | 56 +- ...SetNodePoolManagementRequestOrBuilder.java | 16 +- .../v1beta1/SetNodePoolSizeRequest.java | 56 +- .../SetNodePoolSizeRequestOrBuilder.java | 16 +- .../v1beta1/StartIPRotationRequest.java | 42 +- .../StartIPRotationRequestOrBuilder.java | 12 +- .../container/v1beta1/StatusCondition.java | 14 +- .../v1beta1/StatusConditionOrBuilder.java | 4 +- .../v1beta1/UpdateClusterRequest.java | 42 +- .../UpdateClusterRequestOrBuilder.java | 12 +- .../v1beta1/UpdateMasterRequest.java | 42 +- .../v1beta1/UpdateMasterRequestOrBuilder.java | 12 +- .../v1beta1/UpdateNodePoolRequest.java | 335 ++- .../UpdateNodePoolRequestOrBuilder.java | 51 +- .../v1beta1/WorkloadIdentityConfig.java | 14 +- .../WorkloadIdentityConfigOrBuilder.java | 4 +- .../v1beta1/WorkloadMetadataConfig.java | 14 +- .../WorkloadMetadataConfigOrBuilder.java | 4 +- .../container/v1beta1/cluster_service.proto | 45 +- 202 files changed, 11222 insertions(+), 4590 deletions(-) create mode 100644 java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java create mode 100644 java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java create mode 100644 java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java create mode 100644 java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java create mode 100644 java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java create mode 100644 java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java create mode 100644 java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java create mode 100644 java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java index fc8341a222d6..9ecee9b6da3f 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java @@ -88,8 +88,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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String parent = "parent-995424086"; * ListClustersResponse response = clusterManagerClient.listClusters(parent); @@ -125,8 +128,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 * ClusterManagerSettings clusterManagerSettings = * ClusterManagerSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -137,8 +143,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 * ClusterManagerSettings clusterManagerSettings = * ClusterManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); * ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings); @@ -203,8 +212,11 @@ public ClusterManagerStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String parent = "parent-995424086"; * ListClustersResponse response = clusterManagerClient.listClusters(parent); @@ -228,8 +240,11 @@ public final ListClustersResponse listClusters(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -258,8 +273,11 @@ public final ListClustersResponse listClusters(String projectId, String zone) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListClustersRequest request = * ListClustersRequest.newBuilder() @@ -285,8 +303,11 @@ public final ListClustersResponse listClusters(ListClustersRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListClustersRequest request = * ListClustersRequest.newBuilder() @@ -312,8 +333,11 @@ public final UnaryCallablelistCluste * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * Cluster response = clusterManagerClient.getCluster(name); @@ -336,8 +360,11 @@ public final Cluster getCluster(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -373,8 +400,11 @@ public final Cluster getCluster(String projectId, String zone, String clusterId) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetClusterRequest request = * GetClusterRequest.newBuilder() @@ -401,8 +431,11 @@ public final Cluster getCluster(GetClusterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetClusterRequest request = * GetClusterRequest.newBuilder() @@ -439,8 +472,11 @@ public final UnaryCallablegetClusterCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String parent = "parent-995424086"; * Cluster cluster = Cluster.newBuilder().build(); @@ -478,8 +514,11 @@ public final Operation createCluster(String parent, Cluster cluster) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -526,8 +565,11 @@ public final Operation createCluster(String projectId, String zone, Cluster clus *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CreateClusterRequest request = * CreateClusterRequest.newBuilder() @@ -565,8 +607,11 @@ public final Operation createCluster(CreateClusterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CreateClusterRequest request = * CreateClusterRequest.newBuilder() @@ -593,8 +638,11 @@ public final UnaryCallablecreateClusterCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * ClusterUpdate update = ClusterUpdate.newBuilder().build(); @@ -620,8 +668,11 @@ public final Operation updateCluster(String name, ClusterUpdate update) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -661,8 +712,11 @@ public final Operation updateCluster( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateClusterRequest request = * UpdateClusterRequest.newBuilder() @@ -690,8 +744,11 @@ public final Operation updateCluster(UpdateClusterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateClusterRequest request = * UpdateClusterRequest.newBuilder() @@ -719,8 +776,11 @@ public final UnaryCallableupdateClusterCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateNodePoolRequest request = * UpdateNodePoolRequest.newBuilder() @@ -743,6 +803,7 @@ public final UnaryCallableupdateClusterCallabl * .setGcfsConfig(GcfsConfig.newBuilder().build()) * .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) * .setGvnic(VirtualNIC.newBuilder().build()) + * .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) * .build(); * Operation response = clusterManagerClient.updateNodePool(request); * } @@ -762,8 +823,11 @@ public final Operation updateNodePool(UpdateNodePoolRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateNodePoolRequest request = * UpdateNodePoolRequest.newBuilder() @@ -786,6 +850,7 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) { * .setGcfsConfig(GcfsConfig.newBuilder().build()) * .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) * .setGvnic(VirtualNIC.newBuilder().build()) + * .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) * .build(); * ApiFuturefuture = * clusterManagerClient.updateNodePoolCallable().futureCall(request); @@ -805,8 +870,11 @@ public final UnaryCallable updateNodePoolCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolAutoscalingRequest request = * SetNodePoolAutoscalingRequest.newBuilder() @@ -835,8 +903,11 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolAutoscalingRequest request = * SetNodePoolAutoscalingRequest.newBuilder() @@ -866,8 +937,11 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * String loggingService = "loggingService1098570326"; @@ -906,8 +980,11 @@ public final Operation setLoggingService(String name, String loggingService) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -958,8 +1035,11 @@ public final Operation setLoggingService( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLoggingServiceRequest request = * SetLoggingServiceRequest.newBuilder() @@ -987,8 +1067,11 @@ public final Operation setLoggingService(SetLoggingServiceRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLoggingServiceRequest request = * SetLoggingServiceRequest.newBuilder() @@ -1016,8 +1099,11 @@ public final UnaryCallablesetLoggingServic * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * String monitoringService = "monitoringService-1431578291"; @@ -1056,8 +1142,11 @@ public final Operation setMonitoringService(String name, String monitoringServic *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1108,8 +1197,11 @@ public final Operation setMonitoringService( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMonitoringServiceRequest request = * SetMonitoringServiceRequest.newBuilder() @@ -1137,8 +1229,11 @@ public final Operation setMonitoringService(SetMonitoringServiceRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMonitoringServiceRequest request = * SetMonitoringServiceRequest.newBuilder() @@ -1167,8 +1262,11 @@ public final Operation setMonitoringService(SetMonitoringServiceRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); @@ -1195,8 +1293,11 @@ public final Operation setAddonsConfig(String name, AddonsConfig addonsConfig) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1238,8 +1339,11 @@ public final Operation setAddonsConfig( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetAddonsConfigRequest request = * SetAddonsConfigRequest.newBuilder() @@ -1267,8 +1371,11 @@ public final Operation setAddonsConfig(SetAddonsConfigRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetAddonsConfigRequest request = * SetAddonsConfigRequest.newBuilder() @@ -1298,8 +1405,11 @@ public final UnaryCallablesetAddonsConfigCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * Listlocations = new ArrayList<>(); @@ -1334,8 +1444,11 @@ public final Operation setLocations(String name, List locations) { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1384,8 +1497,11 @@ public final Operation setLocations( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLocationsRequest request = * SetLocationsRequest.newBuilder() @@ -1417,8 +1533,11 @@ public final Operation setLocations(SetLocationsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLocationsRequest request = * SetLocationsRequest.newBuilder() @@ -1448,8 +1567,11 @@ public final UnaryCallablesetLocationsCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * String masterVersion = "masterVersion1167095830"; @@ -1481,8 +1603,11 @@ public final Operation updateMaster(String name, String masterVersion) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1529,8 +1654,11 @@ public final Operation updateMaster( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateMasterRequest request = * UpdateMasterRequest.newBuilder() @@ -1558,8 +1686,11 @@ public final Operation updateMaster(UpdateMasterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateMasterRequest request = * UpdateMasterRequest.newBuilder() @@ -1587,8 +1718,11 @@ public final UnaryCallableupdateMasterCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMasterAuthRequest request = * SetMasterAuthRequest.newBuilder() @@ -1617,8 +1751,11 @@ public final Operation setMasterAuth(SetMasterAuthRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMasterAuthRequest request = * SetMasterAuthRequest.newBuilder() @@ -1652,8 +1789,11 @@ public final UnaryCallablesetMasterAuthCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * Operation response = clusterManagerClient.deleteCluster(name); @@ -1682,8 +1822,11 @@ public final Operation deleteCluster(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1725,8 +1868,11 @@ public final Operation deleteCluster(String projectId, String zone, String clust *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * DeleteClusterRequest request = * DeleteClusterRequest.newBuilder() @@ -1759,8 +1905,11 @@ public final Operation deleteCluster(DeleteClusterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * DeleteClusterRequest request = * DeleteClusterRequest.newBuilder() @@ -1787,8 +1936,11 @@ public final UnaryCallabledeleteClusterCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1817,8 +1969,11 @@ public final ListOperationsResponse listOperations(String projectId, String zone *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListOperationsRequest request = * ListOperationsRequest.newBuilder() @@ -1844,8 +1999,11 @@ public final ListOperationsResponse listOperations(ListOperationsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListOperationsRequest request = * ListOperationsRequest.newBuilder() @@ -1872,8 +2030,11 @@ public final ListOperationsResponse listOperations(ListOperationsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * Operation response = clusterManagerClient.getOperation(name); @@ -1896,8 +2057,11 @@ public final Operation getOperation(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1933,8 +2097,11 @@ public final Operation getOperation(String projectId, String zone, String operat *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetOperationRequest request = * GetOperationRequest.newBuilder() @@ -1961,8 +2128,11 @@ public final Operation getOperation(GetOperationRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetOperationRequest request = * GetOperationRequest.newBuilder() @@ -1988,8 +2158,11 @@ public final UnaryCallablegetOperationCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * clusterManagerClient.cancelOperation(name); @@ -2012,8 +2185,11 @@ public final void cancelOperation(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2049,8 +2225,11 @@ public final void cancelOperation(String projectId, String zone, String operatio *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CancelOperationRequest request = * CancelOperationRequest.newBuilder() @@ -2077,8 +2256,11 @@ public final void cancelOperation(CancelOperationRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CancelOperationRequest request = * CancelOperationRequest.newBuilder() @@ -2104,8 +2286,11 @@ public final UnaryCallablecancelOperationCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * ServerConfig response = clusterManagerClient.getServerConfig(name); @@ -2128,8 +2313,11 @@ public final ServerConfig getServerConfig(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2158,8 +2346,11 @@ public final ServerConfig getServerConfig(String projectId, String zone) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetServerConfigRequest request = * GetServerConfigRequest.newBuilder() @@ -2185,8 +2376,11 @@ public final ServerConfig getServerConfig(GetServerConfigRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetServerConfigRequest request = * GetServerConfigRequest.newBuilder() @@ -2213,8 +2407,11 @@ public final UnaryCallablegetServerConfig * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetJSONWebKeysRequest request = * GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build(); @@ -2237,8 +2434,11 @@ public final GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetJSONWebKeysRequest request = * GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build(); @@ -2261,8 +2461,11 @@ public final GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String parent = "parent-995424086"; * ListNodePoolsResponse response = clusterManagerClient.listNodePools(parent); @@ -2285,8 +2488,11 @@ public final ListNodePoolsResponse listNodePools(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2324,8 +2530,11 @@ public final ListNodePoolsResponse listNodePools( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListNodePoolsRequest request = * ListNodePoolsRequest.newBuilder() @@ -2352,8 +2561,11 @@ public final ListNodePoolsResponse listNodePools(ListNodePoolsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListNodePoolsRequest request = * ListNodePoolsRequest.newBuilder() @@ -2380,8 +2592,11 @@ public final UnaryCallablelistNode * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * NodePool response = clusterManagerClient.getNodePool(name); @@ -2404,8 +2619,11 @@ public final NodePool getNodePool(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2446,8 +2664,11 @@ public final NodePool getNodePool( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetNodePoolRequest request = * GetNodePoolRequest.newBuilder() @@ -2475,8 +2696,11 @@ public final NodePool getNodePool(GetNodePoolRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetNodePoolRequest request = * GetNodePoolRequest.newBuilder() @@ -2503,8 +2727,11 @@ public final UnaryCallablegetNodePoolCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String parent = "parent-995424086"; * NodePool nodePool = NodePool.newBuilder().build(); @@ -2530,8 +2757,11 @@ public final Operation createNodePool(String parent, NodePool nodePool) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2572,8 +2802,11 @@ public final Operation createNodePool( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CreateNodePoolRequest request = * CreateNodePoolRequest.newBuilder() @@ -2601,8 +2834,11 @@ public final Operation createNodePool(CreateNodePoolRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CreateNodePoolRequest request = * CreateNodePoolRequest.newBuilder() @@ -2630,8 +2866,11 @@ public final UnaryCallablecreateNodePoolCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * Operation response = clusterManagerClient.deleteNodePool(name); @@ -2654,8 +2893,11 @@ public final Operation deleteNodePool(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2697,8 +2939,11 @@ public final Operation deleteNodePool( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * DeleteNodePoolRequest request = * DeleteNodePoolRequest.newBuilder() @@ -2726,8 +2971,11 @@ public final Operation deleteNodePool(DeleteNodePoolRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * DeleteNodePoolRequest request = * DeleteNodePoolRequest.newBuilder() @@ -2755,8 +3003,11 @@ public final UnaryCallabledeleteNodePoolCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CompleteNodePoolUpgradeRequest request = * CompleteNodePoolUpgradeRequest.newBuilder().setName("name3373707").build(); @@ -2778,8 +3029,11 @@ public final void completeNodePoolUpgrade(CompleteNodePoolUpgradeRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CompleteNodePoolUpgradeRequest request = * CompleteNodePoolUpgradeRequest.newBuilder().setName("name3373707").build(); @@ -2803,8 +3057,11 @@ public final void completeNodePoolUpgrade(CompleteNodePoolUpgradeRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * Operation response = clusterManagerClient.rollbackNodePoolUpgrade(name); @@ -2830,8 +3087,11 @@ public final Operation rollbackNodePoolUpgrade(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2874,8 +3134,11 @@ public final Operation rollbackNodePoolUpgrade( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * RollbackNodePoolUpgradeRequest request = * RollbackNodePoolUpgradeRequest.newBuilder() @@ -2905,8 +3168,11 @@ public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * RollbackNodePoolUpgradeRequest request = * RollbackNodePoolUpgradeRequest.newBuilder() @@ -2936,8 +3202,11 @@ public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolManagementRequest request = * SetNodePoolManagementRequest.newBuilder() @@ -2966,8 +3235,11 @@ public final Operation setNodePoolManagement(SetNodePoolManagementRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolManagementRequest request = * SetNodePoolManagementRequest.newBuilder() @@ -2997,8 +3269,11 @@ public final Operation setNodePoolManagement(SetNodePoolManagementRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLabelsRequest request = * SetLabelsRequest.newBuilder() @@ -3027,8 +3302,11 @@ public final Operation setLabels(SetLabelsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLabelsRequest request = * SetLabelsRequest.newBuilder() @@ -3056,8 +3334,11 @@ public final UnaryCallablesetLabelsCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * boolean enabled = true; @@ -3083,8 +3364,11 @@ public final Operation setLegacyAbac(String name, boolean enabled) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -3124,8 +3408,11 @@ public final Operation setLegacyAbac( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLegacyAbacRequest request = * SetLegacyAbacRequest.newBuilder() @@ -3153,8 +3440,11 @@ public final Operation setLegacyAbac(SetLegacyAbacRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLegacyAbacRequest request = * SetLegacyAbacRequest.newBuilder() @@ -3182,8 +3472,11 @@ public final UnaryCallablesetLegacyAbacCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * Operation response = clusterManagerClient.startIPRotation(name); @@ -3206,8 +3499,11 @@ public final Operation startIPRotation(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -3243,8 +3539,11 @@ public final Operation startIPRotation(String projectId, String zone, String clu *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * StartIPRotationRequest request = * StartIPRotationRequest.newBuilder() @@ -3272,8 +3571,11 @@ public final Operation startIPRotation(StartIPRotationRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * StartIPRotationRequest request = * StartIPRotationRequest.newBuilder() @@ -3301,8 +3603,11 @@ public final UnaryCallablestartIPRotationCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * Operation response = clusterManagerClient.completeIPRotation(name); @@ -3326,8 +3631,11 @@ public final Operation completeIPRotation(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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -3363,8 +3671,11 @@ public final Operation completeIPRotation(String projectId, String zone, String *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CompleteIPRotationRequest request = * CompleteIPRotationRequest.newBuilder() @@ -3391,8 +3702,11 @@ public final Operation completeIPRotation(CompleteIPRotationRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CompleteIPRotationRequest request = * CompleteIPRotationRequest.newBuilder() @@ -3421,8 +3735,11 @@ public final UnaryCallablecompleteIPRotat * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolSizeRequest request = * SetNodePoolSizeRequest.newBuilder() @@ -3453,8 +3770,11 @@ public final Operation setNodePoolSize(SetNodePoolSizeRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolSizeRequest request = * SetNodePoolSizeRequest.newBuilder() @@ -3483,8 +3803,11 @@ public final UnaryCallablesetNodePoolSizeCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); @@ -3510,8 +3833,11 @@ public final Operation setNetworkPolicy(String name, NetworkPolicy networkPolicy *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -3552,8 +3878,11 @@ public final Operation setNetworkPolicy( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNetworkPolicyRequest request = * SetNetworkPolicyRequest.newBuilder() @@ -3581,8 +3910,11 @@ public final Operation setNetworkPolicy(SetNetworkPolicyRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNetworkPolicyRequest request = * SetNetworkPolicyRequest.newBuilder() @@ -3610,8 +3942,11 @@ public final UnaryCallablesetNetworkPolicyC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String name = "name3373707"; * MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); @@ -3641,8 +3976,11 @@ public final Operation setMaintenancePolicy(String name, MaintenancePolicy maint *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -3681,8 +4019,11 @@ public final Operation setMaintenancePolicy( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMaintenancePolicyRequest request = * SetMaintenancePolicyRequest.newBuilder() @@ -3710,8 +4051,11 @@ public final Operation setMaintenancePolicy(SetMaintenancePolicyRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMaintenancePolicyRequest request = * SetMaintenancePolicyRequest.newBuilder() @@ -3740,8 +4084,11 @@ public final Operation setMaintenancePolicy(SetMaintenancePolicyRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListUsableSubnetworksRequest request = * ListUsableSubnetworksRequest.newBuilder() @@ -3772,8 +4119,11 @@ public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListUsableSubnetworksRequest request = * ListUsableSubnetworksRequest.newBuilder() @@ -3803,8 +4153,11 @@ public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListUsableSubnetworksRequest request = * ListUsableSubnetworksRequest.newBuilder() diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java index 5a804baeb123..4a7cc8076b11 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -95,17 +95,17 @@ *For example, to set the total timeout of listClusters 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 * ClusterManagerSettings.Builder clusterManagerSettingsBuilder = * ClusterManagerSettings.newBuilder(); * clusterManagerSettingsBuilder * .listClustersSettings() * .setRetrySettings( - * clusterManagerSettingsBuilder - * .listClustersSettings() - * .getRetrySettings() - * .toBuilder() + * clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build(); diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java index c2a618381aea..84370f49b6aa 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java @@ -26,8 +26,11 @@ *Sample for ClusterManagerClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String parent = "parent-995424086"; * ListClustersResponse response = clusterManagerClient.listClusters(parent); diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java index bb8d316da375..99e83bbf9ff0 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java @@ -111,17 +111,17 @@ *For example, to set the total timeout of listClusters 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 * ClusterManagerStubSettings.Builder clusterManagerSettingsBuilder = * ClusterManagerStubSettings.newBuilder(); * clusterManagerSettingsBuilder * .listClustersSettings() * .setRetrySettings( - * clusterManagerSettingsBuilder - * .listClustersSettings() - * .getRetrySettings() - * .toBuilder() + * clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ClusterManagerStubSettings clusterManagerSettings = clusterManagerSettingsBuilder.build(); diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java index 2f3eb4ff9530..7b84c5547118 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java @@ -93,8 +93,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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -131,8 +134,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 * ClusterManagerSettings clusterManagerSettings = * ClusterManagerSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -143,8 +149,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 * ClusterManagerSettings clusterManagerSettings = * ClusterManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); * ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings); @@ -210,8 +219,11 @@ public ClusterManagerStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -240,8 +252,11 @@ public final ListClustersResponse listClusters(String projectId, String zone) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListClustersRequest request = * ListClustersRequest.newBuilder() @@ -267,8 +282,11 @@ public final ListClustersResponse listClusters(ListClustersRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListClustersRequest request = * ListClustersRequest.newBuilder() @@ -294,8 +312,11 @@ public final UnaryCallablelistCluste * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -331,8 +352,11 @@ public final Cluster getCluster(String projectId, String zone, String clusterId) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetClusterRequest request = * GetClusterRequest.newBuilder() @@ -359,8 +383,11 @@ public final Cluster getCluster(GetClusterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetClusterRequest request = * GetClusterRequest.newBuilder() @@ -397,8 +424,11 @@ public final UnaryCallablegetClusterCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -445,8 +475,11 @@ public final Operation createCluster(String projectId, String zone, Cluster clus *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CreateClusterRequest request = * CreateClusterRequest.newBuilder() @@ -484,8 +517,11 @@ public final Operation createCluster(CreateClusterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CreateClusterRequest request = * CreateClusterRequest.newBuilder() @@ -512,8 +548,11 @@ public final UnaryCallablecreateClusterCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -553,8 +592,11 @@ public final Operation updateCluster( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateClusterRequest request = * UpdateClusterRequest.newBuilder() @@ -582,8 +624,11 @@ public final Operation updateCluster(UpdateClusterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateClusterRequest request = * UpdateClusterRequest.newBuilder() @@ -611,8 +656,11 @@ public final UnaryCallableupdateClusterCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateNodePoolRequest request = * UpdateNodePoolRequest.newBuilder() @@ -635,6 +683,7 @@ public final UnaryCallableupdateClusterCallabl * .setGcfsConfig(GcfsConfig.newBuilder().build()) * .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) * .setGvnic(VirtualNIC.newBuilder().build()) + * .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) * .build(); * Operation response = clusterManagerClient.updateNodePool(request); * } @@ -654,8 +703,11 @@ public final Operation updateNodePool(UpdateNodePoolRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateNodePoolRequest request = * UpdateNodePoolRequest.newBuilder() @@ -678,6 +730,7 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) { * .setGcfsConfig(GcfsConfig.newBuilder().build()) * .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) * .setGvnic(VirtualNIC.newBuilder().build()) + * .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) * .build(); * ApiFuturefuture = * clusterManagerClient.updateNodePoolCallable().futureCall(request); @@ -697,8 +750,11 @@ public final UnaryCallable updateNodePoolCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolAutoscalingRequest request = * SetNodePoolAutoscalingRequest.newBuilder() @@ -727,8 +783,11 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolAutoscalingRequest request = * SetNodePoolAutoscalingRequest.newBuilder() @@ -758,8 +817,11 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -810,8 +872,11 @@ public final Operation setLoggingService( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLoggingServiceRequest request = * SetLoggingServiceRequest.newBuilder() @@ -839,8 +904,11 @@ public final Operation setLoggingService(SetLoggingServiceRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLoggingServiceRequest request = * SetLoggingServiceRequest.newBuilder() @@ -868,8 +936,11 @@ public final UnaryCallablesetLoggingServic * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -920,8 +991,11 @@ public final Operation setMonitoringService( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMonitoringServiceRequest request = * SetMonitoringServiceRequest.newBuilder() @@ -949,8 +1023,11 @@ public final Operation setMonitoringService(SetMonitoringServiceRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMonitoringServiceRequest request = * SetMonitoringServiceRequest.newBuilder() @@ -979,8 +1056,11 @@ public final Operation setMonitoringService(SetMonitoringServiceRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1022,8 +1102,11 @@ public final Operation setAddonsConfig( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetAddonsConfigRequest request = * SetAddonsConfigRequest.newBuilder() @@ -1051,8 +1134,11 @@ public final Operation setAddonsConfig(SetAddonsConfigRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetAddonsConfigRequest request = * SetAddonsConfigRequest.newBuilder() @@ -1082,8 +1168,11 @@ public final UnaryCallablesetAddonsConfigCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1132,8 +1221,11 @@ public final Operation setLocations( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLocationsRequest request = * SetLocationsRequest.newBuilder() @@ -1165,8 +1257,11 @@ public final Operation setLocations(SetLocationsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLocationsRequest request = * SetLocationsRequest.newBuilder() @@ -1196,8 +1291,11 @@ public final UnaryCallablesetLocationsCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1244,8 +1342,11 @@ public final Operation updateMaster( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateMasterRequest request = * UpdateMasterRequest.newBuilder() @@ -1273,8 +1374,11 @@ public final Operation updateMaster(UpdateMasterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * UpdateMasterRequest request = * UpdateMasterRequest.newBuilder() @@ -1302,8 +1406,11 @@ public final UnaryCallableupdateMasterCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMasterAuthRequest request = * SetMasterAuthRequest.newBuilder() @@ -1332,8 +1439,11 @@ public final Operation setMasterAuth(SetMasterAuthRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetMasterAuthRequest request = * SetMasterAuthRequest.newBuilder() @@ -1367,8 +1477,11 @@ public final UnaryCallablesetMasterAuthCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1410,8 +1523,11 @@ public final Operation deleteCluster(String projectId, String zone, String clust *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * DeleteClusterRequest request = * DeleteClusterRequest.newBuilder() @@ -1444,8 +1560,11 @@ public final Operation deleteCluster(DeleteClusterRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * DeleteClusterRequest request = * DeleteClusterRequest.newBuilder() @@ -1472,8 +1591,11 @@ public final UnaryCallabledeleteClusterCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1502,8 +1624,11 @@ public final ListOperationsResponse listOperations(String projectId, String zone *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListOperationsRequest request = * ListOperationsRequest.newBuilder() @@ -1529,8 +1654,11 @@ public final ListOperationsResponse listOperations(ListOperationsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListOperationsRequest request = * ListOperationsRequest.newBuilder() @@ -1557,8 +1685,11 @@ public final ListOperationsResponse listOperations(ListOperationsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1594,8 +1725,11 @@ public final Operation getOperation(String projectId, String zone, String operat *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetOperationRequest request = * GetOperationRequest.newBuilder() @@ -1622,8 +1756,11 @@ public final Operation getOperation(GetOperationRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetOperationRequest request = * GetOperationRequest.newBuilder() @@ -1649,8 +1786,11 @@ public final UnaryCallablegetOperationCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1686,8 +1826,11 @@ public final void cancelOperation(String projectId, String zone, String operatio *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CancelOperationRequest request = * CancelOperationRequest.newBuilder() @@ -1714,8 +1857,11 @@ public final void cancelOperation(CancelOperationRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CancelOperationRequest request = * CancelOperationRequest.newBuilder() @@ -1741,8 +1887,11 @@ public final UnaryCallablecancelOperationCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1771,8 +1920,11 @@ public final ServerConfig getServerConfig(String projectId, String zone) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetServerConfigRequest request = * GetServerConfigRequest.newBuilder() @@ -1798,8 +1950,11 @@ public final ServerConfig getServerConfig(GetServerConfigRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetServerConfigRequest request = * GetServerConfigRequest.newBuilder() @@ -1825,8 +1980,11 @@ public final UnaryCallablegetServerConfig * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -1864,8 +2022,11 @@ public final ListNodePoolsResponse listNodePools( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListNodePoolsRequest request = * ListNodePoolsRequest.newBuilder() @@ -1892,8 +2053,11 @@ public final ListNodePoolsResponse listNodePools(ListNodePoolsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * ListNodePoolsRequest request = * ListNodePoolsRequest.newBuilder() @@ -1921,8 +2085,11 @@ public final UnaryCallablelistNode * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetJSONWebKeysRequest request = * GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build(); @@ -1945,8 +2112,11 @@ public final GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetJSONWebKeysRequest request = * GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build(); @@ -1969,8 +2139,11 @@ public final GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2011,8 +2184,11 @@ public final NodePool getNodePool( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetNodePoolRequest request = * GetNodePoolRequest.newBuilder() @@ -2040,8 +2216,11 @@ public final NodePool getNodePool(GetNodePoolRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * GetNodePoolRequest request = * GetNodePoolRequest.newBuilder() @@ -2068,8 +2247,11 @@ public final UnaryCallablegetNodePoolCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2110,8 +2292,11 @@ public final Operation createNodePool( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CreateNodePoolRequest request = * CreateNodePoolRequest.newBuilder() @@ -2139,8 +2324,11 @@ public final Operation createNodePool(CreateNodePoolRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CreateNodePoolRequest request = * CreateNodePoolRequest.newBuilder() @@ -2168,8 +2356,11 @@ public final UnaryCallablecreateNodePoolCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2211,8 +2402,11 @@ public final Operation deleteNodePool( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * DeleteNodePoolRequest request = * DeleteNodePoolRequest.newBuilder() @@ -2240,8 +2434,11 @@ public final Operation deleteNodePool(DeleteNodePoolRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * DeleteNodePoolRequest request = * DeleteNodePoolRequest.newBuilder() @@ -2269,8 +2466,11 @@ public final UnaryCallabledeleteNodePoolCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CompleteNodePoolUpgradeRequest request = * CompleteNodePoolUpgradeRequest.newBuilder().setName("name3373707").build(); @@ -2292,8 +2492,11 @@ public final void completeNodePoolUpgrade(CompleteNodePoolUpgradeRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CompleteNodePoolUpgradeRequest request = * CompleteNodePoolUpgradeRequest.newBuilder().setName("name3373707").build(); @@ -2317,8 +2520,11 @@ public final void completeNodePoolUpgrade(CompleteNodePoolUpgradeRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2361,8 +2567,11 @@ public final Operation rollbackNodePoolUpgrade( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * RollbackNodePoolUpgradeRequest request = * RollbackNodePoolUpgradeRequest.newBuilder() @@ -2392,8 +2601,11 @@ public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * RollbackNodePoolUpgradeRequest request = * RollbackNodePoolUpgradeRequest.newBuilder() @@ -2423,8 +2635,11 @@ public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2474,8 +2689,11 @@ public final Operation setNodePoolManagement( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolManagementRequest request = * SetNodePoolManagementRequest.newBuilder() @@ -2504,8 +2722,11 @@ public final Operation setNodePoolManagement(SetNodePoolManagementRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetNodePoolManagementRequest request = * SetNodePoolManagementRequest.newBuilder() @@ -2535,8 +2756,11 @@ public final Operation setNodePoolManagement(SetNodePoolManagementRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2589,8 +2813,11 @@ public final Operation setLabels( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLabelsRequest request = * SetLabelsRequest.newBuilder() @@ -2619,8 +2846,11 @@ public final Operation setLabels(SetLabelsRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLabelsRequest request = * SetLabelsRequest.newBuilder() @@ -2648,8 +2878,11 @@ public final UnaryCallablesetLabelsCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2689,8 +2922,11 @@ public final Operation setLegacyAbac( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLegacyAbacRequest request = * SetLegacyAbacRequest.newBuilder() @@ -2718,8 +2954,11 @@ public final Operation setLegacyAbac(SetLegacyAbacRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * SetLegacyAbacRequest request = * SetLegacyAbacRequest.newBuilder() @@ -2747,8 +2986,11 @@ public final UnaryCallablesetLegacyAbacCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2784,8 +3026,11 @@ public final Operation startIPRotation(String projectId, String zone, String clu *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * StartIPRotationRequest request = * StartIPRotationRequest.newBuilder() @@ -2813,8 +3058,11 @@ public final Operation startIPRotation(StartIPRotationRequest 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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * StartIPRotationRequest request = * StartIPRotationRequest.newBuilder() @@ -2842,8 +3090,11 @@ public final UnaryCallablestartIPRotationCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * String projectId = "projectId-894832108"; * String zone = "zone3744684"; @@ -2879,8 +3130,11 @@ public final Operation completeIPRotation(String projectId, String zone, String *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { * CompleteIPRotationRequest request = * CompleteIPRotationRequest.newBuilder() @@ -2907,8 +3161,11 @@ public final Operation completeIPRotation(CompleteIPRotationRequest request) { *