blob: f2401c90dff907c14f7bcf359fcb2d547d81599a [file] [log] [blame]
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.locations.html">locations</a> . <a href="dataflow_v1b3.projects.locations.jobs.html">jobs</a></h1>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080076<h2>Instance Methods</h2>
77<p class="toc_element">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040078 <code><a href="dataflow_v1b3.projects.locations.jobs.debug.html">debug()</a></code>
79</p>
80<p class="firstline">Returns the debug Resource.</p>
81
82<p class="toc_element">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080083 <code><a href="dataflow_v1b3.projects.locations.jobs.messages.html">messages()</a></code>
84</p>
85<p class="firstline">Returns the messages Resource.</p>
86
87<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088 <code><a href="dataflow_v1b3.projects.locations.jobs.snapshots.html">snapshots()</a></code>
89</p>
90<p class="firstline">Returns the snapshots Resource.</p>
91
92<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="dataflow_v1b3.projects.locations.jobs.stages.html">stages()</a></code>
94</p>
95<p class="firstline">Returns the stages Resource.</p>
96
97<p class="toc_element">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080098 <code><a href="dataflow_v1b3.projects.locations.jobs.workItems.html">workItems()</a></code>
99</p>
100<p class="firstline">Returns the workItems Resource.</p>
101
102<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code><a href="#close">close()</a></code></p>
104<p class="firstline">Close httplib2 connections.</p>
105<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700106 <code><a href="#create">create(projectId, location, body=None, replaceJobId=None, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107<p class="firstline">Creates a Cloud Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800108<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 <code><a href="#get">get(projectId, location, jobId, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110<p class="firstline">Gets the state of the specified Cloud Dataflow job. To get the state of a job, we recommend using `projects.locations.jobs.get` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.get` is not recommended, as you can only get the state of jobs that are running in `us-central1`.</p>
111<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700112 <code><a href="#getExecutionDetails">getExecutionDetails(projectId, location, jobId, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700113<p class="firstline">Request detailed information about the execution status of the job. EXPERIMENTAL. This API is subject to change or removal without notice.</p>
114<p class="toc_element">
115 <code><a href="#getExecutionDetails_next">getExecutionDetails_next(previous_request, previous_response)</a></code></p>
116<p class="firstline">Retrieves the next page of results.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800117<p class="toc_element">
118 <code><a href="#getMetrics">getMetrics(projectId, location, jobId, startTime=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700119<p class="firstline">Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.getMetrics` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.getMetrics` is not recommended, as you can only request the status of jobs that are running in `us-central1`.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800120<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700121 <code><a href="#list">list(projectId, location, pageToken=None, view=None, filter=None, pageSize=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700122<p class="firstline">List the jobs of a project. To list the jobs of a project in a region, we recommend using `projects.locations.jobs.list` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list the all jobs across all regions, use `projects.jobs.aggregated`. Using `projects.jobs.list` is not recommended, as you can only get the list of jobs that are running in `us-central1`.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800123<p class="toc_element">
124 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
125<p class="firstline">Retrieves the next page of results.</p>
126<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 <code><a href="#snapshot">snapshot(projectId, location, jobId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<p class="firstline">Snapshot the state of a streaming job.</p>
129<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code><a href="#update">update(projectId, location, jobId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700131<p class="firstline">Updates the state of an existing Cloud Dataflow job. To update the state of an existing job, we recommend using `projects.locations.jobs.update` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.update` is not recommended, as you can only update the state of jobs that are running in `us-central1`.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800132<h3>Method Details</h3>
133<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700134 <code class="details" id="close">close()</code>
135 <pre>Close httplib2 connections.</pre>
136</div>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800137
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700139 <code class="details" id="create">create(projectId, location, body=None, replaceJobId=None, view=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700140 <pre>Creates a Cloud Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800142Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400143 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700144 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700145 body: object, The request body.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800146 The object takes the form of:
147
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400148{ # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700149 &quot;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.
150 &quot;a_key&quot;: &quot;A String&quot;,
151 },
152 &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.
153 { # 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.
154 &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.
155 &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.
156 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
157 },
158 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
159 },
160 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700161 &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 -0700162 &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.
163 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
164 { # Metadata for a File connector used by the job.
165 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
166 },
167 ],
168 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
169 { # Metadata for a Spanner connector used by the job.
170 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700172 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
173 },
174 ],
175 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
176 { # Metadata for a BigTable connector used by the job.
177 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
178 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
179 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 },
181 ],
182 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
183 { # Metadata for a Datastore connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700184 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700185 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700186 },
187 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700188 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
189 { # Metadata for a PubSub connector used by the job.
190 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
191 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
192 },
193 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700194 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
195 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
196 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
197 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
198 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
200 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700201 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
202 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700203 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
204 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700205 },
206 ],
207 },
208 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700209 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
210 &quot;a_key&quot;: &quot;A String&quot;,
211 },
212 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
213 &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.
214 &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}
215 &quot;A String&quot;,
216 ],
217 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
218 &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.
219 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
220 },
221 &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.
222 { # 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.
223 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
224 &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.
225 &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.
226 &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.
227 &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.
228 &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).
229 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
230 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
231 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
232 },
233 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
234 &quot;a_key&quot;: &quot;A String&quot;,
235 },
236 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
237 &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.
238 &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}
239 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
240 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
241 &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;.
242 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
243 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
244 &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}
245 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
246 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
247 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
248 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
249 &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;
250 },
251 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
252 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
253 &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;
254 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
255 &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;.
256 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
257 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
258 &quot;A String&quot;,
259 ],
260 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
261 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
262 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
263 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
264 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
265 &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}
266 },
267 &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.
268 &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;.
269 &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.
270 &quot;packages&quot;: [ # Packages to be installed on workers.
271 { # 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.
272 &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/
273 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
274 },
275 ],
276 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
277 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
278 },
279 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
280 &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.
281 &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.
282 { # Defines a SDK harness container for executing Dataflow pipelines.
283 &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.
284 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
285 },
286 ],
287 &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;.
288 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
289 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
290 { # Describes the data disk used by a workflow job.
291 &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
292 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
293 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
294 },
295 ],
296 &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.
297 },
298 ],
299 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
300 &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
301 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
302 &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;.
303 &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.
304 &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}
305 &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.
306 &quot;internalExperiments&quot;: { # Experimental settings.
307 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
308 },
309 &quot;experiments&quot;: [ # The list of experiments to enable.
310 &quot;A String&quot;,
311 ],
312 &quot;userAgent&quot;: { # A description of the process that generated the request.
313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
314 },
315 &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}
316 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
317 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
318 },
319 },
320 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
321 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
322 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
323 &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.
324 &quot;A String&quot;,
325 ],
326 },
327 },
328 },
329 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
330 { # A message describing the state of a particular execution stage.
331 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
332 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
333 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
334 },
335 ],
336 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
337 &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.
338 &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.
339 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
340 &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.
341 &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.
342 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
343 &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.
344 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
345 { # 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.
346 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
347 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
348 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
349 { # Description of an interstitial value between transforms in an execution stage.
350 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
351 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
352 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
353 },
354 ],
355 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
356 &quot;inputSource&quot;: [ # Input sources for this stage.
357 { # Description of an input or output of an execution stage.
358 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
359 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
360 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
361 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
362 },
363 ],
364 &quot;outputSource&quot;: [ # Output sources for this stage.
365 { # Description of an input or output of an execution stage.
366 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
367 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
368 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
369 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
370 },
371 ],
372 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
373 &quot;A String&quot;,
374 ],
375 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
376 { # Description of a transform executed as part of an execution stage.
377 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
378 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
379 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
380 },
381 ],
382 },
383 ],
384 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
385 { # Description of the type, names/ids, and input/outputs for a transform.
386 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
387 &quot;A String&quot;,
388 ],
389 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
390 &quot;A String&quot;,
391 ],
392 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
393 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
394 &quot;displayData&quot;: [ # Transform-specific display data.
395 { # Data provided with a pipeline or transform to provide descriptive info.
396 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
397 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
398 &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.
399 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
400 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
401 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
402 &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.
403 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
404 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
405 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
406 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
407 &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.
408 },
409 ],
410 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
411 },
412 ],
413 &quot;displayData&quot;: [ # Pipeline level display data.
414 { # Data provided with a pipeline or transform to provide descriptive info.
415 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
416 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
417 &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.
418 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
419 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
420 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
421 &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.
422 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
423 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
424 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
425 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
426 &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.
427 },
428 ],
429 },
430 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
431 &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.
432 &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])?`
433 &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 -0700434}
435
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700436 replaceJobId: string, Deprecated. This field is now in the Job message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700437 view: string, The level of information requested in response.
438 Allowed values
439 JOB_VIEW_UNKNOWN - The job view to return isn&#x27;t specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.
440 JOB_VIEW_SUMMARY - Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.
441 JOB_VIEW_ALL - Request all information available for this job.
442 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700443 x__xgafv: string, V1 error format.
444 Allowed values
445 1 - v1 error format
446 2 - v2 error format
447
448Returns:
449 An object of the form:
450
451 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700452 &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 -0700453 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800454 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700455 &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.
456 { # 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.
457 &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.
458 &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.
459 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
460 },
461 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
462 },
463 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700464 &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 -0700465 &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.
466 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
467 { # Metadata for a File connector used by the job.
468 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
469 },
470 ],
471 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
472 { # Metadata for a Spanner connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700473 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700474 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700475 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
476 },
477 ],
478 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
479 { # Metadata for a BigTable connector used by the job.
480 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
481 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
482 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700483 },
484 ],
485 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
486 { # Metadata for a Datastore connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700487 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700488 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700489 },
490 ],
491 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
492 { # Metadata for a PubSub connector used by the job.
493 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
494 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
495 },
496 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700497 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
498 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
499 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
500 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
501 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700502 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
503 { # Metadata for a BigQuery connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700504 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
505 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700506 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
507 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700508 },
509 ],
510 },
511 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700512 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
513 &quot;a_key&quot;: &quot;A String&quot;,
514 },
515 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
516 &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.
517 &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}
518 &quot;A String&quot;,
519 ],
520 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
521 &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.
522 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
523 },
524 &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.
525 { # 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.
526 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
527 &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.
528 &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.
529 &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.
530 &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.
531 &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).
532 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
533 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
534 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
535 },
536 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
537 &quot;a_key&quot;: &quot;A String&quot;,
538 },
539 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
540 &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.
541 &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}
542 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
543 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
544 &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;.
545 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
546 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
547 &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}
548 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
549 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
550 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
551 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
552 &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;
553 },
554 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
555 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
556 &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;
557 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
558 &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;.
559 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
560 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
561 &quot;A String&quot;,
562 ],
563 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
564 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
565 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
566 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
567 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
568 &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}
569 },
570 &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.
571 &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;.
572 &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.
573 &quot;packages&quot;: [ # Packages to be installed on workers.
574 { # 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.
575 &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/
576 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
577 },
578 ],
579 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
580 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
581 },
582 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
583 &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.
584 &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.
585 { # Defines a SDK harness container for executing Dataflow pipelines.
586 &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.
587 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
588 },
589 ],
590 &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;.
591 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
592 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
593 { # Describes the data disk used by a workflow job.
594 &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
595 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
596 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
597 },
598 ],
599 &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.
600 },
601 ],
602 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
603 &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
604 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
605 &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;.
606 &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.
607 &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}
608 &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.
609 &quot;internalExperiments&quot;: { # Experimental settings.
610 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
611 },
612 &quot;experiments&quot;: [ # The list of experiments to enable.
613 &quot;A String&quot;,
614 ],
615 &quot;userAgent&quot;: { # A description of the process that generated the request.
616 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
617 },
618 &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}
619 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
620 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
621 },
622 },
623 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
624 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
625 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
626 &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.
627 &quot;A String&quot;,
628 ],
629 },
630 },
631 },
632 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
633 { # A message describing the state of a particular execution stage.
634 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
635 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
636 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
637 },
638 ],
639 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
640 &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.
641 &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.
642 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
643 &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.
644 &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.
645 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
646 &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.
647 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
648 { # 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.
649 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
650 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
651 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
652 { # Description of an interstitial value between transforms in an execution stage.
653 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
654 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
655 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
656 },
657 ],
658 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
659 &quot;inputSource&quot;: [ # Input sources for this stage.
660 { # Description of an input or output of an execution stage.
661 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
662 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
663 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
664 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
665 },
666 ],
667 &quot;outputSource&quot;: [ # Output sources for this stage.
668 { # Description of an input or output of an execution stage.
669 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
670 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
671 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
672 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
673 },
674 ],
675 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
676 &quot;A String&quot;,
677 ],
678 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
679 { # Description of a transform executed as part of an execution stage.
680 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
681 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
682 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
683 },
684 ],
685 },
686 ],
687 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
688 { # Description of the type, names/ids, and input/outputs for a transform.
689 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
690 &quot;A String&quot;,
691 ],
692 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
693 &quot;A String&quot;,
694 ],
695 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
696 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
697 &quot;displayData&quot;: [ # Transform-specific display data.
698 { # Data provided with a pipeline or transform to provide descriptive info.
699 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
700 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
701 &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.
702 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
703 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
704 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
705 &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.
706 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
707 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
708 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
709 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
710 &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.
711 },
712 ],
713 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
714 },
715 ],
716 &quot;displayData&quot;: [ # Pipeline level display data.
717 { # Data provided with a pipeline or transform to provide descriptive info.
718 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
719 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
720 &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.
721 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
722 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
723 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
724 &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.
725 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
726 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
727 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
728 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
729 &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.
730 },
731 ],
732 },
733 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
734 &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.
735 &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])?`
736 &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 -0700737 }</pre>
738</div>
739
740<div class="method">
741 <code class="details" id="get">get(projectId, location, jobId, view=None, x__xgafv=None)</code>
742 <pre>Gets the state of the specified Cloud Dataflow job. To get the state of a job, we recommend using `projects.locations.jobs.get` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.get` is not recommended, as you can only get the state of jobs that are running in `us-central1`.
743
744Args:
745 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
746 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. (required)
747 jobId: string, The job ID. (required)
748 view: string, The level of information requested in response.
749 Allowed values
750 JOB_VIEW_UNKNOWN - The job view to return isn&#x27;t specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.
751 JOB_VIEW_SUMMARY - Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.
752 JOB_VIEW_ALL - Request all information available for this job.
753 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
754 x__xgafv: string, V1 error format.
755 Allowed values
756 1 - v1 error format
757 2 - v2 error format
758
759Returns:
760 An object of the form:
761
762 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700763 &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.
764 &quot;a_key&quot;: &quot;A String&quot;,
765 },
766 &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.
767 { # 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.
768 &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.
769 &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.
770 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
771 },
772 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
773 },
774 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700775 &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 -0700776 &quot;jobMetadata&quot;: { # Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view. # This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700777 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
778 { # Metadata for a File connector used by the job.
779 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
780 },
781 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700782 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
783 { # Metadata for a Spanner connector used by the job.
784 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700785 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700786 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
787 },
788 ],
789 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
790 { # Metadata for a BigTable connector used by the job.
791 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
792 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
793 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700794 },
795 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700796 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
797 { # Metadata for a Datastore connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700798 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700799 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700800 },
801 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700802 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
803 { # Metadata for a PubSub connector used by the job.
804 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
805 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
806 },
807 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700808 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
809 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
810 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
811 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
812 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700813 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
814 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700815 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
816 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700817 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
818 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700819 },
820 ],
821 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700822 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700823 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
824 &quot;a_key&quot;: &quot;A String&quot;,
825 },
826 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
827 &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.
828 &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}
829 &quot;A String&quot;,
830 ],
831 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
832 &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.
833 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
834 },
835 &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.
836 { # 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.
837 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
838 &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.
839 &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.
840 &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.
841 &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.
842 &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).
843 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
844 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
845 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
846 },
847 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
848 &quot;a_key&quot;: &quot;A String&quot;,
849 },
850 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
851 &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.
852 &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}
853 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
854 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
855 &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;.
856 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
857 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
858 &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}
859 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
860 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
861 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
862 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
863 &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;
864 },
865 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
866 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
867 &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;
868 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
869 &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;.
870 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
871 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
872 &quot;A String&quot;,
873 ],
874 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
875 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
876 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
877 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
878 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
879 &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}
880 },
881 &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.
882 &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;.
883 &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.
884 &quot;packages&quot;: [ # Packages to be installed on workers.
885 { # 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.
886 &quot;location&quot;: &quot;A String&quot;, # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
887 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
888 },
889 ],
890 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
891 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
892 },
893 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
894 &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.
895 &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.
896 { # Defines a SDK harness container for executing Dataflow pipelines.
897 &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.
898 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
899 },
900 ],
901 &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;.
902 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
903 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
904 { # Describes the data disk used by a workflow job.
905 &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
906 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
907 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
908 },
909 ],
910 &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.
911 },
912 ],
913 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
914 &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
915 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
916 &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;.
917 &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.
918 &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}
919 &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.
920 &quot;internalExperiments&quot;: { # Experimental settings.
921 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
922 },
923 &quot;experiments&quot;: [ # The list of experiments to enable.
924 &quot;A String&quot;,
925 ],
926 &quot;userAgent&quot;: { # A description of the process that generated the request.
927 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
928 },
929 &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}
930 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
931 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
932 },
933 },
934 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
935 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
936 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
937 &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.
938 &quot;A String&quot;,
939 ],
940 },
941 },
942 },
943 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
944 { # A message describing the state of a particular execution stage.
945 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
946 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
947 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
948 },
949 ],
950 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
951 &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.
952 &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.
953 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
954 &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.
955 &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.
956 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
957 &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.
958 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
959 { # 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.
960 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
961 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
962 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
963 { # Description of an interstitial value between transforms in an execution stage.
964 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
965 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
966 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
967 },
968 ],
969 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
970 &quot;inputSource&quot;: [ # Input sources for this stage.
971 { # Description of an input or output of an execution stage.
972 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
973 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
974 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
975 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
976 },
977 ],
978 &quot;outputSource&quot;: [ # Output sources for this stage.
979 { # Description of an input or output of an execution stage.
980 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
981 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
982 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
983 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
984 },
985 ],
986 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
987 &quot;A String&quot;,
988 ],
989 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
990 { # Description of a transform executed as part of an execution stage.
991 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
992 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
993 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
994 },
995 ],
996 },
997 ],
998 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
999 { # Description of the type, names/ids, and input/outputs for a transform.
1000 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1001 &quot;A String&quot;,
1002 ],
1003 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1004 &quot;A String&quot;,
1005 ],
1006 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1007 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1008 &quot;displayData&quot;: [ # Transform-specific display data.
1009 { # Data provided with a pipeline or transform to provide descriptive info.
1010 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1011 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1012 &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.
1013 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1014 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1015 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1016 &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.
1017 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1018 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1019 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1020 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1021 &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.
1022 },
1023 ],
1024 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1025 },
1026 ],
1027 &quot;displayData&quot;: [ # Pipeline level display data.
1028 { # Data provided with a pipeline or transform to provide descriptive info.
1029 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1030 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1031 &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.
1032 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1033 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1034 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1035 &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.
1036 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1037 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1038 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1039 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1040 &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.
1041 },
1042 ],
1043 },
1044 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1045 &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.
1046 &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])?`
1047 &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 -07001048 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001049</div>
1050
1051<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001052 <code class="details" id="getExecutionDetails">getExecutionDetails(projectId, location, jobId, pageToken=None, pageSize=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001053 <pre>Request detailed information about the execution status of the job. EXPERIMENTAL. This API is subject to change or removal without notice.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001054
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001055Args:
1056 projectId: string, A project id. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001057 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. (required)
1058 jobId: string, The job to get execution details for. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001059 pageToken: string, If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001060 pageSize: integer, If specified, determines the maximum number of stages to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of results.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001061 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001062 Allowed values
1063 1 - v1 error format
1064 2 - v2 error format
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001065
1066Returns:
1067 An object of the form:
1068
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001069 { # Information about the execution of a job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001070 &quot;stages&quot;: [ # The stages of the job execution.
1071 { # Information about a particular execution stage of a job.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001072 &quot;endTime&quot;: &quot;A String&quot;, # End time of this stage. If the work item is completed, this is the actual end time of the stage. Otherwise, it is the predicted end time.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001073 &quot;progress&quot;: { # Information about the progress of some component of job execution. # Progress for this stage. Only applicable to Batch jobs.
1074 &quot;currentProgress&quot;: 3.14, # The current progress of the component, in the range [0,1].
1075 &quot;dataPoints&quot;: [ # History of progress for the component. Points are sorted by time.
1076 { # A point in the timeseries.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001077 &quot;time&quot;: &quot;A String&quot;, # The timestamp of the point.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001078 &quot;value&quot;: 3.14, # The value of the point.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001079 },
1080 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001081 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001082 &quot;startTime&quot;: &quot;A String&quot;, # Start time of this stage.
1083 &quot;state&quot;: &quot;A String&quot;, # State of this stage.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001084 &quot;metrics&quot;: [ # Metrics for this stage.
1085 { # Describes the state of a metric.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001086 &quot;internal&quot;: &quot;&quot;, # Worker-computed aggregate value for internal use by the Dataflow service.
1087 &quot;distribution&quot;: &quot;&quot;, # A struct value describing properties of a distribution of numeric values.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001088 &quot;meanCount&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Mean&quot; aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001089 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.
1090 &quot;gauge&quot;: &quot;&quot;, # A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.
1091 &quot;set&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Set&quot; aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric&#x27;s type. All Values in the list must be of the same type.
1092 &quot;scalar&quot;: &quot;&quot;, # Worker-computed aggregate value for aggregation kinds &quot;Sum&quot;, &quot;Max&quot;, &quot;Min&quot;, &quot;And&quot;, and &quot;Or&quot;. The possible value types are Long, Double, and Boolean.
1093 &quot;meanSum&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Mean&quot; aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.
1094 &quot;cumulative&quot;: True or False, # True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001095 &quot;name&quot;: { # Identifies a metric, by describing the source which generated the metric. # Name of the metric.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001096 &quot;origin&quot;: &quot;A String&quot;, # Origin (namespace) of metric name. May be blank for user-define metrics; will be &quot;dataflow&quot; for metrics defined by the Dataflow service or SDK.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001097 &quot;name&quot;: &quot;A String&quot;, # Worker-defined metric name.
1098 &quot;context&quot;: { # Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context[&#x27;step&#x27;] = . Counters associated with PCollections in the SDK will have context[&#x27;pcollection&#x27;] = .
1099 &quot;a_key&quot;: &quot;A String&quot;,
1100 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001101 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001102 &quot;kind&quot;: &quot;A String&quot;, # Metric aggregation kind. The possible metric aggregation kinds are &quot;Sum&quot;, &quot;Max&quot;, &quot;Min&quot;, &quot;Mean&quot;, &quot;Set&quot;, &quot;And&quot;, &quot;Or&quot;, and &quot;Distribution&quot;. The specified aggregation kind is case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001103 },
1104 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001105 &quot;stageId&quot;: &quot;A String&quot;, # ID of this stage
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001106 },
1107 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001108 &quot;nextPageToken&quot;: &quot;A String&quot;, # If present, this response does not contain all requested tasks. To obtain the next page of results, repeat the request with page_token set to this value.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001109 }</pre>
1110</div>
1111
1112<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001113 <code class="details" id="getExecutionDetails_next">getExecutionDetails_next(previous_request, previous_response)</code>
1114 <pre>Retrieves the next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001115
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001116Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001117 previous_request: The request for the previous page. (required)
1118 previous_response: The response from the request for the previous page. (required)
1119
1120Returns:
1121 A request object that you can call &#x27;execute()&#x27; on to request the next
1122 page. Returns None if there are no more items in the collection.
1123 </pre>
1124</div>
1125
1126<div class="method">
1127 <code class="details" id="getMetrics">getMetrics(projectId, location, jobId, startTime=None, x__xgafv=None)</code>
1128 <pre>Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.getMetrics` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.getMetrics` is not recommended, as you can only request the status of jobs that are running in `us-central1`.
1129
1130Args:
1131 projectId: string, A project id. (required)
1132 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. (required)
1133 jobId: string, The job to get metrics for. (required)
1134 startTime: string, Return only metric data that has changed since this time. Default is to return all information about all metrics for the job.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001135 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001136 Allowed values
1137 1 - v1 error format
1138 2 - v2 error format
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001139
1140Returns:
1141 An object of the form:
1142
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001143 { # JobMetrics contains a collection of metrics describing the detailed progress of a Dataflow job. Metrics correspond to user-defined and system-defined metrics in the job. This resource captures only the most recent values of each metric; time-series data can be queried for them (under the same metric names) from Cloud Monitoring.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001144 &quot;metricTime&quot;: &quot;A String&quot;, # Timestamp as of which metric values are current.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001145 &quot;metrics&quot;: [ # All metrics for this job.
1146 { # Describes the state of a metric.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001147 &quot;internal&quot;: &quot;&quot;, # Worker-computed aggregate value for internal use by the Dataflow service.
1148 &quot;distribution&quot;: &quot;&quot;, # A struct value describing properties of a distribution of numeric values.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001149 &quot;meanCount&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Mean&quot; aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001150 &quot;updateTime&quot;: &quot;A String&quot;, # Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.
1151 &quot;gauge&quot;: &quot;&quot;, # A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.
1152 &quot;set&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Set&quot; aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric&#x27;s type. All Values in the list must be of the same type.
1153 &quot;scalar&quot;: &quot;&quot;, # Worker-computed aggregate value for aggregation kinds &quot;Sum&quot;, &quot;Max&quot;, &quot;Min&quot;, &quot;And&quot;, and &quot;Or&quot;. The possible value types are Long, Double, and Boolean.
1154 &quot;meanSum&quot;: &quot;&quot;, # Worker-computed aggregate value for the &quot;Mean&quot; aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.
1155 &quot;cumulative&quot;: True or False, # True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001156 &quot;name&quot;: { # Identifies a metric, by describing the source which generated the metric. # Name of the metric.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001157 &quot;origin&quot;: &quot;A String&quot;, # Origin (namespace) of metric name. May be blank for user-define metrics; will be &quot;dataflow&quot; for metrics defined by the Dataflow service or SDK.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001158 &quot;name&quot;: &quot;A String&quot;, # Worker-defined metric name.
1159 &quot;context&quot;: { # Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context[&#x27;step&#x27;] = . Counters associated with PCollections in the SDK will have context[&#x27;pcollection&#x27;] = .
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001160 &quot;a_key&quot;: &quot;A String&quot;,
1161 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001162 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001163 &quot;kind&quot;: &quot;A String&quot;, # Metric aggregation kind. The possible metric aggregation kinds are &quot;Sum&quot;, &quot;Max&quot;, &quot;Min&quot;, &quot;Mean&quot;, &quot;Set&quot;, &quot;And&quot;, &quot;Or&quot;, and &quot;Distribution&quot;. The specified aggregation kind is case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001164 },
1165 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001166 }</pre>
1167</div>
1168
1169<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001170 <code class="details" id="list">list(projectId, location, pageToken=None, view=None, filter=None, pageSize=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001171 <pre>List the jobs of a project. To list the jobs of a project in a region, we recommend using `projects.locations.jobs.list` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list the all jobs across all regions, use `projects.jobs.aggregated`. Using `projects.jobs.list` is not recommended, as you can only get the list of jobs that are running in `us-central1`.
1172
1173Args:
1174 projectId: string, The project which owns the jobs. (required)
1175 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001176 pageToken: string, Set this to the &#x27;next_page_token&#x27; field of a previous response to request additional results in a long list.
1177 view: string, Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
1178 Allowed values
1179 JOB_VIEW_UNKNOWN - The job view to return isn&#x27;t specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.
1180 JOB_VIEW_SUMMARY - Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.
1181 JOB_VIEW_ALL - Request all information available for this job.
1182 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
1183 filter: string, The kind of filter to use.
1184 Allowed values
1185 UNKNOWN - The filter isn&#x27;t specified, or is unknown. This returns all jobs ordered on descending `JobUuid`.
1186 ALL - Returns all running jobs first ordered on creation timestamp, then returns all terminated jobs ordered on the termination timestamp.
1187 TERMINATED - Filters the jobs that have a terminated state, ordered on the termination timestamp. Example terminated states: `JOB_STATE_STOPPED`, `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc.
1188 ACTIVE - Filters the jobs that are running ordered on the creation timestamp.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001189 pageSize: integer, If there are many jobs, limit response to at most this many. The actual number of jobs returned will be the lesser of max_responses and an unspecified server-defined limit.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001190 x__xgafv: string, V1 error format.
1191 Allowed values
1192 1 - v1 error format
1193 2 - v2 error format
1194
1195Returns:
1196 An object of the form:
1197
1198 { # Response to a request to list Cloud Dataflow jobs in a project. This might be a partial response, depending on the page size in the ListJobsRequest. However, if the project does not have any jobs, an instance of ListJobsResponse is not returned and the requests&#x27;s response body is empty {}.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001199 &quot;nextPageToken&quot;: &quot;A String&quot;, # Set if there may be more results than fit in this response.
1200 &quot;failedLocation&quot;: [ # Zero or more messages describing the [regional endpoints] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond.
1201 { # Indicates which [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed to respond to a request for data.
1202 &quot;name&quot;: &quot;A String&quot;, # The name of the [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond.
1203 },
1204 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001205 &quot;jobs&quot;: [ # A subset of the requested job information.
1206 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001207 &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.
1208 &quot;a_key&quot;: &quot;A String&quot;,
1209 },
1210 &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.
1211 { # 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.
1212 &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.
1213 &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.
1214 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1215 },
1216 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1217 },
1218 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001219 &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 -07001220 &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.
1221 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1222 { # Metadata for a File connector used by the job.
1223 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1224 },
1225 ],
1226 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1227 { # Metadata for a Spanner connector used by the job.
1228 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001229 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001230 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1231 },
1232 ],
1233 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1234 { # Metadata for a BigTable connector used by the job.
1235 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1236 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1237 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001238 },
1239 ],
1240 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1241 { # Metadata for a Datastore connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001242 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001243 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001244 },
1245 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001246 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1247 { # Metadata for a PubSub connector used by the job.
1248 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1249 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1250 },
1251 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001252 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1253 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1254 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1255 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1256 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001257 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1258 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001259 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1260 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001261 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1262 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001263 },
1264 ],
1265 },
1266 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001267 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
1268 &quot;a_key&quot;: &quot;A String&quot;,
1269 },
1270 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1271 &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.
1272 &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}
1273 &quot;A String&quot;,
1274 ],
1275 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
1276 &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.
1277 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1278 },
1279 &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.
1280 { # 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.
1281 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
1282 &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.
1283 &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.
1284 &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.
1285 &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.
1286 &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).
1287 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1288 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1289 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1290 },
1291 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1292 &quot;a_key&quot;: &quot;A String&quot;,
1293 },
1294 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
1295 &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.
1296 &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}
1297 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1298 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1299 &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;.
1300 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1301 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1302 &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}
1303 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1304 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
1305 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1306 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
1307 &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;
1308 },
1309 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1310 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1311 &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;
1312 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1313 &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;.
1314 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1315 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
1316 &quot;A String&quot;,
1317 ],
1318 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1319 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1320 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1321 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
1322 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1323 &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}
1324 },
1325 &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.
1326 &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;.
1327 &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.
1328 &quot;packages&quot;: [ # Packages to be installed on workers.
1329 { # 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.
1330 &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/
1331 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1332 },
1333 ],
1334 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1335 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1336 },
1337 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1338 &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.
1339 &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.
1340 { # Defines a SDK harness container for executing Dataflow pipelines.
1341 &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.
1342 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
1343 },
1344 ],
1345 &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;.
1346 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
1347 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
1348 { # Describes the data disk used by a workflow job.
1349 &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
1350 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1351 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
1352 },
1353 ],
1354 &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.
1355 },
1356 ],
1357 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
1358 &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
1359 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
1360 &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;.
1361 &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.
1362 &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}
1363 &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.
1364 &quot;internalExperiments&quot;: { # Experimental settings.
1365 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1366 },
1367 &quot;experiments&quot;: [ # The list of experiments to enable.
1368 &quot;A String&quot;,
1369 ],
1370 &quot;userAgent&quot;: { # A description of the process that generated the request.
1371 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1372 },
1373 &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}
1374 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
1375 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1376 },
1377 },
1378 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
1379 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
1380 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
1381 &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.
1382 &quot;A String&quot;,
1383 ],
1384 },
1385 },
1386 },
1387 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1388 { # A message describing the state of a particular execution stage.
1389 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
1390 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
1391 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
1392 },
1393 ],
1394 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
1395 &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.
1396 &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.
1397 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
1398 &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.
1399 &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.
1400 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
1401 &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.
1402 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
1403 { # 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.
1404 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
1405 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
1406 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
1407 { # Description of an interstitial value between transforms in an execution stage.
1408 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1409 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1410 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1411 },
1412 ],
1413 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
1414 &quot;inputSource&quot;: [ # Input sources for this stage.
1415 { # Description of an input or output of an execution stage.
1416 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1417 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1418 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1419 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1420 },
1421 ],
1422 &quot;outputSource&quot;: [ # Output sources for this stage.
1423 { # Description of an input or output of an execution stage.
1424 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1425 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1426 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1427 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1428 },
1429 ],
1430 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
1431 &quot;A String&quot;,
1432 ],
1433 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1434 { # Description of a transform executed as part of an execution stage.
1435 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1436 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
1437 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1438 },
1439 ],
1440 },
1441 ],
1442 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1443 { # Description of the type, names/ids, and input/outputs for a transform.
1444 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1445 &quot;A String&quot;,
1446 ],
1447 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1448 &quot;A String&quot;,
1449 ],
1450 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1451 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1452 &quot;displayData&quot;: [ # Transform-specific display data.
1453 { # Data provided with a pipeline or transform to provide descriptive info.
1454 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1455 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1456 &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.
1457 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1458 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1459 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1460 &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.
1461 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1462 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1463 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1464 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1465 &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.
1466 },
1467 ],
1468 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1469 },
1470 ],
1471 &quot;displayData&quot;: [ # Pipeline level display data.
1472 { # Data provided with a pipeline or transform to provide descriptive info.
1473 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1474 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1475 &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.
1476 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1477 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1478 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1479 &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.
1480 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1481 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1482 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1483 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1484 &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.
1485 },
1486 ],
1487 },
1488 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1489 &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.
1490 &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])?`
1491 &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 -07001492 },
1493 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001494 }</pre>
1495</div>
1496
1497<div class="method">
1498 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1499 <pre>Retrieves the next page of results.
1500
1501Args:
1502 previous_request: The request for the previous page. (required)
1503 previous_response: The response from the request for the previous page. (required)
1504
1505Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001506 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001507 page. Returns None if there are no more items in the collection.
1508 </pre>
1509</div>
1510
1511<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001512 <code class="details" id="snapshot">snapshot(projectId, location, jobId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001513 <pre>Snapshot the state of a streaming job.
1514
1515Args:
1516 projectId: string, The project which owns the job to be snapshotted. (required)
1517 location: string, The location that contains this job. (required)
1518 jobId: string, The job to be snapshotted. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001519 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001520 The object takes the form of:
1521
1522{ # Request to create a snapshot of a job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001523 &quot;ttl&quot;: &quot;A String&quot;, # TTL for the snapshot.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001524 &quot;snapshotSources&quot;: True or False, # If true, perform snapshots for sources which support this.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001525 &quot;location&quot;: &quot;A String&quot;, # The location that contains this job.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001526 &quot;description&quot;: &quot;A String&quot;, # User specified description of the snapshot. Maybe empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001527 }
1528
1529 x__xgafv: string, V1 error format.
1530 Allowed values
1531 1 - v1 error format
1532 2 - v2 error format
1533
1534Returns:
1535 An object of the form:
1536
1537 { # Represents a snapshot of a job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001538 &quot;pubsubMetadata&quot;: [ # PubSub snapshot metadata.
Dan O'Mearadd494642020-05-01 07:42:23 -07001539 { # Represents a Pubsub snapshot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001540 &quot;topicName&quot;: &quot;A String&quot;, # The name of the Pubsub topic.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001541 &quot;expireTime&quot;: &quot;A String&quot;, # The expire time of the Pubsub snapshot.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001542 &quot;snapshotName&quot;: &quot;A String&quot;, # The name of the Pubsub snapshot.
Dan O'Mearadd494642020-05-01 07:42:23 -07001543 },
1544 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001545 &quot;creationTime&quot;: &quot;A String&quot;, # The time this snapshot was created.
1546 &quot;projectId&quot;: &quot;A String&quot;, # The project this snapshot belongs to.
1547 &quot;description&quot;: &quot;A String&quot;, # User specified description of the snapshot. Maybe empty.
1548 &quot;sourceJobId&quot;: &quot;A String&quot;, # The job this snapshot was created from.
1549 &quot;ttl&quot;: &quot;A String&quot;, # The time after which this snapshot will be automatically deleted.
1550 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this snapshot.
1551 &quot;diskSizeBytes&quot;: &quot;A String&quot;, # The disk byte size of the snapshot. Only available for snapshots in READY state.
1552 &quot;state&quot;: &quot;A String&quot;, # State of the snapshot.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001553 }</pre>
1554</div>
1555
1556<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001557 <code class="details" id="update">update(projectId, location, jobId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001558 <pre>Updates the state of an existing Cloud Dataflow job. To update the state of an existing job, we recommend using `projects.locations.jobs.update` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.update` is not recommended, as you can only update the state of jobs that are running in `us-central1`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001559
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001560Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001561 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001562 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001563 jobId: string, The job ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001564 body: object, The request body.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001565 The object takes the form of:
1566
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001567{ # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001568 &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.
1569 &quot;a_key&quot;: &quot;A String&quot;,
1570 },
1571 &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.
1572 { # 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.
1573 &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.
1574 &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.
1575 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1576 },
1577 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1578 },
1579 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001580 &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 -07001581 &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.
1582 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1583 { # Metadata for a File connector used by the job.
1584 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1585 },
1586 ],
1587 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1588 { # Metadata for a Spanner connector used by the job.
1589 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001590 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001591 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1592 },
1593 ],
1594 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1595 { # Metadata for a BigTable connector used by the job.
1596 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1597 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1598 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001599 },
1600 ],
1601 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1602 { # Metadata for a Datastore connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001603 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001604 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001605 },
1606 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001607 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1608 { # Metadata for a PubSub connector used by the job.
1609 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1610 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1611 },
1612 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001613 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1614 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1615 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1616 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1617 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001618 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1619 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001620 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1621 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001622 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1623 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001624 },
1625 ],
1626 },
1627 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001628 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
1629 &quot;a_key&quot;: &quot;A String&quot;,
1630 },
1631 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1632 &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.
1633 &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}
1634 &quot;A String&quot;,
1635 ],
1636 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
1637 &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.
1638 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1639 },
1640 &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.
1641 { # 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.
1642 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
1643 &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.
1644 &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.
1645 &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.
1646 &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.
1647 &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).
1648 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1649 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1650 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1651 },
1652 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1653 &quot;a_key&quot;: &quot;A String&quot;,
1654 },
1655 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
1656 &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.
1657 &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}
1658 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1659 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1660 &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;.
1661 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1662 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1663 &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}
1664 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1665 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
1666 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1667 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
1668 &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;
1669 },
1670 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1671 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1672 &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;
1673 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1674 &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;.
1675 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1676 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
1677 &quot;A String&quot;,
1678 ],
1679 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1680 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1681 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1682 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
1683 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1684 &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}
1685 },
1686 &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.
1687 &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;.
1688 &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.
1689 &quot;packages&quot;: [ # Packages to be installed on workers.
1690 { # 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.
1691 &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/
1692 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1693 },
1694 ],
1695 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1696 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1697 },
1698 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1699 &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.
1700 &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.
1701 { # Defines a SDK harness container for executing Dataflow pipelines.
1702 &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.
1703 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
1704 },
1705 ],
1706 &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;.
1707 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
1708 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
1709 { # Describes the data disk used by a workflow job.
1710 &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
1711 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1712 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
1713 },
1714 ],
1715 &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.
1716 },
1717 ],
1718 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
1719 &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
1720 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
1721 &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;.
1722 &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.
1723 &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}
1724 &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.
1725 &quot;internalExperiments&quot;: { # Experimental settings.
1726 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1727 },
1728 &quot;experiments&quot;: [ # The list of experiments to enable.
1729 &quot;A String&quot;,
1730 ],
1731 &quot;userAgent&quot;: { # A description of the process that generated the request.
1732 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1733 },
1734 &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}
1735 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
1736 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1737 },
1738 },
1739 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
1740 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
1741 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
1742 &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.
1743 &quot;A String&quot;,
1744 ],
1745 },
1746 },
1747 },
1748 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1749 { # A message describing the state of a particular execution stage.
1750 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
1751 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
1752 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
1753 },
1754 ],
1755 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
1756 &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.
1757 &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.
1758 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
1759 &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.
1760 &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.
1761 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
1762 &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.
1763 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
1764 { # 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.
1765 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
1766 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
1767 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
1768 { # Description of an interstitial value between transforms in an execution stage.
1769 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1770 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1771 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1772 },
1773 ],
1774 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
1775 &quot;inputSource&quot;: [ # Input sources for this stage.
1776 { # Description of an input or output of an execution stage.
1777 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1778 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1779 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1780 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1781 },
1782 ],
1783 &quot;outputSource&quot;: [ # Output sources for this stage.
1784 { # Description of an input or output of an execution stage.
1785 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1786 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1787 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1788 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1789 },
1790 ],
1791 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
1792 &quot;A String&quot;,
1793 ],
1794 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1795 { # Description of a transform executed as part of an execution stage.
1796 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1797 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
1798 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1799 },
1800 ],
1801 },
1802 ],
1803 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1804 { # Description of the type, names/ids, and input/outputs for a transform.
1805 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1806 &quot;A String&quot;,
1807 ],
1808 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1809 &quot;A String&quot;,
1810 ],
1811 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1812 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1813 &quot;displayData&quot;: [ # Transform-specific display data.
1814 { # Data provided with a pipeline or transform to provide descriptive info.
1815 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1816 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1817 &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.
1818 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1819 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1820 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1821 &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.
1822 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1823 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1824 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1825 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1826 &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.
1827 },
1828 ],
1829 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1830 },
1831 ],
1832 &quot;displayData&quot;: [ # Pipeline level display data.
1833 { # Data provided with a pipeline or transform to provide descriptive info.
1834 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1835 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1836 &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.
1837 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1838 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1839 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1840 &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.
1841 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1842 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1843 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1844 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1845 &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.
1846 },
1847 ],
1848 },
1849 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1850 &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.
1851 &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])?`
1852 &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 -07001853}
1854
1855 x__xgafv: string, V1 error format.
1856 Allowed values
1857 1 - v1 error format
1858 2 - v2 error format
1859
1860Returns:
1861 An object of the form:
1862
1863 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001864 &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 -07001865 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001866 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001867 &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.
1868 { # 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.
1869 &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.
1870 &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.
1871 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1872 },
1873 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1874 },
1875 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001876 &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 -07001877 &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.
1878 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1879 { # Metadata for a File connector used by the job.
1880 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1881 },
1882 ],
1883 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1884 { # Metadata for a Spanner connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001885 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001886 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001887 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1888 },
1889 ],
1890 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1891 { # Metadata for a BigTable connector used by the job.
1892 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1893 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1894 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001895 },
1896 ],
1897 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1898 { # Metadata for a Datastore connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001899 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001900 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001901 },
1902 ],
1903 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1904 { # Metadata for a PubSub connector used by the job.
1905 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1906 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1907 },
1908 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001909 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1910 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1911 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1912 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1913 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001914 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1915 { # Metadata for a BigQuery connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001916 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1917 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001918 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1919 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001920 },
1921 ],
1922 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001923 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001924 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
1925 &quot;a_key&quot;: &quot;A String&quot;,
1926 },
1927 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1928 &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.
1929 &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}
1930 &quot;A String&quot;,
1931 ],
1932 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
1933 &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.
1934 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1935 },
1936 &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.
1937 { # 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.
1938 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
1939 &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.
1940 &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.
1941 &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.
1942 &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.
1943 &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).
1944 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1945 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1946 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1947 },
1948 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1949 &quot;a_key&quot;: &quot;A String&quot;,
1950 },
1951 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
1952 &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.
1953 &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}
1954 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1955 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1956 &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;.
1957 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1958 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1959 &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}
1960 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1961 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
1962 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1963 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
1964 &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;
1965 },
1966 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1967 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1968 &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;
1969 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1970 &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;.
1971 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1972 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
1973 &quot;A String&quot;,
1974 ],
1975 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1976 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1977 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1978 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
1979 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1980 &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}
1981 },
1982 &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.
1983 &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;.
1984 &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.
1985 &quot;packages&quot;: [ # Packages to be installed on workers.
1986 { # 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.
1987 &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/
1988 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1989 },
1990 ],
1991 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1992 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1993 },
1994 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1995 &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.
1996 &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.
1997 { # Defines a SDK harness container for executing Dataflow pipelines.
1998 &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.
1999 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
2000 },
2001 ],
2002 &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;.
2003 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
2004 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
2005 { # Describes the data disk used by a workflow job.
2006 &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
2007 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
2008 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
2009 },
2010 ],
2011 &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.
2012 },
2013 ],
2014 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
2015 &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
2016 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
2017 &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;.
2018 &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.
2019 &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}
2020 &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.
2021 &quot;internalExperiments&quot;: { # Experimental settings.
2022 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2023 },
2024 &quot;experiments&quot;: [ # The list of experiments to enable.
2025 &quot;A String&quot;,
2026 ],
2027 &quot;userAgent&quot;: { # A description of the process that generated the request.
2028 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2029 },
2030 &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}
2031 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
2032 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2033 },
2034 },
2035 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
2036 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
2037 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
2038 &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.
2039 &quot;A String&quot;,
2040 ],
2041 },
2042 },
2043 },
2044 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
2045 { # A message describing the state of a particular execution stage.
2046 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
2047 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
2048 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
2049 },
2050 ],
2051 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
2052 &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.
2053 &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.
2054 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
2055 &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.
2056 &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.
2057 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
2058 &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.
2059 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
2060 { # 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.
2061 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
2062 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
2063 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
2064 { # Description of an interstitial value between transforms in an execution stage.
2065 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
2066 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2067 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2068 },
2069 ],
2070 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
2071 &quot;inputSource&quot;: [ # Input sources for this stage.
2072 { # Description of an input or output of an execution stage.
2073 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
2074 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
2075 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2076 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2077 },
2078 ],
2079 &quot;outputSource&quot;: [ # Output sources for this stage.
2080 { # Description of an input or output of an execution stage.
2081 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
2082 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
2083 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2084 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2085 },
2086 ],
2087 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
2088 &quot;A String&quot;,
2089 ],
2090 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
2091 { # Description of a transform executed as part of an execution stage.
2092 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2093 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
2094 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
2095 },
2096 ],
2097 },
2098 ],
2099 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
2100 { # Description of the type, names/ids, and input/outputs for a transform.
2101 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
2102 &quot;A String&quot;,
2103 ],
2104 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
2105 &quot;A String&quot;,
2106 ],
2107 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
2108 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
2109 &quot;displayData&quot;: [ # Transform-specific display data.
2110 { # Data provided with a pipeline or transform to provide descriptive info.
2111 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
2112 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
2113 &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.
2114 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
2115 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
2116 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
2117 &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.
2118 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
2119 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
2120 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
2121 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
2122 &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.
2123 },
2124 ],
2125 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
2126 },
2127 ],
2128 &quot;displayData&quot;: [ # Pipeline level display data.
2129 { # Data provided with a pipeline or transform to provide descriptive info.
2130 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
2131 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
2132 &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.
2133 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
2134 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
2135 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
2136 &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.
2137 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
2138 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
2139 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
2140 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
2141 &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.
2142 },
2143 ],
2144 },
2145 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
2146 &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.
2147 &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])?`
2148 &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 -07002149 }</pre>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002150</div>
2151
2152</body></html>