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

feat: TPU v2alpha1 public protos #99

Merged
merged 6 commits into from Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
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.1.2'
implementation 'com.google.cloud:google-cloud-tpu:2.1.3'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.1.2"
libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.1.3"
```

## Authentication
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-tpu-bom/pom.xml
Expand Up @@ -63,11 +63,21 @@
<artifactId>grpc-google-cloud-tpu-v1</artifactId>
<version>2.1.4-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-tpu-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-tpu-v2alpha1</artifactId>
<version>2.1.4-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-tpu-v2alpha1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-tpu-v1</artifactId>
<version>2.1.4-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-tpu-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-tpu-v2alpha1</artifactId>
<version>2.1.4-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-tpu-v2alpha1:current} -->
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
9 changes: 9 additions & 0 deletions google-cloud-tpu/pom.xml
Expand Up @@ -42,6 +42,10 @@
<artifactId>proto-google-common-protos</artifactId>
</dependency>

<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-tpu-v2alpha1</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-tpu-v1</artifactId>
Expand Down Expand Up @@ -76,6 +80,11 @@
<artifactId>grpc-google-cloud-tpu-v1</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-tpu-v2alpha1</artifactId>
<scope>test</scope>
</dependency>
<!-- Need testing utility classes for generated gRPC clients tests -->
<dependency>
<groupId>com.google.api</groupId>
Expand Down
Expand Up @@ -462,7 +462,9 @@ public static List<String> getDefaultServiceScopes() {

/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
return GoogleCredentialsProvider.newBuilder()
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
.setUseJwtAccessWithScope(true);
}

/** Returns a builder for the default ChannelProvider for this service. */
Expand Down