Skip to content

Commit 81298c2

Browse files
1 parent efe74c9 commit 81298c2

File tree

11 files changed

+205
-12
lines changed

11 files changed

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

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,15 @@ public final class GceInstance extends com.google.api.client.json.GenericJson {
169169
@com.google.api.client.util.Key
170170
private java.util.List<java.lang.String> tags;
171171

172+
/**
173+
* Optional. Resource manager tags to be bound to this instance. Tag keys and values have the same
174+
* definition as https://cloud.google.com/resource-manager/docs/tags/tags-overview Keys must be in
175+
* the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`.
176+
* The value may be {@code null}.
177+
*/
178+
@com.google.api.client.util.Key
179+
private java.util.Map<String, java.lang.String> vmTags;
180+
172181
/**
173182
* Optional. A list of the type and count of accelerator cards attached to the instance.
174183
* @return value or {@code null} for none
@@ -474,6 +483,27 @@ public GceInstance setTags(java.util.List<java.lang.String> tags) {
474483
return this;
475484
}
476485

486+
/**
487+
* Optional. Resource manager tags to be bound to this instance. Tag keys and values have the same
488+
* definition as https://cloud.google.com/resource-manager/docs/tags/tags-overview Keys must be in
489+
* the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`.
490+
* @return value or {@code null} for none
491+
*/
492+
public java.util.Map<String, java.lang.String> getVmTags() {
493+
return vmTags;
494+
}
495+
496+
/**
497+
* Optional. Resource manager tags to be bound to this instance. Tag keys and values have the same
498+
* definition as https://cloud.google.com/resource-manager/docs/tags/tags-overview Keys must be in
499+
* the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`.
500+
* @param vmTags vmTags or {@code null} for none
501+
*/
502+
public GceInstance setVmTags(java.util.Map<String, java.lang.String> vmTags) {
503+
this.vmTags = vmTags;
504+
return this;
505+
}
506+
477507
@Override
478508
public GceInstance set(String fieldName, Object value) {
479509
return (GceInstance) super.set(fieldName, value);

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ public final class GenerateAccessTokenRequest extends com.google.api.client.json
3939
@com.google.api.client.util.Key
4040
private String expireTime;
4141

42+
/**
43+
* Optional. Port for which the access token should be generated. If specified, the generated
44+
* access token grants access only to the specified port of the workstation. If specified, values
45+
* must be within the range [1 - 65535]. If not specified, the generated access token grants
46+
* access to all ports of the workstation.
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.lang.Integer port;
51+
4252
/**
4353
* Desired lifetime duration of the access token. This value must be at most 24 hours. If a value
4454
* is not specified, the token's lifetime will be set to a default value of 1 hour.
@@ -68,6 +78,29 @@ public GenerateAccessTokenRequest setExpireTime(String expireTime) {
6878
return this;
6979
}
7080

81+
/**
82+
* Optional. Port for which the access token should be generated. If specified, the generated
83+
* access token grants access only to the specified port of the workstation. If specified, values
84+
* must be within the range [1 - 65535]. If not specified, the generated access token grants
85+
* access to all ports of the workstation.
86+
* @return value or {@code null} for none
87+
*/
88+
public java.lang.Integer getPort() {
89+
return port;
90+
}
91+
92+
/**
93+
* Optional. Port for which the access token should be generated. If specified, the generated
94+
* access token grants access only to the specified port of the workstation. If specified, values
95+
* must be within the range [1 - 65535]. If not specified, the generated access token grants
96+
* access to all ports of the workstation.
97+
* @param port port or {@code null} for none
98+
*/
99+
public GenerateAccessTokenRequest setPort(java.lang.Integer port) {
100+
this.port = port;
101+
return this;
102+
}
103+
71104
/**
72105
* Desired lifetime duration of the access token. This value must be at most 24 hours. If a value
73106
* is not specified, the token's lifetime will be set to a default value of 1 hour.

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
* Http options for the running workstations.
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 HttpOptions extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. By default, the workstations service makes sure that all requests to the workstation
35+
* are authenticated. CORS preflight requests do not include cookies or custom headers, and so are
36+
* considered unauthenticated and blocked by the workstations service. Enabling this option allows
37+
* these unauthenticated CORS preflight requests through to the workstation, where it becomes the
38+
* responsibility of the destination server in the workstation to validate the request.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.lang.Boolean allowedUnauthenticatedCorsPreflightRequests;
43+
44+
/**
45+
* Optional. By default, the workstations service makes sure that all requests to the workstation
46+
* are authenticated. CORS preflight requests do not include cookies or custom headers, and so are
47+
* considered unauthenticated and blocked by the workstations service. Enabling this option allows
48+
* these unauthenticated CORS preflight requests through to the workstation, where it becomes the
49+
* responsibility of the destination server in the workstation to validate the request.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.Boolean getAllowedUnauthenticatedCorsPreflightRequests() {
53+
return allowedUnauthenticatedCorsPreflightRequests;
54+
}
55+
56+
/**
57+
* Optional. By default, the workstations service makes sure that all requests to the workstation
58+
* are authenticated. CORS preflight requests do not include cookies or custom headers, and so are
59+
* considered unauthenticated and blocked by the workstations service. Enabling this option allows
60+
* these unauthenticated CORS preflight requests through to the workstation, where it becomes the
61+
* responsibility of the destination server in the workstation to validate the request.
62+
* @param allowedUnauthenticatedCorsPreflightRequests allowedUnauthenticatedCorsPreflightRequests or {@code null} for none
63+
*/
64+
public HttpOptions setAllowedUnauthenticatedCorsPreflightRequests(java.lang.Boolean allowedUnauthenticatedCorsPreflightRequests) {
65+
this.allowedUnauthenticatedCorsPreflightRequests = allowedUnauthenticatedCorsPreflightRequests;
66+
return this;
67+
}
68+
69+
@Override
70+
public HttpOptions set(String fieldName, Object value) {
71+
return (HttpOptions) super.set(fieldName, value);
72+
}
73+
74+
@Override
75+
public HttpOptions clone() {
76+
return (HttpOptions) super.clone();
77+
}
78+
79+
}

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ public final class Workstation extends com.google.api.client.json.GenericJson {
115115
@com.google.api.client.util.Key
116116
private java.lang.Boolean reconciling;
117117

118+
/**
119+
* Optional. The source workstation from which this workstations persistent directories were
120+
* cloned on creation.
121+
* The value may be {@code null}.
122+
*/
123+
@com.google.api.client.util.Key
124+
private java.lang.String sourceWorkstation;
125+
118126
/**
119127
* Output only. Time when this workstation was most recently successfully started, regardless of
120128
* the workstation's initial state.
@@ -347,6 +355,25 @@ public Workstation setReconciling(java.lang.Boolean reconciling) {
347355
return this;
348356
}
349357

358+
/**
359+
* Optional. The source workstation from which this workstations persistent directories were
360+
* cloned on creation.
361+
* @return value or {@code null} for none
362+
*/
363+
public java.lang.String getSourceWorkstation() {
364+
return sourceWorkstation;
365+
}
366+
367+
/**
368+
* Optional. The source workstation from which this workstations persistent directories were
369+
* cloned on creation.
370+
* @param sourceWorkstation sourceWorkstation or {@code null} for none
371+
*/
372+
public Workstation setSourceWorkstation(java.lang.String sourceWorkstation) {
373+
this.sourceWorkstation = sourceWorkstation;
374+
return this;
375+
}
376+
350377
/**
351378
* Output only. Time when this workstation was most recently successfully started, regardless of
352379
* the workstation's initial state.

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ public final class WorkstationConfig extends com.google.api.client.json.GenericJ
170170
@com.google.api.client.util.Key
171171
private Host host;
172172

173+
/**
174+
* Optional. Http options that customize the behavior of the workstation service's http proxy.
175+
* The value may be {@code null}.
176+
*/
177+
@com.google.api.client.util.Key
178+
private HttpOptions httpOptions;
179+
173180
/**
174181
* Optional. Number of seconds to wait before automatically stopping a workstation after it last
175182
* received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with
@@ -551,6 +558,23 @@ public WorkstationConfig setHost(Host host) {
551558
return this;
552559
}
553560

561+
/**
562+
* Optional. Http options that customize the behavior of the workstation service's http proxy.
563+
* @return value or {@code null} for none
564+
*/
565+
public HttpOptions getHttpOptions() {
566+
return httpOptions;
567+
}
568+
569+
/**
570+
* Optional. Http options that customize the behavior of the workstation service's http proxy.
571+
* @param httpOptions httpOptions or {@code null} for none
572+
*/
573+
public WorkstationConfig setHttpOptions(HttpOptions httpOptions) {
574+
this.httpOptions = httpOptions;
575+
return this;
576+
}
577+
554578
/**
555579
* Optional. Number of seconds to wait before automatically stopping a workstation after it last
556580
* 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-rev20240528-2.0.0</version>
12-
<name>Cloud Workstations API v1beta-rev20240528-2.0.0</name>
11+
<version>v1beta-rev20240619-2.0.0</version>
12+
<name>Cloud Workstations API v1beta-rev20240619-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)