|
1 | | -// Copyright 2025 Google LLC |
| 1 | +// Copyright 2026 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -34,15 +34,15 @@ option java_package = "com.google.dataflow.v1beta3"; |
34 | 34 | option php_namespace = "Google\\Cloud\\Dataflow\\V1beta3"; |
35 | 35 | option ruby_package = "Google::Cloud::Dataflow::V1beta3"; |
36 | 36 |
|
37 | | -// Provides a method to create and modify Google Cloud Dataflow jobs. |
38 | | -// A Job is a multi-stage computation graph run by the Cloud Dataflow service. |
| 37 | +// Provides a method to create and modify Dataflow jobs. |
| 38 | +// A Job is a multi-stage computation graph run by the Dataflow service. |
39 | 39 | service JobsV1Beta3 { |
40 | 40 | option (google.api.default_host) = "dataflow.googleapis.com"; |
41 | 41 | option (google.api.oauth_scopes) = |
42 | 42 | "https://www.googleapis.com/auth/cloud-platform," |
43 | 43 | "https://www.googleapis.com/auth/compute"; |
44 | 44 |
|
45 | | - // Creates a Cloud Dataflow job. |
| 45 | + // Creates a Dataflow job. |
46 | 46 | // |
47 | 47 | // To create a job, we recommend using `projects.locations.jobs.create` with a |
48 | 48 | // [regional endpoint] |
@@ -315,6 +315,9 @@ message Job { |
315 | 315 | // Output only. Resources used by the Dataflow Service to run the job. |
316 | 316 | optional ServiceResources service_resources = 28 |
317 | 317 | [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 318 | + |
| 319 | + // Output only. Indicates whether the job can be paused. |
| 320 | + bool pausable = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; |
318 | 321 | } |
319 | 322 |
|
320 | 323 | // Resources used by the Dataflow Service to run the job. |
@@ -343,6 +346,16 @@ message RuntimeUpdatableParams { |
343 | 346 | // [Update an existing |
344 | 347 | // pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline). |
345 | 348 | optional double worker_utilization_hint = 3; |
| 349 | + |
| 350 | + // Optional. Deprecated: Use `autoscaling_tier` instead. |
| 351 | + // The backlog threshold duration in seconds for autoscaling. Value must be |
| 352 | + // non-negative. |
| 353 | + optional google.protobuf.Duration acceptable_backlog_duration = 4 |
| 354 | + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; |
| 355 | + |
| 356 | + // Optional. The backlog threshold tier for autoscaling. Value must be one of |
| 357 | + // "low-latency", "medium-latency", or "high-latency". |
| 358 | + optional string autoscaling_tier = 5 [(google.api.field_behavior) = OPTIONAL]; |
346 | 359 | } |
347 | 360 |
|
348 | 361 | // Metadata for a Datastore connector used by the job. |
@@ -836,6 +849,12 @@ enum JobState { |
836 | 849 | // Currently, this is an opt-in feature, please reach out to Cloud support |
837 | 850 | // team if you are interested. |
838 | 851 | JOB_STATE_RESOURCE_CLEANING_UP = 12; |
| 852 | + |
| 853 | + // `JOB_STATE_PAUSING` is not implemented yet. |
| 854 | + JOB_STATE_PAUSING = 13; |
| 855 | + |
| 856 | + // `JOB_STATE_PAUSED` is not implemented yet. |
| 857 | + JOB_STATE_PAUSED = 14; |
839 | 858 | } |
840 | 859 |
|
841 | 860 | // Additional information about how a Cloud Dataflow job will be executed that |
|
0 commit comments