Skip to content

Commit 91f3e22

Browse files
feat: [dataproc] Add Engine field to support LightningEngine in clusters and add support for stop ttl (#8008)
* feat: Add `Engine` field to support LightningEngine in clusters and add support for stop ttl PiperOrigin-RevId: 897294662 Source-Link: googleapis/googleapis@2da8658 Source-Link: googleapis/googleapis-gen@ef2d7de Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwcm9jLy5Pd2xCb3QueWFtbCIsImgiOiJlZjJkN2RlNDUzYjIyOWY5ZmE4NTY4ZjkwMDk5OTg0YjcxMTViOGM4In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Shivanee <46910562+shivanee-p@users.noreply.github.com>
1 parent f373cc5 commit 91f3e22

6 files changed

Lines changed: 289 additions & 2 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"extends": "./node_modules/gts"
2+
"extends": "./node_modules/gts",
3+
"root": true
34
}

packages/google-cloud-dataproc/protos/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

packages/google-cloud-dataproc/protos/protos.d.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5320,6 +5320,9 @@ export namespace google {
53205320
/** ClusterConfig clusterTier */
53215321
clusterTier?: (google.cloud.dataproc.v1.ClusterConfig.ClusterTier|keyof typeof google.cloud.dataproc.v1.ClusterConfig.ClusterTier|null);
53225322

5323+
/** ClusterConfig engine */
5324+
engine?: (google.cloud.dataproc.v1.ClusterConfig.Engine|keyof typeof google.cloud.dataproc.v1.ClusterConfig.Engine|null);
5325+
53235326
/** ClusterConfig configBucket */
53245327
configBucket?: (string|null);
53255328

@@ -5384,6 +5387,9 @@ export namespace google {
53845387
/** ClusterConfig clusterTier. */
53855388
public clusterTier: (google.cloud.dataproc.v1.ClusterConfig.ClusterTier|keyof typeof google.cloud.dataproc.v1.ClusterConfig.ClusterTier);
53865389

5390+
/** ClusterConfig engine. */
5391+
public engine: (google.cloud.dataproc.v1.ClusterConfig.Engine|keyof typeof google.cloud.dataproc.v1.ClusterConfig.Engine);
5392+
53875393
/** ClusterConfig configBucket. */
53885394
public configBucket: string;
53895395

@@ -5526,6 +5532,13 @@ export namespace google {
55265532
CLUSTER_TIER_STANDARD = 1,
55275533
CLUSTER_TIER_PREMIUM = 2
55285534
}
5535+
5536+
/** Engine enum. */
5537+
enum Engine {
5538+
ENGINE_UNSPECIFIED = 0,
5539+
DEFAULT = 1,
5540+
LIGHTNING = 2
5541+
}
55295542
}
55305543

55315544
/** Properties of a VirtualClusterConfig. */
@@ -8659,6 +8672,15 @@ export namespace google {
86598672
/** LifecycleConfig autoDeleteTtl */
86608673
autoDeleteTtl?: (google.protobuf.IDuration|null);
86618674

8675+
/** LifecycleConfig idleStopTtl */
8676+
idleStopTtl?: (google.protobuf.IDuration|null);
8677+
8678+
/** LifecycleConfig autoStopTime */
8679+
autoStopTime?: (google.protobuf.ITimestamp|null);
8680+
8681+
/** LifecycleConfig autoStopTtl */
8682+
autoStopTtl?: (google.protobuf.IDuration|null);
8683+
86628684
/** LifecycleConfig idleStartTime */
86638685
idleStartTime?: (google.protobuf.ITimestamp|null);
86648686
}
@@ -8681,12 +8703,24 @@ export namespace google {
86818703
/** LifecycleConfig autoDeleteTtl. */
86828704
public autoDeleteTtl?: (google.protobuf.IDuration|null);
86838705

8706+
/** LifecycleConfig idleStopTtl. */
8707+
public idleStopTtl?: (google.protobuf.IDuration|null);
8708+
8709+
/** LifecycleConfig autoStopTime. */
8710+
public autoStopTime?: (google.protobuf.ITimestamp|null);
8711+
8712+
/** LifecycleConfig autoStopTtl. */
8713+
public autoStopTtl?: (google.protobuf.IDuration|null);
8714+
86848715
/** LifecycleConfig idleStartTime. */
86858716
public idleStartTime?: (google.protobuf.ITimestamp|null);
86868717

86878718
/** LifecycleConfig ttl. */
86888719
public ttl?: ("autoDeleteTime"|"autoDeleteTtl");
86898720

8721+
/** LifecycleConfig stopTtl. */
8722+
public stopTtl?: ("autoStopTime"|"autoStopTtl");
8723+
86908724
/**
86918725
* Creates a new LifecycleConfig instance using the specified properties.
86928726
* @param [properties] Properties to set

0 commit comments

Comments
 (0)