blob: da13aae7720556b59e8670dab5c03c2418e9fb58 [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<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.templates.html">templates</a></h1>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(projectId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline">Creates a Cloud Dataflow job from a template.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#get">get(projectId, view=None, gcsPath=None, location=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040082<p class="firstline">Get the template associated with a template.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#launch">launch(projectId, body=None, validateOnly=None, gcsPath=None, location=None, dynamicTemplate_gcsPath=None, dynamicTemplate_stagingLocation=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040085<p class="firstline">Launch a template.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070086<h3>Method Details</h3>
87<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070088 <code class="details" id="create">create(projectId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040089 <pre>Creates a Cloud Dataflow job from a template.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070090
91Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040092 projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -070093 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070094 The object takes the form of:
95
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040096{ # A request to create a Cloud Dataflow job from a template.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070097 &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
98 &quot;gcsPath&quot;: &quot;A String&quot;, # Required. A Cloud Storage path to the template from which to
99 # create the job.
100 # Must be a valid Cloud Storage URL, beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700101 &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700102 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the
103 # template if not specified.
104 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of
105 # the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
106 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
107 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. Name for the Cloud KMS key for the job.
108 # Key format is:
109 # projects/&lt;project&gt;/locations/&lt;location&gt;/keyRings/&lt;keyring&gt;/cryptoKeys/&lt;key&gt;
110 &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files.
111 # Must be a valid Cloud Storage URL, beginning with `gs://`.
112 &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory.
113 # Use with caution.
114 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified,
115 # the service will use the network &quot;default&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 # which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 # with worker_zone. If neither worker_region nor worker_zone is specified,
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 # default to the control plane&#x27;s region.
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;zone&quot;: &quot;A String&quot;, # The Compute Engine [availability
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400122 # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400123 # for launching worker instances to run your pipeline.
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 # In the future, worker_zone will take precedence.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700125 &quot;numWorkers&quot;: 42, # The initial number of Google Compute Engine instnaces for the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone
127 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
128 # which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive
129 # with worker_region. If neither worker_region nor worker_zone is specified,
130 # a zone in the control plane&#x27;s region is chosen based on available capacity.
131 # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
132 &quot;additionalUserLabels&quot;: { # Additional user labels to be specified for the job.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133 # Keys and values should follow the restrictions specified in the [labeling
134 # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
135 # page.
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
139 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;maxWorkers&quot;: 42, # The maximum number of Google Compute Engine instances to be made
142 # available to your pipeline during execution, from 1 to 1000.
143 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800144 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700146 # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
147 # which to direct the request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;parameters&quot;: { # The runtime parameters to pass to the job.
149 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700150 },
151 }
152
153 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400154 Allowed values
155 1 - v1 error format
156 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700157
158Returns:
159 An object of the form:
160
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400161 { # Defines a job to be run by the Cloud Dataflow service.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts.
163 # If this field is set, the service will ensure its uniqueness.
164 # The request to create a job will fail if the service has knowledge of a
165 # previously submitted job with the same client&#x27;s ID and job name.
166 # The caller may use this field to ensure idempotence of job
167 # creation across retried attempts to create a job.
168 # By default, the field is empty and, in that case, the service ignores it.
169 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700170 #
171 # This field is set by the Cloud Dataflow service when the Job is
172 # created, and is immutable for the life of the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
174 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 # corresponding name prefixes of the new job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700177 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &quot;internalExperiments&quot;: { # Experimental settings.
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181 },
182 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region
183 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
184 # which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive
185 # with worker_zone. If neither worker_region nor worker_zone is specified,
186 # default to the control plane&#x27;s region.
187 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data
188 # at rest, AKA a Customer Managed Encryption Key (CMEK).
189 #
190 # Format:
191 # projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
192 &quot;userAgent&quot;: { # A description of the process that generated the request.
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
194 },
195 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone
196 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
197 # which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive
198 # with worker_region. If neither worker_region nor worker_zone is specified,
199 # a zone in the control plane&#x27;s region is chosen based on available capacity.
200 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or
Dan O'Mearadd494642020-05-01 07:42:23 -0700201 # unspecified, the service will attempt to choose a reasonable
202 # default. This should be in the form of the API service name,
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 # e.g. &quot;compute.googleapis.com&quot;.
204 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary
205 # storage. The system will append the suffix &quot;/temp-{JOBNAME} to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700206 # this resource prefix, where {JOBNAME} is the value of the
207 # job_name field. The resulting bucket and object prefix is used
208 # as the prefix of the resources used to store temporary data
209 # needed during the job execution. NOTE: This will override the
210 # value in taskrunner_settings.
211 # The supported resource type is:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400212 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 # Google Cloud Storage:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400214 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 # storage.googleapis.com/{bucket}/{object}
216 # bucket.storage.googleapis.com/{object}
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;experiments&quot;: [ # The list of experiments to enable.
218 &quot;A String&quot;,
219 ],
220 &quot;version&quot;: { # A structure describing which components and their versions of the service
221 # are required in order to run the job.
222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
223 },
224 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700225 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These
226 # options are passed through the service and are used to recreate the
227 # SDK pipeline options on the worker in a language agnostic and platform
228 # independent way.
229 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
230 },
231 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
232 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be
233 # specified in order for the job to have workers.
234 { # Describes one particular pool of Cloud Dataflow workers to be
235 # instantiated by the Cloud Dataflow service in order to perform the
236 # computations required by a job. Note that a workflow job may use
237 # multiple pools, in order to match the various computational
238 # requirements of the various stages of the job.
239 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the
240 # service will choose a number of threads (according to the number of cores
241 # on the selected machine type for batch, or 1 by convention for streaming).
242 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to
243 # execute the job. If zero or unspecified, the service will
244 # attempt to choose a reasonable default.
245 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service
246 # will attempt to choose a reasonable default.
247 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
248 &quot;packages&quot;: [ # Packages to be installed on workers.
249 { # The packages that must be installed in order for a worker to run the
250 # steps of the Cloud Dataflow job that will be assigned to its worker
251 # pool.
252 #
253 # This is the mechanism by which the Cloud Dataflow SDK causes code to
254 # be loaded onto the workers. For example, the Cloud Dataflow Java SDK
255 # might use this to install jars containing the user&#x27;s code and all of the
256 # various dependencies (libraries, data files, etc.) required in order
257 # for that code to run.
258 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
259 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is:
260 #
261 # Google Cloud Storage:
262 #
263 # storage.googleapis.com/{bucket}
264 # bucket.storage.googleapis.com/
265 },
266 ],
267 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool.
268 # Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and
269 # `TEARDOWN_NEVER`.
270 # `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether
271 # the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down
272 # if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn
273 # down.
274 #
275 # If the workers are not torn down by the service, they will
276 # continue to run and use Google Compute Engine VM resources in the
277 # user&#x27;s project until they are explicitly terminated by the user.
278 # Because of this, Google recommends using the `TEARDOWN_ALWAYS`
279 # policy except for small, manually supervised test jobs.
280 #
281 # If unknown or unspecified, the service will attempt to choose a reasonable
282 # default.
283 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google
284 # Compute Engine API.
285 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
286 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
287 },
288 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will
289 # attempt to choose a reasonable default.
290 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker
291 # harness, residing in Google Container Registry.
292 #
293 # Deprecated for the Fn API path. Use sdk_harness_container_images instead.
294 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will
295 # attempt to choose a reasonable default.
296 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the
297 # service will attempt to choose a reasonable default.
298 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle`
299 # are supported.
300 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will
301 # only be set in the Fn API path. For non-cross-language pipelines this
302 # should have only one entry. Cross-language pipelines will have two or more
303 # entries.
304 { # Defines a SDK harness container for executing Dataflow pipelines.
305 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
306 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK
307 # container instance with this image. If false (or unset) recommends using
308 # more than one core per SDK container instance with this image for
309 # efficiency. Note that Dataflow service may choose to override this property
310 # if needed.
311 },
312 ],
313 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
314 { # Describes the data disk used by a workflow job.
315 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This
316 # must be a disk type appropriate to the project and zone in which
317 # the workers will run. If unknown or unspecified, the service
318 # will attempt to choose a reasonable default.
319 #
320 # For example, the standard persistent disk type is a resource name
321 # typically ending in &quot;pd-standard&quot;. If SSD persistent disks are
322 # available, the resource name typically ends with &quot;pd-ssd&quot;. The
323 # actual valid values are defined the Google Compute Engine API,
324 # not by the Cloud Dataflow API; consult the Google Compute Engine
325 # documentation for more information about determining the set of
326 # available disk types for a particular project and zone.
327 #
328 # Google Compute Engine Disk types are local to a particular
329 # project in a particular zone, and so the resource name will
330 # typically look something like this:
331 #
332 # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
333 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will
334 # attempt to choose a reasonable default.
335 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
336 },
337 ],
338 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of
339 # the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
340 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
341 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when
342 # using the standard Dataflow task runner. Users should ignore
343 # this field.
344 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
345 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by
346 # taskrunner; e.g. &quot;wheel&quot;.
347 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
348 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
349 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to
350 # access the Cloud Dataflow API.
351 &quot;A String&quot;,
352 ],
353 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
354 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs
355 # will not be uploaded.
356 #
357 # The supported resource type is:
358 #
359 # Google Cloud Storage:
360 # storage.googleapis.com/{bucket}/{object}
361 # bucket.storage.googleapis.com/{object}
362 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
363 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
364 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
365 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
366 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
367 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for
368 # temporary storage.
369 #
370 # The supported resource type is:
371 #
372 # Google Cloud Storage:
373 # storage.googleapis.com/{bucket}/{object}
374 # bucket.storage.googleapis.com/{object}
375 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs.
376 #
377 # When workers access Google Cloud APIs, they logically do so via
378 # relative URLs. If this field is specified, it supplies the base
379 # URL to use for resolving these relative URLs. The normative
380 # algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource
381 # Locators&quot;.
382 #
383 # If not specified, the default value is &quot;http://www.googleapis.com/&quot;
384 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial
385 # console.
386 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
387 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
388 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary
389 # storage.
390 #
391 # The supported resource type is:
392 #
393 # Google Cloud Storage:
394 #
395 # storage.googleapis.com/{bucket}/{object}
396 # bucket.storage.googleapis.com/{object}
397 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
398 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs.
399 #
400 # When workers access Google Cloud APIs, they logically do so via
401 # relative URLs. If this field is specified, it supplies the base
402 # URL to use for resolving these relative URLs. The normative
403 # algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource
404 # Locators&quot;.
405 #
406 # If not specified, the default value is &quot;http://www.googleapis.com/&quot;
407 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example,
408 # &quot;dataflow/v1b3/projects&quot;.
409 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example,
410 # &quot;shuffle/v1beta1&quot;.
411 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
412 },
413 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by
414 # taskrunner; e.g. &quot;root&quot;.
415 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
416 },
417 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
418 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
419 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
420 },
421 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
422 &quot;a_key&quot;: &quot;A String&quot;,
423 },
424 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to
425 # select a default set of packages which are useful to worker
426 # harnesses written in a particular language.
427 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified,
428 # the service will use the network &quot;default&quot;.
429 },
430 ],
431 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow
432 # related tables are stored.
433 #
434 # The supported resource type is:
435 #
436 # Google BigQuery:
437 # bigquery.googleapis.com/{dataset}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700438 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service;
440 # callers cannot mutate it.
441 { # A message describing the state of a particular execution stage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
443 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700444 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 },
446 ],
447 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the # This field is populated by the Dataflow service to support filtering jobs
448 # by the metadata values provided here. Populated for ListJobs and all GetJob
449 # views SUMMARY and higher.
450 # ListJob response and Job SUMMARY view.
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
452 { # Metadata for a Datastore connector used by the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700454 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 },
456 ],
457 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700458 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700459 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
460 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 },
462 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
463 { # Metadata for a BigQuery connector used by the job.
464 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
465 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
Bu Sun Kim65020912020-05-20 12:08:20 -0700466 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700467 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Bu Sun Kim65020912020-05-20 12:08:20 -0700468 },
469 ],
470 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
471 { # Metadata for a File connector used by the job.
472 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
473 },
474 ],
475 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
476 { # Metadata for a PubSub connector used by the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700478 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
479 },
480 ],
481 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
482 { # Metadata for a BigTable connector used by the job.
483 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
484 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
485 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
486 },
487 ],
488 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
489 { # Metadata for a Spanner connector used by the job.
490 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
491 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
492 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim65020912020-05-20 12:08:20 -0700493 },
494 ],
495 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700496 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
497 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given
499 # snapshot.
Bu Sun Kim65020912020-05-20 12:08:20 -0700500 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed # Preliminary field: The format of this data may change at any time.
501 # A description of the user pipeline and stages through which it is executed.
502 # Created by Cloud Dataflow service. Only retrieved with
503 # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
504 # form. This data is provided by the Dataflow service for ease of visualizing
505 # the pipeline and interpreting Dataflow provided metrics.
506 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
507 { # Description of the composing transforms, names/ids, and input/outputs of a
508 # stage of execution. Some composing transforms and sources may have been
509 # generated by the Dataflow service during execution planning.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700510 &quot;outputSource&quot;: [ # Output sources for this stage.
511 { # Description of an input or output of an execution stage.
512 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
513 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
514 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
515 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
516 # source is most closely associated.
517 },
518 ],
519 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
520 &quot;inputSource&quot;: [ # Input sources for this stage.
521 { # Description of an input or output of an execution stage.
522 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
523 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
524 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
525 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
526 # source is most closely associated.
527 },
528 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
530 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
531 { # Description of a transform executed as part of an execution stage.
532 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is
533 # most closely associated.
534 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
535 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
536 },
537 ],
538 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
539 { # Description of an interstitial value between transforms in an execution
540 # stage.
541 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
542 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
543 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
544 # source is most closely associated.
545 },
546 ],
547 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
Bu Sun Kim65020912020-05-20 12:08:20 -0700548 },
549 ],
550 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
551 { # Description of the type, names/ids, and input/outputs for a transform.
552 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
553 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
554 &quot;A String&quot;,
555 ],
556 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
557 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
558 &quot;displayData&quot;: [ # Transform-specific display data.
559 { # Data provided with a pipeline or transform to provide descriptive info.
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700561 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700562 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming
563 # language namespace (i.e. python module) which defines the display data.
564 # This allows a dax monitoring system to specially handle the data
565 # and perform custom rendering.
566 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
567 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data.
568 # This is intended to be used as a label for the display data
569 # when viewed in a dax monitoring system.
570 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display.
571 # For example a java_class_name_value of com.mypackage.MyDoFn
572 # will be stored with MyDoFn as the short_str_value and
573 # com.mypackage.MyDoFn as the java_class_name value.
574 # short_str_value can be displayed and java_class_name_value
575 # will be displayed as a tooltip.
576 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
577 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700578 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
579 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
580 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
581 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 },
583 ],
584 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
585 &quot;A String&quot;,
586 ],
587 },
588 ],
589 &quot;displayData&quot;: [ # Pipeline level display data.
590 { # Data provided with a pipeline or transform to provide descriptive info.
Bu Sun Kim65020912020-05-20 12:08:20 -0700591 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700592 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming
594 # language namespace (i.e. python module) which defines the display data.
595 # This allows a dax monitoring system to specially handle the data
596 # and perform custom rendering.
597 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
598 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data.
599 # This is intended to be used as a label for the display data
600 # when viewed in a dax monitoring system.
601 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display.
602 # For example a java_class_name_value of com.mypackage.MyDoFn
603 # will be stored with MyDoFn as the short_str_value and
604 # com.mypackage.MyDoFn as the java_class_name value.
605 # short_str_value can be displayed and java_class_name_value
606 # will be displayed as a tooltip.
607 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
608 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700609 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
610 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
611 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
612 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 },
614 ],
615 },
616 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID
617 # of the job it replaced.
618 #
619 # When sending a `CreateJobRequest`, you can update a job by specifying it
620 # here. The job named here is stopped, and its intermediate state is
621 # transferred to this job.
622 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623 # for temporary storage. These temporary files will be
624 # removed on job completion.
625 # No duplicates are allowed.
626 # No file patterns are supported.
627 #
628 # The supported files are:
629 #
630 # Google Cloud Storage:
631 #
632 # storage.googleapis.com/{bucket}/{object}
633 # bucket.storage.googleapis.com/{object}
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700635 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700636 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637 #
638 # Only one Job with a given name may exist in a project at any
639 # given time. If a caller attempts to create a Job with the same
640 # name as an already-existing Job, the attempt returns the
641 # existing Job.
642 #
643 # The name must match the regular expression
644 # `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 #
647 # The top-level steps that constitute the entire job.
648 { # Defines a particular step within a Cloud Dataflow job.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400649 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700650 # A job consists of multiple steps, each of which performs some
651 # specific operation as part of the overall job. Data is typically
652 # passed from one step to another as part of the job.
653 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700654 # Here&#x27;s an example of a sequence of steps which together implement a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 # Map-Reduce job:
656 #
657 # * Read a collection of data from some source, parsing the
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 # collection&#x27;s elements.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700659 #
660 # * Validate the elements.
661 #
662 # * Apply a user-defined function to map each element to some value
663 # and extract an element-specific key value.
664 #
665 # * Group elements with the same key into a single element with
666 # that key, transforming a multiply-keyed collection into a
667 # uniquely-keyed collection.
668 #
669 # * Write the elements out to some data sink.
670 #
671 # Note that the Cloud Dataflow service may be used to run many different
672 # types of jobs, not just Map-Reduce.
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each
Dan O'Mearadd494642020-05-01 07:42:23 -0700674 # step with respect to all other steps in the Cloud Dataflow job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
676 &quot;properties&quot;: { # Named properties associated with the step. Each kind of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700677 # predefined step has its own required set of properties.
678 # Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700680 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700681 },
682 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700683 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in
684 # `JOB_STATE_UPDATED`), this field contains the ID of that job.
685 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that # Deprecated.
686 # isn&#x27;t contained in the submitted job.
687 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
688 &quot;a_key&quot;: { # Contains information about how a particular
689 # google.dataflow.v1beta3.Step will be executed.
690 &quot;stepName&quot;: [ # The steps associated with the execution stage.
691 # Note that stages may have several steps, and that a given step
692 # might be run by more than one stage.
693 &quot;A String&quot;,
694 ],
695 },
696 },
697 },
698 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700699 #
700 # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise
701 # specified.
702 #
703 # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a
704 # terminal state. After a job has reached a terminal state, no
705 # further state updates may be made.
706 #
707 # This field may be mutated by the Cloud Dataflow service;
708 # callers cannot mutate it.
Bu Sun Kim65020912020-05-20 12:08:20 -0700709 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint]
710 # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
711 # contains this job.
712 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
713 # Flexible resource scheduling jobs are started with some delay after job
714 # creation, so start_time is unset before start and is updated when the
715 # job is started by the Cloud Dataflow service. For other jobs, start_time
716 # always equals to create_time and is immutable and set by the Cloud Dataflow
717 # service.
718 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
719 &quot;labels&quot;: { # User-defined labels for this job.
720 #
721 # The labels map can contain no more than 64 entries. Entries of the labels
722 # map are UTF8 strings that comply with the following restrictions:
723 #
724 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
725 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
726 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
727 # size.
728 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700729 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the
731 # Cloud Dataflow service.
732 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state.
733 #
734 # `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
735 # `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may
736 # also be used to directly set a job&#x27;s requested state to
737 # `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
738 # job if it has not already reached a terminal state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700739 }</pre>
740</div>
741
742<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 <code class="details" id="get">get(projectId, view=None, gcsPath=None, location=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700744 <pre>Get the template associated with a template.
745
746Args:
747 projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 view: string, The view to retrieve. Defaults to METADATA_ONLY.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700749 gcsPath: string, Required. A Cloud Storage path to the template from which to
750create the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700751Must be valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700752 location: string, The [regional endpoint]
753(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
754which to direct the request.
755 x__xgafv: string, V1 error format.
756 Allowed values
757 1 - v1 error format
758 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700759
760Returns:
761 An object of the form:
762
763 { # The response to a GetTemplate request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 &quot;metadata&quot;: { # Metadata describing a template. # The template metadata describing the template name, available
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700765 # parameters, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 &quot;parameters&quot;: [ # The parameters for the template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700767 { # Metadata for a specific parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 &quot;label&quot;: &quot;A String&quot;, # Required. The label to display for the parameter.
769 &quot;paramType&quot;: &quot;A String&quot;, # Optional. The type of the parameter.
Dan O'Mearadd494642020-05-01 07:42:23 -0700770 # Used for selecting input picker.
Bu Sun Kim65020912020-05-20 12:08:20 -0700771 &quot;helpText&quot;: &quot;A String&quot;, # Required. The help text to display for the parameter.
772 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the parameter.
773 &quot;regexes&quot;: [ # Optional. Regexes that the parameter must match.
774 &quot;A String&quot;,
775 ],
776 &quot;isOptional&quot;: True or False, # Optional. Whether the parameter is optional. Defaults to false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700777 },
778 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700779 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the template.
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of the template.
781 },
782 &quot;runtimeMetadata&quot;: { # RuntimeMetadata describing a runtime environment. # Describes the runtime metadata with SDKInfo and available parameters.
783 &quot;sdkInfo&quot;: { # SDK Information. # SDK Info for the template.
784 &quot;language&quot;: &quot;A String&quot;, # Required. The SDK Language.
785 &quot;version&quot;: &quot;A String&quot;, # Optional. The SDK version.
786 },
787 &quot;parameters&quot;: [ # The parameters for the template.
788 { # Metadata for a specific parameter.
789 &quot;label&quot;: &quot;A String&quot;, # Required. The label to display for the parameter.
790 &quot;paramType&quot;: &quot;A String&quot;, # Optional. The type of the parameter.
791 # Used for selecting input picker.
792 &quot;helpText&quot;: &quot;A String&quot;, # Required. The help text to display for the parameter.
793 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the parameter.
794 &quot;regexes&quot;: [ # Optional. Regexes that the parameter must match.
795 &quot;A String&quot;,
796 ],
797 &quot;isOptional&quot;: True or False, # Optional. Whether the parameter is optional. Defaults to false.
798 },
799 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700800 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700801 &quot;templateType&quot;: &quot;A String&quot;, # Template Type.
802 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # The status of the get template request. Any problems with the
803 # request will be indicated in the error_details.
804 # different programming environments, including REST APIs and RPC APIs. It is
805 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
806 # three pieces of data: error code, error message, and error details.
807 #
808 # You can find out more about this error model and how to work with it in the
809 # [API Design Guide](https://cloud.google.com/apis/design/errors).
810 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
811 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
812 # user-facing error message should be localized and sent in the
813 # google.rpc.Status.details field, or localized by the client.
814 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
815 # message types for APIs to use.
816 {
817 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
818 },
819 ],
820 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700821 }</pre>
822</div>
823
824<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 <code class="details" id="launch">launch(projectId, body=None, validateOnly=None, gcsPath=None, location=None, dynamicTemplate_gcsPath=None, dynamicTemplate_stagingLocation=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700826 <pre>Launch a template.
827
828Args:
829 projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700830 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700831 The object takes the form of:
832
833{ # Parameters to provide to the template being launched.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700834 &quot;parameters&quot;: { # The runtime parameters to pass to the job.
835 &quot;a_key&quot;: &quot;A String&quot;,
836 },
837 &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700838 &quot;transformNameMapping&quot;: { # Only applicable when updating a pipeline. Map of transform name prefixes of
839 # the job to be replaced to the corresponding name prefixes of the new job.
840 &quot;a_key&quot;: &quot;A String&quot;,
841 },
842 &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700843 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the
844 # template if not specified.
845 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of
846 # the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
847 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
848 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. Name for the Cloud KMS key for the job.
849 # Key format is:
850 # projects/&lt;project&gt;/locations/&lt;location&gt;/keyRings/&lt;keyring&gt;/cryptoKeys/&lt;key&gt;
851 &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files.
852 # Must be a valid Cloud Storage URL, beginning with `gs://`.
853 &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory.
854 # Use with caution.
855 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified,
856 # the service will use the network &quot;default&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region
Dan O'Mearadd494642020-05-01 07:42:23 -0700858 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
Bu Sun Kim65020912020-05-20 12:08:20 -0700859 # which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive
Dan O'Mearadd494642020-05-01 07:42:23 -0700860 # with worker_zone. If neither worker_region nor worker_zone is specified,
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 # default to the control plane&#x27;s region.
Bu Sun Kim65020912020-05-20 12:08:20 -0700862 &quot;zone&quot;: &quot;A String&quot;, # The Compute Engine [availability
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700863 # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones)
864 # for launching worker instances to run your pipeline.
Dan O'Mearadd494642020-05-01 07:42:23 -0700865 # In the future, worker_zone will take precedence.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700866 &quot;numWorkers&quot;: 42, # The initial number of Google Compute Engine instnaces for the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700867 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone
868 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
869 # which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive
870 # with worker_region. If neither worker_region nor worker_zone is specified,
871 # a zone in the control plane&#x27;s region is chosen based on available capacity.
872 # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
873 &quot;additionalUserLabels&quot;: { # Additional user labels to be specified for the job.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700874 # Keys and values should follow the restrictions specified in the [labeling
875 # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
876 # page.
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700878 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700879 &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
880 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700882 &quot;maxWorkers&quot;: 42, # The maximum number of Google Compute Engine instances to be made
883 # available to your pipeline during execution, from 1 to 1000.
884 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700885 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700886 &quot;update&quot;: True or False, # If set, replace the existing pipeline with the name specified by jobName
Dan O'Mearadd494642020-05-01 07:42:23 -0700887 # with this pipeline, preserving state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700888 }
889
Bu Sun Kim65020912020-05-20 12:08:20 -0700890 validateOnly: boolean, If true, the request is validated but not actually executed.
891Defaults to false.
892 gcsPath: string, A Cloud Storage path to the template from which to create
893the job.
894Must be valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
895 location: string, The [regional endpoint]
896(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
897which to direct the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700898 dynamicTemplate_gcsPath: string, Path to dynamic template spec file on GCS.
899The file must be a Json serialized DynamicTemplateFieSpec object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700900 dynamicTemplate_stagingLocation: string, Cloud Storage path for staging dependencies.
901Must be a valid Cloud Storage URL, beginning with `gs://`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700902 x__xgafv: string, V1 error format.
903 Allowed values
904 1 - v1 error format
905 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700906
907Returns:
908 An object of the form:
909
910 { # Response to the request to launch a template.
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 &quot;job&quot;: { # Defines a job to be run by the Cloud Dataflow service. # The job that was launched, if the request was not a dry run and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 # the job was successfully launched.
Bu Sun Kim65020912020-05-20 12:08:20 -0700913 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts.
914 # If this field is set, the service will ensure its uniqueness.
915 # The request to create a job will fail if the service has knowledge of a
916 # previously submitted job with the same client&#x27;s ID and job name.
917 # The caller may use this field to ensure idempotence of job
918 # creation across retried attempts to create a job.
919 # By default, the field is empty and, in that case, the service ignores it.
920 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400921 #
922 # This field is set by the Cloud Dataflow service when the Job is
923 # created, and is immutable for the life of the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700924 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
925 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700926 # corresponding name prefixes of the new job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700928 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700929 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 &quot;internalExperiments&quot;: { # Experimental settings.
931 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
932 },
933 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region
934 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
935 # which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive
936 # with worker_zone. If neither worker_region nor worker_zone is specified,
937 # default to the control plane&#x27;s region.
938 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data
939 # at rest, AKA a Customer Managed Encryption Key (CMEK).
940 #
941 # Format:
942 # projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
943 &quot;userAgent&quot;: { # A description of the process that generated the request.
944 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
945 },
946 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone
947 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
948 # which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive
949 # with worker_region. If neither worker_region nor worker_zone is specified,
950 # a zone in the control plane&#x27;s region is chosen based on available capacity.
951 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or
Dan O'Mearadd494642020-05-01 07:42:23 -0700952 # unspecified, the service will attempt to choose a reasonable
953 # default. This should be in the form of the API service name,
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 # e.g. &quot;compute.googleapis.com&quot;.
955 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary
956 # storage. The system will append the suffix &quot;/temp-{JOBNAME} to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700957 # this resource prefix, where {JOBNAME} is the value of the
958 # job_name field. The resulting bucket and object prefix is used
959 # as the prefix of the resources used to store temporary data
960 # needed during the job execution. NOTE: This will override the
961 # value in taskrunner_settings.
962 # The supported resource type is:
963 #
964 # Google Cloud Storage:
965 #
966 # storage.googleapis.com/{bucket}/{object}
967 # bucket.storage.googleapis.com/{object}
Bu Sun Kim65020912020-05-20 12:08:20 -0700968 &quot;experiments&quot;: [ # The list of experiments to enable.
969 &quot;A String&quot;,
970 ],
971 &quot;version&quot;: { # A structure describing which components and their versions of the service
972 # are required in order to run the job.
973 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
974 },
975 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700976 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These
977 # options are passed through the service and are used to recreate the
978 # SDK pipeline options on the worker in a language agnostic and platform
979 # independent way.
980 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
981 },
982 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
983 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be
984 # specified in order for the job to have workers.
985 { # Describes one particular pool of Cloud Dataflow workers to be
986 # instantiated by the Cloud Dataflow service in order to perform the
987 # computations required by a job. Note that a workflow job may use
988 # multiple pools, in order to match the various computational
989 # requirements of the various stages of the job.
990 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the
991 # service will choose a number of threads (according to the number of cores
992 # on the selected machine type for batch, or 1 by convention for streaming).
993 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to
994 # execute the job. If zero or unspecified, the service will
995 # attempt to choose a reasonable default.
996 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service
997 # will attempt to choose a reasonable default.
998 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
999 &quot;packages&quot;: [ # Packages to be installed on workers.
1000 { # The packages that must be installed in order for a worker to run the
1001 # steps of the Cloud Dataflow job that will be assigned to its worker
1002 # pool.
1003 #
1004 # This is the mechanism by which the Cloud Dataflow SDK causes code to
1005 # be loaded onto the workers. For example, the Cloud Dataflow Java SDK
1006 # might use this to install jars containing the user&#x27;s code and all of the
1007 # various dependencies (libraries, data files, etc.) required in order
1008 # for that code to run.
1009 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1010 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is:
1011 #
1012 # Google Cloud Storage:
1013 #
1014 # storage.googleapis.com/{bucket}
1015 # bucket.storage.googleapis.com/
1016 },
1017 ],
1018 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool.
1019 # Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and
1020 # `TEARDOWN_NEVER`.
1021 # `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether
1022 # the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down
1023 # if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn
1024 # down.
1025 #
1026 # If the workers are not torn down by the service, they will
1027 # continue to run and use Google Compute Engine VM resources in the
1028 # user&#x27;s project until they are explicitly terminated by the user.
1029 # Because of this, Google recommends using the `TEARDOWN_ALWAYS`
1030 # policy except for small, manually supervised test jobs.
1031 #
1032 # If unknown or unspecified, the service will attempt to choose a reasonable
1033 # default.
1034 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google
1035 # Compute Engine API.
1036 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1037 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1038 },
1039 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will
1040 # attempt to choose a reasonable default.
1041 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker
1042 # harness, residing in Google Container Registry.
1043 #
1044 # Deprecated for the Fn API path. Use sdk_harness_container_images instead.
1045 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will
1046 # attempt to choose a reasonable default.
1047 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the
1048 # service will attempt to choose a reasonable default.
1049 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle`
1050 # are supported.
1051 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will
1052 # only be set in the Fn API path. For non-cross-language pipelines this
1053 # should have only one entry. Cross-language pipelines will have two or more
1054 # entries.
1055 { # Defines a SDK harness container for executing Dataflow pipelines.
1056 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
1057 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK
1058 # container instance with this image. If false (or unset) recommends using
1059 # more than one core per SDK container instance with this image for
1060 # efficiency. Note that Dataflow service may choose to override this property
1061 # if needed.
1062 },
1063 ],
1064 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
1065 { # Describes the data disk used by a workflow job.
1066 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This
1067 # must be a disk type appropriate to the project and zone in which
1068 # the workers will run. If unknown or unspecified, the service
1069 # will attempt to choose a reasonable default.
1070 #
1071 # For example, the standard persistent disk type is a resource name
1072 # typically ending in &quot;pd-standard&quot;. If SSD persistent disks are
1073 # available, the resource name typically ends with &quot;pd-ssd&quot;. The
1074 # actual valid values are defined the Google Compute Engine API,
1075 # not by the Cloud Dataflow API; consult the Google Compute Engine
1076 # documentation for more information about determining the set of
1077 # available disk types for a particular project and zone.
1078 #
1079 # Google Compute Engine Disk types are local to a particular
1080 # project in a particular zone, and so the resource name will
1081 # typically look something like this:
1082 #
1083 # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
1084 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will
1085 # attempt to choose a reasonable default.
1086 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
1087 },
1088 ],
1089 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of
1090 # the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
1091 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
1092 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when
1093 # using the standard Dataflow task runner. Users should ignore
1094 # this field.
1095 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1096 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by
1097 # taskrunner; e.g. &quot;wheel&quot;.
1098 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1099 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1100 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to
1101 # access the Cloud Dataflow API.
1102 &quot;A String&quot;,
1103 ],
1104 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1105 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs
1106 # will not be uploaded.
1107 #
1108 # The supported resource type is:
1109 #
1110 # Google Cloud Storage:
1111 # storage.googleapis.com/{bucket}/{object}
1112 # bucket.storage.googleapis.com/{object}
1113 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1114 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1115 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1116 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1117 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1118 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for
1119 # temporary storage.
1120 #
1121 # The supported resource type is:
1122 #
1123 # Google Cloud Storage:
1124 # storage.googleapis.com/{bucket}/{object}
1125 # bucket.storage.googleapis.com/{object}
1126 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs.
1127 #
1128 # When workers access Google Cloud APIs, they logically do so via
1129 # relative URLs. If this field is specified, it supplies the base
1130 # URL to use for resolving these relative URLs. The normative
1131 # algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource
1132 # Locators&quot;.
1133 #
1134 # If not specified, the default value is &quot;http://www.googleapis.com/&quot;
1135 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial
1136 # console.
1137 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1138 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1139 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary
1140 # storage.
1141 #
1142 # The supported resource type is:
1143 #
1144 # Google Cloud Storage:
1145 #
1146 # storage.googleapis.com/{bucket}/{object}
1147 # bucket.storage.googleapis.com/{object}
1148 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1149 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs.
1150 #
1151 # When workers access Google Cloud APIs, they logically do so via
1152 # relative URLs. If this field is specified, it supplies the base
1153 # URL to use for resolving these relative URLs. The normative
1154 # algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource
1155 # Locators&quot;.
1156 #
1157 # If not specified, the default value is &quot;http://www.googleapis.com/&quot;
1158 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example,
1159 # &quot;dataflow/v1b3/projects&quot;.
1160 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example,
1161 # &quot;shuffle/v1beta1&quot;.
1162 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1163 },
1164 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by
1165 # taskrunner; e.g. &quot;root&quot;.
1166 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1167 },
1168 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1169 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1170 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1171 },
1172 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1173 &quot;a_key&quot;: &quot;A String&quot;,
1174 },
1175 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to
1176 # select a default set of packages which are useful to worker
1177 # harnesses written in a particular language.
1178 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified,
1179 # the service will use the network &quot;default&quot;.
1180 },
1181 ],
1182 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow
1183 # related tables are stored.
1184 #
1185 # The supported resource type is:
1186 #
1187 # Google BigQuery:
1188 # bigquery.googleapis.com/{dataset}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001189 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001190 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service;
1191 # callers cannot mutate it.
1192 { # A message describing the state of a particular execution stage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001193 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
1194 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001195 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001196 },
1197 ],
1198 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the # This field is populated by the Dataflow service to support filtering jobs
1199 # by the metadata values provided here. Populated for ListJobs and all GetJob
1200 # views SUMMARY and higher.
1201 # ListJob response and Job SUMMARY view.
Bu Sun Kim65020912020-05-20 12:08:20 -07001202 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1203 { # Metadata for a Datastore connector used by the job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001204 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001205 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim65020912020-05-20 12:08:20 -07001206 },
1207 ],
1208 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001209 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001210 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1211 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 },
1213 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1214 { # Metadata for a BigQuery connector used by the job.
1215 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
1216 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
Bu Sun Kim65020912020-05-20 12:08:20 -07001217 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001218 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 },
1220 ],
1221 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1222 { # Metadata for a File connector used by the job.
1223 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1224 },
1225 ],
1226 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1227 { # Metadata for a PubSub connector used by the job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001228 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001229 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1230 },
1231 ],
1232 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1233 { # Metadata for a BigTable connector used by the job.
1234 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1235 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1236 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
1237 },
1238 ],
1239 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1240 { # Metadata for a Spanner connector used by the job.
1241 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1242 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1243 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim65020912020-05-20 12:08:20 -07001244 },
1245 ],
1246 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001247 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1248 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
Bu Sun Kim65020912020-05-20 12:08:20 -07001249 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given
1250 # snapshot.
Bu Sun Kim65020912020-05-20 12:08:20 -07001251 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed # Preliminary field: The format of this data may change at any time.
1252 # A description of the user pipeline and stages through which it is executed.
1253 # Created by Cloud Dataflow service. Only retrieved with
1254 # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
1255 # form. This data is provided by the Dataflow service for ease of visualizing
1256 # the pipeline and interpreting Dataflow provided metrics.
1257 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
1258 { # Description of the composing transforms, names/ids, and input/outputs of a
1259 # stage of execution. Some composing transforms and sources may have been
1260 # generated by the Dataflow service during execution planning.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001261 &quot;outputSource&quot;: [ # Output sources for this stage.
1262 { # Description of an input or output of an execution stage.
1263 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1264 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1265 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1266 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
1267 # source is most closely associated.
1268 },
1269 ],
1270 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
1271 &quot;inputSource&quot;: [ # Input sources for this stage.
1272 { # Description of an input or output of an execution stage.
1273 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1274 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1275 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1276 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
1277 # source is most closely associated.
1278 },
1279 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
1281 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1282 { # Description of a transform executed as part of an execution stage.
1283 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is
1284 # most closely associated.
1285 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1286 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1287 },
1288 ],
1289 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
1290 { # Description of an interstitial value between transforms in an execution
1291 # stage.
1292 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1293 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1294 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
1295 # source is most closely associated.
1296 },
1297 ],
1298 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 },
1300 ],
1301 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1302 { # Description of the type, names/ids, and input/outputs for a transform.
1303 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1304 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1305 &quot;A String&quot;,
1306 ],
1307 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1308 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1309 &quot;displayData&quot;: [ # Transform-specific display data.
1310 { # Data provided with a pipeline or transform to provide descriptive info.
Bu Sun Kim65020912020-05-20 12:08:20 -07001311 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001312 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001313 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming
1314 # language namespace (i.e. python module) which defines the display data.
1315 # This allows a dax monitoring system to specially handle the data
1316 # and perform custom rendering.
1317 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1318 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data.
1319 # This is intended to be used as a label for the display data
1320 # when viewed in a dax monitoring system.
1321 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display.
1322 # For example a java_class_name_value of com.mypackage.MyDoFn
1323 # will be stored with MyDoFn as the short_str_value and
1324 # com.mypackage.MyDoFn as the java_class_name value.
1325 # short_str_value can be displayed and java_class_name_value
1326 # will be displayed as a tooltip.
1327 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1328 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001329 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1330 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1331 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1332 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001333 },
1334 ],
1335 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1336 &quot;A String&quot;,
1337 ],
1338 },
1339 ],
1340 &quot;displayData&quot;: [ # Pipeline level display data.
1341 { # Data provided with a pipeline or transform to provide descriptive info.
Bu Sun Kim65020912020-05-20 12:08:20 -07001342 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001343 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001344 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming
1345 # language namespace (i.e. python module) which defines the display data.
1346 # This allows a dax monitoring system to specially handle the data
1347 # and perform custom rendering.
1348 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1349 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data.
1350 # This is intended to be used as a label for the display data
1351 # when viewed in a dax monitoring system.
1352 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display.
1353 # For example a java_class_name_value of com.mypackage.MyDoFn
1354 # will be stored with MyDoFn as the short_str_value and
1355 # com.mypackage.MyDoFn as the java_class_name value.
1356 # short_str_value can be displayed and java_class_name_value
1357 # will be displayed as a tooltip.
1358 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1359 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001360 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1361 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1362 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1363 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001364 },
1365 ],
1366 },
1367 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID
1368 # of the job it replaced.
1369 #
1370 # When sending a `CreateJobRequest`, you can update a job by specifying it
1371 # here. The job named here is stopped, and its intermediate state is
1372 # transferred to this job.
1373 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001374 # for temporary storage. These temporary files will be
1375 # removed on job completion.
1376 # No duplicates are allowed.
1377 # No file patterns are supported.
1378 #
1379 # The supported files are:
1380 #
1381 # Google Cloud Storage:
1382 #
1383 # storage.googleapis.com/{bucket}/{object}
1384 # bucket.storage.googleapis.com/{object}
Bu Sun Kim65020912020-05-20 12:08:20 -07001385 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001386 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001387 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001388 #
1389 # Only one Job with a given name may exist in a project at any
1390 # given time. If a caller attempts to create a Job with the same
1391 # name as an already-existing Job, the attempt returns the
1392 # existing Job.
1393 #
1394 # The name must match the regular expression
1395 # `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001397 #
1398 # The top-level steps that constitute the entire job.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001399 { # Defines a particular step within a Cloud Dataflow job.
1400 #
1401 # A job consists of multiple steps, each of which performs some
1402 # specific operation as part of the overall job. Data is typically
1403 # passed from one step to another as part of the job.
1404 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001405 # Here&#x27;s an example of a sequence of steps which together implement a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001406 # Map-Reduce job:
1407 #
1408 # * Read a collection of data from some source, parsing the
Bu Sun Kim65020912020-05-20 12:08:20 -07001409 # collection&#x27;s elements.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001410 #
1411 # * Validate the elements.
1412 #
1413 # * Apply a user-defined function to map each element to some value
1414 # and extract an element-specific key value.
1415 #
1416 # * Group elements with the same key into a single element with
1417 # that key, transforming a multiply-keyed collection into a
1418 # uniquely-keyed collection.
1419 #
1420 # * Write the elements out to some data sink.
1421 #
1422 # Note that the Cloud Dataflow service may be used to run many different
1423 # types of jobs, not just Map-Reduce.
Bu Sun Kim65020912020-05-20 12:08:20 -07001424 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each
Dan O'Mearadd494642020-05-01 07:42:23 -07001425 # step with respect to all other steps in the Cloud Dataflow job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001426 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1427 &quot;properties&quot;: { # Named properties associated with the step. Each kind of
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001428 # predefined step has its own required set of properties.
1429 # Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
Bu Sun Kim65020912020-05-20 12:08:20 -07001430 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001431 },
1432 },
1433 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001434 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in
1435 # `JOB_STATE_UPDATED`), this field contains the ID of that job.
1436 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that # Deprecated.
1437 # isn&#x27;t contained in the submitted job.
1438 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
1439 &quot;a_key&quot;: { # Contains information about how a particular
1440 # google.dataflow.v1beta3.Step will be executed.
1441 &quot;stepName&quot;: [ # The steps associated with the execution stage.
1442 # Note that stages may have several steps, and that a given step
1443 # might be run by more than one stage.
1444 &quot;A String&quot;,
1445 ],
1446 },
1447 },
1448 },
1449 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001450 #
1451 # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise
1452 # specified.
1453 #
1454 # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a
1455 # terminal state. After a job has reached a terminal state, no
1456 # further state updates may be made.
1457 #
1458 # This field may be mutated by the Cloud Dataflow service;
1459 # callers cannot mutate it.
Bu Sun Kim65020912020-05-20 12:08:20 -07001460 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint]
1461 # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
1462 # contains this job.
1463 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
1464 # Flexible resource scheduling jobs are started with some delay after job
1465 # creation, so start_time is unset before start and is updated when the
1466 # job is started by the Cloud Dataflow service. For other jobs, start_time
1467 # always equals to create_time and is immutable and set by the Cloud Dataflow
1468 # service.
1469 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
1470 &quot;labels&quot;: { # User-defined labels for this job.
1471 #
1472 # The labels map can contain no more than 64 entries. Entries of the labels
1473 # map are UTF8 strings that comply with the following restrictions:
1474 #
1475 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
1476 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
1477 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
1478 # size.
1479 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001480 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001481 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the
1482 # Cloud Dataflow service.
1483 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state.
1484 #
1485 # `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
1486 # `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may
1487 # also be used to directly set a job&#x27;s requested state to
1488 # `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
1489 # job if it has not already reached a terminal state.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001490 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001491 }</pre>
1492</div>
1493
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001494</body></html>