Skip to content

Commit

Permalink
chore: [tpu] adding imports for types in LRO annotations (#9110)
Browse files Browse the repository at this point in the history
* chore: add import for empty.proto

PiperOrigin-RevId: 508454292

Source-Link: googleapis/googleapis@e3abc06

Source-Link: https://github.com/googleapis/googleapis-gen/commit/86481e1ea6da166c598293eb22662ede5edeb122
Copy-Tag: eyJwIjoiamF2YS10cHUvLk93bEJvdC55YW1sIiwiaCI6Ijg2NDgxZTFlYTZkYTE2NmM1OTgyOTNlYjIyNjYyZWRlNWVkZWIxMjIifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: adding imports for types in LRO annotations

PiperOrigin-RevId: 508454659

Source-Link: googleapis/googleapis@cd53720

Source-Link: https://github.com/googleapis/googleapis-gen/commit/fd75657cd5fc733d31af679927532cfdcc8f1812
Copy-Tag: eyJwIjoiamF2YS10cHUvLk93bEJvdC55YW1sIiwiaCI6ImZkNzU2NTdjZDVmYzczM2QzMWFmNjc5OTI3NTMyY2ZkY2M4ZjE4MTIifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 15, 2023
1 parent 802115c commit 9e07c6e
Show file tree
Hide file tree
Showing 12 changed files with 2,513 additions and 523 deletions.
6 changes: 3 additions & 3 deletions java-tpu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-tpu</artifactId>
<version>2.10.0</version>
<version>2.11.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-tpu:2.10.0'
implementation 'com.google.cloud:google-cloud-tpu:2.11.0'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.10.0"
libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.11.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ public void getNodeTest() throws Exception {
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setQueuedResource("queuedResource94310049")
.setAcceleratorConfig(AcceleratorConfig.newBuilder().build())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
mockTpu.addResponse(expectedResponse);
Expand Down Expand Up @@ -263,6 +264,7 @@ public void getNodeTest2() throws Exception {
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setQueuedResource("queuedResource94310049")
.setAcceleratorConfig(AcceleratorConfig.newBuilder().build())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
mockTpu.addResponse(expectedResponse);
Expand Down Expand Up @@ -319,6 +321,7 @@ public void createNodeTest() throws Exception {
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setQueuedResource("queuedResource94310049")
.setAcceleratorConfig(AcceleratorConfig.newBuilder().build())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Expand Down Expand Up @@ -389,6 +392,7 @@ public void createNodeTest2() throws Exception {
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setQueuedResource("queuedResource94310049")
.setAcceleratorConfig(AcceleratorConfig.newBuilder().build())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Expand Down Expand Up @@ -543,6 +547,7 @@ public void stopNodeTest() throws Exception {
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setQueuedResource("queuedResource94310049")
.setAcceleratorConfig(AcceleratorConfig.newBuilder().build())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Expand Down Expand Up @@ -613,6 +618,7 @@ public void startNodeTest() throws Exception {
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setQueuedResource("queuedResource94310049")
.setAcceleratorConfig(AcceleratorConfig.newBuilder().build())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Expand Down Expand Up @@ -683,6 +689,7 @@ public void updateNodeTest() throws Exception {
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setQueuedResource("queuedResource94310049")
.setAcceleratorConfig(AcceleratorConfig.newBuilder().build())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Expand Down Expand Up @@ -1256,6 +1263,7 @@ public void getAcceleratorTypeTest() throws Exception {
.setName(
AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]").toString())
.setType("type3575610")
.addAllAcceleratorConfigs(new ArrayList<AcceleratorConfig>())
.build();
mockTpu.addResponse(expectedResponse);

Expand Down Expand Up @@ -1298,6 +1306,7 @@ public void getAcceleratorTypeTest2() throws Exception {
.setName(
AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]").toString())
.setType("type3575610")
.addAllAcceleratorConfigs(new ArrayList<AcceleratorConfig>())
.build();
mockTpu.addResponse(expectedResponse);

Expand Down Expand Up @@ -1572,6 +1581,7 @@ public void simulateMaintenanceEventTest() throws Exception {
.addAllDataDisks(new ArrayList<AttachedDisk>())
.addAllSymptoms(new ArrayList<Symptom>())
.setQueuedResource("queuedResource94310049")
.setAcceleratorConfig(AcceleratorConfig.newBuilder().build())
.setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Expand Down
Loading

0 comments on commit 9e07c6e

Please sign in to comment.