blob: e2350e3db56ad7bc896a922224e236ead0a17c0b [file] [log] [blame]
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.locations.html">locations</a> . <a href="dataflow_v1b3.projects.locations.templates.html">templates</a></h1>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(projectId, location, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040082<p class="firstline">Creates a Cloud Dataflow job from a template.</p>
83<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#get">get(projectId, location, gcsPath=None, view=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040085<p class="firstline">Get the template associated with a template.</p>
86<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087 <code><a href="#launch">launch(projectId, location, body=None, dynamicTemplate_stagingLocation=None, dynamicTemplate_gcsPath=None, gcsPath=None, validateOnly=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040088<p class="firstline">Launch a template.</p>
89<h3>Method Details</h3>
90<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code class="details" id="create">create(projectId, location, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040097 <pre>Creates a Cloud Dataflow job from a template.
98
99Args:
100 projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700101 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400103 The object takes the form of:
104
105{ # A request to create a Cloud Dataflow job from a template.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700106 &quot;gcsPath&quot;: &quot;A String&quot;, # Required. A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700108 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
109 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
111 &quot;additionalUserLabels&quot;: { # Additional user labels to be specified for the job. Keys and values should follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of &quot;key&quot;: value pairs. Example: { &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }.
112 &quot;a_key&quot;: &quot;A String&quot;,
113 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700115 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700116 &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
117 &quot;A String&quot;,
118 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700119 &quot;zone&quot;: &quot;A String&quot;, # The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence.
120 &quot;numWorkers&quot;: 42, # The initial number of Google Compute Engine instnaces for the job.
121 &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory. Use with caution.
122 &quot;maxWorkers&quot;: 42, # The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
123 &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
124 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
125 &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
126 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
127 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400128 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700129 &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 -0700130 &quot;parameters&quot;: { # The runtime parameters to pass to the job.
131 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400132 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700133 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400134 }
135
136 x__xgafv: string, V1 error format.
137 Allowed values
138 1 - v1 error format
139 2 - v2 error format
140
141Returns:
142 An object of the form:
143
144 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 &quot;labels&quot;: { # User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be &lt;= 128 bytes in size.
146 &quot;a_key&quot;: &quot;A String&quot;,
147 },
148 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
149 { # Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here&#x27;s an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection&#x27;s elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
150 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job.
151 &quot;properties&quot;: { # Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
153 },
154 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
155 },
156 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700157 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job&#x27;s requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700158 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
159 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
160 { # Metadata for a File connector used by the job.
161 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
162 },
163 ],
164 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
165 { # Metadata for a Spanner connector used by the job.
166 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700167 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700168 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
169 },
170 ],
171 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
172 { # Metadata for a BigTable connector used by the job.
173 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
174 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
175 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700176 },
177 ],
178 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
179 { # Metadata for a Datastore connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700181 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700182 },
183 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700184 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
185 { # Metadata for a PubSub connector used by the job.
186 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
187 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
188 },
189 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700190 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
191 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
192 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
193 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
194 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
196 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700197 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
198 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700199 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
200 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700201 },
202 ],
203 },
204 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700205 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
206 &quot;a_key&quot;: &quot;A String&quot;,
207 },
208 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
209 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client&#x27;s ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
210 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
211 &quot;A String&quot;,
212 ],
213 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
214 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
216 },
217 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be specified in order for the job to have workers.
218 { # Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
219 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
220 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user&#x27;s project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.
221 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the service will attempt to choose a reasonable default.
222 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
223 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
224 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
225 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
226 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
227 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
228 },
229 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
230 &quot;a_key&quot;: &quot;A String&quot;,
231 },
232 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
233 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
234 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
235 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
236 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
237 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;root&quot;.
238 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
239 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
240 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
241 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
242 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
243 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
244 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
245 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
246 },
247 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
248 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
249 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
250 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
251 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;wheel&quot;.
252 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
253 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
254 &quot;A String&quot;,
255 ],
256 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
257 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
258 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
259 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
260 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
261 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
262 },
263 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
264 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
265 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdk_harness_container_images instead.
266 &quot;packages&quot;: [ # Packages to be installed on workers.
267 { # The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool. This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user&#x27;s code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
268 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
269 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
270 },
271 ],
272 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
273 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
274 },
275 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
276 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
277 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
278 { # Defines a SDK harness container for executing Dataflow pipelines.
279 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
280 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
281 },
282 ],
283 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
284 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
285 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
286 { # Describes the data disk used by a workflow job.
287 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in &quot;pd-standard&quot;. If SSD persistent disks are available, the resource name typically ends with &quot;pd-ssd&quot;. The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
288 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
289 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
290 },
291 ],
292 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
293 },
294 ],
295 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
296 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
297 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
298 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. &quot;compute.googleapis.com&quot;.
299 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity.
300 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The system will append the suffix &quot;/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
301 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
302 &quot;internalExperiments&quot;: { # Experimental settings.
303 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
304 },
305 &quot;experiments&quot;: [ # The list of experiments to enable.
306 &quot;A String&quot;,
307 ],
308 &quot;userAgent&quot;: { # A description of the process that generated the request.
309 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
310 },
311 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}
312 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
314 },
315 },
316 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
317 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
318 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
319 &quot;stepName&quot;: [ # The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage.
320 &quot;A String&quot;,
321 ],
322 },
323 },
324 },
325 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
326 { # A message describing the state of a particular execution stage.
327 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
328 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
329 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
330 },
331 ],
332 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
333 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
334 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
335 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
336 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
337 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
338 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
339 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics. # Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
340 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
341 { # Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
342 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
343 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
344 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
345 { # Description of an interstitial value between transforms in an execution stage.
346 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
347 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
348 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
349 },
350 ],
351 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
352 &quot;inputSource&quot;: [ # Input sources for this stage.
353 { # Description of an input or output of an execution stage.
354 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
355 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
356 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
357 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
358 },
359 ],
360 &quot;outputSource&quot;: [ # Output sources for this stage.
361 { # Description of an input or output of an execution stage.
362 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
363 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
364 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
365 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
366 },
367 ],
368 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
369 &quot;A String&quot;,
370 ],
371 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
372 { # Description of a transform executed as part of an execution stage.
373 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
374 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
375 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
376 },
377 ],
378 },
379 ],
380 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
381 { # Description of the type, names/ids, and input/outputs for a transform.
382 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
383 &quot;A String&quot;,
384 ],
385 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
386 &quot;A String&quot;,
387 ],
388 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
389 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
390 &quot;displayData&quot;: [ # Transform-specific display data.
391 { # Data provided with a pipeline or transform to provide descriptive info.
392 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
393 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
394 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
395 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
396 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
397 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
398 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
399 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
400 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
401 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
402 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
403 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
404 },
405 ],
406 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
407 },
408 ],
409 &quot;displayData&quot;: [ # Pipeline level display data.
410 { # Data provided with a pipeline or transform to provide descriptive info.
411 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
412 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
413 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
414 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
415 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
416 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
417 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
418 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
419 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
420 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
421 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
422 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
423 },
424 ],
425 },
426 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
427 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
428 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name. Only one Job with a given name may exist in a project at any given time. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
429 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700430 }</pre>
431</div>
432
433<div class="method">
434 <code class="details" id="get">get(projectId, location, gcsPath=None, view=None, x__xgafv=None)</code>
435 <pre>Get the template associated with a template.
436
437Args:
438 projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required)
439 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. (required)
440 gcsPath: string, Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
441 view: string, The view to retrieve. Defaults to METADATA_ONLY.
442 Allowed values
443 METADATA_ONLY - Template view that retrieves only the metadata associated with the template.
444 x__xgafv: string, V1 error format.
445 Allowed values
446 1 - v1 error format
447 2 - v2 error format
448
449Returns:
450 An object of the form:
451
452 { # The response to a GetTemplate request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700453 &quot;metadata&quot;: { # Metadata describing a template. # The template metadata describing the template name, available parameters, etc.
454 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of the template.
455 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the template.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700456 &quot;parameters&quot;: [ # The parameters for the template.
457 { # Metadata for a specific parameter.
458 &quot;isOptional&quot;: True or False, # Optional. Whether the parameter is optional. Defaults to false.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700459 &quot;label&quot;: &quot;A String&quot;, # Required. The label to display for the parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700460 &quot;paramType&quot;: &quot;A String&quot;, # Optional. The type of the parameter. Used for selecting input picker.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700461 &quot;helpText&quot;: &quot;A String&quot;, # Required. The help text to display for the parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700462 &quot;regexes&quot;: [ # Optional. Regexes that the parameter must match.
463 &quot;A String&quot;,
464 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700465 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700466 },
467 ],
468 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700469 &quot;templateType&quot;: &quot;A String&quot;, # Template Type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700470 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The status of the get template request. Any problems with the request will be indicated in the error_details.
471 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700472 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
473 {
474 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
475 },
476 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700477 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700478 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700479 &quot;runtimeMetadata&quot;: { # RuntimeMetadata describing a runtime environment. # Describes the runtime metadata with SDKInfo and available parameters.
480 &quot;sdkInfo&quot;: { # SDK Information. # SDK Info for the template.
481 &quot;version&quot;: &quot;A String&quot;, # Optional. The SDK version.
482 &quot;language&quot;: &quot;A String&quot;, # Required. The SDK Language.
483 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700484 &quot;parameters&quot;: [ # The parameters for the template.
485 { # Metadata for a specific parameter.
486 &quot;isOptional&quot;: True or False, # Optional. Whether the parameter is optional. Defaults to false.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700487 &quot;label&quot;: &quot;A String&quot;, # Required. The label to display for the parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700488 &quot;paramType&quot;: &quot;A String&quot;, # Optional. The type of the parameter. Used for selecting input picker.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700489 &quot;helpText&quot;: &quot;A String&quot;, # Required. The help text to display for the parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700490 &quot;regexes&quot;: [ # Optional. Regexes that the parameter must match.
491 &quot;A String&quot;,
492 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700493 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700494 },
495 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700496 },
497 }</pre>
498</div>
499
500<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700501 <code class="details" id="launch">launch(projectId, location, body=None, dynamicTemplate_stagingLocation=None, dynamicTemplate_gcsPath=None, gcsPath=None, validateOnly=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700502 <pre>Launch a template.
503
504Args:
505 projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required)
506 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. (required)
507 body: object, The request body.
508 The object takes the form of:
509
510{ # Parameters to provide to the template being launched.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700511 &quot;parameters&quot;: { # The runtime parameters to pass to the job.
512 &quot;a_key&quot;: &quot;A String&quot;,
513 },
514 &quot;update&quot;: True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700515 &quot;transformNameMapping&quot;: { # Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
516 &quot;a_key&quot;: &quot;A String&quot;,
517 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700518 &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
519 &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
520 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
521 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
522 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
523 &quot;additionalUserLabels&quot;: { # Additional user labels to be specified for the job. Keys and values should follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of &quot;key&quot;: value pairs. Example: { &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }.
524 &quot;a_key&quot;: &quot;A String&quot;,
525 },
526 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
527 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
528 &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
529 &quot;A String&quot;,
530 ],
531 &quot;zone&quot;: &quot;A String&quot;, # The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence.
532 &quot;numWorkers&quot;: 42, # The initial number of Google Compute Engine instnaces for the job.
533 &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory. Use with caution.
534 &quot;maxWorkers&quot;: 42, # The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
535 &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
536 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
537 &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
538 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
539 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
540 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700541 }
542
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700543 dynamicTemplate_stagingLocation: string, Cloud Storage path for staging dependencies. Must be a valid Cloud Storage URL, beginning with `gs://`.
544 dynamicTemplate_gcsPath: string, Path to dynamic template spec file on GCS. The file must be a Json serialized DynamicTemplateFieSpec object.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700545 gcsPath: string, A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
546 validateOnly: boolean, If true, the request is validated but not actually executed. Defaults to false.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700547 x__xgafv: string, V1 error format.
548 Allowed values
549 1 - v1 error format
550 2 - v2 error format
551
552Returns:
553 An object of the form:
554
555 { # Response to the request to launch a template.
556 &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 the job was successfully launched.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700557 &quot;labels&quot;: { # User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be &lt;= 128 bytes in size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700559 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700560 &quot;steps&quot;: [ # Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
561 { # Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here&#x27;s an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection&#x27;s elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
562 &quot;name&quot;: &quot;A String&quot;, # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job.
563 &quot;properties&quot;: { # Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
564 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
565 },
566 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
567 },
568 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700569 &quot;requestedState&quot;: &quot;A String&quot;, # The job&#x27;s requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used to directly set a job&#x27;s requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700570 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
571 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
572 { # Metadata for a File connector used by the job.
573 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
574 },
575 ],
576 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
577 { # Metadata for a Spanner connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700578 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700579 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700580 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
581 },
582 ],
583 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
584 { # Metadata for a BigTable connector used by the job.
585 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
586 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
587 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700588 },
589 ],
590 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
591 { # Metadata for a Datastore connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700592 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700593 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700594 },
595 ],
596 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
597 { # Metadata for a PubSub connector used by the job.
598 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
599 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
600 },
601 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700602 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
603 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
604 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
605 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
606 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700607 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
608 { # Metadata for a BigQuery connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700609 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
610 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700611 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
612 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700613 },
614 ],
615 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700616 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700617 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
618 &quot;a_key&quot;: &quot;A String&quot;,
619 },
620 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
621 &quot;clientRequestId&quot;: &quot;A String&quot;, # The client&#x27;s unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client&#x27;s ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
622 &quot;tempFiles&quot;: [ # A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
623 &quot;A String&quot;,
624 ],
625 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
626 &quot;sdkPipelineOptions&quot;: { # The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
627 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
628 },
629 &quot;workerPools&quot;: [ # The worker pools. At least one &quot;harness&quot; worker pool must be specified in order for the job to have workers.
630 { # Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
631 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
632 &quot;teardownPolicy&quot;: &quot;A String&quot;, # Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user&#x27;s project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.
633 &quot;machineType&quot;: &quot;A String&quot;, # Machine type (e.g. &quot;n1-standard-1&quot;). If empty or unspecified, the service will attempt to choose a reasonable default.
634 &quot;diskSizeGb&quot;: 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
635 &quot;diskType&quot;: &quot;A String&quot;, # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
636 &quot;numThreadsPerWorker&quot;: 42, # The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
637 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
638 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
639 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
640 },
641 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
642 &quot;a_key&quot;: &quot;A String&quot;,
643 },
644 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
645 &quot;taskrunnerSettings&quot;: { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
646 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
647 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
648 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
649 &quot;taskUser&quot;: &quot;A String&quot;, # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;root&quot;.
650 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
651 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
652 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
653 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
654 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
655 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
656 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
657 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
658 },
659 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
660 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
661 &quot;baseUrl&quot;: &quot;A String&quot;, # The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, &quot;Relative Uniform Resource Locators&quot;. If not specified, the default value is &quot;http://www.googleapis.com/&quot;
662 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
663 &quot;taskGroup&quot;: &quot;A String&quot;, # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. &quot;wheel&quot;.
664 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
665 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
666 &quot;A String&quot;,
667 ],
668 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
669 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
670 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
671 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
672 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
673 &quot;logUploadLocation&quot;: &quot;A String&quot;, # Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
674 },
675 &quot;defaultPackageSet&quot;: &quot;A String&quot;, # The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
676 &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
677 &quot;workerHarnessContainerImage&quot;: &quot;A String&quot;, # Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdk_harness_container_images instead.
678 &quot;packages&quot;: [ # Packages to be installed on workers.
679 { # The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool. This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user&#x27;s code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
680 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
681 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
682 },
683 ],
684 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
685 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
686 },
687 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
688 &quot;numWorkers&quot;: 42, # Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
689 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
690 { # Defines a SDK harness container for executing Dataflow pipelines.
691 &quot;useSingleCorePerContainer&quot;: True or False, # If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
692 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
693 },
694 ],
695 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
696 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
697 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
698 { # Describes the data disk used by a workflow job.
699 &quot;diskType&quot;: &quot;A String&quot;, # Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in &quot;pd-standard&quot;. If SSD persistent disks are available, the resource name typically ends with &quot;pd-ssd&quot;. The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
700 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
701 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
702 },
703 ],
704 &quot;zone&quot;: &quot;A String&quot;, # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
705 },
706 ],
707 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
708 &quot;serviceKmsKeyName&quot;: &quot;A String&quot;, # If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
709 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
710 &quot;clusterManagerApiService&quot;: &quot;A String&quot;, # The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. &quot;compute.googleapis.com&quot;.
711 &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity.
712 &quot;tempStoragePrefix&quot;: &quot;A String&quot;, # The prefix of the resources the system should use for temporary storage. The system will append the suffix &quot;/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
713 &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
714 &quot;internalExperiments&quot;: { # Experimental settings.
715 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
716 },
717 &quot;experiments&quot;: [ # The list of experiments to enable.
718 &quot;A String&quot;,
719 ],
720 &quot;userAgent&quot;: { # A description of the process that generated the request.
721 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
722 },
723 &quot;dataset&quot;: &quot;A String&quot;, # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}
724 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
725 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
726 },
727 },
728 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
729 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
730 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
731 &quot;stepName&quot;: [ # The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage.
732 &quot;A String&quot;,
733 ],
734 },
735 },
736 },
737 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
738 { # A message describing the state of a particular execution stage.
739 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
740 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
741 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
742 },
743 ],
744 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
745 &quot;startTime&quot;: &quot;A String&quot;, # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
746 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
747 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
748 &quot;replaceJobId&quot;: &quot;A String&quot;, # If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
749 &quot;replacedByJobId&quot;: &quot;A String&quot;, # If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job.
750 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
751 &quot;pipelineDescription&quot;: { # A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics. # Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
752 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
753 { # Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
754 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
755 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
756 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
757 { # Description of an interstitial value between transforms in an execution stage.
758 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
759 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
760 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
761 },
762 ],
763 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
764 &quot;inputSource&quot;: [ # Input sources for this stage.
765 { # Description of an input or output of an execution stage.
766 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
767 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
768 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
769 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
770 },
771 ],
772 &quot;outputSource&quot;: [ # Output sources for this stage.
773 { # Description of an input or output of an execution stage.
774 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
775 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
776 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
777 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
778 },
779 ],
780 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
781 &quot;A String&quot;,
782 ],
783 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
784 { # Description of a transform executed as part of an execution stage.
785 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
786 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
787 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
788 },
789 ],
790 },
791 ],
792 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
793 { # Description of the type, names/ids, and input/outputs for a transform.
794 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
795 &quot;A String&quot;,
796 ],
797 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
798 &quot;A String&quot;,
799 ],
800 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
801 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
802 &quot;displayData&quot;: [ # Transform-specific display data.
803 { # Data provided with a pipeline or transform to provide descriptive info.
804 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
805 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
806 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
807 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
808 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
809 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
810 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
811 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
812 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
813 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
814 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
815 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
816 },
817 ],
818 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
819 },
820 ],
821 &quot;displayData&quot;: [ # Pipeline level display data.
822 { # Data provided with a pipeline or transform to provide descriptive info.
823 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
824 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
825 &quot;key&quot;: &quot;A String&quot;, # The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system.
826 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
827 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
828 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
829 &quot;namespace&quot;: &quot;A String&quot;, # The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering.
830 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
831 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
832 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
833 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
834 &quot;shortStrValue&quot;: &quot;A String&quot;, # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
835 },
836 ],
837 },
838 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
839 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job.
840 &quot;name&quot;: &quot;A String&quot;, # The user-specified Cloud Dataflow job name. Only one Job with a given name may exist in a project at any given time. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
841 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700842 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400843 }</pre>
844</div>
845
846</body></html>