Skip to content

Commit 183f478

Browse files
1 parent f3a43ab commit 183f478

File tree

6 files changed

+325
-6
lines changed

6 files changed

+325
-6
lines changed

clients/google-api-services-tpu/v2alpha1/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>v2alpha1-rev20250903-2.0.0</version>
25+
<version>v2alpha1-rev20250918-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:v2alpha1-rev20250903-2.0.0'
38+
implementation 'com.google.apis:google-api-services-tpu:v2alpha1-rev20250918-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-tpu/v2alpha1/2.0.0/com/google/api/services/tpu/v2alpha1/TPU.java

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3593,6 +3593,145 @@ public Get set(String parameterName, Object value) {
35933593
return (Get) super.set(parameterName, value);
35943594
}
35953595
}
3596+
/**
3597+
* Gets the maintenance info for a queued resource.
3598+
*
3599+
* Create a request for the method "queuedResources.getMaintenanceInfo".
3600+
*
3601+
* This request holds the parameters needed by the tpu server. After setting any optional
3602+
* parameters, call the {@link GetMaintenanceInfo#execute()} method to invoke the remote operation.
3603+
*
3604+
* @param name Required. The QueuedResource name.
3605+
* @return the request
3606+
*/
3607+
public GetMaintenanceInfo getMaintenanceInfo(java.lang.String name) throws java.io.IOException {
3608+
GetMaintenanceInfo result = new GetMaintenanceInfo(name);
3609+
initialize(result);
3610+
return result;
3611+
}
3612+
3613+
public class GetMaintenanceInfo extends TPURequest<com.google.api.services.tpu.v2alpha1.model.GetMaintenanceInfoResponse> {
3614+
3615+
private static final String REST_PATH = "v2alpha1/{+name}:getMaintenanceInfo";
3616+
3617+
private final java.util.regex.Pattern NAME_PATTERN =
3618+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/queuedResources/[^/]+$");
3619+
3620+
/**
3621+
* Gets the maintenance info for a queued resource.
3622+
*
3623+
* Create a request for the method "queuedResources.getMaintenanceInfo".
3624+
*
3625+
* This request holds the parameters needed by the the tpu server. After setting any optional
3626+
* parameters, call the {@link GetMaintenanceInfo#execute()} method to invoke the remote
3627+
* operation. <p> {@link GetMaintenanceInfo#initialize(com.google.api.client.googleapis.services.A
3628+
* bstractGoogleClientRequest)} must be called to initialize this instance immediately after
3629+
* invoking the constructor. </p>
3630+
*
3631+
* @param name Required. The QueuedResource name.
3632+
* @since 1.13
3633+
*/
3634+
protected GetMaintenanceInfo(java.lang.String name) {
3635+
super(TPU.this, "GET", REST_PATH, null, com.google.api.services.tpu.v2alpha1.model.GetMaintenanceInfoResponse.class);
3636+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
3637+
if (!getSuppressPatternChecks()) {
3638+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
3639+
"Parameter name must conform to the pattern " +
3640+
"^projects/[^/]+/locations/[^/]+/queuedResources/[^/]+$");
3641+
}
3642+
}
3643+
3644+
@Override
3645+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
3646+
return super.executeUsingHead();
3647+
}
3648+
3649+
@Override
3650+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
3651+
return super.buildHttpRequestUsingHead();
3652+
}
3653+
3654+
@Override
3655+
public GetMaintenanceInfo set$Xgafv(java.lang.String $Xgafv) {
3656+
return (GetMaintenanceInfo) super.set$Xgafv($Xgafv);
3657+
}
3658+
3659+
@Override
3660+
public GetMaintenanceInfo setAccessToken(java.lang.String accessToken) {
3661+
return (GetMaintenanceInfo) super.setAccessToken(accessToken);
3662+
}
3663+
3664+
@Override
3665+
public GetMaintenanceInfo setAlt(java.lang.String alt) {
3666+
return (GetMaintenanceInfo) super.setAlt(alt);
3667+
}
3668+
3669+
@Override
3670+
public GetMaintenanceInfo setCallback(java.lang.String callback) {
3671+
return (GetMaintenanceInfo) super.setCallback(callback);
3672+
}
3673+
3674+
@Override
3675+
public GetMaintenanceInfo setFields(java.lang.String fields) {
3676+
return (GetMaintenanceInfo) super.setFields(fields);
3677+
}
3678+
3679+
@Override
3680+
public GetMaintenanceInfo setKey(java.lang.String key) {
3681+
return (GetMaintenanceInfo) super.setKey(key);
3682+
}
3683+
3684+
@Override
3685+
public GetMaintenanceInfo setOauthToken(java.lang.String oauthToken) {
3686+
return (GetMaintenanceInfo) super.setOauthToken(oauthToken);
3687+
}
3688+
3689+
@Override
3690+
public GetMaintenanceInfo setPrettyPrint(java.lang.Boolean prettyPrint) {
3691+
return (GetMaintenanceInfo) super.setPrettyPrint(prettyPrint);
3692+
}
3693+
3694+
@Override
3695+
public GetMaintenanceInfo setQuotaUser(java.lang.String quotaUser) {
3696+
return (GetMaintenanceInfo) super.setQuotaUser(quotaUser);
3697+
}
3698+
3699+
@Override
3700+
public GetMaintenanceInfo setUploadType(java.lang.String uploadType) {
3701+
return (GetMaintenanceInfo) super.setUploadType(uploadType);
3702+
}
3703+
3704+
@Override
3705+
public GetMaintenanceInfo setUploadProtocol(java.lang.String uploadProtocol) {
3706+
return (GetMaintenanceInfo) super.setUploadProtocol(uploadProtocol);
3707+
}
3708+
3709+
/** Required. The QueuedResource name. */
3710+
@com.google.api.client.util.Key
3711+
private java.lang.String name;
3712+
3713+
/** Required. The QueuedResource name.
3714+
*/
3715+
public java.lang.String getName() {
3716+
return name;
3717+
}
3718+
3719+
/** Required. The QueuedResource name. */
3720+
public GetMaintenanceInfo setName(java.lang.String name) {
3721+
if (!getSuppressPatternChecks()) {
3722+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
3723+
"Parameter name must conform to the pattern " +
3724+
"^projects/[^/]+/locations/[^/]+/queuedResources/[^/]+$");
3725+
}
3726+
this.name = name;
3727+
return this;
3728+
}
3729+
3730+
@Override
3731+
public GetMaintenanceInfo set(String parameterName, Object value) {
3732+
return (GetMaintenanceInfo) super.set(parameterName, value);
3733+
}
3734+
}
35963735
/**
35973736
* Lists queued resources.
35983737
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.tpu.v2alpha1.model;
18+
19+
/**
20+
* Response for GetMaintenanceInfo.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud TPU API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GetMaintenanceInfoResponse extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The list of upcoming maintenance entries.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<NodeUpcomingMaintenanceInfo> nodeUpcomingMaintenances;
38+
39+
/**
40+
* The list of upcoming maintenance entries.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.util.List<NodeUpcomingMaintenanceInfo> getNodeUpcomingMaintenances() {
44+
return nodeUpcomingMaintenances;
45+
}
46+
47+
/**
48+
* The list of upcoming maintenance entries.
49+
* @param nodeUpcomingMaintenances nodeUpcomingMaintenances or {@code null} for none
50+
*/
51+
public GetMaintenanceInfoResponse setNodeUpcomingMaintenances(java.util.List<NodeUpcomingMaintenanceInfo> nodeUpcomingMaintenances) {
52+
this.nodeUpcomingMaintenances = nodeUpcomingMaintenances;
53+
return this;
54+
}
55+
56+
@Override
57+
public GetMaintenanceInfoResponse set(String fieldName, Object value) {
58+
return (GetMaintenanceInfoResponse) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GetMaintenanceInfoResponse clone() {
63+
return (GetMaintenanceInfoResponse) super.clone();
64+
}
65+
66+
}
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.tpu.v2alpha1.model;
18+
19+
/**
20+
* A tuple containing node name / ID and maintenance info.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud TPU API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class NodeUpcomingMaintenanceInfo extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Unqualified node name.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String nodeName;
38+
39+
/**
40+
* UID of this node.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
44+
private java.lang.Long nodeUid;
45+
46+
/**
47+
* Upcoming maintenance info for this node.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private UpcomingMaintenance upcomingMaintenance;
52+
53+
/**
54+
* Unqualified node name.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.lang.String getNodeName() {
58+
return nodeName;
59+
}
60+
61+
/**
62+
* Unqualified node name.
63+
* @param nodeName nodeName or {@code null} for none
64+
*/
65+
public NodeUpcomingMaintenanceInfo setNodeName(java.lang.String nodeName) {
66+
this.nodeName = nodeName;
67+
return this;
68+
}
69+
70+
/**
71+
* UID of this node.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.Long getNodeUid() {
75+
return nodeUid;
76+
}
77+
78+
/**
79+
* UID of this node.
80+
* @param nodeUid nodeUid or {@code null} for none
81+
*/
82+
public NodeUpcomingMaintenanceInfo setNodeUid(java.lang.Long nodeUid) {
83+
this.nodeUid = nodeUid;
84+
return this;
85+
}
86+
87+
/**
88+
* Upcoming maintenance info for this node.
89+
* @return value or {@code null} for none
90+
*/
91+
public UpcomingMaintenance getUpcomingMaintenance() {
92+
return upcomingMaintenance;
93+
}
94+
95+
/**
96+
* Upcoming maintenance info for this node.
97+
* @param upcomingMaintenance upcomingMaintenance or {@code null} for none
98+
*/
99+
public NodeUpcomingMaintenanceInfo setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) {
100+
this.upcomingMaintenance = upcomingMaintenance;
101+
return this;
102+
}
103+
104+
@Override
105+
public NodeUpcomingMaintenanceInfo set(String fieldName, Object value) {
106+
return (NodeUpcomingMaintenanceInfo) super.set(fieldName, value);
107+
}
108+
109+
@Override
110+
public NodeUpcomingMaintenanceInfo clone() {
111+
return (NodeUpcomingMaintenanceInfo) super.clone();
112+
}
113+
114+
}

clients/google-api-services-tpu/v2alpha1/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>v2alpha1-rev20250903-2.0.0</version>
12-
<name>Cloud TPU API v2alpha1-rev20250903-2.0.0</name>
11+
<version>v2alpha1-rev20250918-2.0.0</version>
12+
<name>Cloud TPU API v2alpha1-rev20250918-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-tpu/v2alpha1/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>v2alpha1-rev20250903-2.0.0</version>
25+
<version>v2alpha1-rev20250918-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:v2alpha1-rev20250903-2.0.0'
38+
implementation 'com.google.apis:google-api-services-tpu:v2alpha1-rev20250918-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)