Skip to content

Commit 52c8228

Browse files
1 parent 9dc3bd1 commit 52c8228

File tree

6 files changed

+230
-6
lines changed

6 files changed

+230
-6
lines changed

clients/google-api-services-workstations/v1beta/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-workstations</artifactId>
25-
<version>v1beta-rev20250604-2.0.0</version>
25+
<version>v1beta-rev20250625-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-workstations:v1beta-rev20250604-2.0.0'
38+
implementation 'com.google.apis:google-api-services-workstations:v1beta-rev20250625-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-workstations/v1beta/2.0.0/com/google/api/services/workstations/v1beta/model/BoostConfig.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,22 @@ public final class BoostConfig extends com.google.api.client.json.GenericJson {
103103
@com.google.api.client.util.Key
104104
private java.lang.Integer poolSize;
105105

106+
/**
107+
* Optional. [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-
108+
* zonal-resources) specifies a reservation that can be consumed to create boost VM instances. If
109+
* SPECIFIC_RESERVATION is specified, Cloud Workstations will only create VMs in the zone where
110+
* the reservation is located. This would affect availability since the service will no longer be
111+
* resilient to zonal outages. If ANY_RESERVATION is specified, creating reservations in both
112+
* zones that the config creates VMs in will ensure higher availability. **Important
113+
* Considerations for Reservation Affinity:** * This feature is intended for advanced users and
114+
* requires familiarity with Google Compute Engine reservations. * Using reservations incurs
115+
* charges, regardless of utilization. * The resources in the pool will consume the specified
116+
* reservation. Take this into account when setting the pool size.
117+
* The value may be {@code null}.
118+
*/
119+
@com.google.api.client.util.Key
120+
private ReservationAffinity reservationAffinity;
121+
106122
/**
107123
* Optional. A list of the type and count of accelerator cards attached to the boost instance.
108124
* Defaults to `none`.
@@ -247,6 +263,41 @@ public BoostConfig setPoolSize(java.lang.Integer poolSize) {
247263
return this;
248264
}
249265

266+
/**
267+
* Optional. [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-
268+
* zonal-resources) specifies a reservation that can be consumed to create boost VM instances. If
269+
* SPECIFIC_RESERVATION is specified, Cloud Workstations will only create VMs in the zone where
270+
* the reservation is located. This would affect availability since the service will no longer be
271+
* resilient to zonal outages. If ANY_RESERVATION is specified, creating reservations in both
272+
* zones that the config creates VMs in will ensure higher availability. **Important
273+
* Considerations for Reservation Affinity:** * This feature is intended for advanced users and
274+
* requires familiarity with Google Compute Engine reservations. * Using reservations incurs
275+
* charges, regardless of utilization. * The resources in the pool will consume the specified
276+
* reservation. Take this into account when setting the pool size.
277+
* @return value or {@code null} for none
278+
*/
279+
public ReservationAffinity getReservationAffinity() {
280+
return reservationAffinity;
281+
}
282+
283+
/**
284+
* Optional. [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-
285+
* zonal-resources) specifies a reservation that can be consumed to create boost VM instances. If
286+
* SPECIFIC_RESERVATION is specified, Cloud Workstations will only create VMs in the zone where
287+
* the reservation is located. This would affect availability since the service will no longer be
288+
* resilient to zonal outages. If ANY_RESERVATION is specified, creating reservations in both
289+
* zones that the config creates VMs in will ensure higher availability. **Important
290+
* Considerations for Reservation Affinity:** * This feature is intended for advanced users and
291+
* requires familiarity with Google Compute Engine reservations. * Using reservations incurs
292+
* charges, regardless of utilization. * The resources in the pool will consume the specified
293+
* reservation. Take this into account when setting the pool size.
294+
* @param reservationAffinity reservationAffinity or {@code null} for none
295+
*/
296+
public BoostConfig setReservationAffinity(ReservationAffinity reservationAffinity) {
297+
this.reservationAffinity = reservationAffinity;
298+
return this;
299+
}
300+
250301
@Override
251302
public BoostConfig set(String fieldName, Object value) {
252303
return (BoostConfig) super.set(fieldName, value);

clients/google-api-services-workstations/v1beta/2.0.0/com/google/api/services/workstations/v1beta/model/GceInstance.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,22 @@ public final class GceInstance extends com.google.api.client.json.GenericJson {
138138
@com.google.api.client.util.Key
139139
private java.lang.Integer pooledInstances;
140140

141+
/**
142+
* Optional. [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-
143+
* zonal-resources) specifies a reservation that can be consumed to create boost VM instances. If
144+
* SPECIFIC_RESERVATION is specified, Cloud Workstations will only create VMs in the zone where
145+
* the reservation is located. This would affect availability since the service will no longer be
146+
* resilient to zonal outages. If ANY_RESERVATION is specified, creating reservations in both
147+
* zones that the config creates VMs in will ensure higher availability. **Important
148+
* Considerations for Reservation Affinity:** * This feature is intended for advanced users and
149+
* requires familiarity with Google Compute Engine reservations. * Using reservations incurs
150+
* charges, regardless of utilization. * The resources in the pool will consume the specified
151+
* reservation. Take this into account when setting the pool size.
152+
* The value may be {@code null}.
153+
*/
154+
@com.google.api.client.util.Key
155+
private ReservationAffinity reservationAffinity;
156+
141157
/**
142158
* Optional. The email address of the service account for Cloud Workstations VMs created with this
143159
* configuration. When specified, be sure that the service account has `logging.logEntries.create`
@@ -412,6 +428,41 @@ public GceInstance setPooledInstances(java.lang.Integer pooledInstances) {
412428
return this;
413429
}
414430

431+
/**
432+
* Optional. [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-
433+
* zonal-resources) specifies a reservation that can be consumed to create boost VM instances. If
434+
* SPECIFIC_RESERVATION is specified, Cloud Workstations will only create VMs in the zone where
435+
* the reservation is located. This would affect availability since the service will no longer be
436+
* resilient to zonal outages. If ANY_RESERVATION is specified, creating reservations in both
437+
* zones that the config creates VMs in will ensure higher availability. **Important
438+
* Considerations for Reservation Affinity:** * This feature is intended for advanced users and
439+
* requires familiarity with Google Compute Engine reservations. * Using reservations incurs
440+
* charges, regardless of utilization. * The resources in the pool will consume the specified
441+
* reservation. Take this into account when setting the pool size.
442+
* @return value or {@code null} for none
443+
*/
444+
public ReservationAffinity getReservationAffinity() {
445+
return reservationAffinity;
446+
}
447+
448+
/**
449+
* Optional. [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-
450+
* zonal-resources) specifies a reservation that can be consumed to create boost VM instances. If
451+
* SPECIFIC_RESERVATION is specified, Cloud Workstations will only create VMs in the zone where
452+
* the reservation is located. This would affect availability since the service will no longer be
453+
* resilient to zonal outages. If ANY_RESERVATION is specified, creating reservations in both
454+
* zones that the config creates VMs in will ensure higher availability. **Important
455+
* Considerations for Reservation Affinity:** * This feature is intended for advanced users and
456+
* requires familiarity with Google Compute Engine reservations. * Using reservations incurs
457+
* charges, regardless of utilization. * The resources in the pool will consume the specified
458+
* reservation. Take this into account when setting the pool size.
459+
* @param reservationAffinity reservationAffinity or {@code null} for none
460+
*/
461+
public GceInstance setReservationAffinity(ReservationAffinity reservationAffinity) {
462+
this.reservationAffinity = reservationAffinity;
463+
return this;
464+
}
465+
415466
/**
416467
* Optional. The email address of the service account for Cloud Workstations VMs created with this
417468
* configuration. When specified, be sure that the service account has `logging.logEntries.create`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
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.workstations.v1beta.model;
18+
19+
/**
20+
* ReservationAffinity is the configuration of the desired reservation from which instances can
21+
* consume resources.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Workstations API. For a detailed explanation
25+
* see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class ReservationAffinity extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Optional. Corresponds to the type of reservation consumption.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String consumeReservationType;
40+
41+
/**
42+
* Optional. Corresponds to the label key of reservation resource.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String key;
47+
48+
/**
49+
* Optional. Corresponds to the label values of reservation resources. Valid values are either a
50+
* name to a reservation in the same project or "projects/{project}/reservations/{reservation}" to
51+
* target a shared reservation in the same zone but in a different project.
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.util.List<java.lang.String> values;
56+
57+
/**
58+
* Optional. Corresponds to the type of reservation consumption.
59+
* @return value or {@code null} for none
60+
*/
61+
public java.lang.String getConsumeReservationType() {
62+
return consumeReservationType;
63+
}
64+
65+
/**
66+
* Optional. Corresponds to the type of reservation consumption.
67+
* @param consumeReservationType consumeReservationType or {@code null} for none
68+
*/
69+
public ReservationAffinity setConsumeReservationType(java.lang.String consumeReservationType) {
70+
this.consumeReservationType = consumeReservationType;
71+
return this;
72+
}
73+
74+
/**
75+
* Optional. Corresponds to the label key of reservation resource.
76+
* @return value or {@code null} for none
77+
*/
78+
public java.lang.String getKey() {
79+
return key;
80+
}
81+
82+
/**
83+
* Optional. Corresponds to the label key of reservation resource.
84+
* @param key key or {@code null} for none
85+
*/
86+
public ReservationAffinity setKey(java.lang.String key) {
87+
this.key = key;
88+
return this;
89+
}
90+
91+
/**
92+
* Optional. Corresponds to the label values of reservation resources. Valid values are either a
93+
* name to a reservation in the same project or "projects/{project}/reservations/{reservation}" to
94+
* target a shared reservation in the same zone but in a different project.
95+
* @return value or {@code null} for none
96+
*/
97+
public java.util.List<java.lang.String> getValues() {
98+
return values;
99+
}
100+
101+
/**
102+
* Optional. Corresponds to the label values of reservation resources. Valid values are either a
103+
* name to a reservation in the same project or "projects/{project}/reservations/{reservation}" to
104+
* target a shared reservation in the same zone but in a different project.
105+
* @param values values or {@code null} for none
106+
*/
107+
public ReservationAffinity setValues(java.util.List<java.lang.String> values) {
108+
this.values = values;
109+
return this;
110+
}
111+
112+
@Override
113+
public ReservationAffinity set(String fieldName, Object value) {
114+
return (ReservationAffinity) super.set(fieldName, value);
115+
}
116+
117+
@Override
118+
public ReservationAffinity clone() {
119+
return (ReservationAffinity) super.clone();
120+
}
121+
122+
}

clients/google-api-services-workstations/v1beta/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-workstations</artifactId>
11-
<version>v1beta-rev20250604-2.0.0</version>
12-
<name>Cloud Workstations API v1beta-rev20250604-2.0.0</name>
11+
<version>v1beta-rev20250625-2.0.0</version>
12+
<name>Cloud Workstations API v1beta-rev20250625-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-workstations/v1beta/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-workstations</artifactId>
25-
<version>v1beta-rev20250604-2.0.0</version>
25+
<version>v1beta-rev20250625-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-workstations:v1beta-rev20250604-2.0.0'
38+
implementation 'com.google.apis:google-api-services-workstations:v1beta-rev20250625-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)