Skip to content

Commit e03e839

Browse files
1 parent a6313af commit e03e839

6 files changed

Lines changed: 258 additions & 6 deletions

File tree

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

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

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5279,6 +5279,137 @@ public Stop set(String parameterName, Object value) {
52795279
return (Stop) super.set(parameterName, value);
52805280
}
52815281
}
5282+
/**
5283+
* Suspends a workstation to reduce costs.
5284+
*
5285+
* Create a request for the method "workstations.suspend".
5286+
*
5287+
* This request holds the parameters needed by the workstations server. After setting any optional
5288+
* parameters, call the {@link Suspend#execute()} method to invoke the remote operation.
5289+
*
5290+
* @param name Required. Name of the workstation to suspend.
5291+
* @param content the {@link com.google.api.services.workstations.v1beta.model.SuspendWorkstationRequest}
5292+
* @return the request
5293+
*/
5294+
public Suspend suspend(java.lang.String name, com.google.api.services.workstations.v1beta.model.SuspendWorkstationRequest content) throws java.io.IOException {
5295+
Suspend result = new Suspend(name, content);
5296+
initialize(result);
5297+
return result;
5298+
}
5299+
5300+
public class Suspend extends CloudWorkstationsRequest<com.google.api.services.workstations.v1beta.model.Operation> {
5301+
5302+
private static final String REST_PATH = "v1beta/{+name}:suspend";
5303+
5304+
private final java.util.regex.Pattern NAME_PATTERN =
5305+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$");
5306+
5307+
/**
5308+
* Suspends a workstation to reduce costs.
5309+
*
5310+
* Create a request for the method "workstations.suspend".
5311+
*
5312+
* This request holds the parameters needed by the the workstations server. After setting any
5313+
* optional parameters, call the {@link Suspend#execute()} method to invoke the remote operation.
5314+
* <p> {@link
5315+
* Suspend#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
5316+
* be called to initialize this instance immediately after invoking the constructor. </p>
5317+
*
5318+
* @param name Required. Name of the workstation to suspend.
5319+
* @param content the {@link com.google.api.services.workstations.v1beta.model.SuspendWorkstationRequest}
5320+
* @since 1.13
5321+
*/
5322+
protected Suspend(java.lang.String name, com.google.api.services.workstations.v1beta.model.SuspendWorkstationRequest content) {
5323+
super(CloudWorkstations.this, "POST", REST_PATH, content, com.google.api.services.workstations.v1beta.model.Operation.class);
5324+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
5325+
if (!getSuppressPatternChecks()) {
5326+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
5327+
"Parameter name must conform to the pattern " +
5328+
"^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$");
5329+
}
5330+
}
5331+
5332+
@Override
5333+
public Suspend set$Xgafv(java.lang.String $Xgafv) {
5334+
return (Suspend) super.set$Xgafv($Xgafv);
5335+
}
5336+
5337+
@Override
5338+
public Suspend setAccessToken(java.lang.String accessToken) {
5339+
return (Suspend) super.setAccessToken(accessToken);
5340+
}
5341+
5342+
@Override
5343+
public Suspend setAlt(java.lang.String alt) {
5344+
return (Suspend) super.setAlt(alt);
5345+
}
5346+
5347+
@Override
5348+
public Suspend setCallback(java.lang.String callback) {
5349+
return (Suspend) super.setCallback(callback);
5350+
}
5351+
5352+
@Override
5353+
public Suspend setFields(java.lang.String fields) {
5354+
return (Suspend) super.setFields(fields);
5355+
}
5356+
5357+
@Override
5358+
public Suspend setKey(java.lang.String key) {
5359+
return (Suspend) super.setKey(key);
5360+
}
5361+
5362+
@Override
5363+
public Suspend setOauthToken(java.lang.String oauthToken) {
5364+
return (Suspend) super.setOauthToken(oauthToken);
5365+
}
5366+
5367+
@Override
5368+
public Suspend setPrettyPrint(java.lang.Boolean prettyPrint) {
5369+
return (Suspend) super.setPrettyPrint(prettyPrint);
5370+
}
5371+
5372+
@Override
5373+
public Suspend setQuotaUser(java.lang.String quotaUser) {
5374+
return (Suspend) super.setQuotaUser(quotaUser);
5375+
}
5376+
5377+
@Override
5378+
public Suspend setUploadType(java.lang.String uploadType) {
5379+
return (Suspend) super.setUploadType(uploadType);
5380+
}
5381+
5382+
@Override
5383+
public Suspend setUploadProtocol(java.lang.String uploadProtocol) {
5384+
return (Suspend) super.setUploadProtocol(uploadProtocol);
5385+
}
5386+
5387+
/** Required. Name of the workstation to suspend. */
5388+
@com.google.api.client.util.Key
5389+
private java.lang.String name;
5390+
5391+
/** Required. Name of the workstation to suspend.
5392+
*/
5393+
public java.lang.String getName() {
5394+
return name;
5395+
}
5396+
5397+
/** Required. Name of the workstation to suspend. */
5398+
public Suspend setName(java.lang.String name) {
5399+
if (!getSuppressPatternChecks()) {
5400+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
5401+
"Parameter name must conform to the pattern " +
5402+
"^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$");
5403+
}
5404+
this.name = name;
5405+
return this;
5406+
}
5407+
5408+
@Override
5409+
public Suspend set(String parameterName, Object value) {
5410+
return (Suspend) super.set(parameterName, value);
5411+
}
5412+
}
52825413
/**
52835414
* Returns permissions that a caller has on the specified resource. If the resource does not exist,
52845415
* this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
* Request message for SuspendWorkstation.
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 Workstations API. For a detailed explanation
24+
* see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class SuspendWorkstationRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. If set, the request will be rejected if the latest version of the workstation on the
35+
* server does not have this ETag.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String etag;
40+
41+
/**
42+
* Optional. If set, validate the request and preview the result, but do not actually apply it.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.Boolean validateOnly;
47+
48+
/**
49+
* Optional. If set, the request will be rejected if the latest version of the workstation on the
50+
* server does not have this ETag.
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.String getEtag() {
54+
return etag;
55+
}
56+
57+
/**
58+
* Optional. If set, the request will be rejected if the latest version of the workstation on the
59+
* server does not have this ETag.
60+
* @param etag etag or {@code null} for none
61+
*/
62+
public SuspendWorkstationRequest setEtag(java.lang.String etag) {
63+
this.etag = etag;
64+
return this;
65+
}
66+
67+
/**
68+
* Optional. If set, validate the request and preview the result, but do not actually apply it.
69+
* @return value or {@code null} for none
70+
*/
71+
public java.lang.Boolean getValidateOnly() {
72+
return validateOnly;
73+
}
74+
75+
/**
76+
* Optional. If set, validate the request and preview the result, but do not actually apply it.
77+
* @param validateOnly validateOnly or {@code null} for none
78+
*/
79+
public SuspendWorkstationRequest setValidateOnly(java.lang.Boolean validateOnly) {
80+
this.validateOnly = validateOnly;
81+
return this;
82+
}
83+
84+
@Override
85+
public SuspendWorkstationRequest set(String fieldName, Object value) {
86+
return (SuspendWorkstationRequest) super.set(fieldName, value);
87+
}
88+
89+
@Override
90+
public SuspendWorkstationRequest clone() {
91+
return (SuspendWorkstationRequest) super.clone();
92+
}
93+
94+
}

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,14 @@ public final class WorkstationConfig extends com.google.api.client.json.GenericJ
204204
@com.google.api.client.util.Key
205205
private HttpOptions httpOptions;
206206

207+
/**
208+
* Optional. The action to take when the workstation has been idle for the duration specified in
209+
* idle_timeout. Defaults to STOP.
210+
* The value may be {@code null}.
211+
*/
212+
@com.google.api.client.util.Key
213+
private java.lang.String idleAction;
214+
207215
/**
208216
* Optional. Number of seconds to wait before automatically stopping a workstation after it last
209217
* received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with
@@ -689,6 +697,25 @@ public WorkstationConfig setHttpOptions(HttpOptions httpOptions) {
689697
return this;
690698
}
691699

700+
/**
701+
* Optional. The action to take when the workstation has been idle for the duration specified in
702+
* idle_timeout. Defaults to STOP.
703+
* @return value or {@code null} for none
704+
*/
705+
public java.lang.String getIdleAction() {
706+
return idleAction;
707+
}
708+
709+
/**
710+
* Optional. The action to take when the workstation has been idle for the duration specified in
711+
* idle_timeout. Defaults to STOP.
712+
* @param idleAction idleAction or {@code null} for none
713+
*/
714+
public WorkstationConfig setIdleAction(java.lang.String idleAction) {
715+
this.idleAction = idleAction;
716+
return this;
717+
}
718+
692719
/**
693720
* Optional. Number of seconds to wait before automatically stopping a workstation after it last
694721
* received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with

‎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-rev20260604-2.0.0</version>
12-
<name>Cloud Workstations API v1beta-rev20260604-2.0.0</name>
11+
<version>v1beta-rev20260622-2.0.0</version>
12+
<name>Cloud Workstations API v1beta-rev20260622-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-rev20260604-2.0.0</version>
25+
<version>v1beta-rev20260622-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-rev20260604-2.0.0'
38+
implementation 'com.google.apis:google-api-services-workstations:v1beta-rev20260622-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)