Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Sep 15, 2022
1 parent 9d017c7 commit c7e9109
Show file tree
Hide file tree
Showing 266 changed files with 1,257 additions and 80,880 deletions.
4 changes: 2 additions & 2 deletions java-tpu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file:
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-tpu:2.3.3'
implementation 'com.google.cloud:google-cloud-tpu:2.3.5'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.3.3"
libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.3.5"
```

## Authentication
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@
* <p>For example, to set the total timeout of getNode to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* TpuSettings.Builder tpuSettingsBuilder = TpuSettings.newBuilder();
* tpuSettingsBuilder
* .getNodeSettings()
* .setRetrySettings(
* tpuSettingsBuilder
* .getNodeSettings()
* .getRetrySettings()
* .toBuilder()
* tpuSettingsBuilder.getNodeSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TpuSettings tpuSettings = tpuSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
* <p>Sample for TpuClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (TpuClient tpuClient = TpuClient.create()) {
* NodeName name = NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]");
* Node response = tpuClient.getNode(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@
* <p>For example, to set the total timeout of getNode to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* TpuStubSettings.Builder tpuSettingsBuilder = TpuStubSettings.newBuilder();
* tpuSettingsBuilder
* .getNodeSettings()
* .setRetrySettings(
* tpuSettingsBuilder
* .getNodeSettings()
* .getRetrySettings()
* .toBuilder()
* tpuSettingsBuilder.getNodeSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TpuStubSettings tpuSettings = tpuSettingsBuilder.build();
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@
* <p>For example, to set the total timeout of getNode to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* TpuSettings.Builder tpuSettingsBuilder = TpuSettings.newBuilder();
* tpuSettingsBuilder
* .getNodeSettings()
* .setRetrySettings(
* tpuSettingsBuilder
* .getNodeSettings()
* .getRetrySettings()
* .toBuilder()
* tpuSettingsBuilder.getNodeSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TpuSettings tpuSettings = tpuSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
* <p>Sample for TpuClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (TpuClient tpuClient = TpuClient.create()) {
* NodeName name = NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]");
* Node response = tpuClient.getNode(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@
* <p>For example, to set the total timeout of getNode to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* TpuStubSettings.Builder tpuSettingsBuilder = TpuStubSettings.newBuilder();
* tpuSettingsBuilder
* .getNodeSettings()
* .setRetrySettings(
* tpuSettingsBuilder
* .getNodeSettings()
* .getRetrySettings()
* .toBuilder()
* tpuSettingsBuilder.getNodeSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TpuStubSettings tpuSettings = tpuSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public void getNodeTest() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
mockTpu.addResponse(expectedResponse);

Expand Down Expand Up @@ -251,6 +252,7 @@ public void getNodeTest2() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
mockTpu.addResponse(expectedResponse);

Expand Down Expand Up @@ -305,6 +307,7 @@ public void createNodeTest() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -373,6 +376,7 @@ public void createNodeTest2() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -441,6 +445,7 @@ public void deleteNodeTest() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -503,6 +508,7 @@ public void deleteNodeTest2() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -565,6 +571,7 @@ public void stopNodeTest() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -627,6 +634,7 @@ public void startNodeTest() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -689,6 +697,7 @@ public void updateNodeTest() throws Exception {
.setId(3355)
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down
Loading

0 comments on commit c7e9109

Please sign in to comment.