Skip to content

Commit 2da8658

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add Engine field to support LightningEngine in clusters and add support for stop ttl
PiperOrigin-RevId: 897294662
1 parent 2c145aa commit 2da8658

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

google/cloud/dataproc/v1/clusters.proto

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,27 @@ message ClusterConfig {
243243
CLUSTER_TIER_PREMIUM = 2;
244244
}
245245

246+
// The cluster engine.
247+
enum Engine {
248+
// The engine is not specified. Works the same as ENGINE_DEFAULT.
249+
ENGINE_UNSPECIFIED = 0;
250+
251+
// The cluster is a default engine cluster.
252+
DEFAULT = 1;
253+
254+
// The cluster is a lightning engine cluster.
255+
LIGHTNING = 2;
256+
}
257+
246258
// Optional. The type of the cluster.
247259
ClusterType cluster_type = 27 [(google.api.field_behavior) = OPTIONAL];
248260

249261
// Optional. The cluster tier.
250262
ClusterTier cluster_tier = 29 [(google.api.field_behavior) = OPTIONAL];
251263

264+
// Optional. The cluster engine.
265+
Engine engine = 30 [(google.api.field_behavior) = OPTIONAL];
266+
252267
// Optional. A Cloud Storage bucket used to stage job
253268
// dependencies, config files, and job driver console output.
254269
// If you do not specify a staging bucket, Cloud
@@ -1266,6 +1281,32 @@ message LifecycleConfig {
12661281
[(google.api.field_behavior) = OPTIONAL];
12671282
}
12681283

1284+
// Optional. The duration to keep the cluster started while idling (when no
1285+
// jobs are running). Passing this threshold will cause the cluster to be
1286+
// stopped. Minimum value is 5 minutes; maximum value is 14 days (see JSON
1287+
// representation of
1288+
// [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
1289+
google.protobuf.Duration idle_stop_ttl = 5
1290+
[(google.api.field_behavior) = OPTIONAL];
1291+
1292+
// Either the exact time the cluster should be stopped at or
1293+
// the cluster maximum age.
1294+
oneof stop_ttl {
1295+
// Optional. The time when cluster will be auto-stopped (see JSON
1296+
// representation of
1297+
// [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
1298+
google.protobuf.Timestamp auto_stop_time = 6
1299+
[(google.api.field_behavior) = OPTIONAL];
1300+
1301+
// Optional. The lifetime duration of the cluster. The cluster will be
1302+
// auto-stopped at the end of this period, calculated from the time of
1303+
// submission of the create or update cluster request. Minimum value is 10
1304+
// minutes; maximum value is 14 days (see JSON representation of
1305+
// [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
1306+
google.protobuf.Duration auto_stop_ttl = 7
1307+
[(google.api.field_behavior) = OPTIONAL];
1308+
}
1309+
12691310
// Output only. The time when cluster became idle (most recent job finished)
12701311
// and became eligible for deletion due to idleness (see JSON representation
12711312
// of

0 commit comments

Comments
 (0)