blob: ce70a85ba78912ccbb30676181f8afca9ec21e68 [file] [log] [blame]
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.locations.html">locations</a> . <a href="dataflow_v1b3.projects.locations.jobs.html">jobs</a></h1>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080076<h2>Instance Methods</h2>
77<p class="toc_element">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040078 <code><a href="dataflow_v1b3.projects.locations.jobs.debug.html">debug()</a></code>
79</p>
80<p class="firstline">Returns the debug Resource.</p>
81
82<p class="toc_element">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080083 <code><a href="dataflow_v1b3.projects.locations.jobs.messages.html">messages()</a></code>
84</p>
85<p class="firstline">Returns the messages Resource.</p>
86
87<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088 <code><a href="dataflow_v1b3.projects.locations.jobs.snapshots.html">snapshots()</a></code>
89</p>
90<p class="firstline">Returns the snapshots Resource.</p>
91
92<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="dataflow_v1b3.projects.locations.jobs.stages.html">stages()</a></code>
94</p>
95<p class="firstline">Returns the stages Resource.</p>
96
97<p class="toc_element">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080098 <code><a href="dataflow_v1b3.projects.locations.jobs.workItems.html">workItems()</a></code>
99</p>
100<p class="firstline">Returns the workItems Resource.</p>
101
102<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code><a href="#close">close()</a></code></p>
104<p class="firstline">Close httplib2 connections.</p>
105<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700106 <code><a href="#create">create(projectId, location, body=None, view=None, replaceJobId=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107<p class="firstline">Creates a Cloud Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800108<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 <code><a href="#get">get(projectId, location, jobId, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110<p class="firstline">Gets the state of the specified Cloud Dataflow job. To get the state of a job, we recommend using `projects.locations.jobs.get` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.get` is not recommended, as you can only get the state of jobs that are running in `us-central1`.</p>
111<p class="toc_element">
112 <code><a href="#getExecutionDetails">getExecutionDetails(projectId, location, jobId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
113<p class="firstline">Request detailed information about the execution status of the job. EXPERIMENTAL. This API is subject to change or removal without notice.</p>
114<p class="toc_element">
115 <code><a href="#getExecutionDetails_next">getExecutionDetails_next(previous_request, previous_response)</a></code></p>
116<p class="firstline">Retrieves the next page of results.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800117<p class="toc_element">
118 <code><a href="#getMetrics">getMetrics(projectId, location, jobId, startTime=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700119<p class="firstline">Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.getMetrics` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.getMetrics` is not recommended, as you can only request the status of jobs that are running in `us-central1`.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800120<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 <code><a href="#list">list(projectId, location, pageSize=None, pageToken=None, view=None, filter=None, x__xgafv=None)</a></code></p>
122<p class="firstline">List the jobs of a project. To list the jobs of a project in a region, we recommend using `projects.locations.jobs.list` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list the all jobs across all regions, use `projects.jobs.aggregated`. Using `projects.jobs.list` is not recommended, as you can only get the list of jobs that are running in `us-central1`.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800123<p class="toc_element">
124 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
125<p class="firstline">Retrieves the next page of results.</p>
126<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 <code><a href="#snapshot">snapshot(projectId, location, jobId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<p class="firstline">Snapshot the state of a streaming job.</p>
129<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code><a href="#update">update(projectId, location, jobId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700131<p class="firstline">Updates the state of an existing Cloud Dataflow job. To update the state of an existing job, we recommend using `projects.locations.jobs.update` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.update` is not recommended, as you can only update the state of jobs that are running in `us-central1`.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800132<h3>Method Details</h3>
133<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700134 <code class="details" id="close">close()</code>
135 <pre>Close httplib2 connections.</pre>
136</div>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800137
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138<div class="method">
139 <code class="details" id="create">create(projectId, location, body=None, view=None, replaceJobId=None, x__xgafv=None)</code>
140 <pre>Creates a Cloud Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800142Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400143 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700144 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700145 body: object, The request body.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800146 The object takes the form of:
147
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400148{ # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700149 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
150 { # A message describing the state of a particular execution stage.
151 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
152 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
153 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
154 },
155 ],
156 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics. # Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
157 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
158 { # Description of the type, names/ids, and input/outputs for a transform.
159 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
160 &quot;displayData&quot;: [ # Transform-specific display data.
161 { # Data provided with a pipeline or transform to provide descriptive info.
162 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
163 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
164 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
165 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
166 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
167 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
168 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
169 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
170 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
171 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
172 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
173 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
174 },
175 ],
176 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
177 &quot;A String&quot;,
178 ],
179 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
180 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
181 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
182 &quot;A String&quot;,
183 ],
184 },
185 ],
186 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
187 { # Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
188 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
189 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
190 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
191 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
192 { # Description of a transform executed as part of an execution stage.
193 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
194 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
195 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
196 },
197 ],
198 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
199 { # Description of an interstitial value between transforms in an execution stage.
200 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
201 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
202 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
203 },
204 ],
205 &quot;outputSource&quot;: [ # Output sources for this stage.
206 { # Description of an input or output of an execution stage.
207 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
208 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
209 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
210 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
211 },
212 ],
213 &quot;inputSource&quot;: [ # Input sources for this stage.
214 { # Description of an input or output of an execution stage.
215 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
216 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
217 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
218 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
219 },
220 ],
221 },
222 ],
223 &quot;displayData&quot;: [ # Pipeline level display data.
224 { # Data provided with a pipeline or transform to provide descriptive info.
225 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
226 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
227 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
228 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
229 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
230 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
231 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
232 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
233 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
234 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
235 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
236 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
237 },
238 ],
239 },
240 &quot;labels&quot;: { # User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be &lt;= 128 bytes in size.
241 &quot;a_key&quot;: &quot;A String&quot;,
242 },
243 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
244 { # Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here&#x27;s an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection&#x27;s elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
245 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job.
246 &quot;properties&quot;: { # Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
247 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
248 },
249 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
250 },
251 ],
252 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name. Only one Job with a given name may exist in a project at any given time. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
253 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
254 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
255 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
256 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
257 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}
258 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The system will append the suffix &quot;/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
259 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
260 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
261 },
262 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be specified in order for the job to have workers.
263 { # Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
264 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
265 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user&#x27;s project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.
266 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
267 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700268 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700269 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
270 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
271 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
272 },
273 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
274 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
275 &quot;packages&quot;: [ # Packages to be installed on workers.
276 { # The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool. This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user&#x27;s code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
277 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
278 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
279 },
280 ],
281 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
282 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
283 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
284 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
285 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
286 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
287 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
288 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;wheel&quot;.
289 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
290 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
291 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
292 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700293 &quot;A String&quot;,
294 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700295 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
296 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;root&quot;.
297 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
298 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
299 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
300 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
301 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
302 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
303 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
304 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
305 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
306 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
307 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
308 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
309 },
310 },
311 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
312 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
313 { # Defines a SDK harness container for executing Dataflow pipelines.
314 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
315 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
316 },
317 ],
318 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
319 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
320 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the service will attempt to choose a reasonable default.
321 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
322 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
323 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
324 },
325 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
326 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
327 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdk_harness_container_images instead.
328 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
329 { # Describes the data disk used by a workflow job.
330 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
331 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
332 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in &quot;pd-standard&quot;. If SSD persistent disks are available, the resource name typically ends with &quot;pd-ssd&quot;. The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
333 },
334 ],
335 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
336 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
337 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
338 },
339 ],
340 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity.
341 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
342 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
343 &quot;userAgent&quot;: { # A description of the process that generated the request.
344 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
345 },
346 &quot;experiments&quot;: [ # The list of experiments to enable.
347 &quot;A String&quot;,
348 ],
349 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
350 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
351 },
352 &quot;internalExperiments&quot;: { # Experimental settings.
353 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
354 },
355 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. &quot;compute.googleapis.com&quot;.
356 },
357 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
358 &quot;A String&quot;,
359 ],
360 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
361 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
362 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
363 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
364 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
365 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
366 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
367 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job&#x27;s requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
368 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
369 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
370 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
371 &quot;stepName&quot;: [ # The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage.
372 &quot;A String&quot;,
373 ],
374 },
375 },
376 },
377 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
378 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client&#x27;s ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
379 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
380 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
381 &quot;a_key&quot;: &quot;A String&quot;,
382 },
383 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
384 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
385 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
386 { # Metadata for a File connector used by the job.
387 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
388 },
389 ],
390 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
391 { # Metadata for a Spanner connector used by the job.
392 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
393 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
394 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
395 },
396 ],
397 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
398 { # Metadata for a Datastore connector used by the job.
399 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
400 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
401 },
402 ],
403 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
404 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
405 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
406 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
407 },
408 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
409 { # Metadata for a PubSub connector used by the job.
410 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
411 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
412 },
413 ],
414 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
415 { # Metadata for a BigQuery connector used by the job.
416 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
417 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
418 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
419 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
420 },
421 ],
422 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
423 { # Metadata for a BigTable connector used by the job.
424 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
425 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
426 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
427 },
428 ],
429 },
430 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
431}
432
433 view: string, The level of information requested in response.
434 Allowed values
435 JOB_VIEW_UNKNOWN - The job view to return isn&#x27;t specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.
436 JOB_VIEW_SUMMARY - Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.
437 JOB_VIEW_ALL - Request all information available for this job.
438 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
439 replaceJobId: string, Deprecated. This field is now in the Job message.
440 x__xgafv: string, V1 error format.
441 Allowed values
442 1 - v1 error format
443 2 - v2 error format
444
445Returns:
446 An object of the form:
447
448 { # Defines a job to be run by the Cloud Dataflow service.
449 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
450 { # A message describing the state of a particular execution stage.
451 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
452 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
453 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
454 },
455 ],
456 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics. # Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
457 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
458 { # Description of the type, names/ids, and input/outputs for a transform.
459 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700460 &quot;displayData&quot;: [ # Transform-specific display data.
461 { # Data provided with a pipeline or transform to provide descriptive info.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700462 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700463 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
464 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700465 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700466 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
467 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
468 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
469 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
470 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
471 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
472 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
473 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700474 },
475 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700476 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
477 &quot;A String&quot;,
478 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700479 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700480 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
482 &quot;A String&quot;,
483 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700484 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700485 ],
486 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700487 { # Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
488 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
489 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
490 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
491 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
492 { # Description of a transform executed as part of an execution stage.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700493 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700494 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700495 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700496 },
497 ],
498 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
499 { # Description of an interstitial value between transforms in an execution stage.
500 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
501 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
502 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
503 },
504 ],
505 &quot;outputSource&quot;: [ # Output sources for this stage.
506 { # Description of an input or output of an execution stage.
507 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
508 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
509 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
510 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700511 },
512 ],
513 &quot;inputSource&quot;: [ # Input sources for this stage.
514 { # Description of an input or output of an execution stage.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700515 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
516 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700517 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700518 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 },
520 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700521 },
522 ],
523 &quot;displayData&quot;: [ # Pipeline level display data.
524 { # Data provided with a pipeline or transform to provide descriptive info.
525 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
526 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
527 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
528 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
529 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
530 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
531 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
532 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
533 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
534 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
535 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
536 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700537 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700538 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700540 &quot;labels&quot;: { # User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be &lt;= 128 bytes in size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800542 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700543 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
544 { # Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here&#x27;s an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection&#x27;s elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
545 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job.
546 &quot;properties&quot;: { # Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
547 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
548 },
549 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
550 },
551 ],
552 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name. Only one Job with a given name may exist in a project at any given time. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
553 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700555 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
556 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
557 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}
558 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The system will append the suffix &quot;/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
559 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700560 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
561 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700562 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be specified in order for the job to have workers.
563 { # Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
564 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
565 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user&#x27;s project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700566 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
567 &quot;a_key&quot;: &quot;A String&quot;,
568 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700569 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
570 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
571 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
572 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700573 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700574 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
575 &quot;packages&quot;: [ # Packages to be installed on workers.
576 { # The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool. This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user&#x27;s code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
577 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
578 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
579 },
580 ],
581 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
582 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
583 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
584 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
585 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
586 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
587 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
588 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;wheel&quot;.
589 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
590 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
591 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
592 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
593 &quot;A String&quot;,
594 ],
595 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
596 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;root&quot;.
597 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
598 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
599 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
600 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
601 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
602 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
603 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
604 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
605 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
606 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
607 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
608 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
609 },
610 },
611 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
612 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
613 { # Defines a SDK harness container for executing Dataflow pipelines.
614 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
615 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
616 },
617 ],
618 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
619 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
620 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the service will attempt to choose a reasonable default.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700621 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
622 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
623 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
624 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700625 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
626 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
627 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdk_harness_container_images instead.
628 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
629 { # Describes the data disk used by a workflow job.
630 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
631 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
632 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in &quot;pd-standard&quot;. If SSD persistent disks are available, the resource name typically ends with &quot;pd-ssd&quot;. The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700633 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700634 ],
635 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
636 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
637 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700638 },
639 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700640 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity.
641 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
642 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
643 &quot;userAgent&quot;: { # A description of the process that generated the request.
644 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
645 },
646 &quot;experiments&quot;: [ # The list of experiments to enable.
647 &quot;A String&quot;,
648 ],
649 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
650 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
651 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700652 &quot;internalExperiments&quot;: { # Experimental settings.
653 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
654 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700655 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. &quot;compute.googleapis.com&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700657 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
658 &quot;A String&quot;,
659 ],
660 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
661 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
662 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
663 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
664 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
665 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
666 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
667 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job&#x27;s requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
668 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
669 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
670 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
671 &quot;stepName&quot;: [ # The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage.
672 &quot;A String&quot;,
673 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700674 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700675 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700676 },
677 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
678 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client&#x27;s ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
679 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
680 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
681 &quot;a_key&quot;: &quot;A String&quot;,
682 },
683 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
684 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
685 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
686 { # Metadata for a File connector used by the job.
687 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
688 },
689 ],
690 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
691 { # Metadata for a Spanner connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700692 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700693 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
694 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
695 },
696 ],
697 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
698 { # Metadata for a Datastore connector used by the job.
699 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700700 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
701 },
702 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700703 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
704 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
705 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
706 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
707 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700708 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
709 { # Metadata for a PubSub connector used by the job.
710 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
711 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
712 },
713 ],
714 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
715 { # Metadata for a BigQuery connector used by the job.
716 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
717 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
718 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
719 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
720 },
721 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700722 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
723 { # Metadata for a BigTable connector used by the job.
724 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
725 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
726 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
727 },
728 ],
729 },
730 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
731 }</pre>
732</div>
733
734<div class="method">
735 <code class="details" id="get">get(projectId, location, jobId, view=None, x__xgafv=None)</code>
736 <pre>Gets the state of the specified Cloud Dataflow job. To get the state of a job, we recommend using `projects.locations.jobs.get` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.get` is not recommended, as you can only get the state of jobs that are running in `us-central1`.
737
738Args:
739 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
740 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. (required)
741 jobId: string, The job ID. (required)
742 view: string, The level of information requested in response.
743 Allowed values
744 JOB_VIEW_UNKNOWN - The job view to return isn&#x27;t specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.
745 JOB_VIEW_SUMMARY - Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.
746 JOB_VIEW_ALL - Request all information available for this job.
747 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
748 x__xgafv: string, V1 error format.
749 Allowed values
750 1 - v1 error format
751 2 - v2 error format
752
753Returns:
754 An object of the form:
755
756 { # Defines a job to be run by the Cloud Dataflow service.
757 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
758 { # A message describing the state of a particular execution stage.
759 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
760 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
761 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
762 },
763 ],
764 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics. # Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
765 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
766 { # Description of the type, names/ids, and input/outputs for a transform.
767 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
768 &quot;displayData&quot;: [ # Transform-specific display data.
769 { # Data provided with a pipeline or transform to provide descriptive info.
770 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
771 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
772 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
773 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
774 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
775 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
776 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
777 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
778 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
779 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
780 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
781 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
782 },
783 ],
784 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
785 &quot;A String&quot;,
786 ],
787 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
788 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
789 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
790 &quot;A String&quot;,
791 ],
792 },
793 ],
794 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
795 { # Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
796 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
797 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
798 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
799 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
800 { # Description of a transform executed as part of an execution stage.
801 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
802 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
803 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
804 },
805 ],
806 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
807 { # Description of an interstitial value between transforms in an execution stage.
808 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
809 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
810 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
811 },
812 ],
813 &quot;outputSource&quot;: [ # Output sources for this stage.
814 { # Description of an input or output of an execution stage.
815 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
816 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
817 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
818 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
819 },
820 ],
821 &quot;inputSource&quot;: [ # Input sources for this stage.
822 { # Description of an input or output of an execution stage.
823 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
824 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
825 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
826 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
827 },
828 ],
829 },
830 ],
831 &quot;displayData&quot;: [ # Pipeline level display data.
832 { # Data provided with a pipeline or transform to provide descriptive info.
833 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
834 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
835 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
836 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
837 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
838 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
839 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
840 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
841 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
842 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
843 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
844 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
845 },
846 ],
847 },
848 &quot;labels&quot;: { # User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be &lt;= 128 bytes in size.
849 &quot;a_key&quot;: &quot;A String&quot;,
850 },
851 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
852 { # Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here&#x27;s an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection&#x27;s elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
853 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job.
854 &quot;properties&quot;: { # Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
855 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
856 },
857 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
858 },
859 ],
860 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name. Only one Job with a given name may exist in a project at any given time. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
861 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
862 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
863 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
864 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
865 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}
866 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The system will append the suffix &quot;/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
867 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
868 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
869 },
870 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be specified in order for the job to have workers.
871 { # Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
872 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
873 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user&#x27;s project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.
874 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
875 &quot;a_key&quot;: &quot;A String&quot;,
876 },
877 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
878 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
879 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
880 },
881 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
882 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
883 &quot;packages&quot;: [ # Packages to be installed on workers.
884 { # The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool. This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user&#x27;s code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
885 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
886 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
887 },
888 ],
889 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
890 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
891 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
892 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
893 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
894 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
895 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
896 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;wheel&quot;.
897 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
898 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
899 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
900 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
901 &quot;A String&quot;,
902 ],
903 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
904 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;root&quot;.
905 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
906 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
907 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
908 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
909 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
910 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
911 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
912 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
913 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
914 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
915 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
916 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
917 },
918 },
919 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
920 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
921 { # Defines a SDK harness container for executing Dataflow pipelines.
922 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
923 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
924 },
925 ],
926 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
927 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
928 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the service will attempt to choose a reasonable default.
929 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
930 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
931 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
932 },
933 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
934 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
935 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdk_harness_container_images instead.
936 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
937 { # Describes the data disk used by a workflow job.
938 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
939 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
940 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in &quot;pd-standard&quot;. If SSD persistent disks are available, the resource name typically ends with &quot;pd-ssd&quot;. The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
941 },
942 ],
943 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
944 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
945 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
946 },
947 ],
948 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity.
949 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
950 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
951 &quot;userAgent&quot;: { # A description of the process that generated the request.
952 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
953 },
954 &quot;experiments&quot;: [ # The list of experiments to enable.
955 &quot;A String&quot;,
956 ],
957 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
958 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
959 },
960 &quot;internalExperiments&quot;: { # Experimental settings.
961 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
962 },
963 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. &quot;compute.googleapis.com&quot;.
964 },
965 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
966 &quot;A String&quot;,
967 ],
968 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
969 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
970 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
971 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
972 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
973 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
974 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
975 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job&#x27;s requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
976 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
977 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
978 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
979 &quot;stepName&quot;: [ # The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage.
980 &quot;A String&quot;,
981 ],
982 },
983 },
984 },
985 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
986 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client&#x27;s ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
987 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
988 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
989 &quot;a_key&quot;: &quot;A String&quot;,
990 },
991 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
992 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700993 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
994 { # Metadata for a File connector used by the job.
995 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
996 },
997 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700998 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
999 { # Metadata for a Spanner connector used by the job.
1000 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1001 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1002 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
1003 },
1004 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001005 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1006 { # Metadata for a Datastore connector used by the job.
1007 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
1008 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1009 },
1010 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001011 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1012 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1013 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1014 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1015 },
1016 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1017 { # Metadata for a PubSub connector used by the job.
1018 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1019 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1020 },
1021 ],
1022 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1023 { # Metadata for a BigQuery connector used by the job.
1024 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1025 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
1026 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1027 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
1028 },
1029 ],
1030 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1031 { # Metadata for a BigTable connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001032 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001033 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001034 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1035 },
1036 ],
1037 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001038 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
1039 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040</div>
1041
1042<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001043 <code class="details" id="getExecutionDetails">getExecutionDetails(projectId, location, jobId, pageSize=None, pageToken=None, x__xgafv=None)</code>
1044 <pre>Request detailed information about the execution status of the job. EXPERIMENTAL. This API is subject to change or removal without notice.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001045
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001046Args:
1047 projectId: string, A project id. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001048 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. (required)
1049 jobId: string, The job to get execution details for. (required)
1050 pageSize: integer, If specified, determines the maximum number of stages to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of results.
1051 pageToken: string, If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001052 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001053 Allowed values
1054 1 - v1 error format
1055 2 - v2 error format
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001056
1057Returns:
1058 An object of the form:
1059
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001060 { # Information about the execution of a job.
1061 &quot;nextPageToken&quot;: &quot;A String&quot;, # If present, this response does not contain all requested tasks. To obtain the next page of results, repeat the request with page_token set to this value.
1062 &quot;stages&quot;: [ # The stages of the job execution.
1063 { # Information about a particular execution stage of a job.
1064 &quot;progress&quot;: { # Information about the progress of some component of job execution. # Progress for this stage. Only applicable to Batch jobs.
1065 &quot;currentProgress&quot;: 3.14, # The current progress of the component, in the range [0,1].
1066 &quot;dataPoints&quot;: [ # History of progress for the component. Points are sorted by time.
1067 { # A point in the timeseries.
1068 &quot;value&quot;: 3.14, # The value of the point.
1069 &quot;time&quot;: &quot;A String&quot;, # The timestamp of the point.
1070 },
1071 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001073 &quot;metrics&quot;: [ # Metrics for this stage.
1074 { # Describes the state of a metric.
1075 &quot;meanSum&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Mean&quot; aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.
1076 &quot;meanCount&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Mean&quot; aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.
1077 &quot;kind&quot;: &quot;A String&quot;, # Metric aggregation kind. The possible metric aggregation kinds are &quot;Sum&quot;, &quot;Max&quot;, &quot;Min&quot;, &quot;Mean&quot;, &quot;Set&quot;, &quot;And&quot;, &quot;Or&quot;, and &quot;Distribution&quot;. The specified aggregation kind is case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value.
1078 &quot;name&quot;: { # Identifies a metric, by describing the source which generated the metric. # Name of the metric.
1079 &quot;name&quot;: &quot;A String&quot;, # Worker-defined metric name.
1080 &quot;context&quot;: { # Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context[&#x27;step&#x27;] = . Counters associated with PCollections in the SDK will have context[&#x27;pcollection&#x27;] = .
1081 &quot;a_key&quot;: &quot;A String&quot;,
1082 },
1083 &quot;origin&quot;: &quot;A String&quot;, # Origin (namespace) of metric name. May be blank for user-define metrics; will be &quot;dataflow&quot; for metrics defined by the Dataflow service or SDK.
1084 },
1085 &quot;set&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Set&quot; aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric&#x27;s type. All Values in the list must be of the same type.
1086 &quot;internal&quot;: &quot;&quot;, # Worker-computed aggregate value for internal use by the Dataflow service.
1087 &quot;distribution&quot;: &quot;&quot;, # A struct value describing properties of a distribution of numeric values.
1088 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.
1089 &quot;gauge&quot;: &quot;&quot;, # A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.
1090 &quot;cumulative&quot;: True or False, # True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.
1091 &quot;scalar&quot;: &quot;&quot;, # Worker-computed aggregate value for aggregation kinds &quot;Sum&quot;, &quot;Max&quot;, &quot;Min&quot;, &quot;And&quot;, and &quot;Or&quot;. The possible value types are Long, Double, and Boolean.
1092 },
1093 ],
1094 &quot;endTime&quot;: &quot;A String&quot;, # End time of this stage. If the work item is completed, this is the actual end time of the stage. Otherwise, it is the predicted end time.
1095 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this stage.
1096 &quot;state&quot;: &quot;A String&quot;, # State of this stage.
1097 &quot;stageId&quot;: &quot;A String&quot;, # ID of this stage
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001098 },
1099 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001100 }</pre>
1101</div>
1102
1103<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001104 <code class="details" id="getExecutionDetails_next">getExecutionDetails_next(previous_request, previous_response)</code>
1105 <pre>Retrieves the next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001106
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001107Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001108 previous_request: The request for the previous page. (required)
1109 previous_response: The response from the request for the previous page. (required)
1110
1111Returns:
1112 A request object that you can call &#x27;execute()&#x27; on to request the next
1113 page. Returns None if there are no more items in the collection.
1114 </pre>
1115</div>
1116
1117<div class="method">
1118 <code class="details" id="getMetrics">getMetrics(projectId, location, jobId, startTime=None, x__xgafv=None)</code>
1119 <pre>Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.getMetrics` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.getMetrics` is not recommended, as you can only request the status of jobs that are running in `us-central1`.
1120
1121Args:
1122 projectId: string, A project id. (required)
1123 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. (required)
1124 jobId: string, The job to get metrics for. (required)
1125 startTime: string, Return only metric data that has changed since this time. Default is to return all information about all metrics for the job.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001126 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001127 Allowed values
1128 1 - v1 error format
1129 2 - v2 error format
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001130
1131Returns:
1132 An object of the form:
1133
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001134 { # JobMetrics contains a collection of metrics describing the detailed progress of a Dataflow job. Metrics correspond to user-defined and system-defined metrics in the job. This resource captures only the most recent values of each metric; time-series data can be queried for them (under the same metric names) from Cloud Monitoring.
1135 &quot;metrics&quot;: [ # All metrics for this job.
1136 { # Describes the state of a metric.
1137 &quot;meanSum&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Mean&quot; aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.
1138 &quot;meanCount&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Mean&quot; aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.
1139 &quot;kind&quot;: &quot;A String&quot;, # Metric aggregation kind. The possible metric aggregation kinds are &quot;Sum&quot;, &quot;Max&quot;, &quot;Min&quot;, &quot;Mean&quot;, &quot;Set&quot;, &quot;And&quot;, &quot;Or&quot;, and &quot;Distribution&quot;. The specified aggregation kind is case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value.
1140 &quot;name&quot;: { # Identifies a metric, by describing the source which generated the metric. # Name of the metric.
1141 &quot;name&quot;: &quot;A String&quot;, # Worker-defined metric name.
1142 &quot;context&quot;: { # Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context[&#x27;step&#x27;] = . Counters associated with PCollections in the SDK will have context[&#x27;pcollection&#x27;] = .
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001143 &quot;a_key&quot;: &quot;A String&quot;,
1144 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001145 &quot;origin&quot;: &quot;A String&quot;, # Origin (namespace) of metric name. May be blank for user-define metrics; will be &quot;dataflow&quot; for metrics defined by the Dataflow service or SDK.
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001147 &quot;set&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Set&quot; aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric&#x27;s type. All Values in the list must be of the same type.
1148 &quot;internal&quot;: &quot;&quot;, # Worker-computed aggregate value for internal use by the Dataflow service.
1149 &quot;distribution&quot;: &quot;&quot;, # A struct value describing properties of a distribution of numeric values.
1150 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.
1151 &quot;gauge&quot;: &quot;&quot;, # A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.
1152 &quot;cumulative&quot;: True or False, # True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.
1153 &quot;scalar&quot;: &quot;&quot;, # Worker-computed aggregate value for aggregation kinds &quot;Sum&quot;, &quot;Max&quot;, &quot;Min&quot;, &quot;And&quot;, and &quot;Or&quot;. The possible value types are Long, Double, and Boolean.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001154 },
1155 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001156 &quot;metricTime&quot;: &quot;A String&quot;, # Timestamp as of which metric values are current.
1157 }</pre>
1158</div>
1159
1160<div class="method">
1161 <code class="details" id="list">list(projectId, location, pageSize=None, pageToken=None, view=None, filter=None, x__xgafv=None)</code>
1162 <pre>List the jobs of a project. To list the jobs of a project in a region, we recommend using `projects.locations.jobs.list` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list the all jobs across all regions, use `projects.jobs.aggregated`. Using `projects.jobs.list` is not recommended, as you can only get the list of jobs that are running in `us-central1`.
1163
1164Args:
1165 projectId: string, The project which owns the jobs. (required)
1166 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. (required)
1167 pageSize: integer, If there are many jobs, limit response to at most this many. The actual number of jobs returned will be the lesser of max_responses and an unspecified server-defined limit.
1168 pageToken: string, Set this to the &#x27;next_page_token&#x27; field of a previous response to request additional results in a long list.
1169 view: string, Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
1170 Allowed values
1171 JOB_VIEW_UNKNOWN - The job view to return isn&#x27;t specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.
1172 JOB_VIEW_SUMMARY - Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.
1173 JOB_VIEW_ALL - Request all information available for this job.
1174 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
1175 filter: string, The kind of filter to use.
1176 Allowed values
1177 UNKNOWN - The filter isn&#x27;t specified, or is unknown. This returns all jobs ordered on descending `JobUuid`.
1178 ALL - Returns all running jobs first ordered on creation timestamp, then returns all terminated jobs ordered on the termination timestamp.
1179 TERMINATED - Filters the jobs that have a terminated state, ordered on the termination timestamp. Example terminated states: `JOB_STATE_STOPPED`, `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc.
1180 ACTIVE - Filters the jobs that are running ordered on the creation timestamp.
1181 x__xgafv: string, V1 error format.
1182 Allowed values
1183 1 - v1 error format
1184 2 - v2 error format
1185
1186Returns:
1187 An object of the form:
1188
1189 { # Response to a request to list Cloud Dataflow jobs in a project. This might be a partial response, depending on the page size in the ListJobsRequest. However, if the project does not have any jobs, an instance of ListJobsResponse is not returned and the requests&#x27;s response body is empty {}.
1190 &quot;jobs&quot;: [ # A subset of the requested job information.
1191 { # Defines a job to be run by the Cloud Dataflow service.
1192 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1193 { # A message describing the state of a particular execution stage.
1194 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
1195 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
1196 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
1197 },
1198 ],
1199 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics. # Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
1200 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1201 { # Description of the type, names/ids, and input/outputs for a transform.
1202 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1203 &quot;displayData&quot;: [ # Transform-specific display data.
1204 { # Data provided with a pipeline or transform to provide descriptive info.
1205 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1206 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1207 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
1208 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1209 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1210 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
1211 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1212 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1213 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1214 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1215 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
1216 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1217 },
1218 ],
1219 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1220 &quot;A String&quot;,
1221 ],
1222 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1223 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1224 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1225 &quot;A String&quot;,
1226 ],
1227 },
1228 ],
1229 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
1230 { # Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
1231 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
1232 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
1233 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
1234 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1235 { # Description of a transform executed as part of an execution stage.
1236 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1237 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
1238 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1239 },
1240 ],
1241 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
1242 { # Description of an interstitial value between transforms in an execution stage.
1243 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1244 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1245 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1246 },
1247 ],
1248 &quot;outputSource&quot;: [ # Output sources for this stage.
1249 { # Description of an input or output of an execution stage.
1250 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1251 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1252 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1253 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1254 },
1255 ],
1256 &quot;inputSource&quot;: [ # Input sources for this stage.
1257 { # Description of an input or output of an execution stage.
1258 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1259 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1260 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1261 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1262 },
1263 ],
1264 },
1265 ],
1266 &quot;displayData&quot;: [ # Pipeline level display data.
1267 { # Data provided with a pipeline or transform to provide descriptive info.
1268 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1269 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1270 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
1271 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1272 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1273 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
1274 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1275 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1276 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1277 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1278 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
1279 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1280 },
1281 ],
1282 },
1283 &quot;labels&quot;: { # User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be &lt;= 128 bytes in size.
1284 &quot;a_key&quot;: &quot;A String&quot;,
1285 },
1286 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
1287 { # Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here&#x27;s an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection&#x27;s elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
1288 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job.
1289 &quot;properties&quot;: { # Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
1290 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1291 },
1292 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1293 },
1294 ],
1295 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name. Only one Job with a given name may exist in a project at any given time. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
1296 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
1297 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
1298 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
1299 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
1300 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}
1301 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The system will append the suffix &quot;/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1302 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
1303 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1304 },
1305 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be specified in order for the job to have workers.
1306 { # Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
1307 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1308 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user&#x27;s project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.
1309 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1310 &quot;a_key&quot;: &quot;A String&quot;,
1311 },
1312 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
1313 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1314 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1315 },
1316 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
1317 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
1318 &quot;packages&quot;: [ # Packages to be installed on workers.
1319 { # The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool. This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user&#x27;s code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
1320 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1321 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
1322 },
1323 ],
1324 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
1325 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1326 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1327 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1328 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1329 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1330 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1331 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;wheel&quot;.
1332 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1333 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1334 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1335 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
1336 &quot;A String&quot;,
1337 ],
1338 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1339 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;root&quot;.
1340 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1341 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1342 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
1343 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1344 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
1345 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1346 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
1347 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1348 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
1349 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
1350 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1351 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1352 },
1353 },
1354 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
1355 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
1356 { # Defines a SDK harness container for executing Dataflow pipelines.
1357 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
1358 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
1359 },
1360 ],
1361 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
1362 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
1363 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the service will attempt to choose a reasonable default.
1364 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1365 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1366 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1367 },
1368 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1369 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
1370 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdk_harness_container_images instead.
1371 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
1372 { # Describes the data disk used by a workflow job.
1373 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
1374 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1375 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in &quot;pd-standard&quot;. If SSD persistent disks are available, the resource name typically ends with &quot;pd-ssd&quot;. The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
1376 },
1377 ],
1378 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
1379 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
1380 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
1381 },
1382 ],
1383 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity.
1384 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
1385 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
1386 &quot;userAgent&quot;: { # A description of the process that generated the request.
1387 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1388 },
1389 &quot;experiments&quot;: [ # The list of experiments to enable.
1390 &quot;A String&quot;,
1391 ],
1392 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
1393 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1394 },
1395 &quot;internalExperiments&quot;: { # Experimental settings.
1396 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1397 },
1398 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. &quot;compute.googleapis.com&quot;.
1399 },
1400 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1401 &quot;A String&quot;,
1402 ],
1403 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
1404 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1405 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
1406 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
1407 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1408 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
1409 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
1410 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job&#x27;s requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
1411 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
1412 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
1413 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
1414 &quot;stepName&quot;: [ # The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage.
1415 &quot;A String&quot;,
1416 ],
1417 },
1418 },
1419 },
1420 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1421 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client&#x27;s ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
1422 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
1423 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
1424 &quot;a_key&quot;: &quot;A String&quot;,
1425 },
1426 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
1427 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
1428 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1429 { # Metadata for a File connector used by the job.
1430 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1431 },
1432 ],
1433 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1434 { # Metadata for a Spanner connector used by the job.
1435 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1436 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1437 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
1438 },
1439 ],
1440 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1441 { # Metadata for a Datastore connector used by the job.
1442 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
1443 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1444 },
1445 ],
1446 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1447 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1448 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1449 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1450 },
1451 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1452 { # Metadata for a PubSub connector used by the job.
1453 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1454 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1455 },
1456 ],
1457 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1458 { # Metadata for a BigQuery connector used by the job.
1459 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1460 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
1461 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1462 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
1463 },
1464 ],
1465 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1466 { # Metadata for a BigTable connector used by the job.
1467 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1468 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
1469 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1470 },
1471 ],
1472 },
1473 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
1474 },
1475 ],
1476 &quot;failedLocation&quot;: [ # Zero or more messages describing the [regional endpoints] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond.
1477 { # Indicates which [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed to respond to a request for data.
1478 &quot;name&quot;: &quot;A String&quot;, # The name of the [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond.
1479 },
1480 ],
1481 &quot;nextPageToken&quot;: &quot;A String&quot;, # Set if there may be more results than fit in this response.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001482 }</pre>
1483</div>
1484
1485<div class="method">
1486 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1487 <pre>Retrieves the next page of results.
1488
1489Args:
1490 previous_request: The request for the previous page. (required)
1491 previous_response: The response from the request for the previous page. (required)
1492
1493Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001494 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001495 page. Returns None if there are no more items in the collection.
1496 </pre>
1497</div>
1498
1499<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001500 <code class="details" id="snapshot">snapshot(projectId, location, jobId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001501 <pre>Snapshot the state of a streaming job.
1502
1503Args:
1504 projectId: string, The project which owns the job to be snapshotted. (required)
1505 location: string, The location that contains this job. (required)
1506 jobId: string, The job to be snapshotted. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001507 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001508 The object takes the form of:
1509
1510{ # Request to create a snapshot of a job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001511 &quot;ttl&quot;: &quot;A String&quot;, # TTL for the snapshot.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001512 &quot;snapshotSources&quot;: True or False, # If true, perform snapshots for sources which support this.
1513 &quot;description&quot;: &quot;A String&quot;, # User specified description of the snapshot. Maybe empty.
1514 &quot;location&quot;: &quot;A String&quot;, # The location that contains this job.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001515 }
1516
1517 x__xgafv: string, V1 error format.
1518 Allowed values
1519 1 - v1 error format
1520 2 - v2 error format
1521
1522Returns:
1523 An object of the form:
1524
1525 { # Represents a snapshot of a job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001526 &quot;projectId&quot;: &quot;A String&quot;, # The project this snapshot belongs to.
1527 &quot;diskSizeBytes&quot;: &quot;A String&quot;, # The disk byte size of the snapshot. Only available for snapshots in READY state.
1528 &quot;creationTime&quot;: &quot;A String&quot;, # The time this snapshot was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001529 &quot;ttl&quot;: &quot;A String&quot;, # The time after which this snapshot will be automatically deleted.
1530 &quot;state&quot;: &quot;A String&quot;, # State of the snapshot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001531 &quot;sourceJobId&quot;: &quot;A String&quot;, # The job this snapshot was created from.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001532 &quot;description&quot;: &quot;A String&quot;, # User specified description of the snapshot. Maybe empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001533 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this snapshot.
Bu Sun Kim65020912020-05-20 12:08:20 -07001534 &quot;pubsubMetadata&quot;: [ # PubSub snapshot metadata.
Dan O'Mearadd494642020-05-01 07:42:23 -07001535 { # Represents a Pubsub snapshot.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001536 &quot;expireTime&quot;: &quot;A String&quot;, # The expire time of the Pubsub snapshot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001537 &quot;topicName&quot;: &quot;A String&quot;, # The name of the Pubsub topic.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001538 &quot;snapshotName&quot;: &quot;A String&quot;, # The name of the Pubsub snapshot.
Dan O'Mearadd494642020-05-01 07:42:23 -07001539 },
1540 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001541 }</pre>
1542</div>
1543
1544<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001545 <code class="details" id="update">update(projectId, location, jobId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001546 <pre>Updates the state of an existing Cloud Dataflow job. To update the state of an existing job, we recommend using `projects.locations.jobs.update` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.update` is not recommended, as you can only update the state of jobs that are running in `us-central1`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001547
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001548Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001549 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001550 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001551 jobId: string, The job ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001552 body: object, The request body.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001553 The object takes the form of:
1554
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001555{ # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001556 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1557 { # A message describing the state of a particular execution stage.
1558 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
1559 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
1560 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
1561 },
1562 ],
1563 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics. # Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
1564 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1565 { # Description of the type, names/ids, and input/outputs for a transform.
1566 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1567 &quot;displayData&quot;: [ # Transform-specific display data.
1568 { # Data provided with a pipeline or transform to provide descriptive info.
1569 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1570 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1571 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
1572 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1573 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1574 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
1575 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1576 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1577 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1578 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1579 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
1580 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1581 },
1582 ],
1583 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1584 &quot;A String&quot;,
1585 ],
1586 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1587 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1588 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1589 &quot;A String&quot;,
1590 ],
1591 },
1592 ],
1593 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
1594 { # Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
1595 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
1596 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
1597 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
1598 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1599 { # Description of a transform executed as part of an execution stage.
1600 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1601 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
1602 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1603 },
1604 ],
1605 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
1606 { # Description of an interstitial value between transforms in an execution stage.
1607 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1608 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1609 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1610 },
1611 ],
1612 &quot;outputSource&quot;: [ # Output sources for this stage.
1613 { # Description of an input or output of an execution stage.
1614 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1615 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1616 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1617 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1618 },
1619 ],
1620 &quot;inputSource&quot;: [ # Input sources for this stage.
1621 { # Description of an input or output of an execution stage.
1622 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1623 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1624 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1625 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1626 },
1627 ],
1628 },
1629 ],
1630 &quot;displayData&quot;: [ # Pipeline level display data.
1631 { # Data provided with a pipeline or transform to provide descriptive info.
1632 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1633 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1634 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
1635 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1636 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1637 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
1638 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1639 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1640 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1641 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1642 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
1643 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1644 },
1645 ],
1646 },
1647 &quot;labels&quot;: { # User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be &lt;= 128 bytes in size.
1648 &quot;a_key&quot;: &quot;A String&quot;,
1649 },
1650 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
1651 { # Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here&#x27;s an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection&#x27;s elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
1652 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job.
1653 &quot;properties&quot;: { # Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
1654 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1655 },
1656 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1657 },
1658 ],
1659 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name. Only one Job with a given name may exist in a project at any given time. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
1660 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
1661 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
1662 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
1663 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
1664 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}
1665 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The system will append the suffix &quot;/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1666 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
1667 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1668 },
1669 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be specified in order for the job to have workers.
1670 { # Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
1671 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1672 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user&#x27;s project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.
1673 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1674 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001675 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001676 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
1677 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1678 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1679 },
1680 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
1681 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
1682 &quot;packages&quot;: [ # Packages to be installed on workers.
1683 { # The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool. This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user&#x27;s code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
1684 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1685 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
1686 },
1687 ],
1688 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
1689 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1690 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1691 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1692 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1693 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1694 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1695 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;wheel&quot;.
1696 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1697 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1698 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1699 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001700 &quot;A String&quot;,
1701 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001702 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1703 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;root&quot;.
1704 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1705 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1706 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
1707 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1708 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
1709 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1710 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
1711 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1712 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
1713 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
1714 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1715 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1716 },
1717 },
1718 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
1719 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
1720 { # Defines a SDK harness container for executing Dataflow pipelines.
1721 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
1722 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
1723 },
1724 ],
1725 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
1726 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
1727 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the service will attempt to choose a reasonable default.
1728 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1729 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1730 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1731 },
1732 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1733 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
1734 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdk_harness_container_images instead.
1735 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
1736 { # Describes the data disk used by a workflow job.
1737 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
1738 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1739 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in &quot;pd-standard&quot;. If SSD persistent disks are available, the resource name typically ends with &quot;pd-ssd&quot;. The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
1740 },
1741 ],
1742 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
1743 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
1744 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
1745 },
1746 ],
1747 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity.
1748 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
1749 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
1750 &quot;userAgent&quot;: { # A description of the process that generated the request.
1751 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1752 },
1753 &quot;experiments&quot;: [ # The list of experiments to enable.
1754 &quot;A String&quot;,
1755 ],
1756 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
1757 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1758 },
1759 &quot;internalExperiments&quot;: { # Experimental settings.
1760 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1761 },
1762 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. &quot;compute.googleapis.com&quot;.
1763 },
1764 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1765 &quot;A String&quot;,
1766 ],
1767 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
1768 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1769 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
1770 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
1771 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1772 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
1773 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
1774 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job&#x27;s requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
1775 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
1776 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
1777 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
1778 &quot;stepName&quot;: [ # The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage.
1779 &quot;A String&quot;,
1780 ],
1781 },
1782 },
1783 },
1784 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1785 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client&#x27;s ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
1786 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
1787 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
1788 &quot;a_key&quot;: &quot;A String&quot;,
1789 },
1790 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
1791 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
1792 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1793 { # Metadata for a File connector used by the job.
1794 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1795 },
1796 ],
1797 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1798 { # Metadata for a Spanner connector used by the job.
1799 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1800 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1801 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
1802 },
1803 ],
1804 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1805 { # Metadata for a Datastore connector used by the job.
1806 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
1807 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1808 },
1809 ],
1810 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1811 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1812 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1813 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1814 },
1815 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1816 { # Metadata for a PubSub connector used by the job.
1817 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1818 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1819 },
1820 ],
1821 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1822 { # Metadata for a BigQuery connector used by the job.
1823 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1824 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
1825 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1826 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
1827 },
1828 ],
1829 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1830 { # Metadata for a BigTable connector used by the job.
1831 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1832 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
1833 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1834 },
1835 ],
1836 },
1837 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
1838}
1839
1840 x__xgafv: string, V1 error format.
1841 Allowed values
1842 1 - v1 error format
1843 2 - v2 error format
1844
1845Returns:
1846 An object of the form:
1847
1848 { # Defines a job to be run by the Cloud Dataflow service.
1849 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1850 { # A message describing the state of a particular execution stage.
1851 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
1852 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
1853 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
1854 },
1855 ],
1856 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics. # Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
1857 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1858 { # Description of the type, names/ids, and input/outputs for a transform.
1859 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001860 &quot;displayData&quot;: [ # Transform-specific display data.
1861 { # Data provided with a pipeline or transform to provide descriptive info.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001862 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001863 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1864 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001865 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001866 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1867 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
1868 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1869 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1870 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1871 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1872 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
1873 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001874 },
1875 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001876 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1877 &quot;A String&quot;,
1878 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001879 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001880 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001881 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1882 &quot;A String&quot;,
1883 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001884 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001885 ],
1886 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001887 { # Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
1888 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
1889 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
1890 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
1891 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1892 { # Description of a transform executed as part of an execution stage.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001893 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001894 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001895 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001896 },
1897 ],
1898 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
1899 { # Description of an interstitial value between transforms in an execution stage.
1900 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1901 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1902 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1903 },
1904 ],
1905 &quot;outputSource&quot;: [ # Output sources for this stage.
1906 { # Description of an input or output of an execution stage.
1907 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1908 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1909 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1910 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001911 },
1912 ],
1913 &quot;inputSource&quot;: [ # Input sources for this stage.
1914 { # Description of an input or output of an execution stage.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001915 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1916 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001917 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001918 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001919 },
1920 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001921 },
1922 ],
1923 &quot;displayData&quot;: [ # Pipeline level display data.
1924 { # Data provided with a pipeline or transform to provide descriptive info.
1925 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1926 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1927 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
1928 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1929 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1930 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
1931 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1932 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1933 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1934 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1935 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
1936 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001937 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001938 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001939 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001940 &quot;labels&quot;: { # User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be &lt;= 128 bytes in size.
Bu Sun Kim65020912020-05-20 12:08:20 -07001941 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001942 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001943 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
1944 { # Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here&#x27;s an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection&#x27;s elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
1945 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job.
1946 &quot;properties&quot;: { # Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
1947 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1948 },
1949 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1950 },
1951 ],
1952 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name. Only one Job with a given name may exist in a project at any given time. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
1953 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001954 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001955 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
1956 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
1957 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}
1958 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The system will append the suffix &quot;/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1959 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001960 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1961 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001962 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be specified in order for the job to have workers.
1963 { # Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
1964 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1965 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user&#x27;s project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001966 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1967 &quot;a_key&quot;: &quot;A String&quot;,
1968 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001969 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
1970 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1971 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1972 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001973 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001974 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
1975 &quot;packages&quot;: [ # Packages to be installed on workers.
1976 { # The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool. This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user&#x27;s code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
1977 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1978 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
1979 },
1980 ],
1981 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
1982 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1983 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1984 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1985 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1986 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1987 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1988 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;wheel&quot;.
1989 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1990 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1991 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1992 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
1993 &quot;A String&quot;,
1994 ],
1995 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1996 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;root&quot;.
1997 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1998 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
1999 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
2000 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
2001 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
2002 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
2003 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
2004 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
2005 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
2006 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
2007 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
2008 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
2009 },
2010 },
2011 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
2012 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
2013 { # Defines a SDK harness container for executing Dataflow pipelines.
2014 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
2015 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
2016 },
2017 ],
2018 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
2019 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
2020 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the service will attempt to choose a reasonable default.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002021 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
2022 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
2023 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
2024 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002025 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
2026 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
2027 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdk_harness_container_images instead.
2028 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
2029 { # Describes the data disk used by a workflow job.
2030 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
2031 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
2032 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in &quot;pd-standard&quot;. If SSD persistent disks are available, the resource name typically ends with &quot;pd-ssd&quot;. The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002033 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002034 ],
2035 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
2036 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
2037 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002038 },
2039 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002040 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity.
2041 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
2042 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
2043 &quot;userAgent&quot;: { # A description of the process that generated the request.
2044 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2045 },
2046 &quot;experiments&quot;: [ # The list of experiments to enable.
2047 &quot;A String&quot;,
2048 ],
2049 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
2050 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2051 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002052 &quot;internalExperiments&quot;: { # Experimental settings.
2053 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2054 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002055 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. &quot;compute.googleapis.com&quot;.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002056 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002057 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
2058 &quot;A String&quot;,
2059 ],
2060 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
2061 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
2062 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
2063 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
2064 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
2065 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
2066 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
2067 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job&#x27;s requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
2068 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
2069 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
2070 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
2071 &quot;stepName&quot;: [ # The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage.
2072 &quot;A String&quot;,
2073 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002074 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002075 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002076 },
2077 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
2078 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client&#x27;s ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
2079 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
2080 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
2081 &quot;a_key&quot;: &quot;A String&quot;,
2082 },
2083 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
2084 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
2085 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
2086 { # Metadata for a File connector used by the job.
2087 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
2088 },
2089 ],
2090 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
2091 { # Metadata for a Spanner connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002092 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002093 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
2094 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
2095 },
2096 ],
2097 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
2098 { # Metadata for a Datastore connector used by the job.
2099 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002100 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
2101 },
2102 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002103 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
2104 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
2105 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
2106 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
2107 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002108 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
2109 { # Metadata for a PubSub connector used by the job.
2110 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
2111 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
2112 },
2113 ],
2114 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
2115 { # Metadata for a BigQuery connector used by the job.
2116 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
2117 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
2118 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
2119 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
2120 },
2121 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002122 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
2123 { # Metadata for a BigTable connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002124 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002125 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002126 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
2127 },
2128 ],
2129 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002130 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
2131 }</pre>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002132</div>
2133
2134</body></html>