Skip to content

Commit 45f9717

Browse files
1 parent eccac03 commit 45f9717

File tree

10 files changed

+370
-52
lines changed

10 files changed

+370
-52
lines changed

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

clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/Dataproc.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,8 +1728,8 @@ public Create set(String parameterName, Object value) {
17281728
}
17291729
}
17301730
/**
1731-
* Deletes the batch workload resource. If the batch is not in terminal state, the delete fails and
1732-
* the response returns FAILED_PRECONDITION.
1731+
* Deletes the batch workload resource. If the batch is not in a CANCELLED, SUCCEEDED or FAILED
1732+
* State, the delete operation fails and the response returns FAILED_PRECONDITION.
17331733
*
17341734
* Create a request for the method "batches.delete".
17351735
*
@@ -1754,8 +1754,8 @@ public class Delete extends DataprocRequest<com.google.api.services.dataproc.mod
17541754
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batches/[^/]+$");
17551755

17561756
/**
1757-
* Deletes the batch workload resource. If the batch is not in terminal state, the delete fails
1758-
* and the response returns FAILED_PRECONDITION.
1757+
* Deletes the batch workload resource. If the batch is not in a CANCELLED, SUCCEEDED or FAILED
1758+
* State, the delete operation fails and the response returns FAILED_PRECONDITION.
17591759
*
17601760
* Create a request for the method "batches.delete".
17611761
*

clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/ExecutionConfig.java

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
public final class ExecutionConfig extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Optional. The duration to keep the session alive while it's idling. Exceeding this threshold
34-
* causes the session to terminate. This field cannot be set on a batch workload. Minimum value is
35-
* 10 minutes; maximum value is 14 days (see JSON representation of Duration
36-
* (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not
37-
* set. If both ttl and idle_ttl are specified, the conditions are treated as OR conditions: the
38-
* workload will be terminated when it has been idle for idle_ttl or when ttl has been exceed,
39-
* whichever occurs first.
33+
* Optional. Applies to sessions only. The duration to keep the session alive while it's idling.
34+
* Exceeding this threshold causes the session to terminate. This field cannot be set on a batch
35+
* workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of
36+
* Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4
37+
* hours if not set. If both ttl and idle_ttl are specified for an interactive session, the
38+
* conditions are treated as OR conditions: the workload will be terminated when it has been idle
39+
* for idle_ttl or when ttl has been exceeded, whichever occurs first.
4040
* The value may be {@code null}.
4141
*/
4242
@com.google.api.client.util.Key
@@ -94,8 +94,9 @@ public final class ExecutionConfig extends com.google.api.client.json.GenericJso
9494
* this duration, it will be unconditionally terminated without waiting for ongoing work to
9595
* finish. If ttl is not specified for a batch workload, the workload will be allowed to run until
9696
* it exits naturally (or runs forever without exiting). If ttl is not specified for an
97-
* interactive session, it defaults to 24h. Minimum value is 10 minutes; maximum value is 14 days
98-
* (see JSON representation of Duration (https://developers.google.com/protocol-
97+
* interactive session, it defaults to 24h. If ttl is not specified for a batch that uses 2.1+
98+
* runtime version, it defaults to 4h. Minimum value is 10 minutes; maximum value is 14 days (see
99+
* JSON representation of Duration (https://developers.google.com/protocol-
99100
* buffers/docs/proto3#json)). If both ttl and idle_ttl are specified (for an interactive
100101
* session), the conditions are treated as OR conditions: the workload will be terminated when it
101102
* has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
@@ -105,27 +106,27 @@ public final class ExecutionConfig extends com.google.api.client.json.GenericJso
105106
private String ttl;
106107

107108
/**
108-
* Optional. The duration to keep the session alive while it's idling. Exceeding this threshold
109-
* causes the session to terminate. This field cannot be set on a batch workload. Minimum value is
110-
* 10 minutes; maximum value is 14 days (see JSON representation of Duration
111-
* (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not
112-
* set. If both ttl and idle_ttl are specified, the conditions are treated as OR conditions: the
113-
* workload will be terminated when it has been idle for idle_ttl or when ttl has been exceed,
114-
* whichever occurs first.
109+
* Optional. Applies to sessions only. The duration to keep the session alive while it's idling.
110+
* Exceeding this threshold causes the session to terminate. This field cannot be set on a batch
111+
* workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of
112+
* Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4
113+
* hours if not set. If both ttl and idle_ttl are specified for an interactive session, the
114+
* conditions are treated as OR conditions: the workload will be terminated when it has been idle
115+
* for idle_ttl or when ttl has been exceeded, whichever occurs first.
115116
* @return value or {@code null} for none
116117
*/
117118
public String getIdleTtl() {
118119
return idleTtl;
119120
}
120121

121122
/**
122-
* Optional. The duration to keep the session alive while it's idling. Exceeding this threshold
123-
* causes the session to terminate. This field cannot be set on a batch workload. Minimum value is
124-
* 10 minutes; maximum value is 14 days (see JSON representation of Duration
125-
* (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not
126-
* set. If both ttl and idle_ttl are specified, the conditions are treated as OR conditions: the
127-
* workload will be terminated when it has been idle for idle_ttl or when ttl has been exceed,
128-
* whichever occurs first.
123+
* Optional. Applies to sessions only. The duration to keep the session alive while it's idling.
124+
* Exceeding this threshold causes the session to terminate. This field cannot be set on a batch
125+
* workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of
126+
* Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4
127+
* hours if not set. If both ttl and idle_ttl are specified for an interactive session, the
128+
* conditions are treated as OR conditions: the workload will be terminated when it has been idle
129+
* for idle_ttl or when ttl has been exceeded, whichever occurs first.
129130
* @param idleTtl idleTtl or {@code null} for none
130131
*/
131132
public ExecutionConfig setIdleTtl(String idleTtl) {
@@ -250,8 +251,9 @@ public ExecutionConfig setSubnetworkUri(java.lang.String subnetworkUri) {
250251
* this duration, it will be unconditionally terminated without waiting for ongoing work to
251252
* finish. If ttl is not specified for a batch workload, the workload will be allowed to run until
252253
* it exits naturally (or runs forever without exiting). If ttl is not specified for an
253-
* interactive session, it defaults to 24h. Minimum value is 10 minutes; maximum value is 14 days
254-
* (see JSON representation of Duration (https://developers.google.com/protocol-
254+
* interactive session, it defaults to 24h. If ttl is not specified for a batch that uses 2.1+
255+
* runtime version, it defaults to 4h. Minimum value is 10 minutes; maximum value is 14 days (see
256+
* JSON representation of Duration (https://developers.google.com/protocol-
255257
* buffers/docs/proto3#json)). If both ttl and idle_ttl are specified (for an interactive
256258
* session), the conditions are treated as OR conditions: the workload will be terminated when it
257259
* has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
@@ -266,8 +268,9 @@ public String getTtl() {
266268
* this duration, it will be unconditionally terminated without waiting for ongoing work to
267269
* finish. If ttl is not specified for a batch workload, the workload will be allowed to run until
268270
* it exits naturally (or runs forever without exiting). If ttl is not specified for an
269-
* interactive session, it defaults to 24h. Minimum value is 10 minutes; maximum value is 14 days
270-
* (see JSON representation of Duration (https://developers.google.com/protocol-
271+
* interactive session, it defaults to 24h. If ttl is not specified for a batch that uses 2.1+
272+
* runtime version, it defaults to 4h. Minimum value is 10 minutes; maximum value is 14 days (see
273+
* JSON representation of Duration (https://developers.google.com/protocol-
271274
* buffers/docs/proto3#json)). If both ttl and idle_ttl are specified (for an interactive
272275
* session), the conditions are treated as OR conditions: the workload will be terminated when it
273276
* has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
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.dataproc.model;
18+
19+
/**
20+
* A Dataproc job for running Apache Flink (https://flink.apache.org/) applications on YARN.
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 Dataproc 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 FlinkJob extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that
34+
* can be set as job properties, since a collision may occur that causes an incorrect job
35+
* submission.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.List<java.lang.String> args;
40+
41+
/**
42+
* Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink driver and tasks.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<java.lang.String> jarFileUris;
47+
48+
/**
49+
* Optional. The runtime log config for job execution.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private LoggingConfig loggingConfig;
54+
55+
/**
56+
* The name of the driver's main class. The jar file that contains the class must be in the
57+
* default CLASSPATH or specified in jar_file_uris.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private java.lang.String mainClass;
62+
63+
/**
64+
* The HCFS URI of the jar file that contains the main class.
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private java.lang.String mainJarFileUri;
69+
70+
/**
71+
* Optional. A mapping of property names to values, used to configure Flink. Properties that
72+
* conflict with values set by the Dataproc API may beoverwritten. Can include properties set
73+
* in/etc/flink/conf/flink-defaults.conf and classes in user code.
74+
* The value may be {@code null}.
75+
*/
76+
@com.google.api.client.util.Key
77+
private java.util.Map<String, java.lang.String> properties;
78+
79+
/**
80+
* Optional. HCFS URI of the savepoint which contains the last saved progress for this job
81+
* The value may be {@code null}.
82+
*/
83+
@com.google.api.client.util.Key
84+
private java.lang.String savepointUri;
85+
86+
/**
87+
* Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that
88+
* can be set as job properties, since a collision may occur that causes an incorrect job
89+
* submission.
90+
* @return value or {@code null} for none
91+
*/
92+
public java.util.List<java.lang.String> getArgs() {
93+
return args;
94+
}
95+
96+
/**
97+
* Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that
98+
* can be set as job properties, since a collision may occur that causes an incorrect job
99+
* submission.
100+
* @param args args or {@code null} for none
101+
*/
102+
public FlinkJob setArgs(java.util.List<java.lang.String> args) {
103+
this.args = args;
104+
return this;
105+
}
106+
107+
/**
108+
* Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink driver and tasks.
109+
* @return value or {@code null} for none
110+
*/
111+
public java.util.List<java.lang.String> getJarFileUris() {
112+
return jarFileUris;
113+
}
114+
115+
/**
116+
* Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink driver and tasks.
117+
* @param jarFileUris jarFileUris or {@code null} for none
118+
*/
119+
public FlinkJob setJarFileUris(java.util.List<java.lang.String> jarFileUris) {
120+
this.jarFileUris = jarFileUris;
121+
return this;
122+
}
123+
124+
/**
125+
* Optional. The runtime log config for job execution.
126+
* @return value or {@code null} for none
127+
*/
128+
public LoggingConfig getLoggingConfig() {
129+
return loggingConfig;
130+
}
131+
132+
/**
133+
* Optional. The runtime log config for job execution.
134+
* @param loggingConfig loggingConfig or {@code null} for none
135+
*/
136+
public FlinkJob setLoggingConfig(LoggingConfig loggingConfig) {
137+
this.loggingConfig = loggingConfig;
138+
return this;
139+
}
140+
141+
/**
142+
* The name of the driver's main class. The jar file that contains the class must be in the
143+
* default CLASSPATH or specified in jar_file_uris.
144+
* @return value or {@code null} for none
145+
*/
146+
public java.lang.String getMainClass() {
147+
return mainClass;
148+
}
149+
150+
/**
151+
* The name of the driver's main class. The jar file that contains the class must be in the
152+
* default CLASSPATH or specified in jar_file_uris.
153+
* @param mainClass mainClass or {@code null} for none
154+
*/
155+
public FlinkJob setMainClass(java.lang.String mainClass) {
156+
this.mainClass = mainClass;
157+
return this;
158+
}
159+
160+
/**
161+
* The HCFS URI of the jar file that contains the main class.
162+
* @return value or {@code null} for none
163+
*/
164+
public java.lang.String getMainJarFileUri() {
165+
return mainJarFileUri;
166+
}
167+
168+
/**
169+
* The HCFS URI of the jar file that contains the main class.
170+
* @param mainJarFileUri mainJarFileUri or {@code null} for none
171+
*/
172+
public FlinkJob setMainJarFileUri(java.lang.String mainJarFileUri) {
173+
this.mainJarFileUri = mainJarFileUri;
174+
return this;
175+
}
176+
177+
/**
178+
* Optional. A mapping of property names to values, used to configure Flink. Properties that
179+
* conflict with values set by the Dataproc API may beoverwritten. Can include properties set
180+
* in/etc/flink/conf/flink-defaults.conf and classes in user code.
181+
* @return value or {@code null} for none
182+
*/
183+
public java.util.Map<String, java.lang.String> getProperties() {
184+
return properties;
185+
}
186+
187+
/**
188+
* Optional. A mapping of property names to values, used to configure Flink. Properties that
189+
* conflict with values set by the Dataproc API may beoverwritten. Can include properties set
190+
* in/etc/flink/conf/flink-defaults.conf and classes in user code.
191+
* @param properties properties or {@code null} for none
192+
*/
193+
public FlinkJob setProperties(java.util.Map<String, java.lang.String> properties) {
194+
this.properties = properties;
195+
return this;
196+
}
197+
198+
/**
199+
* Optional. HCFS URI of the savepoint which contains the last saved progress for this job
200+
* @return value or {@code null} for none
201+
*/
202+
public java.lang.String getSavepointUri() {
203+
return savepointUri;
204+
}
205+
206+
/**
207+
* Optional. HCFS URI of the savepoint which contains the last saved progress for this job
208+
* @param savepointUri savepointUri or {@code null} for none
209+
*/
210+
public FlinkJob setSavepointUri(java.lang.String savepointUri) {
211+
this.savepointUri = savepointUri;
212+
return this;
213+
}
214+
215+
@Override
216+
public FlinkJob set(String fieldName, Object value) {
217+
return (FlinkJob) super.set(fieldName, value);
218+
}
219+
220+
@Override
221+
public FlinkJob clone() {
222+
return (FlinkJob) super.clone();
223+
}
224+
225+
}

clients/google-api-services-dataproc/v1/2.0.0/com/google/api/services/dataproc/model/GceClusterConfig.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public final class GceClusterConfig extends com.google.api.client.json.GenericJs
5050
private java.lang.Boolean internalIpOnly;
5151

5252
/**
53-
* The Compute Engine metadata entries to add to all instances (see Project and instance metadata
54-
* (https://cloud.google.com/compute/docs/storing-retrieving-
53+
* Optional. The Compute Engine metadata entries to add to all instances (see Project and instance
54+
* metadata (https://cloud.google.com/compute/docs/storing-retrieving-
5555
* metadata#project_and_instance_metadata)).
5656
* The value may be {@code null}.
5757
*/
@@ -202,8 +202,8 @@ public GceClusterConfig setInternalIpOnly(java.lang.Boolean internalIpOnly) {
202202
}
203203

204204
/**
205-
* The Compute Engine metadata entries to add to all instances (see Project and instance metadata
206-
* (https://cloud.google.com/compute/docs/storing-retrieving-
205+
* Optional. The Compute Engine metadata entries to add to all instances (see Project and instance
206+
* metadata (https://cloud.google.com/compute/docs/storing-retrieving-
207207
* metadata#project_and_instance_metadata)).
208208
* @return value or {@code null} for none
209209
*/
@@ -212,8 +212,8 @@ public java.util.Map<String, java.lang.String> getMetadata() {
212212
}
213213

214214
/**
215-
* The Compute Engine metadata entries to add to all instances (see Project and instance metadata
216-
* (https://cloud.google.com/compute/docs/storing-retrieving-
215+
* Optional. The Compute Engine metadata entries to add to all instances (see Project and instance
216+
* metadata (https://cloud.google.com/compute/docs/storing-retrieving-
217217
* metadata#project_and_instance_metadata)).
218218
* @param metadata metadata or {@code null} for none
219219
*/

0 commit comments

Comments
 (0)