blob: aeeb67691bc38210414ce6b959c3763c53934886 [file] [log] [blame]
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001<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.jobs.html">jobs</a></h1>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070078 <code><a href="dataflow_v1b3.projects.jobs.debug.html">debug()</a></code>
79</p>
80<p class="firstline">Returns the debug Resource.</p>
81
82<p class="toc_element">
Nathaniel Manista4f877e52015-06-15 16:44:50 +000083 <code><a href="dataflow_v1b3.projects.jobs.messages.html">messages()</a></code>
84</p>
85<p class="firstline">Returns the messages Resource.</p>
86
87<p class="toc_element">
88 <code><a href="dataflow_v1b3.projects.jobs.workItems.html">workItems()</a></code>
89</p>
90<p class="firstline">Returns the workItems Resource.</p>
91
92<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070093 <code><a href="#aggregated">aggregated(projectId, pageSize=None, view=None, pageToken=None, location=None, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">List the jobs of a project across all regions.</p>
95<p class="toc_element">
96 <code><a href="#aggregated_next">aggregated_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070099 <code><a href="#close">close()</a></code></p>
100<p class="firstline">Close httplib2 connections.</p>
101<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700102 <code><a href="#create">create(projectId, body=None, view=None, replaceJobId=None, location=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103<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>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000104<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700105 <code><a href="#get">get(projectId, jobId, location=None, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106<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>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000107<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700108 <code><a href="#getMetrics">getMetrics(projectId, jobId, location=None, startTime=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<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>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000110<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700111 <code><a href="#list">list(projectId, view=None, pageToken=None, pageSize=None, location=None, filter=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<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>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000113<p class="toc_element">
114 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
115<p class="firstline">Retrieves the next page of results.</p>
116<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code><a href="#snapshot">snapshot(projectId, jobId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118<p class="firstline">Snapshot the state of a streaming job.</p>
119<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code><a href="#update">update(projectId, jobId, body=None, location=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121<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>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000122<h3>Method Details</h3>
123<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700124 <code class="details" id="aggregated">aggregated(projectId, pageSize=None, view=None, pageToken=None, location=None, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 <pre>List the jobs of a project across all regions.
126
127Args:
128 projectId: string, The project which owns the jobs. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 view: string, Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700131 Allowed values
132 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.
133 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.
134 JOB_VIEW_ALL - Request all information available for this job.
135 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700136 pageToken: string, Set this to the &#x27;next_page_token&#x27; field of a previous response to request additional results in a long list.
137 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
138 filter: string, The kind of filter to use.
139 Allowed values
140 UNKNOWN - The filter isn&#x27;t specified, or is unknown. This returns all jobs ordered on descending `JobUuid`.
141 ALL - Returns all running jobs first ordered on creation timestamp, then returns all terminated jobs ordered on the termination timestamp.
142 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.
143 ACTIVE - Filters the jobs that are running ordered on the creation timestamp.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 x__xgafv: string, V1 error format.
145 Allowed values
146 1 - v1 error format
147 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148
149Returns:
150 An object of the form:
151
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700152 { # 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 -0700153 &quot;nextPageToken&quot;: &quot;A String&quot;, # Set if there may be more results than fit in this response.
154 &quot;failedLocation&quot;: [ # Zero or more messages describing the [regional endpoints] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond.
155 { # Indicates which [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed to respond to a request for data.
156 &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.
157 },
158 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;jobs&quot;: [ # A subset of the requested job information.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700161 &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.
162 &quot;a_key&quot;: &quot;A String&quot;,
163 },
164 &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.
165 { # 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.
166 &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.
167 &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.
168 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
169 },
170 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700171 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700172 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700173 &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 -0700174 &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.
175 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
176 { # Metadata for a File connector used by the job.
177 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
178 },
179 ],
180 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
181 { # Metadata for a Spanner connector used by the job.
182 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700183 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700184 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
185 },
186 ],
187 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
188 { # Metadata for a BigTable connector used by the job.
189 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
190 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
191 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700192 },
193 ],
194 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
195 { # Metadata for a Datastore connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700197 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700198 },
199 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700200 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
201 { # Metadata for a PubSub connector used by the job.
202 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
203 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
204 },
205 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700206 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
207 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
208 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
209 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
210 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700211 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
212 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
214 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700215 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
216 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 },
218 ],
219 },
220 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700221 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
222 &quot;a_key&quot;: &quot;A String&quot;,
223 },
224 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
225 &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.
226 &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}
227 &quot;A String&quot;,
228 ],
229 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
230 &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.
231 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
232 },
233 &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.
234 { # 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.
235 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
236 &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.
237 &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.
238 &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.
239 &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.
240 &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).
241 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
242 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
243 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
244 },
245 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
246 &quot;a_key&quot;: &quot;A String&quot;,
247 },
248 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
249 &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.
250 &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}
251 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
252 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
253 &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;.
254 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
255 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
256 &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}
257 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
258 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
259 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
260 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
261 &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;
262 },
263 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
264 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
265 &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;
266 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
267 &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;.
268 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
269 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
270 &quot;A String&quot;,
271 ],
272 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
273 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
274 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
275 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
276 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
277 &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}
278 },
279 &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.
280 &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;.
281 &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.
282 &quot;packages&quot;: [ # Packages to be installed on workers.
283 { # 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.
284 &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/
285 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
286 },
287 ],
288 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
289 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
290 },
291 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
292 &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.
293 &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.
294 { # Defines a SDK harness container for executing Dataflow pipelines.
295 &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.
296 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
297 },
298 ],
299 &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;.
300 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
301 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
302 { # Describes the data disk used by a workflow job.
303 &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
304 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
305 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
306 },
307 ],
308 &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.
309 },
310 ],
311 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
312 &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
313 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
314 &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;.
315 &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.
316 &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}
317 &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.
318 &quot;internalExperiments&quot;: { # Experimental settings.
319 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
320 },
321 &quot;experiments&quot;: [ # The list of experiments to enable.
322 &quot;A String&quot;,
323 ],
324 &quot;userAgent&quot;: { # A description of the process that generated the request.
325 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
326 },
327 &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}
328 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
329 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
330 },
331 },
332 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
333 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
334 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
335 &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.
336 &quot;A String&quot;,
337 ],
338 },
339 },
340 },
341 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
342 { # A message describing the state of a particular execution stage.
343 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
344 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
345 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
346 },
347 ],
348 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
349 &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.
350 &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.
351 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
352 &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.
353 &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.
354 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
355 &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.
356 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
357 { # 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.
358 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
359 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
360 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
361 { # Description of an interstitial value between transforms in an execution stage.
362 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
363 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
364 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
365 },
366 ],
367 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
368 &quot;inputSource&quot;: [ # Input sources for this stage.
369 { # Description of an input or output of an execution stage.
370 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
371 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
372 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
373 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
374 },
375 ],
376 &quot;outputSource&quot;: [ # Output sources for this stage.
377 { # Description of an input or output of an execution stage.
378 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
379 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
380 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
381 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
382 },
383 ],
384 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
385 &quot;A String&quot;,
386 ],
387 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
388 { # Description of a transform executed as part of an execution stage.
389 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
390 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
391 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
392 },
393 ],
394 },
395 ],
396 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
397 { # Description of the type, names/ids, and input/outputs for a transform.
398 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
399 &quot;A String&quot;,
400 ],
401 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
402 &quot;A String&quot;,
403 ],
404 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
405 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
406 &quot;displayData&quot;: [ # Transform-specific display data.
407 { # Data provided with a pipeline or transform to provide descriptive info.
408 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
409 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
410 &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.
411 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
412 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
413 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
414 &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.
415 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
416 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
417 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
418 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
419 &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.
420 },
421 ],
422 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
423 },
424 ],
425 &quot;displayData&quot;: [ # Pipeline level display data.
426 { # Data provided with a pipeline or transform to provide descriptive info.
427 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
428 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
429 &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.
430 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
431 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
432 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
433 &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.
434 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
435 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
436 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
437 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
438 &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.
439 },
440 ],
441 },
442 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
443 &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.
444 &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])?`
445 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700446 },
447 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700448 }</pre>
449</div>
450
451<div class="method">
452 <code class="details" id="aggregated_next">aggregated_next(previous_request, previous_response)</code>
453 <pre>Retrieves the next page of results.
454
455Args:
456 previous_request: The request for the previous page. (required)
457 previous_response: The response from the request for the previous page. (required)
458
459Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 page. Returns None if there are no more items in the collection.
462 </pre>
463</div>
464
465<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700466 <code class="details" id="close">close()</code>
467 <pre>Close httplib2 connections.</pre>
468</div>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000469
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700470<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700471 <code class="details" id="create">create(projectId, body=None, view=None, replaceJobId=None, location=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700472 <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 -0700473
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000474Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400475 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700476 body: object, The request body.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000477 The object takes the form of:
478
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400479{ # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700480 &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.
481 &quot;a_key&quot;: &quot;A String&quot;,
482 },
483 &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.
484 { # 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.
485 &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.
486 &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.
487 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
488 },
489 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
490 },
491 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700492 &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 -0700493 &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.
494 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
495 { # Metadata for a File connector used by the job.
496 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
497 },
498 ],
499 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
500 { # Metadata for a Spanner connector used by the job.
501 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700502 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700503 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
504 },
505 ],
506 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
507 { # Metadata for a BigTable connector used by the job.
508 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
509 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
510 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700511 },
512 ],
513 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
514 { # Metadata for a Datastore connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700515 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700516 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700517 },
518 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700519 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
520 { # Metadata for a PubSub connector used by the job.
521 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
522 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
523 },
524 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700525 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
526 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
527 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
528 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
529 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700530 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
531 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700532 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
533 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700534 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
535 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700536 },
537 ],
538 },
539 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700540 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
541 &quot;a_key&quot;: &quot;A String&quot;,
542 },
543 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
544 &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.
545 &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}
546 &quot;A String&quot;,
547 ],
548 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
549 &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.
550 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
551 },
552 &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.
553 { # 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.
554 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
555 &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.
556 &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.
557 &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.
558 &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.
559 &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).
560 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
561 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
562 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
563 },
564 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
565 &quot;a_key&quot;: &quot;A String&quot;,
566 },
567 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
568 &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.
569 &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}
570 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
571 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
572 &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;.
573 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
574 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
575 &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}
576 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
577 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
578 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
579 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
580 &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;
581 },
582 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
583 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
584 &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;
585 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
586 &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;.
587 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
588 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
589 &quot;A String&quot;,
590 ],
591 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
592 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
593 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
594 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
595 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
596 &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}
597 },
598 &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.
599 &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;.
600 &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.
601 &quot;packages&quot;: [ # Packages to be installed on workers.
602 { # 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.
603 &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/
604 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
605 },
606 ],
607 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
608 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
609 },
610 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
611 &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.
612 &quot;sdkHarnessContainerImages&quot;: [ # Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
613 { # Defines a SDK harness container for executing Dataflow pipelines.
614 &quot;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.
615 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
616 },
617 ],
618 &quot;subnetwork&quot;: &quot;A String&quot;, # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form &quot;regions/REGION/subnetworks/SUBNETWORK&quot;.
619 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
620 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
621 { # Describes the data disk used by a workflow job.
622 &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
623 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
624 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
625 },
626 ],
627 &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.
628 },
629 ],
630 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
631 &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
632 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
633 &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;.
634 &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.
635 &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}
636 &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.
637 &quot;internalExperiments&quot;: { # Experimental settings.
638 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
639 },
640 &quot;experiments&quot;: [ # The list of experiments to enable.
641 &quot;A String&quot;,
642 ],
643 &quot;userAgent&quot;: { # A description of the process that generated the request.
644 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
645 },
646 &quot;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}
647 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
648 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
649 },
650 },
651 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
652 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
653 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
654 &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.
655 &quot;A String&quot;,
656 ],
657 },
658 },
659 },
660 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
661 { # A message describing the state of a particular execution stage.
662 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
663 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
664 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
665 },
666 ],
667 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
668 &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.
669 &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.
670 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
671 &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.
672 &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.
673 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
674 &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.
675 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
676 { # 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.
677 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
678 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
679 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
680 { # Description of an interstitial value between transforms in an execution stage.
681 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
682 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
683 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
684 },
685 ],
686 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
687 &quot;inputSource&quot;: [ # Input sources for this stage.
688 { # Description of an input or output of an execution stage.
689 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
690 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
691 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
692 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
693 },
694 ],
695 &quot;outputSource&quot;: [ # Output sources for this stage.
696 { # Description of an input or output of an execution stage.
697 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
698 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
699 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
700 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
701 },
702 ],
703 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
704 &quot;A String&quot;,
705 ],
706 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
707 { # Description of a transform executed as part of an execution stage.
708 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
709 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
710 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
711 },
712 ],
713 },
714 ],
715 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
716 { # Description of the type, names/ids, and input/outputs for a transform.
717 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
718 &quot;A String&quot;,
719 ],
720 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
721 &quot;A String&quot;,
722 ],
723 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
724 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
725 &quot;displayData&quot;: [ # Transform-specific display data.
726 { # Data provided with a pipeline or transform to provide descriptive info.
727 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
728 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
729 &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.
730 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
731 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
732 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
733 &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.
734 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
735 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
736 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
737 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
738 &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.
739 },
740 ],
741 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
742 },
743 ],
744 &quot;displayData&quot;: [ # Pipeline level display data.
745 { # Data provided with a pipeline or transform to provide descriptive info.
746 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
747 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
748 &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.
749 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
750 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
751 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
752 &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.
753 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
754 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
755 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
756 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
757 &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.
758 },
759 ],
760 },
761 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
762 &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.
763 &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])?`
764 &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 -0700765}
766
767 view: string, The level of information requested in response.
768 Allowed values
769 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.
770 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.
771 JOB_VIEW_ALL - Request all information available for this job.
772 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700773 replaceJobId: string, Deprecated. This field is now in the Job message.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700774 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700775 x__xgafv: string, V1 error format.
776 Allowed values
777 1 - v1 error format
778 2 - v2 error format
779
780Returns:
781 An object of the form:
782
783 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700784 &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 Kimd059ad82020-07-22 17:02:09 -0700785 &quot;a_key&quot;: &quot;A String&quot;,
786 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700787 &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.
788 { # 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.
789 &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.
790 &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.
791 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
792 },
793 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
794 },
795 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700796 &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 -0700797 &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.
798 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
799 { # Metadata for a File connector used by the job.
800 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
801 },
802 ],
803 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
804 { # Metadata for a Spanner connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700805 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700806 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700807 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
808 },
809 ],
810 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
811 { # Metadata for a BigTable connector used by the job.
812 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
813 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
814 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700815 },
816 ],
817 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
818 { # Metadata for a Datastore connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700819 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700820 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700821 },
822 ],
823 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
824 { # Metadata for a PubSub connector used by the job.
825 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
826 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
827 },
828 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700829 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
830 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
831 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
832 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
833 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700834 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
835 { # Metadata for a BigQuery connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700836 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
837 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700838 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
839 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700840 },
841 ],
842 },
843 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700844 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
845 &quot;a_key&quot;: &quot;A String&quot;,
846 },
847 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
848 &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.
849 &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}
850 &quot;A String&quot;,
851 ],
852 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
853 &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.
854 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
855 },
856 &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.
857 { # 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.
858 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
859 &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.
860 &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.
861 &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.
862 &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.
863 &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).
864 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
865 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
866 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
867 },
868 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
869 &quot;a_key&quot;: &quot;A String&quot;,
870 },
871 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
872 &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.
873 &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}
874 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
875 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
876 &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;.
877 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
878 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
879 &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}
880 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
881 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
882 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
883 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
884 &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;
885 },
886 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
887 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
888 &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;
889 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
890 &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;.
891 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
892 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
893 &quot;A String&quot;,
894 ],
895 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
896 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
897 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
898 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
899 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
900 &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}
901 },
902 &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.
903 &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;.
904 &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.
905 &quot;packages&quot;: [ # Packages to be installed on workers.
906 { # 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.
907 &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/
908 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
909 },
910 ],
911 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
912 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
913 },
914 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
915 &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.
916 &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.
917 { # Defines a SDK harness container for executing Dataflow pipelines.
918 &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.
919 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
920 },
921 ],
922 &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;.
923 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
924 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
925 { # Describes the data disk used by a workflow job.
926 &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
927 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
928 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
929 },
930 ],
931 &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.
932 },
933 ],
934 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
935 &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
936 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
937 &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;.
938 &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.
939 &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}
940 &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.
941 &quot;internalExperiments&quot;: { # Experimental settings.
942 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
943 },
944 &quot;experiments&quot;: [ # The list of experiments to enable.
945 &quot;A String&quot;,
946 ],
947 &quot;userAgent&quot;: { # A description of the process that generated the request.
948 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
949 },
950 &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}
951 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
952 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
953 },
954 },
955 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
956 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
957 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
958 &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.
959 &quot;A String&quot;,
960 ],
961 },
962 },
963 },
964 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
965 { # A message describing the state of a particular execution stage.
966 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
967 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
968 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
969 },
970 ],
971 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
972 &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.
973 &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.
974 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
975 &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.
976 &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.
977 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
978 &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.
979 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
980 { # 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.
981 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
982 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
983 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
984 { # Description of an interstitial value between transforms in an execution stage.
985 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
986 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
987 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
988 },
989 ],
990 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
991 &quot;inputSource&quot;: [ # Input sources for this stage.
992 { # Description of an input or output of an execution stage.
993 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
994 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
995 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
996 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
997 },
998 ],
999 &quot;outputSource&quot;: [ # Output sources for this stage.
1000 { # Description of an input or output of an execution stage.
1001 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1002 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1003 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1004 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1005 },
1006 ],
1007 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
1008 &quot;A String&quot;,
1009 ],
1010 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1011 { # Description of a transform executed as part of an execution stage.
1012 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1013 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
1014 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1015 },
1016 ],
1017 },
1018 ],
1019 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1020 { # Description of the type, names/ids, and input/outputs for a transform.
1021 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1022 &quot;A String&quot;,
1023 ],
1024 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1025 &quot;A String&quot;,
1026 ],
1027 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1028 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1029 &quot;displayData&quot;: [ # Transform-specific display data.
1030 { # Data provided with a pipeline or transform to provide descriptive info.
1031 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1032 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1033 &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.
1034 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1035 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1036 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1037 &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.
1038 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1039 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1040 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1041 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1042 &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.
1043 },
1044 ],
1045 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1046 },
1047 ],
1048 &quot;displayData&quot;: [ # Pipeline level display data.
1049 { # Data provided with a pipeline or transform to provide descriptive info.
1050 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1051 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1052 &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.
1053 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1054 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1055 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1056 &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.
1057 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1058 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1059 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1060 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1061 &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.
1062 },
1063 ],
1064 },
1065 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1066 &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.
1067 &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])?`
1068 &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 -07001069 }</pre>
1070</div>
1071
1072<div class="method">
1073 <code class="details" id="get">get(projectId, jobId, location=None, view=None, x__xgafv=None)</code>
1074 <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`.
1075
1076Args:
1077 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
1078 jobId: string, The job ID. (required)
1079 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1080 view: string, The level of information requested in response.
1081 Allowed values
1082 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.
1083 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.
1084 JOB_VIEW_ALL - Request all information available for this job.
1085 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
1086 x__xgafv: string, V1 error format.
1087 Allowed values
1088 1 - v1 error format
1089 2 - v2 error format
1090
1091Returns:
1092 An object of the form:
1093
1094 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001095 &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.
1096 &quot;a_key&quot;: &quot;A String&quot;,
1097 },
1098 &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.
1099 { # 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.
1100 &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.
1101 &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.
1102 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1103 },
1104 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1105 },
1106 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001107 &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 -07001108 &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 -07001109 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1110 { # Metadata for a File connector used by the job.
1111 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1112 },
1113 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001114 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1115 { # Metadata for a Spanner connector used by the job.
1116 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001117 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001118 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1119 },
1120 ],
1121 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1122 { # Metadata for a BigTable connector used by the job.
1123 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1124 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1125 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001126 },
1127 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001128 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1129 { # Metadata for a Datastore connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001130 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001131 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001132 },
1133 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001134 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1135 { # Metadata for a PubSub connector used by the job.
1136 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1137 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1138 },
1139 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001140 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1141 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1142 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1143 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1144 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001145 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1146 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001147 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1148 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001149 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1150 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001151 },
1152 ],
1153 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001154 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001155 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
1156 &quot;a_key&quot;: &quot;A String&quot;,
1157 },
1158 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1159 &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.
1160 &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}
1161 &quot;A String&quot;,
1162 ],
1163 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
1164 &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.
1165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1166 },
1167 &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.
1168 { # 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.
1169 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
1170 &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.
1171 &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.
1172 &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.
1173 &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.
1174 &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).
1175 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1176 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1177 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1178 },
1179 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1180 &quot;a_key&quot;: &quot;A String&quot;,
1181 },
1182 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
1183 &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.
1184 &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}
1185 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1186 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1187 &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;.
1188 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1189 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1190 &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}
1191 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1192 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
1193 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1194 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
1195 &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;
1196 },
1197 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1198 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1199 &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;
1200 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1201 &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;.
1202 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1203 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
1204 &quot;A String&quot;,
1205 ],
1206 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1207 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1208 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1209 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
1210 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1211 &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}
1212 },
1213 &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.
1214 &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;.
1215 &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.
1216 &quot;packages&quot;: [ # Packages to be installed on workers.
1217 { # 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.
1218 &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/
1219 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1220 },
1221 ],
1222 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1224 },
1225 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1226 &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.
1227 &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.
1228 { # Defines a SDK harness container for executing Dataflow pipelines.
1229 &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.
1230 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
1231 },
1232 ],
1233 &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;.
1234 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
1235 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
1236 { # Describes the data disk used by a workflow job.
1237 &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
1238 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1239 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
1240 },
1241 ],
1242 &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.
1243 },
1244 ],
1245 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
1246 &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
1247 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
1248 &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;.
1249 &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.
1250 &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}
1251 &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.
1252 &quot;internalExperiments&quot;: { # Experimental settings.
1253 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1254 },
1255 &quot;experiments&quot;: [ # The list of experiments to enable.
1256 &quot;A String&quot;,
1257 ],
1258 &quot;userAgent&quot;: { # A description of the process that generated the request.
1259 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1260 },
1261 &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}
1262 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
1263 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1264 },
1265 },
1266 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
1267 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
1268 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
1269 &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.
1270 &quot;A String&quot;,
1271 ],
1272 },
1273 },
1274 },
1275 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1276 { # A message describing the state of a particular execution stage.
1277 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
1278 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
1279 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
1280 },
1281 ],
1282 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
1283 &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.
1284 &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.
1285 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
1286 &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.
1287 &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.
1288 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
1289 &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.
1290 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
1291 { # 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.
1292 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
1293 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
1294 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
1295 { # Description of an interstitial value between transforms in an execution stage.
1296 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1297 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1298 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1299 },
1300 ],
1301 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
1302 &quot;inputSource&quot;: [ # Input sources for this stage.
1303 { # Description of an input or output of an execution stage.
1304 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1305 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1306 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1307 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1308 },
1309 ],
1310 &quot;outputSource&quot;: [ # Output sources for this stage.
1311 { # Description of an input or output of an execution stage.
1312 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1313 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1314 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1315 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1316 },
1317 ],
1318 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
1319 &quot;A String&quot;,
1320 ],
1321 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1322 { # Description of a transform executed as part of an execution stage.
1323 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1324 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
1325 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1326 },
1327 ],
1328 },
1329 ],
1330 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1331 { # Description of the type, names/ids, and input/outputs for a transform.
1332 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1333 &quot;A String&quot;,
1334 ],
1335 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1336 &quot;A String&quot;,
1337 ],
1338 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1339 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1340 &quot;displayData&quot;: [ # Transform-specific display data.
1341 { # Data provided with a pipeline or transform to provide descriptive info.
1342 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1343 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1344 &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.
1345 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1346 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1347 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1348 &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.
1349 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1350 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1351 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1352 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1353 &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.
1354 },
1355 ],
1356 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1357 },
1358 ],
1359 &quot;displayData&quot;: [ # Pipeline level display data.
1360 { # Data provided with a pipeline or transform to provide descriptive info.
1361 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1362 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1363 &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.
1364 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1365 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1366 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1367 &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.
1368 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1369 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1370 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1371 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1372 &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.
1373 },
1374 ],
1375 },
1376 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1377 &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.
1378 &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])?`
1379 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the Cloud Platform project that the job belongs to.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001380 }</pre>
1381</div>
1382
1383<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001384 <code class="details" id="getMetrics">getMetrics(projectId, jobId, location=None, startTime=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001385 <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`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001386
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001387Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001388 projectId: string, A project id. (required)
1389 jobId: string, The job to get metrics for. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001390 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001391 startTime: string, Return only metric data that has changed since this time. Default is to return all information about all metrics for the job.
Takashi Matsuo06694102015-09-11 13:55:40 -07001392 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001393 Allowed values
1394 1 - v1 error format
1395 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001396
1397Returns:
1398 An object of the form:
1399
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001400 { # 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 -07001401 &quot;metricTime&quot;: &quot;A String&quot;, # Timestamp as of which metric values are current.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001402 &quot;metrics&quot;: [ # All metrics for this job.
1403 { # Describes the state of a metric.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001404 &quot;internal&quot;: &quot;&quot;, # Worker-computed aggregate value for internal use by the Dataflow service.
1405 &quot;distribution&quot;: &quot;&quot;, # A struct value describing properties of a distribution of numeric values.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001406 &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 -07001407 &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.
1408 &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.
1409 &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.
1410 &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.
1411 &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.
1412 &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 -07001413 &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 -07001414 &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 -07001415 &quot;name&quot;: &quot;A String&quot;, # Worker-defined metric name.
1416 &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 -07001417 &quot;a_key&quot;: &quot;A String&quot;,
1418 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001419 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001420 &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 -07001421 },
1422 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001423 }</pre>
1424</div>
1425
1426<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001427 <code class="details" id="list">list(projectId, view=None, pageToken=None, pageSize=None, location=None, filter=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001428 <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`.
1429
1430Args:
1431 projectId: string, The project which owns the jobs. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001432 view: string, Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
1433 Allowed values
1434 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.
1435 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.
1436 JOB_VIEW_ALL - Request all information available for this job.
1437 JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001438 pageToken: string, Set this to the &#x27;next_page_token&#x27; field of a previous response to request additional results in a long list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001439 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001440 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1441 filter: string, The kind of filter to use.
1442 Allowed values
1443 UNKNOWN - The filter isn&#x27;t specified, or is unknown. This returns all jobs ordered on descending `JobUuid`.
1444 ALL - Returns all running jobs first ordered on creation timestamp, then returns all terminated jobs ordered on the termination timestamp.
1445 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.
1446 ACTIVE - Filters the jobs that are running ordered on the creation timestamp.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001447 x__xgafv: string, V1 error format.
1448 Allowed values
1449 1 - v1 error format
1450 2 - v2 error format
1451
1452Returns:
1453 An object of the form:
1454
1455 { # 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 -07001456 &quot;nextPageToken&quot;: &quot;A String&quot;, # Set if there may be more results than fit in this response.
1457 &quot;failedLocation&quot;: [ # Zero or more messages describing the [regional endpoints] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond.
1458 { # Indicates which [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed to respond to a request for data.
1459 &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.
1460 },
1461 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001462 &quot;jobs&quot;: [ # A subset of the requested job information.
1463 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001464 &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.
1465 &quot;a_key&quot;: &quot;A String&quot;,
1466 },
1467 &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.
1468 { # 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.
1469 &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.
1470 &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.
1471 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1472 },
1473 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1474 },
1475 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001476 &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 -07001477 &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.
1478 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1479 { # Metadata for a File connector used by the job.
1480 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1481 },
1482 ],
1483 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1484 { # Metadata for a Spanner connector used by the job.
1485 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001486 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001487 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1488 },
1489 ],
1490 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1491 { # Metadata for a BigTable connector used by the job.
1492 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1493 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1494 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001495 },
1496 ],
1497 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1498 { # Metadata for a Datastore connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001499 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001500 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001501 },
1502 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001503 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1504 { # Metadata for a PubSub connector used by the job.
1505 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1506 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1507 },
1508 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001509 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1510 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1511 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1512 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1513 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001514 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1515 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001516 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1517 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001518 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1519 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001520 },
1521 ],
1522 },
1523 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001524 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
1525 &quot;a_key&quot;: &quot;A String&quot;,
1526 },
1527 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1528 &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.
1529 &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}
1530 &quot;A String&quot;,
1531 ],
1532 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
1533 &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.
1534 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1535 },
1536 &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.
1537 { # 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.
1538 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
1539 &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.
1540 &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.
1541 &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.
1542 &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.
1543 &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).
1544 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1545 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1546 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1547 },
1548 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1549 &quot;a_key&quot;: &quot;A String&quot;,
1550 },
1551 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
1552 &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.
1553 &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}
1554 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1555 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1556 &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;.
1557 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1558 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1559 &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}
1560 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1561 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
1562 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1563 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
1564 &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;
1565 },
1566 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1567 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1568 &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;
1569 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1570 &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;.
1571 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1572 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
1573 &quot;A String&quot;,
1574 ],
1575 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1576 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1577 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1578 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
1579 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1580 &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}
1581 },
1582 &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.
1583 &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;.
1584 &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.
1585 &quot;packages&quot;: [ # Packages to be installed on workers.
1586 { # 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.
1587 &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/
1588 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1589 },
1590 ],
1591 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1592 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1593 },
1594 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1595 &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.
1596 &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.
1597 { # Defines a SDK harness container for executing Dataflow pipelines.
1598 &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.
1599 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
1600 },
1601 ],
1602 &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;.
1603 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
1604 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
1605 { # Describes the data disk used by a workflow job.
1606 &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
1607 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1608 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
1609 },
1610 ],
1611 &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.
1612 },
1613 ],
1614 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
1615 &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
1616 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
1617 &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;.
1618 &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.
1619 &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}
1620 &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.
1621 &quot;internalExperiments&quot;: { # Experimental settings.
1622 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1623 },
1624 &quot;experiments&quot;: [ # The list of experiments to enable.
1625 &quot;A String&quot;,
1626 ],
1627 &quot;userAgent&quot;: { # A description of the process that generated the request.
1628 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1629 },
1630 &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}
1631 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
1632 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1633 },
1634 },
1635 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
1636 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
1637 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
1638 &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.
1639 &quot;A String&quot;,
1640 ],
1641 },
1642 },
1643 },
1644 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
1645 { # A message describing the state of a particular execution stage.
1646 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
1647 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
1648 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
1649 },
1650 ],
1651 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
1652 &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.
1653 &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.
1654 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
1655 &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.
1656 &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.
1657 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
1658 &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.
1659 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
1660 { # 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.
1661 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
1662 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
1663 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
1664 { # Description of an interstitial value between transforms in an execution stage.
1665 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1666 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1667 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1668 },
1669 ],
1670 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
1671 &quot;inputSource&quot;: [ # Input sources for this stage.
1672 { # Description of an input or output of an execution stage.
1673 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1674 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1675 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1676 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1677 },
1678 ],
1679 &quot;outputSource&quot;: [ # Output sources for this stage.
1680 { # Description of an input or output of an execution stage.
1681 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
1682 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
1683 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1684 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
1685 },
1686 ],
1687 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
1688 &quot;A String&quot;,
1689 ],
1690 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
1691 { # Description of a transform executed as part of an execution stage.
1692 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
1693 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
1694 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
1695 },
1696 ],
1697 },
1698 ],
1699 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
1700 { # Description of the type, names/ids, and input/outputs for a transform.
1701 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
1702 &quot;A String&quot;,
1703 ],
1704 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
1705 &quot;A String&quot;,
1706 ],
1707 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
1708 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
1709 &quot;displayData&quot;: [ # Transform-specific display data.
1710 { # Data provided with a pipeline or transform to provide descriptive info.
1711 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1712 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1713 &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.
1714 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1715 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1716 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1717 &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.
1718 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1719 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1720 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1721 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1722 &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.
1723 },
1724 ],
1725 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
1726 },
1727 ],
1728 &quot;displayData&quot;: [ # Pipeline level display data.
1729 { # Data provided with a pipeline or transform to provide descriptive info.
1730 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
1731 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
1732 &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.
1733 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
1734 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
1735 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
1736 &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.
1737 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
1738 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
1739 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
1740 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
1741 &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.
1742 },
1743 ],
1744 },
1745 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
1746 &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.
1747 &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])?`
1748 &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 -07001749 },
1750 ],
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001751 }</pre>
1752</div>
1753
1754<div class="method">
1755 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1756 <pre>Retrieves the next page of results.
1757
1758Args:
1759 previous_request: The request for the previous page. (required)
1760 previous_response: The response from the request for the previous page. (required)
1761
1762Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001763 A request object that you can call &#x27;execute()&#x27; on to request the next
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001764 page. Returns None if there are no more items in the collection.
1765 </pre>
1766</div>
1767
1768<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001769 <code class="details" id="snapshot">snapshot(projectId, jobId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001770 <pre>Snapshot the state of a streaming job.
1771
1772Args:
1773 projectId: string, The project which owns the job to be snapshotted. (required)
1774 jobId: string, The job to be snapshotted. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001775 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001776 The object takes the form of:
1777
1778{ # Request to create a snapshot of a job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001779 &quot;ttl&quot;: &quot;A String&quot;, # TTL for the snapshot.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001780 &quot;snapshotSources&quot;: True or False, # If true, perform snapshots for sources which support this.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001781 &quot;location&quot;: &quot;A String&quot;, # The location that contains this job.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001782 &quot;description&quot;: &quot;A String&quot;, # User specified description of the snapshot. Maybe empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001783 }
1784
1785 x__xgafv: string, V1 error format.
1786 Allowed values
1787 1 - v1 error format
1788 2 - v2 error format
1789
1790Returns:
1791 An object of the form:
1792
1793 { # Represents a snapshot of a job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001794 &quot;pubsubMetadata&quot;: [ # PubSub snapshot metadata.
Dan O'Mearadd494642020-05-01 07:42:23 -07001795 { # Represents a Pubsub snapshot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001796 &quot;topicName&quot;: &quot;A String&quot;, # The name of the Pubsub topic.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001797 &quot;expireTime&quot;: &quot;A String&quot;, # The expire time of the Pubsub snapshot.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001798 &quot;snapshotName&quot;: &quot;A String&quot;, # The name of the Pubsub snapshot.
Dan O'Mearadd494642020-05-01 07:42:23 -07001799 },
1800 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001801 &quot;creationTime&quot;: &quot;A String&quot;, # The time this snapshot was created.
1802 &quot;projectId&quot;: &quot;A String&quot;, # The project this snapshot belongs to.
1803 &quot;description&quot;: &quot;A String&quot;, # User specified description of the snapshot. Maybe empty.
1804 &quot;sourceJobId&quot;: &quot;A String&quot;, # The job this snapshot was created from.
1805 &quot;ttl&quot;: &quot;A String&quot;, # The time after which this snapshot will be automatically deleted.
1806 &quot;id&quot;: &quot;A String&quot;, # The unique ID of this snapshot.
1807 &quot;diskSizeBytes&quot;: &quot;A String&quot;, # The disk byte size of the snapshot. Only available for snapshots in READY state.
1808 &quot;state&quot;: &quot;A String&quot;, # State of the snapshot.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001809 }</pre>
1810</div>
1811
1812<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001813 <code class="details" id="update">update(projectId, jobId, body=None, location=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001814 <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 -07001815
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001816Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001817 projectId: string, The ID of the Cloud Platform project that the job belongs to. (required)
1818 jobId: string, The job ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001819 body: object, The request body.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001820 The object takes the form of:
1821
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001822{ # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001823 &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.
1824 &quot;a_key&quot;: &quot;A String&quot;,
1825 },
1826 &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.
1827 { # 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.
1828 &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.
1829 &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.
1830 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1831 },
1832 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
1833 },
1834 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001835 &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 -07001836 &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.
1837 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
1838 { # Metadata for a File connector used by the job.
1839 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
1840 },
1841 ],
1842 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
1843 { # Metadata for a Spanner connector used by the job.
1844 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001845 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001846 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1847 },
1848 ],
1849 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
1850 { # Metadata for a BigTable connector used by the job.
1851 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
1852 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
1853 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001854 },
1855 ],
1856 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
1857 { # Metadata for a Datastore connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001858 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001859 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001860 },
1861 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001862 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
1863 { # Metadata for a PubSub connector used by the job.
1864 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
1865 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
1866 },
1867 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001868 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
1869 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
1870 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
1871 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
1872 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001873 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
1874 { # Metadata for a BigQuery connector used by the job.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001875 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
1876 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001877 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
1878 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001879 },
1880 ],
1881 },
1882 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001883 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
1884 &quot;a_key&quot;: &quot;A String&quot;,
1885 },
1886 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
1887 &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.
1888 &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}
1889 &quot;A String&quot;,
1890 ],
1891 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
1892 &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.
1893 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1894 },
1895 &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.
1896 { # 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.
1897 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
1898 &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.
1899 &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.
1900 &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.
1901 &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.
1902 &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).
1903 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
1904 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
1905 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
1906 },
1907 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
1908 &quot;a_key&quot;: &quot;A String&quot;,
1909 },
1910 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
1911 &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.
1912 &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}
1913 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
1914 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
1915 &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;.
1916 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
1917 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
1918 &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}
1919 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
1920 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
1921 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
1922 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
1923 &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;
1924 },
1925 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
1926 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
1927 &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;
1928 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
1929 &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;.
1930 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
1931 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
1932 &quot;A String&quot;,
1933 ],
1934 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
1935 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
1936 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
1937 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
1938 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
1939 &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}
1940 },
1941 &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.
1942 &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;.
1943 &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.
1944 &quot;packages&quot;: [ # Packages to be installed on workers.
1945 { # 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.
1946 &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/
1947 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1948 },
1949 ],
1950 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
1951 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1952 },
1953 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
1954 &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.
1955 &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.
1956 { # Defines a SDK harness container for executing Dataflow pipelines.
1957 &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.
1958 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
1959 },
1960 ],
1961 &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;.
1962 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
1963 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
1964 { # Describes the data disk used by a workflow job.
1965 &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
1966 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
1967 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
1968 },
1969 ],
1970 &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.
1971 },
1972 ],
1973 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
1974 &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
1975 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
1976 &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;.
1977 &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.
1978 &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}
1979 &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.
1980 &quot;internalExperiments&quot;: { # Experimental settings.
1981 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1982 },
1983 &quot;experiments&quot;: [ # The list of experiments to enable.
1984 &quot;A String&quot;,
1985 ],
1986 &quot;userAgent&quot;: { # A description of the process that generated the request.
1987 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1988 },
1989 &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}
1990 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
1991 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1992 },
1993 },
1994 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
1995 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
1996 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
1997 &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.
1998 &quot;A String&quot;,
1999 ],
2000 },
2001 },
2002 },
2003 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
2004 { # A message describing the state of a particular execution stage.
2005 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
2006 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
2007 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
2008 },
2009 ],
2010 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
2011 &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.
2012 &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.
2013 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
2014 &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.
2015 &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.
2016 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
2017 &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.
2018 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
2019 { # 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.
2020 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
2021 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
2022 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
2023 { # Description of an interstitial value between transforms in an execution stage.
2024 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
2025 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2026 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2027 },
2028 ],
2029 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
2030 &quot;inputSource&quot;: [ # Input sources for this stage.
2031 { # Description of an input or output of an execution stage.
2032 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
2033 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
2034 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2035 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2036 },
2037 ],
2038 &quot;outputSource&quot;: [ # Output sources for this stage.
2039 { # Description of an input or output of an execution stage.
2040 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
2041 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
2042 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2043 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2044 },
2045 ],
2046 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
2047 &quot;A String&quot;,
2048 ],
2049 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
2050 { # Description of a transform executed as part of an execution stage.
2051 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2052 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
2053 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
2054 },
2055 ],
2056 },
2057 ],
2058 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
2059 { # Description of the type, names/ids, and input/outputs for a transform.
2060 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
2061 &quot;A String&quot;,
2062 ],
2063 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
2064 &quot;A String&quot;,
2065 ],
2066 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
2067 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
2068 &quot;displayData&quot;: [ # Transform-specific display data.
2069 { # Data provided with a pipeline or transform to provide descriptive info.
2070 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
2071 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
2072 &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.
2073 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
2074 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
2075 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
2076 &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.
2077 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
2078 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
2079 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
2080 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
2081 &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.
2082 },
2083 ],
2084 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
2085 },
2086 ],
2087 &quot;displayData&quot;: [ # Pipeline level display data.
2088 { # Data provided with a pipeline or transform to provide descriptive info.
2089 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
2090 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
2091 &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.
2092 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
2093 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
2094 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
2095 &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.
2096 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
2097 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
2098 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
2099 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
2100 &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.
2101 },
2102 ],
2103 },
2104 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
2105 &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.
2106 &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])?`
2107 &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 -07002108}
2109
2110 location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
2111 x__xgafv: string, V1 error format.
2112 Allowed values
2113 1 - v1 error format
2114 2 - v2 error format
2115
2116Returns:
2117 An object of the form:
2118
2119 { # Defines a job to be run by the Cloud Dataflow service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002120 &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 -07002121 &quot;a_key&quot;: &quot;A String&quot;,
Nathaniel Manista4f877e52015-06-15 16:44:50 +00002122 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002123 &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.
2124 { # 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.
2125 &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.
2126 &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.
2127 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2128 },
2129 &quot;kind&quot;: &quot;A String&quot;, # The kind of step in the Cloud Dataflow job.
2130 },
2131 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002132 &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 -07002133 &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.
2134 &quot;fileDetails&quot;: [ # Identification of a File source used in the Dataflow job.
2135 { # Metadata for a File connector used by the job.
2136 &quot;filePattern&quot;: &quot;A String&quot;, # File Pattern used to access files by the connector.
2137 },
2138 ],
2139 &quot;spannerDetails&quot;: [ # Identification of a Spanner source used in the Dataflow job.
2140 { # Metadata for a Spanner connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002141 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002142 &quot;databaseId&quot;: &quot;A String&quot;, # DatabaseId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002143 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
2144 },
2145 ],
2146 &quot;bigTableDetails&quot;: [ # Identification of a BigTable source used in the Dataflow job.
2147 { # Metadata for a BigTable connector used by the job.
2148 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
2149 &quot;instanceId&quot;: &quot;A String&quot;, # InstanceId accessed in the connection.
2150 &quot;tableId&quot;: &quot;A String&quot;, # TableId accessed in the connection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002151 },
2152 ],
2153 &quot;datastoreDetails&quot;: [ # Identification of a Datastore source used in the Dataflow job.
2154 { # Metadata for a Datastore connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002155 &quot;projectId&quot;: &quot;A String&quot;, # ProjectId accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002156 &quot;namespace&quot;: &quot;A String&quot;, # Namespace used in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002157 },
2158 ],
2159 &quot;pubsubDetails&quot;: [ # Identification of a PubSub source used in the Dataflow job.
2160 { # Metadata for a PubSub connector used by the job.
2161 &quot;subscription&quot;: &quot;A String&quot;, # Subscription used in the connection.
2162 &quot;topic&quot;: &quot;A String&quot;, # Topic accessed in the connection.
2163 },
2164 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002165 &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # The SDK version used to run the job.
2166 &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
2167 &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
2168 &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
2169 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002170 &quot;bigqueryDetails&quot;: [ # Identification of a BigQuery source used in the Dataflow job.
2171 { # Metadata for a BigQuery connector used by the job.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002172 &quot;query&quot;: &quot;A String&quot;, # Query used to access data in the connection.
2173 &quot;table&quot;: &quot;A String&quot;, # Table accessed in the connection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002174 &quot;dataset&quot;: &quot;A String&quot;, # Dataset accessed in the connection.
2175 &quot;projectId&quot;: &quot;A String&quot;, # Project accessed in the connection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002176 },
2177 ],
2178 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002179 &quot;stepsLocation&quot;: &quot;A String&quot;, # The GCS location where the steps are stored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002180 &quot;transformNameMapping&quot;: { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
2181 &quot;a_key&quot;: &quot;A String&quot;,
2182 },
2183 &quot;type&quot;: &quot;A String&quot;, # The type of Cloud Dataflow job.
2184 &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.
2185 &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}
2186 &quot;A String&quot;,
2187 ],
2188 &quot;environment&quot;: { # Describes the environment in which a Dataflow Job runs. # The environment for the job.
2189 &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.
2190 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2191 },
2192 &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.
2193 { # 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.
2194 &quot;diskSourceImage&quot;: &quot;A String&quot;, # Fully qualified source image for disks.
2195 &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.
2196 &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.
2197 &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.
2198 &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.
2199 &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).
2200 &quot;autoscalingSettings&quot;: { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool.
2201 &quot;algorithm&quot;: &quot;A String&quot;, # The algorithm to use for autoscaling.
2202 &quot;maxNumWorkers&quot;: 42, # The maximum number of workers to cap scaling at.
2203 },
2204 &quot;metadata&quot;: { # Metadata to set on the Google Compute Engine VMs.
2205 &quot;a_key&quot;: &quot;A String&quot;,
2206 },
2207 &quot;kind&quot;: &quot;A String&quot;, # The kind of the worker pool; currently only `harness` and `shuffle` are supported.
2208 &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.
2209 &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}
2210 &quot;commandlinesFileName&quot;: &quot;A String&quot;, # The file to store preprocessing commands in.
2211 &quot;dataflowApiVersion&quot;: &quot;A String&quot;, # The API version of endpoint, e.g. &quot;v1b3&quot;
2212 &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;.
2213 &quot;logDir&quot;: &quot;A String&quot;, # The directory on the VM to store logs.
2214 &quot;parallelWorkerSettings&quot;: { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness.
2215 &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}
2216 &quot;reportingEnabled&quot;: True or False, # Whether to send work progress updates to the service.
2217 &quot;shuffleServicePath&quot;: &quot;A String&quot;, # The Shuffle service path relative to the root URL, for example, &quot;shuffle/v1beta1&quot;.
2218 &quot;workerId&quot;: &quot;A String&quot;, # The ID of the worker running this pipeline.
2219 &quot;servicePath&quot;: &quot;A String&quot;, # The Cloud Dataflow service path relative to the root URL, for example, &quot;dataflow/v1b3/projects&quot;.
2220 &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;
2221 },
2222 &quot;vmId&quot;: &quot;A String&quot;, # The ID string of the VM.
2223 &quot;continueOnException&quot;: True or False, # Whether to continue taskrunner if an exception is hit.
2224 &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;
2225 &quot;streamingWorkerMainClass&quot;: &quot;A String&quot;, # The streaming worker main class name.
2226 &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;.
2227 &quot;harnessCommand&quot;: &quot;A String&quot;, # The command to launch the worker harness.
2228 &quot;oauthScopes&quot;: [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
2229 &quot;A String&quot;,
2230 ],
2231 &quot;languageHint&quot;: &quot;A String&quot;, # The suggested backend language.
2232 &quot;baseTaskDir&quot;: &quot;A String&quot;, # The location on the worker for task-specific subdirectories.
2233 &quot;alsologtostderr&quot;: True or False, # Whether to also send taskrunner log info to stderr.
2234 &quot;logToSerialconsole&quot;: True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console.
2235 &quot;workflowFileName&quot;: &quot;A String&quot;, # The file to store the workflow in.
2236 &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}
2237 },
2238 &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.
2239 &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;.
2240 &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.
2241 &quot;packages&quot;: [ # Packages to be installed on workers.
2242 { # 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.
2243 &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/
2244 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
2245 },
2246 ],
2247 &quot;poolArgs&quot;: { # Extra arguments for this worker pool.
2248 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2249 },
2250 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # The action to take on host maintenance, as defined by the Google Compute Engine API.
2251 &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.
2252 &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.
2253 { # Defines a SDK harness container for executing Dataflow pipelines.
2254 &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.
2255 &quot;containerImage&quot;: &quot;A String&quot;, # A docker container image that resides in Google Container Registry.
2256 },
2257 ],
2258 &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;.
2259 &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
2260 &quot;dataDisks&quot;: [ # Data disks that are used by a VM in this workflow.
2261 { # Describes the data disk used by a workflow job.
2262 &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
2263 &quot;sizeGb&quot;: 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
2264 &quot;mountPoint&quot;: &quot;A String&quot;, # Directory in a VM where disk is mounted.
2265 },
2266 ],
2267 &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.
2268 },
2269 ],
2270 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Identity to run virtual machines as. Defaults to the default account.
2271 &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
2272 &quot;flexResourceSchedulingGoal&quot;: &quot;A String&quot;, # Which Flexible Resource Scheduling mode to run in.
2273 &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;.
2274 &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.
2275 &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}
2276 &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.
2277 &quot;internalExperiments&quot;: { # Experimental settings.
2278 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2279 },
2280 &quot;experiments&quot;: [ # The list of experiments to enable.
2281 &quot;A String&quot;,
2282 ],
2283 &quot;userAgent&quot;: { # A description of the process that generated the request.
2284 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2285 },
2286 &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}
2287 &quot;version&quot;: { # A structure describing which components and their versions of the service are required in order to run the job.
2288 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2289 },
2290 },
2291 &quot;executionInfo&quot;: { # Additional information about how a Cloud Dataflow job will be executed that isn&#x27;t contained in the submitted job. # Deprecated.
2292 &quot;stages&quot;: { # A mapping from each stage to the information about that stage.
2293 &quot;a_key&quot;: { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed.
2294 &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.
2295 &quot;A String&quot;,
2296 ],
2297 },
2298 },
2299 },
2300 &quot;stageStates&quot;: [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
2301 { # A message describing the state of a particular execution stage.
2302 &quot;currentStateTime&quot;: &quot;A String&quot;, # The time at which the stage transitioned to this state.
2303 &quot;executionStageState&quot;: &quot;A String&quot;, # Executions stage states allow the same set of values as JobState.
2304 &quot;executionStageName&quot;: &quot;A String&quot;, # The name of the execution stage.
2305 },
2306 ],
2307 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
2308 &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.
2309 &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.
2310 &quot;currentStateTime&quot;: &quot;A String&quot;, # The timestamp associated with the current state.
2311 &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.
2312 &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.
2313 &quot;createdFromSnapshotId&quot;: &quot;A String&quot;, # If this is specified, the job&#x27;s initial state is populated from the given snapshot.
2314 &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.
2315 &quot;executionPipelineStage&quot;: [ # Description of each stage of execution of the pipeline.
2316 { # 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.
2317 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this stage.
2318 &quot;id&quot;: &quot;A String&quot;, # Dataflow service generated id for this stage.
2319 &quot;componentSource&quot;: [ # Collections produced and consumed by component transforms of this stage.
2320 { # Description of an interstitial value between transforms in an execution stage.
2321 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
2322 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2323 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2324 },
2325 ],
2326 &quot;kind&quot;: &quot;A String&quot;, # Type of tranform this stage is executing.
2327 &quot;inputSource&quot;: [ # Input sources for this stage.
2328 { # Description of an input or output of an execution stage.
2329 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
2330 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
2331 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2332 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2333 },
2334 ],
2335 &quot;outputSource&quot;: [ # Output sources for this stage.
2336 { # Description of an input or output of an execution stage.
2337 &quot;sizeBytes&quot;: &quot;A String&quot;, # Size of the source, if measurable.
2338 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this source; may be user or system generated.
2339 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2340 &quot;originalTransformOrCollection&quot;: &quot;A String&quot;, # User name for the original user transform or collection with which this source is most closely associated.
2341 },
2342 ],
2343 &quot;prerequisiteStage&quot;: [ # Other stages that must complete before this stage can run.
2344 &quot;A String&quot;,
2345 ],
2346 &quot;componentTransform&quot;: [ # Transforms that comprise this execution stage.
2347 { # Description of a transform executed as part of an execution stage.
2348 &quot;name&quot;: &quot;A String&quot;, # Dataflow service generated name for this source.
2349 &quot;originalTransform&quot;: &quot;A String&quot;, # User name for the original user transform with which this transform is most closely associated.
2350 &quot;userName&quot;: &quot;A String&quot;, # Human-readable name for this transform; may be user or system generated.
2351 },
2352 ],
2353 },
2354 ],
2355 &quot;originalPipelineTransform&quot;: [ # Description of each transform in the pipeline and collections between them.
2356 { # Description of the type, names/ids, and input/outputs for a transform.
2357 &quot;inputCollectionName&quot;: [ # User names for all collection inputs to this transform.
2358 &quot;A String&quot;,
2359 ],
2360 &quot;outputCollectionName&quot;: [ # User names for all collection outputs to this transform.
2361 &quot;A String&quot;,
2362 ],
2363 &quot;name&quot;: &quot;A String&quot;, # User provided name for this transform instance.
2364 &quot;id&quot;: &quot;A String&quot;, # SDK generated id of this transform instance.
2365 &quot;displayData&quot;: [ # Transform-specific display data.
2366 { # Data provided with a pipeline or transform to provide descriptive info.
2367 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
2368 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
2369 &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.
2370 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
2371 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
2372 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
2373 &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.
2374 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
2375 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
2376 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
2377 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
2378 &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.
2379 },
2380 ],
2381 &quot;kind&quot;: &quot;A String&quot;, # Type of transform.
2382 },
2383 ],
2384 &quot;displayData&quot;: [ # Pipeline level display data.
2385 { # Data provided with a pipeline or transform to provide descriptive info.
2386 &quot;boolValue&quot;: True or False, # Contains value if the data is of a boolean type.
2387 &quot;url&quot;: &quot;A String&quot;, # An optional full URL.
2388 &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.
2389 &quot;floatValue&quot;: 3.14, # Contains value if the data is of float type.
2390 &quot;int64Value&quot;: &quot;A String&quot;, # Contains value if the data is of int64 type.
2391 &quot;durationValue&quot;: &quot;A String&quot;, # Contains value if the data is of duration type.
2392 &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.
2393 &quot;label&quot;: &quot;A String&quot;, # An optional label to display in a dax UI for the element.
2394 &quot;timestampValue&quot;: &quot;A String&quot;, # Contains value if the data is of timestamp type.
2395 &quot;javaClassValue&quot;: &quot;A String&quot;, # Contains value if the data is of java class type.
2396 &quot;strValue&quot;: &quot;A String&quot;, # Contains value if the data is of string type.
2397 &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.
2398 },
2399 ],
2400 },
2401 &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job.
2402 &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.
2403 &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])?`
2404 &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 -07002405 }</pre>
Nathaniel Manista4f877e52015-06-15 16:44:50 +00002406</div>
2407
2408</body></html>