blob: dfe41973d450fa7a8fb91a4cc64edb0b04f97470 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -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
75<h1><a href="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.locations.html">locations</a> . <a href="dataflow_v1b3.projects.locations.flexTemplates.html">flexTemplates</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#launch">launch(projectId, location, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Launch a job with a FlexTemplate.</p>
80<h3>Method Details</h3>
81<div class="method">
82 <code class="details" id="launch">launch(projectId, location, body=None, x__xgafv=None)</code>
83 <pre>Launch a job with a FlexTemplate.
84
85Args:
86 projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required)
87 location: string, Required. The [regional endpoint]
88(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
89which to direct the request. E.g., us-central1, us-west1. (required)
90 body: object, The request body.
91 The object takes the form of:
92
93{ # A request to launch a Cloud Dataflow job from a FlexTemplate.
Bu Sun Kim65020912020-05-20 12:08:20 -070094 &quot;launchParameter&quot;: { # Launch FlexTemplate Parameter. # Required. Parameter to launch a job form Flex Template.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070095 &quot;launchOptions&quot;: { # Launch options for this flex template job. This is a common set of options
96 # across languages and templates. This should not be used to pass job
97 # parameters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070098 &quot;a_key&quot;: &quot;A String&quot;,
99 },
100 &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700101 &quot;containerSpecGcsPath&quot;: &quot;A String&quot;, # Gcs path to a file with json serialized ContainerSpec as content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700102 &quot;containerSpec&quot;: { # Container Spec. # Spec about the container image to launch.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103 &quot;image&quot;: &quot;A String&quot;, # Name of the docker container image. E.g., gcr.io/project/some-image
Bu Sun Kim65020912020-05-20 12:08:20 -0700104 &quot;sdkInfo&quot;: { # SDK Information. # Required. SDK info of the Flex Template.
105 &quot;language&quot;: &quot;A String&quot;, # Required. The SDK Language.
106 &quot;version&quot;: &quot;A String&quot;, # Optional. The SDK version.
107 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700108 &quot;metadata&quot;: { # Metadata describing a template. # Metadata describing a template including description and validation rules.
109 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of the template.
110 &quot;parameters&quot;: [ # The parameters for the template.
111 { # Metadata for a specific parameter.
112 &quot;label&quot;: &quot;A String&quot;, # Required. The label to display for the parameter.
113 &quot;helpText&quot;: &quot;A String&quot;, # Required. The help text to display for the parameter.
114 &quot;regexes&quot;: [ # Optional. Regexes that the parameter must match.
115 &quot;A String&quot;,
116 ],
117 &quot;paramType&quot;: &quot;A String&quot;, # Optional. The type of the parameter.
118 # Used for selecting input picker.
119 &quot;isOptional&quot;: True or False, # Optional. Whether the parameter is optional. Defaults to false.
120 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the parameter.
121 },
122 ],
123 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the template.
124 },
125 },
126 &quot;parameters&quot;: { # The parameters for FlexTemplate.
127 # Ex. {&quot;num_workers&quot;:&quot;5&quot;}
128 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700131 &quot;validateOnly&quot;: True or False, # If true, the request is validated but not actually executed.
132 # Defaults to false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 }
134
135 x__xgafv: string, V1 error format.
136 Allowed values
137 1 - v1 error format
138 2 - v2 error format
139
140Returns:
141 An object of the form:
142
143 { # Response to the request to launch a job from Flex Template.
144 &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
145 # the job was successfully launched.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700146 &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.
147 # A description of the user pipeline and stages through which it is executed.
148 # Created by Cloud Dataflow service. Only retrieved with
149 # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
150 # form. This data is provided by the Dataflow service for ease of visualizing
151 # the pipeline and interpreting Dataflow provided metrics.
152 &quot;displayData&quot;: [ # Pipeline level display data.
153 { # Data provided with a pipeline or transform to provide descriptive info.
154 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
155 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
156 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
157 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
158 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
159 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data.
160 # This is intended to be used as a label for the display data
161 # when viewed in a dax monitoring system.
162 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming
163 # language namespace (i.e. python module) which defines the display data.
164 # This allows a dax monitoring system to specially handle the data
165 # and perform custom rendering.
166 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
167 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
168 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
169 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
170 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display.
171 # For example a java_class_name_value of com.mypackage.MyDoFn
172 # will be stored with MyDoFn as the short_str_value and
173 # com.mypackage.MyDoFn as the java_class_name value.
174 # short_str_value can be displayed and java_class_name_value
175 # will be displayed as a tooltip.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700176 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700177 ],
178 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
179 { # Description of the type, names/ids, and input/outputs for a transform.
180 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700181 &quot;A String&quot;,
182 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700183 &quot;displayData&quot;: [ # Transform-specific display data.
184 { # Data provided with a pipeline or transform to provide descriptive info.
185 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
186 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
187 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
188 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
189 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
190 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data.
191 # This is intended to be used as a label for the display data
192 # when viewed in a dax monitoring system.
193 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming
194 # language namespace (i.e. python module) which defines the display data.
195 # This allows a dax monitoring system to specially handle the data
196 # and perform custom rendering.
197 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
198 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
199 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
200 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
201 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display.
202 # For example a java_class_name_value of com.mypackage.MyDoFn
203 # will be stored with MyDoFn as the short_str_value and
204 # com.mypackage.MyDoFn as the java_class_name value.
205 # short_str_value can be displayed and java_class_name_value
206 # will be displayed as a tooltip.
207 },
208 ],
209 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
210 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
211 &quot;A String&quot;,
212 ],
213 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
214 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
215 },
216 ],
217 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
218 { # Description of the composing transforms, names/ids, and input/outputs of a
219 # stage of execution. Some composing transforms and sources may have been
220 # generated by the Dataflow service during execution planning.
221 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
222 { # Description of an interstitial value between transforms in an execution
223 # stage.
224 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
225 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
226 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
227 # source is most closely associated.
228 },
229 ],
230 &quot;inputSource&quot;: [ # Input sources for this stage.
231 { # Description of an input or output of an execution stage.
232 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
233 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
234 # source is most closely associated.
235 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
236 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
237 },
238 ],
239 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
240 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
241 { # Description of a transform executed as part of an execution stage.
242 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
243 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
244 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is
245 # most closely associated.
246 },
247 ],
248 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
249 &quot;outputSource&quot;: [ # Output sources for this stage.
250 { # Description of an input or output of an execution stage.
251 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
252 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this
253 # source is most closely associated.
254 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
255 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
256 },
257 ],
258 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
259 },
260 ],
261 },
262 &quot;labels&quot;: { # User-defined labels for this job.
263 #
264 # The labels map can contain no more than 64 entries. Entries of the labels
265 # map are UTF8 strings that comply with the following restrictions:
266 #
267 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
268 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
269 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
270 # size.
271 &quot;a_key&quot;: &quot;A String&quot;,
272 },
273 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
274 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
275 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
276 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region
277 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
278 # which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive
279 # with worker_zone. If neither worker_region nor worker_zone is specified,
280 # default to the control plane&#x27;s region.
281 &quot;userAgent&quot;: { # A description of the process that generated the request.
282 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
283 },
284 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
285 &quot;version&quot;: { # A structure describing which components and their versions of the service
286 # are required in order to run the job.
287 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
288 },
289 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data
290 # at rest, AKA a Customer Managed Encryption Key (CMEK).
291 #
292 # Format:
293 # projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
294 &quot;experiments&quot;: [ # The list of experiments to enable.
295 &quot;A String&quot;,
296 ],
297 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone
298 # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
299 # which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive
300 # with worker_region. If neither worker_region nor worker_zone is specified,
301 # a zone in the control plane&#x27;s region is chosen based on available capacity.
302 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be
303 # specified in order for the job to have workers.
304 { # Describes one particular pool of Cloud Dataflow workers to be
305 # instantiated by the Cloud Dataflow service in order to perform the
306 # computations required by a job. Note that a workflow job may use
307 # multiple pools, in order to match the various computational
308 # requirements of the various stages of the job.
309 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google
310 # Compute Engine API.
311 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will
312 # only be set in the Fn API path. For non-cross-language pipelines this
313 # should have only one entry. Cross-language pipelines will have two or more
314 # entries.
315 { # Defines a SDK harness container for executing Dataflow pipelines.
316 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
317 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK
318 # container instance with this image. If false (or unset) recommends using
319 # more than one core per SDK container instance with this image for
320 # efficiency. Note that Dataflow service may choose to override this property
321 # if needed.
322 },
323 ],
324 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service
325 # will attempt to choose a reasonable default.
326 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle`
327 # are supported.
328 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
329 &quot;a_key&quot;: &quot;A String&quot;,
330 },
331 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
332 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
333 { # Describes the data disk used by a workflow job.
334 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will
335 # attempt to choose a reasonable default.
336 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This
337 # must be a disk type appropriate to the project and zone in which
338 # the workers will run. If unknown or unspecified, the service
339 # will attempt to choose a reasonable default.
340 #
341 # For example, the standard persistent disk type is a resource name
342 # typically ending in &quot;pd-standard&quot;. If SSD persistent disks are
343 # available, the resource name typically ends with &quot;pd-ssd&quot;. The
344 # actual valid values are defined the Google Compute Engine API,
345 # not by the Cloud Dataflow API; consult the Google Compute Engine
346 # documentation for more information about determining the set of
347 # available disk types for a particular project and zone.
348 #
349 # Google Compute Engine Disk types are local to a particular
350 # project in a particular zone, and so the resource name will
351 # typically look something like this:
352 #
353 # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
354 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
355 },
356 ],
357 &quot;packages&quot;: [ # Packages to be installed on workers.
358 { # The packages that must be installed in order for a worker to run the
359 # steps of the Cloud Dataflow job that will be assigned to its worker
360 # pool.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700361 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700362 # This is the mechanism by which the Cloud Dataflow SDK causes code to
363 # be loaded onto the workers. For example, the Cloud Dataflow Java SDK
364 # might use this to install jars containing the user&#x27;s code and all of the
365 # various dependencies (libraries, data files, etc.) required in order
366 # for that code to run.
367 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
368 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is:
369 #
370 # Google Cloud Storage:
371 #
372 # storage.googleapis.com/{bucket}
373 # bucket.storage.googleapis.com/
374 },
375 ],
376 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool.
377 # Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and
378 # `TEARDOWN_NEVER`.
379 # `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether
380 # the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down
381 # if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn
382 # down.
383 #
384 # If the workers are not torn down by the service, they will
385 # continue to run and use Google Compute Engine VM resources in the
386 # user&#x27;s project until they are explicitly terminated by the user.
387 # Because of this, Google recommends using the `TEARDOWN_ALWAYS`
388 # policy except for small, manually supervised test jobs.
389 #
390 # If unknown or unspecified, the service will attempt to choose a reasonable
391 # default.
392 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified,
393 # the service will use the network &quot;default&quot;.
394 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
395 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will
396 # attempt to choose a reasonable default.
397 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
398 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
399 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
400 },
401 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
402 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
403 },
404 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of
405 # the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
406 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to
407 # execute the job. If zero or unspecified, the service will
408 # attempt to choose a reasonable default.
409 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the
410 # service will choose a number of threads (according to the number of cores
411 # on the selected machine type for batch, or 1 by convention for streaming).
412 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker
413 # harness, residing in Google Container Registry.
414 #
415 # Deprecated for the Fn API path. Use sdk_harness_container_images instead.
416 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when
417 # using the standard Dataflow task runner. Users should ignore
418 # this field.
419 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
420 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to
421 # access the Cloud Dataflow API.
422 &quot;A String&quot;,
423 ],
424 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700425 #
426 # When workers access Google Cloud APIs, they logically do so via
427 # relative URLs. If this field is specified, it supplies the base
428 # URL to use for resolving these relative URLs. The normative
429 # algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource
430 # Locators&quot;.
431 #
432 # If not specified, the default value is &quot;http://www.googleapis.com/&quot;
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700433 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
434 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial
435 # console.
436 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
437 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by
438 # taskrunner; e.g. &quot;root&quot;.
439 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
440 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
441 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
442 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example,
443 # &quot;shuffle/v1beta1&quot;.
444 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary
445 # storage.
446 #
447 # The supported resource type is:
448 #
449 # Google Cloud Storage:
450 #
451 # storage.googleapis.com/{bucket}/{object}
452 # bucket.storage.googleapis.com/{object}
453 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
454 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example,
455 # &quot;dataflow/v1b3/projects&quot;.
456 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs.
457 #
458 # When workers access Google Cloud APIs, they logically do so via
459 # relative URLs. If this field is specified, it supplies the base
460 # URL to use for resolving these relative URLs. The normative
461 # algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource
462 # Locators&quot;.
463 #
464 # If not specified, the default value is &quot;http://www.googleapis.com/&quot;
465 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
466 },
467 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
468 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
469 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
470 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
471 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by
472 # taskrunner; e.g. &quot;wheel&quot;.
473 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs
474 # will not be uploaded.
475 #
476 # The supported resource type is:
477 #
478 # Google Cloud Storage:
479 # storage.googleapis.com/{bucket}/{object}
480 # bucket.storage.googleapis.com/{object}
481 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
482 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
483 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for
484 # temporary storage.
485 #
486 # The supported resource type is:
487 #
488 # Google Cloud Storage:
489 # storage.googleapis.com/{bucket}/{object}
490 # bucket.storage.googleapis.com/{object}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700491 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700492 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will
493 # attempt to choose a reasonable default.
494 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to
495 # select a default set of packages which are useful to worker
496 # harnesses written in a particular language.
497 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the
498 # service will attempt to choose a reasonable default.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700499 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700500 ],
501 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary
502 # storage. The system will append the suffix &quot;/temp-{JOBNAME} to
503 # this resource prefix, where {JOBNAME} is the value of the
504 # job_name field. The resulting bucket and object prefix is used
505 # as the prefix of the resources used to store temporary data
506 # needed during the job execution. NOTE: This will override the
507 # value in taskrunner_settings.
508 # The supported resource type is:
509 #
510 # Google Cloud Storage:
511 #
512 # storage.googleapis.com/{bucket}/{object}
513 # bucket.storage.googleapis.com/{object}
514 &quot;internalExperiments&quot;: { # Experimental settings.
515 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700516 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700517 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These
518 # options are passed through the service and are used to recreate the
519 # SDK pipeline options on the worker in a language agnostic and platform
520 # independent way.
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
522 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700523 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow
524 # related tables are stored.
525 #
526 # The supported resource type is:
527 #
528 # Google BigQuery:
529 # bigquery.googleapis.com/{dataset}
530 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or
531 # unspecified, the service will attempt to choose a reasonable
532 # default. This should be in the form of the API service name,
533 # e.g. &quot;compute.googleapis.com&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700535 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
536 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified.
537 #
538 # The top-level steps that constitute the entire job.
539 { # Defines a particular step within a Cloud Dataflow job.
540 #
541 # A job consists of multiple steps, each of which performs some
542 # specific operation as part of the overall job. Data is typically
543 # passed from one step to another as part of the job.
544 #
545 # Here&#x27;s an example of a sequence of steps which together implement a
546 # Map-Reduce job:
547 #
548 # * Read a collection of data from some source, parsing the
549 # collection&#x27;s elements.
550 #
551 # * Validate the elements.
552 #
553 # * Apply a user-defined function to map each element to some value
554 # and extract an element-specific key value.
555 #
556 # * Group elements with the same key into a single element with
557 # that key, transforming a multiply-keyed collection into a
558 # uniquely-keyed collection.
559 #
560 # * Write the elements out to some data sink.
561 #
562 # Note that the Cloud Dataflow service may be used to run many different
563 # types of jobs, not just Map-Reduce.
564 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
565 &quot;properties&quot;: { # Named properties associated with the step. Each kind of
566 # predefined step has its own required set of properties.
567 # Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
568 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
569 },
570 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each
571 # step with respect to all other steps in the Cloud Dataflow job.
572 },
573 ],
574 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service;
575 # callers cannot mutate it.
576 { # A message describing the state of a particular execution stage.
577 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
578 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
579 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
580 },
581 ],
582 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in
583 # `JOB_STATE_UPDATED`), this field contains the ID of that job.
584 &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
585 # by the metadata values provided here. Populated for ListJobs and all GetJob
586 # views SUMMARY and higher.
587 # ListJob response and Job SUMMARY view.
588 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
589 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
590 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
591 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
592 },
593 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
594 { # Metadata for a BigTable connector used by the job.
595 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
596 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
597 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
598 },
599 ],
600 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
601 { # Metadata for a PubSub connector used by the job.
602 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
603 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
604 },
605 ],
606 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
607 { # Metadata for a BigQuery connector used by the job.
608 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
609 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
610 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
611 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
612 },
613 ],
614 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
615 { # Metadata for a File connector used by the job.
616 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
617 },
618 ],
619 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
620 { # Metadata for a Datastore connector used by the job.
621 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
622 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
623 },
624 ],
625 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
626 { # Metadata for a Spanner connector used by the job.
627 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
628 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
629 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
630 },
631 ],
632 },
633 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint]
634 # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
635 # contains this job.
636 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the
637 # corresponding name prefixes of the new job.
638 &quot;a_key&quot;: &quot;A String&quot;,
639 },
640 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
641 # Flexible resource scheduling jobs are started with some delay after job
642 # creation, so start_time is unset before start and is updated when the
643 # job is started by the Cloud Dataflow service. For other jobs, start_time
644 # always equals to create_time and is immutable and set by the Cloud Dataflow
645 # service.
646 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts.
647 # If this field is set, the service will ensure its uniqueness.
648 # The request to create a job will fail if the service has knowledge of a
649 # previously submitted job with the same client&#x27;s ID and job name.
650 # The caller may use this field to ensure idempotence of job
651 # creation across retried attempts to create a job.
652 # By default, the field is empty and, in that case, the service ignores it.
653 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that # Deprecated.
654 # isn&#x27;t contained in the submitted job.
655 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
656 &quot;a_key&quot;: { # Contains information about how a particular
657 # google.dataflow.v1beta3.Step will be executed.
658 &quot;stepName&quot;: [ # The steps associated with the execution stage.
659 # Note that stages may have several steps, and that a given step
660 # might be run by more than one stage.
661 &quot;A String&quot;,
662 ],
663 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700664 },
665 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700666 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
667 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the
668 # Cloud Dataflow service.
669 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used
670 # for temporary storage. These temporary files will be
671 # removed on job completion.
672 # No duplicates are allowed.
673 # No file patterns are supported.
674 #
675 # The supported files are:
676 #
677 # Google Cloud Storage:
678 #
679 # storage.googleapis.com/{bucket}/{object}
680 # bucket.storage.googleapis.com/{object}
681 &quot;A String&quot;,
682 ],
683 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job.
684 #
685 # This field is set by the Cloud Dataflow service when the Job is
686 # created, and is immutable for the life of the job.
687 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state.
688 #
689 # `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
690 # `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may
691 # also be used to directly set a job&#x27;s requested state to
692 # `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
693 # job if it has not already reached a terminal state.
694 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID
695 # of the job it replaced.
696 #
697 # When sending a `CreateJobRequest`, you can update a job by specifying it
698 # here. The job named here is stopped, and its intermediate state is
699 # transferred to this job.
700 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given
701 # snapshot.
702 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job.
703 #
704 # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise
705 # specified.
706 #
707 # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a
708 # terminal state. After a job has reached a terminal state, no
709 # further state updates may be made.
710 #
711 # This field may be mutated by the Cloud Dataflow service;
712 # callers cannot mutate it.
713 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name.
714 #
715 # Only one Job with a given name may exist in a project at any
716 # given time. If a caller attempts to create a Job with the same
717 # name as an already-existing Job, the attempt returns the
718 # existing Job.
719 #
720 # The name must match the regular expression
721 # `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
722 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 }</pre>
725</div>
726
727</body></html>