Skip to content

Commit a22d4b7

Browse files
1 parent ed1a07e commit a22d4b7

File tree

4 files changed

+48
-9
lines changed

4 files changed

+48
-9
lines changed

clients/google-api-services-tpu/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-tpu</artifactId>
25-
<version>v2-rev20241126-2.0.0</version>
25+
<version>v2-rev20250103-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-tpu:v2-rev20241126-2.0.0'
38+
implementation 'com.google.apis:google-api-services-tpu:v2-rev20250103-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-tpu/v2/2.0.0/com/google/api/services/tpu/v2/model/Node.java

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,28 @@ public final class Node extends com.google.api.client.json.GenericJson {
140140
private java.lang.String name;
141141

142142
/**
143-
* Network configurations for the TPU node.
143+
* Network configurations for the TPU node. network_config and network_configs are mutually
144+
* exclusive, you can only specify one of them. If both are specified, an error will be returned.
144145
* The value may be {@code null}.
145146
*/
146147
@com.google.api.client.util.Key
147148
private NetworkConfig networkConfig;
148149

150+
/**
151+
* Optional. Repeated network configurations for the TPU node. This field is used to specify
152+
* multiple networks configs for the TPU node. network_config and network_configs are mutually
153+
* exclusive, you can only specify one of them. If both are specified, an error will be returned.
154+
* The value may be {@code null}.
155+
*/
156+
@com.google.api.client.util.Key
157+
private java.util.List<NetworkConfig> networkConfigs;
158+
159+
static {
160+
// hack to force ProGuard to consider NetworkConfig used, since otherwise it would be stripped out
161+
// see https://github.com/google/google-api-java-client/issues/543
162+
com.google.api.client.util.Data.nullOf(NetworkConfig.class);
163+
}
164+
149165
/**
150166
* Output only. The network endpoints where TPU workers can be accessed and sent work. It is
151167
* recommended that runtime clients of the node reach out to the 0th entry in this map first.
@@ -469,22 +485,45 @@ public Node setName(java.lang.String name) {
469485
}
470486

471487
/**
472-
* Network configurations for the TPU node.
488+
* Network configurations for the TPU node. network_config and network_configs are mutually
489+
* exclusive, you can only specify one of them. If both are specified, an error will be returned.
473490
* @return value or {@code null} for none
474491
*/
475492
public NetworkConfig getNetworkConfig() {
476493
return networkConfig;
477494
}
478495

479496
/**
480-
* Network configurations for the TPU node.
497+
* Network configurations for the TPU node. network_config and network_configs are mutually
498+
* exclusive, you can only specify one of them. If both are specified, an error will be returned.
481499
* @param networkConfig networkConfig or {@code null} for none
482500
*/
483501
public Node setNetworkConfig(NetworkConfig networkConfig) {
484502
this.networkConfig = networkConfig;
485503
return this;
486504
}
487505

506+
/**
507+
* Optional. Repeated network configurations for the TPU node. This field is used to specify
508+
* multiple networks configs for the TPU node. network_config and network_configs are mutually
509+
* exclusive, you can only specify one of them. If both are specified, an error will be returned.
510+
* @return value or {@code null} for none
511+
*/
512+
public java.util.List<NetworkConfig> getNetworkConfigs() {
513+
return networkConfigs;
514+
}
515+
516+
/**
517+
* Optional. Repeated network configurations for the TPU node. This field is used to specify
518+
* multiple networks configs for the TPU node. network_config and network_configs are mutually
519+
* exclusive, you can only specify one of them. If both are specified, an error will be returned.
520+
* @param networkConfigs networkConfigs or {@code null} for none
521+
*/
522+
public Node setNetworkConfigs(java.util.List<NetworkConfig> networkConfigs) {
523+
this.networkConfigs = networkConfigs;
524+
return this;
525+
}
526+
488527
/**
489528
* Output only. The network endpoints where TPU workers can be accessed and sent work. It is
490529
* recommended that runtime clients of the node reach out to the 0th entry in this map first.

clients/google-api-services-tpu/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-tpu</artifactId>
11-
<version>v2-rev20241126-2.0.0</version>
12-
<name>Cloud TPU API v2-rev20241126-2.0.0</name>
11+
<version>v2-rev20250103-2.0.0</version>
12+
<name>Cloud TPU API v2-rev20250103-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-tpu/v2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-tpu</artifactId>
25-
<version>v2-rev20241126-2.0.0</version>
25+
<version>v2-rev20250103-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-tpu:v2-rev20241126-2.0.0'
38+
implementation 'com.google.apis:google-api-services-tpu:v2-rev20250103-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)