Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 144a9ee

Browse files
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: googleapis/googleapis@a5a8829 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: googleapis/googleapis@9212f73 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: googleapis/googleapis@88f2ea3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
1 parent 983b7f9 commit 144a9ee

File tree

202 files changed

+11222
-4590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+11222
-4590
lines changed

google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java

Lines changed: 587 additions & 234 deletions
Large diffs are not rendered by default.

google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,17 @@
9595
* <p>For example, to set the total timeout of listClusters to 30 seconds:
9696
*
9797
* <pre>{@code
98-
* // This snippet has been automatically generated for illustrative purposes only.
99-
* // It may require modifications to work in your environment.
98+
* // This snippet has been automatically generated and should be regarded as a code template only.
99+
* // It will require modifications to work:
100+
* // - It may require correct/in-range values for request initialization.
101+
* // - It may require specifying regional endpoints when creating the service client as shown in
102+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
100103
* ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
101104
* ClusterManagerSettings.newBuilder();
102105
* clusterManagerSettingsBuilder
103106
* .listClustersSettings()
104107
* .setRetrySettings(
105-
* clusterManagerSettingsBuilder
106-
* .listClustersSettings()
107-
* .getRetrySettings()
108-
* .toBuilder()
108+
* clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder()
109109
* .setTotalTimeout(Duration.ofSeconds(30))
110110
* .build());
111111
* ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();

google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
2626
* <p>Sample for ClusterManagerClient:
2727
*
2828
* <pre>{@code
29-
* // This snippet has been automatically generated for illustrative purposes only.
30-
* // It may require modifications to work in your environment.
29+
* // This snippet has been automatically generated and should be regarded as a code template only.
30+
* // It will require modifications to work:
31+
* // - It may require correct/in-range values for request initialization.
32+
* // - It may require specifying regional endpoints when creating the service client as shown in
33+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3134
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
3235
* String parent = "parent-995424086";
3336
* ListClustersResponse response = clusterManagerClient.listClusters(parent);

google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@
111111
* <p>For example, to set the total timeout of listClusters to 30 seconds:
112112
*
113113
* <pre>{@code
114-
* // This snippet has been automatically generated for illustrative purposes only.
115-
* // It may require modifications to work in your environment.
114+
* // This snippet has been automatically generated and should be regarded as a code template only.
115+
* // It will require modifications to work:
116+
* // - It may require correct/in-range values for request initialization.
117+
* // - It may require specifying regional endpoints when creating the service client as shown in
118+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
116119
* ClusterManagerStubSettings.Builder clusterManagerSettingsBuilder =
117120
* ClusterManagerStubSettings.newBuilder();
118121
* clusterManagerSettingsBuilder
119122
* .listClustersSettings()
120123
* .setRetrySettings(
121-
* clusterManagerSettingsBuilder
122-
* .listClustersSettings()
123-
* .getRetrySettings()
124-
* .toBuilder()
124+
* clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder()
125125
* .setTotalTimeout(Duration.ofSeconds(30))
126126
* .build());
127127
* ClusterManagerStubSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();

google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java

Lines changed: 502 additions & 200 deletions
Large diffs are not rendered by default.

google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@
9797
* <p>For example, to set the total timeout of listClusters to 30 seconds:
9898
*
9999
* <pre>{@code
100-
* // This snippet has been automatically generated for illustrative purposes only.
101-
* // It may require modifications to work in your environment.
100+
* // This snippet has been automatically generated and should be regarded as a code template only.
101+
* // It will require modifications to work:
102+
* // - It may require correct/in-range values for request initialization.
103+
* // - It may require specifying regional endpoints when creating the service client as shown in
104+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
102105
* ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
103106
* ClusterManagerSettings.newBuilder();
104107
* clusterManagerSettingsBuilder
105108
* .listClustersSettings()
106109
* .setRetrySettings(
107-
* clusterManagerSettingsBuilder
108-
* .listClustersSettings()
109-
* .getRetrySettings()
110-
* .toBuilder()
110+
* clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder()
111111
* .setTotalTimeout(Duration.ofSeconds(30))
112112
* .build());
113113
* ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();

google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
2626
* <p>Sample for ClusterManagerClient:
2727
*
2828
* <pre>{@code
29-
* // This snippet has been automatically generated for illustrative purposes only.
30-
* // It may require modifications to work in your environment.
29+
* // This snippet has been automatically generated and should be regarded as a code template only.
30+
* // It will require modifications to work:
31+
* // - It may require correct/in-range values for request initialization.
32+
* // - It may require specifying regional endpoints when creating the service client as shown in
33+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3134
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
3235
* String projectId = "projectId-894832108";
3336
* String zone = "zone3744684";

google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,17 @@
113113
* <p>For example, to set the total timeout of listClusters to 30 seconds:
114114
*
115115
* <pre>{@code
116-
* // This snippet has been automatically generated for illustrative purposes only.
117-
* // It may require modifications to work in your environment.
116+
* // This snippet has been automatically generated and should be regarded as a code template only.
117+
* // It will require modifications to work:
118+
* // - It may require correct/in-range values for request initialization.
119+
* // - It may require specifying regional endpoints when creating the service client as shown in
120+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
118121
* ClusterManagerStubSettings.Builder clusterManagerSettingsBuilder =
119122
* ClusterManagerStubSettings.newBuilder();
120123
* clusterManagerSettingsBuilder
121124
* .listClustersSettings()
122125
* .setRetrySettings(
123-
* clusterManagerSettingsBuilder
124-
* .listClustersSettings()
125-
* .getRetrySettings()
126-
* .toBuilder()
126+
* clusterManagerSettingsBuilder.listClustersSettings().getRetrySettings().toBuilder()
127127
* .setTotalTimeout(Duration.ofSeconds(30))
128128
* .build());
129129
* ClusterManagerStubSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();

google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
import com.google.container.v1.NodePoolAutoConfig;
8282
import com.google.container.v1.NodePoolAutoscaling;
8383
import com.google.container.v1.NodePoolDefaults;
84+
import com.google.container.v1.NodePoolLoggingConfig;
8485
import com.google.container.v1.NodeTaints;
8586
import com.google.container.v1.NotificationConfig;
8687
import com.google.container.v1.Operation;
@@ -712,6 +713,7 @@ public void updateNodePoolTest() throws Exception {
712713
.setGcfsConfig(GcfsConfig.newBuilder().build())
713714
.setConfidentialNodes(ConfidentialNodes.newBuilder().build())
714715
.setGvnic(VirtualNIC.newBuilder().build())
716+
.setLoggingConfig(NodePoolLoggingConfig.newBuilder().build())
715717
.build();
716718

717719
Operation actualResponse = client.updateNodePool(request);
@@ -741,6 +743,7 @@ public void updateNodePoolTest() throws Exception {
741743
Assert.assertEquals(request.getGcfsConfig(), actualRequest.getGcfsConfig());
742744
Assert.assertEquals(request.getConfidentialNodes(), actualRequest.getConfidentialNodes());
743745
Assert.assertEquals(request.getGvnic(), actualRequest.getGvnic());
746+
Assert.assertEquals(request.getLoggingConfig(), actualRequest.getLoggingConfig());
744747
Assert.assertTrue(
745748
channelProvider.isHeaderSent(
746749
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -774,6 +777,7 @@ public void updateNodePoolExceptionTest() throws Exception {
774777
.setGcfsConfig(GcfsConfig.newBuilder().build())
775778
.setConfidentialNodes(ConfidentialNodes.newBuilder().build())
776779
.setGvnic(VirtualNIC.newBuilder().build())
780+
.setLoggingConfig(NodePoolLoggingConfig.newBuilder().build())
777781
.build();
778782
client.updateNodePool(request);
779783
Assert.fail("No exception raised");

google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
import com.google.container.v1beta1.NodePoolAutoConfig;
8888
import com.google.container.v1beta1.NodePoolAutoscaling;
8989
import com.google.container.v1beta1.NodePoolDefaults;
90+
import com.google.container.v1beta1.NodePoolLoggingConfig;
9091
import com.google.container.v1beta1.NodeTaints;
9192
import com.google.container.v1beta1.NotificationConfig;
9293
import com.google.container.v1beta1.Operation;
@@ -493,6 +494,7 @@ public void updateNodePoolTest() throws Exception {
493494
.setGcfsConfig(GcfsConfig.newBuilder().build())
494495
.setConfidentialNodes(ConfidentialNodes.newBuilder().build())
495496
.setGvnic(VirtualNIC.newBuilder().build())
497+
.setLoggingConfig(NodePoolLoggingConfig.newBuilder().build())
496498
.build();
497499

498500
Operation actualResponse = client.updateNodePool(request);
@@ -522,6 +524,7 @@ public void updateNodePoolTest() throws Exception {
522524
Assert.assertEquals(request.getGcfsConfig(), actualRequest.getGcfsConfig());
523525
Assert.assertEquals(request.getConfidentialNodes(), actualRequest.getConfidentialNodes());
524526
Assert.assertEquals(request.getGvnic(), actualRequest.getGvnic());
527+
Assert.assertEquals(request.getLoggingConfig(), actualRequest.getLoggingConfig());
525528
Assert.assertTrue(
526529
channelProvider.isHeaderSent(
527530
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -555,6 +558,7 @@ public void updateNodePoolExceptionTest() throws Exception {
555558
.setGcfsConfig(GcfsConfig.newBuilder().build())
556559
.setConfidentialNodes(ConfidentialNodes.newBuilder().build())
557560
.setGvnic(VirtualNIC.newBuilder().build())
561+
.setLoggingConfig(NodePoolLoggingConfig.newBuilder().build())
558562
.build();
559563
client.updateNodePool(request);
560564
Assert.fail("No exception raised");

0 commit comments

Comments
 (0)