Skip to content

Commit e0590e5

Browse files
1 parent 0123c39 commit e0590e5

File tree

15 files changed

+315
-47
lines changed

15 files changed

+315
-47
lines changed

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

clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/CloudWorkstations.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,30 +1158,31 @@ public List setPageToken(java.lang.String pageToken) {
11581158

11591159
/**
11601160
* When set to `true`, operations that are reachable are returned as normal, and those
1161-
* that are unreachable are returned in the [ListOperationsResponse.unreachable] field.
1162-
* This can only be `true` when reading across collections e.g. when `parent` is set to
1163-
* `"projects/example/locations/-"`. This field is not by default supported and will
1161+
* that are unreachable are returned in the ListOperationsResponse.unreachable field. This
1162+
* can only be `true` when reading across collections. For example, when `parent` is set
1163+
* to `"projects/example/locations/-"`. This field is not supported by default and will
11641164
* result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
11651165
* service or product specific documentation.
11661166
*/
11671167
@com.google.api.client.util.Key
11681168
private java.lang.Boolean returnPartialSuccess;
11691169

11701170
/** When set to `true`, operations that are reachable are returned as normal, and those that are
1171-
unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true`
1172-
when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This
1173-
field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless
1174-
explicitly documented otherwise in service or product specific documentation.
1171+
unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true`
1172+
when reading across collections. For example, when `parent` is set to
1173+
`"projects/example/locations/-"`. This field is not supported by default and will result in an
1174+
`UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific
1175+
documentation.
11751176
*/
11761177
public java.lang.Boolean getReturnPartialSuccess() {
11771178
return returnPartialSuccess;
11781179
}
11791180

11801181
/**
11811182
* When set to `true`, operations that are reachable are returned as normal, and those
1182-
* that are unreachable are returned in the [ListOperationsResponse.unreachable] field.
1183-
* This can only be `true` when reading across collections e.g. when `parent` is set to
1184-
* `"projects/example/locations/-"`. This field is not by default supported and will
1183+
* that are unreachable are returned in the ListOperationsResponse.unreachable field. This
1184+
* can only be `true` when reading across collections. For example, when `parent` is set
1185+
* to `"projects/example/locations/-"`. This field is not supported by default and will
11851186
* result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
11861187
* service or product specific documentation.
11871188
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
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.v1.model;
18+
19+
/**
20+
* A Persistent Directory backed by a Compute Engine [Hyperdisk Balanced High Availability
21+
* Disk](https://cloud.google.com/compute/docs/disks/hd-types/hyperdisk-balanced-ha). This is a
22+
* high-availability block storage solution that offers a balance between performance and cost for
23+
* most general-purpose workloads.
24+
*
25+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
26+
* transmitted over HTTP when working with the Cloud Workstations API. For a detailed explanation
27+
* see:
28+
* <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>
29+
* </p>
30+
*
31+
* @author Google, Inc.
32+
*/
33+
@SuppressWarnings("javadoc")
34+
public final class GceHyperdiskBalancedHighAvailability extends com.google.api.client.json.GenericJson {
35+
36+
/**
37+
* Optional. Number of seconds to wait after initially creating or subsequently shutting down the
38+
* workstation before converting its disk into a snapshot. This generally saves costs at the
39+
* expense of greater startup time on next workstation start, as the service will need to create a
40+
* disk from the archival snapshot. A value of `"0s"` indicates that the disk will never be
41+
* archived.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private String archiveTimeout;
46+
47+
/**
48+
* Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid
49+
* values are `DELETE` and `RETAIN`. Defaults to `DELETE`.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String reclaimPolicy;
54+
55+
/**
56+
* Optional. The GB capacity of a persistent home directory for each workstation created with this
57+
* configuration. Must be empty if source_snapshot is set. Valid values are `10`, `50`, `100`,
58+
* `200`, `500`, or `1000`. Defaults to `200`.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.lang.Integer sizeGb;
63+
64+
/**
65+
* Optional. Name of the snapshot to use as the source for the disk. If set, size_gb must be
66+
* empty. Must be formatted as ext4 file system with no partitions.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private java.lang.String sourceSnapshot;
71+
72+
/**
73+
* Optional. Number of seconds to wait after initially creating or subsequently shutting down the
74+
* workstation before converting its disk into a snapshot. This generally saves costs at the
75+
* expense of greater startup time on next workstation start, as the service will need to create a
76+
* disk from the archival snapshot. A value of `"0s"` indicates that the disk will never be
77+
* archived.
78+
* @return value or {@code null} for none
79+
*/
80+
public String getArchiveTimeout() {
81+
return archiveTimeout;
82+
}
83+
84+
/**
85+
* Optional. Number of seconds to wait after initially creating or subsequently shutting down the
86+
* workstation before converting its disk into a snapshot. This generally saves costs at the
87+
* expense of greater startup time on next workstation start, as the service will need to create a
88+
* disk from the archival snapshot. A value of `"0s"` indicates that the disk will never be
89+
* archived.
90+
* @param archiveTimeout archiveTimeout or {@code null} for none
91+
*/
92+
public GceHyperdiskBalancedHighAvailability setArchiveTimeout(String archiveTimeout) {
93+
this.archiveTimeout = archiveTimeout;
94+
return this;
95+
}
96+
97+
/**
98+
* Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid
99+
* values are `DELETE` and `RETAIN`. Defaults to `DELETE`.
100+
* @return value or {@code null} for none
101+
*/
102+
public java.lang.String getReclaimPolicy() {
103+
return reclaimPolicy;
104+
}
105+
106+
/**
107+
* Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid
108+
* values are `DELETE` and `RETAIN`. Defaults to `DELETE`.
109+
* @param reclaimPolicy reclaimPolicy or {@code null} for none
110+
*/
111+
public GceHyperdiskBalancedHighAvailability setReclaimPolicy(java.lang.String reclaimPolicy) {
112+
this.reclaimPolicy = reclaimPolicy;
113+
return this;
114+
}
115+
116+
/**
117+
* Optional. The GB capacity of a persistent home directory for each workstation created with this
118+
* configuration. Must be empty if source_snapshot is set. Valid values are `10`, `50`, `100`,
119+
* `200`, `500`, or `1000`. Defaults to `200`.
120+
* @return value or {@code null} for none
121+
*/
122+
public java.lang.Integer getSizeGb() {
123+
return sizeGb;
124+
}
125+
126+
/**
127+
* Optional. The GB capacity of a persistent home directory for each workstation created with this
128+
* configuration. Must be empty if source_snapshot is set. Valid values are `10`, `50`, `100`,
129+
* `200`, `500`, or `1000`. Defaults to `200`.
130+
* @param sizeGb sizeGb or {@code null} for none
131+
*/
132+
public GceHyperdiskBalancedHighAvailability setSizeGb(java.lang.Integer sizeGb) {
133+
this.sizeGb = sizeGb;
134+
return this;
135+
}
136+
137+
/**
138+
* Optional. Name of the snapshot to use as the source for the disk. If set, size_gb must be
139+
* empty. Must be formatted as ext4 file system with no partitions.
140+
* @return value or {@code null} for none
141+
*/
142+
public java.lang.String getSourceSnapshot() {
143+
return sourceSnapshot;
144+
}
145+
146+
/**
147+
* Optional. Name of the snapshot to use as the source for the disk. If set, size_gb must be
148+
* empty. Must be formatted as ext4 file system with no partitions.
149+
* @param sourceSnapshot sourceSnapshot or {@code null} for none
150+
*/
151+
public GceHyperdiskBalancedHighAvailability setSourceSnapshot(java.lang.String sourceSnapshot) {
152+
this.sourceSnapshot = sourceSnapshot;
153+
return this;
154+
}
155+
156+
@Override
157+
public GceHyperdiskBalancedHighAvailability set(String fieldName, Object value) {
158+
return (GceHyperdiskBalancedHighAvailability) super.set(fieldName, value);
159+
}
160+
161+
@Override
162+
public GceHyperdiskBalancedHighAvailability clone() {
163+
return (GceHyperdiskBalancedHighAvailability) super.clone();
164+
}
165+
166+
}

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,20 @@ public final class GceInstance extends com.google.api.client.json.GenericJson {
170170
@com.google.api.client.util.Key
171171
private GceShieldedInstanceConfig shieldedInstanceConfig;
172172

173+
/**
174+
* Optional. Link to the startup script stored in Cloud Storage. This script will be run on the
175+
* host workstation VM when the VM is created. The URI must be of the form gs://{bucket-
176+
* name}/{object-name}. If specifying a startup script, the service account must have [Permission
177+
* to access the bucket and script file in Cloud
178+
* Storage](https://cloud.google.com/storage/docs/access-control/iam-permissions). Otherwise, the
179+
* script must be publicly accessible. Note that the service regularly updates the OS version
180+
* used, and it is the responsibility of the user to ensure the script stays compatible with the
181+
* OS version.
182+
* The value may be {@code null}.
183+
*/
184+
@com.google.api.client.util.Key
185+
private java.lang.String startupScriptUri;
186+
173187
/**
174188
* Optional. Network tags to add to the Compute Engine VMs backing the workstations. This option
175189
* applies [network tags](https://cloud.google.com/vpc/docs/add-remove-network-tags) to VMs
@@ -485,6 +499,37 @@ public GceInstance setShieldedInstanceConfig(GceShieldedInstanceConfig shieldedI
485499
return this;
486500
}
487501

502+
/**
503+
* Optional. Link to the startup script stored in Cloud Storage. This script will be run on the
504+
* host workstation VM when the VM is created. The URI must be of the form gs://{bucket-
505+
* name}/{object-name}. If specifying a startup script, the service account must have [Permission
506+
* to access the bucket and script file in Cloud
507+
* Storage](https://cloud.google.com/storage/docs/access-control/iam-permissions). Otherwise, the
508+
* script must be publicly accessible. Note that the service regularly updates the OS version
509+
* used, and it is the responsibility of the user to ensure the script stays compatible with the
510+
* OS version.
511+
* @return value or {@code null} for none
512+
*/
513+
public java.lang.String getStartupScriptUri() {
514+
return startupScriptUri;
515+
}
516+
517+
/**
518+
* Optional. Link to the startup script stored in Cloud Storage. This script will be run on the
519+
* host workstation VM when the VM is created. The URI must be of the form gs://{bucket-
520+
* name}/{object-name}. If specifying a startup script, the service account must have [Permission
521+
* to access the bucket and script file in Cloud
522+
* Storage](https://cloud.google.com/storage/docs/access-control/iam-permissions). Otherwise, the
523+
* script must be publicly accessible. Note that the service regularly updates the OS version
524+
* used, and it is the responsibility of the user to ensure the script stays compatible with the
525+
* OS version.
526+
* @param startupScriptUri startupScriptUri or {@code null} for none
527+
*/
528+
public GceInstance setStartupScriptUri(java.lang.String startupScriptUri) {
529+
this.startupScriptUri = startupScriptUri;
530+
return this;
531+
}
532+
488533
/**
489534
* Optional. Network tags to add to the Compute Engine VMs backing the workstations. This option
490535
* applies [network tags](https://cloud.google.com/vpc/docs/add-remove-network-tags) to VMs

clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/ListOperationsResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class ListOperationsResponse extends com.google.api.client.json.Gen
4646

4747
/**
4848
* Unordered list. Unreachable resources. Populated when the request sets
49-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
49+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
5050
* attempting to list all resources across all supported locations.
5151
* The value may be {@code null}.
5252
*/
@@ -89,7 +89,7 @@ public ListOperationsResponse setOperations(java.util.List<Operation> operations
8989

9090
/**
9191
* Unordered list. Unreachable resources. Populated when the request sets
92-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
92+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
9393
* attempting to list all resources across all supported locations.
9494
* @return value or {@code null} for none
9595
*/
@@ -99,7 +99,7 @@ public java.util.List<java.lang.String> getUnreachable() {
9999

100100
/**
101101
* Unordered list. Unreachable resources. Populated when the request sets
102-
* `ListOperationsRequest.return_partial_success` and reads across collections e.g. when
102+
* `ListOperationsRequest.return_partial_success` and reads across collections. For example, when
103103
* attempting to list all resources across all supported locations.
104104
* @param unreachable unreachable or {@code null} for none
105105
*/

clients/google-api-services-workstations/v1/2.0.0/com/google/api/services/workstations/v1/model/PersistentDirectory.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
@SuppressWarnings("javadoc")
3232
public final class PersistentDirectory extends com.google.api.client.json.GenericJson {
3333

34+
/**
35+
* A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private GceHyperdiskBalancedHighAvailability gceHd;
40+
3441
/**
3542
* A PersistentDirectory backed by a Compute Engine persistent disk.
3643
* The value may be {@code null}.
@@ -45,6 +52,23 @@ public final class PersistentDirectory extends com.google.api.client.json.Generi
4552
@com.google.api.client.util.Key
4653
private java.lang.String mountPath;
4754

55+
/**
56+
* A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.
57+
* @return value or {@code null} for none
58+
*/
59+
public GceHyperdiskBalancedHighAvailability getGceHd() {
60+
return gceHd;
61+
}
62+
63+
/**
64+
* A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.
65+
* @param gceHd gceHd or {@code null} for none
66+
*/
67+
public PersistentDirectory setGceHd(GceHyperdiskBalancedHighAvailability gceHd) {
68+
this.gceHd = gceHd;
69+
return this;
70+
}
71+
4872
/**
4973
* A PersistentDirectory backed by a Compute Engine persistent disk.
5074
* @return value or {@code null} for none

clients/google-api-services-workstations/v1/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>v1-rev20251022-2.0.0</version>
12-
<name>Cloud Workstations API v1-rev20251022-2.0.0</name>
11+
<version>v1-rev20251202-2.0.0</version>
12+
<name>Cloud Workstations API v1-rev20251202-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

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

0 commit comments

Comments
 (0)