Skip to content

Commit c782e45

Browse files
Google APIscopybara-github
authored andcommitted
fix!: Move yarn_config into a oneof
Committer: @Harwayne PiperOrigin-RevId: 440226213
1 parent afc5066 commit c782e45

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

google/cloud/dataproc/v1/autoscaling_policies.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@ message AutoscalingPolicy {
153153

154154
// Basic algorithm for autoscaling.
155155
message BasicAutoscalingAlgorithm {
156-
// Required. YARN autoscaling configuration.
157-
BasicYarnAutoscalingConfig yarn_config = 1 [(google.api.field_behavior) = REQUIRED];
156+
oneof config {
157+
// Required. YARN autoscaling configuration.
158+
BasicYarnAutoscalingConfig yarn_config = 1 [(google.api.field_behavior) = REQUIRED];
159+
}
158160

159161
// Optional. Duration between scaling events. A scaling period starts after
160162
// the update operation from the previous event has completed.

0 commit comments

Comments
 (0)