File tree Expand file tree Collapse file tree 2 files changed +39
-2
lines changed
Expand file tree Collapse file tree 2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 1- // Copyright 2025 Google LLC
1+ // Copyright 2026 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -116,6 +116,20 @@ message AutoscalingPolicy {
116116 pattern : "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}"
117117 };
118118
119+ // The type of the clusters for which this autoscaling policy is to be
120+ // configured.
121+ enum ClusterType {
122+ // Not set.
123+ CLUSTER_TYPE_UNSPECIFIED = 0 ;
124+
125+ // Standard dataproc cluster with a minimum of two primary workers.
126+ STANDARD = 1 ;
127+
128+ // Clusters that can use only secondary workers and be scaled down to zero
129+ // secondary worker nodes.
130+ ZERO_SCALE = 2 ;
131+ }
132+
119133 // Required. The policy id.
120134 //
121135 // The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -158,6 +172,10 @@ message AutoscalingPolicy {
158172 // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
159173 // associated with an autoscaling policy.
160174 map <string , string > labels = 6 [(google.api.field_behavior ) = OPTIONAL ];
175+
176+ // Optional. The type of the clusters for which this autoscaling policy is to
177+ // be configured.
178+ ClusterType cluster_type = 7 [(google.api.field_behavior ) = OPTIONAL ];
161179}
162180
163181// Basic algorithm for autoscaling.
Original file line number Diff line number Diff line change 1- // Copyright 2025 Google LLC
1+ // Copyright 2026 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -215,6 +215,22 @@ message Cluster {
215215
216216// The cluster config.
217217message ClusterConfig {
218+ // The type of the cluster.
219+ enum ClusterType {
220+ // Not set.
221+ CLUSTER_TYPE_UNSPECIFIED = 0 ;
222+
223+ // Standard dataproc cluster with a minimum of two primary workers.
224+ STANDARD = 1 ;
225+
226+ // https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/single-node-clusters
227+ SINGLE_NODE = 2 ;
228+
229+ // Clusters that can use only secondary workers and be scaled down to zero
230+ // secondary worker nodes.
231+ ZERO_SCALE = 3 ;
232+ }
233+
218234 // The cluster tier.
219235 enum ClusterTier {
220236 // Not set. Works the same as CLUSTER_TIER_STANDARD.
@@ -227,6 +243,9 @@ message ClusterConfig {
227243 CLUSTER_TIER_PREMIUM = 2 ;
228244 }
229245
246+ // Optional. The type of the cluster.
247+ ClusterType cluster_type = 27 [(google.api.field_behavior ) = OPTIONAL ];
248+
230249 // Optional. The cluster tier.
231250 ClusterTier cluster_tier = 29 [(google.api.field_behavior ) = OPTIONAL ];
232251
You can’t perform that action at this time.
0 commit comments