Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 75 | <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 Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 78 | <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 Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 83 | <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"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 93 | <code><a href="#aggregated">aggregated(projectId, pageSize=None, location=None, view=None, filter=None, pageToken=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | <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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 99 | <code><a href="#close">close()</a></code></p> |
| 100 | <p class="firstline">Close httplib2 connections.</p> |
| 101 | <p class="toc_element"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 102 | <code><a href="#create">create(projectId, body=None, location=None, view=None, replaceJobId=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 103 | <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 Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 104 | <p class="toc_element"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 105 | <code><a href="#get">get(projectId, jobId, view=None, location=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 106 | <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 Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 107 | <p class="toc_element"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 108 | <code><a href="#getMetrics">getMetrics(projectId, jobId, location=None, startTime=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 109 | <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 Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 110 | <p class="toc_element"> |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 111 | <code><a href="#list">list(projectId, location=None, pageSize=None, filter=None, view=None, pageToken=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 112 | <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 Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 113 | <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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 117 | <code><a href="#snapshot">snapshot(projectId, jobId, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 118 | <p class="firstline">Snapshot the state of a streaming job.</p> |
| 119 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 120 | <code><a href="#update">update(projectId, jobId, body=None, location=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 121 | <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 Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 122 | <h3>Method Details</h3> |
| 123 | <div class="method"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 124 | <code class="details" id="aggregated">aggregated(projectId, pageSize=None, location=None, view=None, filter=None, pageToken=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 125 | <pre>List the jobs of a project across all regions. |
| 126 | |
| 127 | Args: |
| 128 | projectId: string, The project which owns the jobs. (required) |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 129 | 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 130 | location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 131 | view: string, Level of information requested in response. Default is `JOB_VIEW_SUMMARY`. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 132 | Allowed values |
| 133 | JOB_VIEW_UNKNOWN - The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information. |
| 134 | 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. |
| 135 | JOB_VIEW_ALL - Request all information available for this job. |
| 136 | JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 137 | filter: string, The kind of filter to use. |
| 138 | Allowed values |
| 139 | UNKNOWN - The filter isn't specified, or is unknown. This returns all jobs ordered on descending `JobUuid`. |
| 140 | ALL - Returns all running jobs first ordered on creation timestamp, then returns all terminated jobs ordered on the termination timestamp. |
| 141 | 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. |
| 142 | ACTIVE - Filters the jobs that are running ordered on the creation timestamp. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 143 | pageToken: string, Set this to the 'next_page_token' field of a previous response to request additional results in a long list. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 144 | x__xgafv: string, V1 error format. |
| 145 | Allowed values |
| 146 | 1 - v1 error format |
| 147 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 148 | |
| 149 | Returns: |
| 150 | An object of the form: |
| 151 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 152 | { # 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's response body is empty {}. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 153 | "failedLocation": [ # Zero or more messages describing the [regional endpoints] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond. |
| 154 | { # Indicates which [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed to respond to a request for data. |
| 155 | "name": "A String", # The name of the [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond. |
| 156 | }, |
| 157 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 158 | "nextPageToken": "A String", # Set if there may be more results than fit in this response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 159 | "jobs": [ # A subset of the requested job information. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 160 | { # Defines a job to be run by the Cloud Dataflow service. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 161 | "id": "A String", # 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. |
| 162 | "pipelineDescription": { # 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. |
| 163 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 164 | { # 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. |
| 165 | "kind": "A String", # Type of tranform this stage is executing. |
| 166 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 167 | { # Description of a transform executed as part of an execution stage. |
| 168 | "name": "A String", # Dataflow service generated name for this source. |
| 169 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 170 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
| 171 | }, |
| 172 | ], |
| 173 | "id": "A String", # Dataflow service generated id for this stage. |
| 174 | "name": "A String", # Dataflow service generated name for this stage. |
| 175 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 176 | { # Description of an interstitial value between transforms in an execution stage. |
| 177 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 178 | "name": "A String", # Dataflow service generated name for this source. |
| 179 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 180 | }, |
| 181 | ], |
| 182 | "inputSource": [ # Input sources for this stage. |
| 183 | { # Description of an input or output of an execution stage. |
| 184 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 185 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 186 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 187 | "name": "A String", # Dataflow service generated name for this source. |
| 188 | }, |
| 189 | ], |
| 190 | "prerequisiteStage": [ # Other stages that must complete before this stage can run. |
| 191 | "A String", |
| 192 | ], |
| 193 | "outputSource": [ # Output sources for this stage. |
| 194 | { # Description of an input or output of an execution stage. |
| 195 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 196 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 197 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 198 | "name": "A String", # Dataflow service generated name for this source. |
| 199 | }, |
| 200 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 201 | }, |
| 202 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 203 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 204 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 205 | "kind": "A String", # Type of transform. |
| 206 | "displayData": [ # Transform-specific display data. |
| 207 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 208 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 209 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 210 | "namespace": "A String", # 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. |
| 211 | "shortStrValue": "A String", # 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. |
| 212 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 213 | "key": "A String", # 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. |
| 214 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 215 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 216 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 217 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 218 | "url": "A String", # An optional full URL. |
| 219 | "strValue": "A String", # Contains value if the data is of string type. |
| 220 | }, |
| 221 | ], |
| 222 | "name": "A String", # User provided name for this transform instance. |
| 223 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 224 | "A String", |
| 225 | ], |
| 226 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 227 | "A String", |
| 228 | ], |
| 229 | "id": "A String", # SDK generated id of this transform instance. |
| 230 | }, |
| 231 | ], |
| 232 | "displayData": [ # Pipeline level display data. |
| 233 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 234 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 235 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 236 | "namespace": "A String", # 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. |
| 237 | "shortStrValue": "A String", # 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. |
| 238 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 239 | "key": "A String", # 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. |
| 240 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 241 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 242 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 243 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 244 | "url": "A String", # An optional full URL. |
| 245 | "strValue": "A String", # Contains value if the data is of string type. |
| 246 | }, |
| 247 | ], |
| 248 | }, |
| 249 | "labels": { # 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 <= 128 bytes in size. |
| 250 | "a_key": "A String", |
| 251 | }, |
| 252 | "tempFiles": [ # 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} |
| 253 | "A String", |
| 254 | ], |
| 255 | "name": "A String", # 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])?` |
| 256 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 257 | "clusterManagerApiService": "A String", # 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. "compute.googleapis.com". |
| 258 | "sdkPipelineOptions": { # 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. |
| 259 | "a_key": "", # Properties of the object. |
| 260 | }, |
| 261 | "experiments": [ # The list of experiments to enable. |
| 262 | "A String", |
| 263 | ], |
| 264 | "dataset": "A String", # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} |
| 265 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
| 266 | "a_key": "", # Properties of the object. |
| 267 | }, |
| 268 | "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. |
| 269 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary storage. The system will append the suffix "/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} |
| 270 | "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. |
| 271 | "internalExperiments": { # Experimental settings. |
| 272 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 273 | }, |
| 274 | "serviceKmsKeyName": "A String", # 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 |
| 275 | "userAgent": { # A description of the process that generated the request. |
| 276 | "a_key": "", # Properties of the object. |
| 277 | }, |
| 278 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 279 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 280 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 281 | { # 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. |
| 282 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 283 | "packages": [ # Packages to be installed on workers. |
| 284 | { # 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's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run. |
| 285 | "location": "A String", # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ |
| 286 | "name": "A String", # The name of the package. |
| 287 | }, |
| 288 | ], |
| 289 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 290 | "teardownPolicy": "A String", # 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'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. |
| 291 | "sdkHarnessContainerImages": [ # 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. |
| 292 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 293 | "useSingleCorePerContainer": 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. |
| 294 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 295 | }, |
| 296 | ], |
| 297 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 298 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 299 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 300 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 301 | "tempStoragePrefix": "A String", # 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} |
| 302 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 303 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 304 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 305 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 306 | }, |
| 307 | "tempStoragePrefix": "A String", # 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} |
| 308 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 309 | "vmId": "A String", # The ID string of the VM. |
| 310 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 311 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 312 | "languageHint": "A String", # The suggested backend language. |
| 313 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 314 | "logDir": "A String", # The directory on the VM to store logs. |
| 315 | "workflowFileName": "A String", # The file to store the workflow in. |
| 316 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 317 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 318 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
| 319 | "A String", |
| 320 | ], |
| 321 | "logUploadLocation": "A String", # 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} |
| 322 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 323 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 324 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 325 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 326 | }, |
| 327 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 328 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 329 | "a_key": "A String", |
| 330 | }, |
| 331 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 332 | "workerHarnessContainerImage": "A String", # 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. |
| 333 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
| 334 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 335 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 336 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 337 | }, |
| 338 | "defaultPackageSet": "A String", # 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. |
| 339 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 340 | "poolArgs": { # Extra arguments for this worker pool. |
| 341 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 342 | }, |
| 343 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 344 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 345 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 346 | "numWorkers": 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. |
| 347 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 348 | { # Describes the data disk used by a workflow job. |
| 349 | "diskType": "A String", # 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 "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". 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 |
| 350 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 351 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 352 | }, |
| 353 | ], |
| 354 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 355 | "numThreadsPerWorker": 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). |
| 356 | }, |
| 357 | ], |
| 358 | }, |
| 359 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 360 | "currentState": "A String", # 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. |
| 361 | "jobMetadata": { # 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. |
| 362 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 363 | { # Metadata for a BigTable connector used by the job. |
| 364 | "tableId": "A String", # TableId accessed in the connection. |
| 365 | "projectId": "A String", # ProjectId accessed in the connection. |
| 366 | "instanceId": "A String", # InstanceId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 367 | }, |
| 368 | ], |
| 369 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 370 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 371 | "version": "A String", # The version of the SDK used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 372 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 373 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 374 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 375 | { # Metadata for a BigQuery connector used by the job. |
| 376 | "dataset": "A String", # Dataset accessed in the connection. |
| 377 | "table": "A String", # Table accessed in the connection. |
| 378 | "projectId": "A String", # Project accessed in the connection. |
| 379 | "query": "A String", # Query used to access data in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 380 | }, |
| 381 | ], |
| 382 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 383 | { # Metadata for a File connector used by the job. |
| 384 | "filePattern": "A String", # File Pattern used to access files by the connector. |
| 385 | }, |
| 386 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 387 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 388 | { # Metadata for a Datastore connector used by the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 389 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 390 | "namespace": "A String", # Namespace used in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 391 | }, |
| 392 | ], |
| 393 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 394 | { # Metadata for a Spanner connector used by the job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 395 | "databaseId": "A String", # DatabaseId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 396 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 397 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 398 | }, |
| 399 | ], |
| 400 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 401 | { # Metadata for a PubSub connector used by the job. |
| 402 | "subscription": "A String", # Subscription used in the connection. |
| 403 | "topic": "A String", # Topic accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 404 | }, |
| 405 | ], |
| 406 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 407 | "replacedByJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 408 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 409 | "a_key": "A String", |
| 410 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 411 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 412 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 413 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 414 | "stages": { # A mapping from each stage to the information about that stage. |
| 415 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 416 | "stepName": [ # 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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 417 | "A String", |
| 418 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 419 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 420 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 421 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 422 | "type": "A String", # The type of Cloud Dataflow job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 423 | "clientRequestId": "A String", # The client'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'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. |
| 424 | "requestedState": "A String", # The job'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's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state. |
| 425 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 426 | "startTime": "A String", # 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. |
| 427 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 428 | "steps": [ # 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. |
| 429 | { # 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'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'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. |
| 430 | "properties": { # 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. |
| 431 | "a_key": "", # Properties of the object. |
| 432 | }, |
| 433 | "name": "A String", # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. |
| 434 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 435 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 436 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 437 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 438 | { # A message describing the state of a particular execution stage. |
| 439 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 440 | "executionStageName": "A String", # The name of the execution stage. |
| 441 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 442 | }, |
| 443 | ], |
| 444 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 445 | "replaceJobId": "A String", # 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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 446 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 447 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 448 | }</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 | |
| 455 | Args: |
| 456 | previous_request: The request for the previous page. (required) |
| 457 | previous_response: The response from the request for the previous page. (required) |
| 458 | |
| 459 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 460 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 461 | page. Returns None if there are no more items in the collection. |
| 462 | </pre> |
| 463 | </div> |
| 464 | |
| 465 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 466 | <code class="details" id="close">close()</code> |
| 467 | <pre>Close httplib2 connections.</pre> |
| 468 | </div> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 469 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 470 | <div class="method"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 471 | <code class="details" id="create">create(projectId, body=None, location=None, view=None, replaceJobId=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 472 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 473 | |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 474 | Args: |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 475 | projectId: string, The ID of the Cloud Platform project that the job belongs to. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 476 | body: object, The request body. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 477 | The object takes the form of: |
| 478 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 479 | { # Defines a job to be run by the Cloud Dataflow service. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 480 | "id": "A String", # 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. |
| 481 | "pipelineDescription": { # 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. |
| 482 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 483 | { # 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. |
| 484 | "kind": "A String", # Type of tranform this stage is executing. |
| 485 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 486 | { # Description of a transform executed as part of an execution stage. |
| 487 | "name": "A String", # Dataflow service generated name for this source. |
| 488 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 489 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
| 490 | }, |
| 491 | ], |
| 492 | "id": "A String", # Dataflow service generated id for this stage. |
| 493 | "name": "A String", # Dataflow service generated name for this stage. |
| 494 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 495 | { # Description of an interstitial value between transforms in an execution stage. |
| 496 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 497 | "name": "A String", # Dataflow service generated name for this source. |
| 498 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 499 | }, |
| 500 | ], |
| 501 | "inputSource": [ # Input sources for this stage. |
| 502 | { # Description of an input or output of an execution stage. |
| 503 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 504 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 505 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 506 | "name": "A String", # Dataflow service generated name for this source. |
| 507 | }, |
| 508 | ], |
| 509 | "prerequisiteStage": [ # Other stages that must complete before this stage can run. |
| 510 | "A String", |
| 511 | ], |
| 512 | "outputSource": [ # Output sources for this stage. |
| 513 | { # Description of an input or output of an execution stage. |
| 514 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 515 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 516 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 517 | "name": "A String", # Dataflow service generated name for this source. |
| 518 | }, |
| 519 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 520 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 521 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 522 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 523 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 524 | "kind": "A String", # Type of transform. |
| 525 | "displayData": [ # Transform-specific display data. |
| 526 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 527 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 528 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 529 | "namespace": "A String", # 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. |
| 530 | "shortStrValue": "A String", # 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. |
| 531 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 532 | "key": "A String", # 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. |
| 533 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 534 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 535 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 536 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 537 | "url": "A String", # An optional full URL. |
| 538 | "strValue": "A String", # Contains value if the data is of string type. |
| 539 | }, |
| 540 | ], |
| 541 | "name": "A String", # User provided name for this transform instance. |
| 542 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 543 | "A String", |
| 544 | ], |
| 545 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 546 | "A String", |
| 547 | ], |
| 548 | "id": "A String", # SDK generated id of this transform instance. |
| 549 | }, |
| 550 | ], |
| 551 | "displayData": [ # Pipeline level display data. |
| 552 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 553 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 554 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 555 | "namespace": "A String", # 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. |
| 556 | "shortStrValue": "A String", # 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. |
| 557 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 558 | "key": "A String", # 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. |
| 559 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 560 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 561 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 562 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 563 | "url": "A String", # An optional full URL. |
| 564 | "strValue": "A String", # Contains value if the data is of string type. |
| 565 | }, |
| 566 | ], |
| 567 | }, |
| 568 | "labels": { # 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 <= 128 bytes in size. |
| 569 | "a_key": "A String", |
| 570 | }, |
| 571 | "tempFiles": [ # 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} |
| 572 | "A String", |
| 573 | ], |
| 574 | "name": "A String", # 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])?` |
| 575 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 576 | "clusterManagerApiService": "A String", # 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. "compute.googleapis.com". |
| 577 | "sdkPipelineOptions": { # 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. |
| 578 | "a_key": "", # Properties of the object. |
| 579 | }, |
| 580 | "experiments": [ # The list of experiments to enable. |
| 581 | "A String", |
| 582 | ], |
| 583 | "dataset": "A String", # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} |
| 584 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
| 585 | "a_key": "", # Properties of the object. |
| 586 | }, |
| 587 | "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. |
| 588 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary storage. The system will append the suffix "/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} |
| 589 | "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. |
| 590 | "internalExperiments": { # Experimental settings. |
| 591 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 592 | }, |
| 593 | "serviceKmsKeyName": "A String", # 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 |
| 594 | "userAgent": { # A description of the process that generated the request. |
| 595 | "a_key": "", # Properties of the object. |
| 596 | }, |
| 597 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 598 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 599 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 600 | { # 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. |
| 601 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 602 | "packages": [ # Packages to be installed on workers. |
| 603 | { # 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's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run. |
| 604 | "location": "A String", # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ |
| 605 | "name": "A String", # The name of the package. |
| 606 | }, |
| 607 | ], |
| 608 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 609 | "teardownPolicy": "A String", # 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'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. |
| 610 | "sdkHarnessContainerImages": [ # 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. |
| 611 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 612 | "useSingleCorePerContainer": 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. |
| 613 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 614 | }, |
| 615 | ], |
| 616 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 617 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 618 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 619 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 620 | "tempStoragePrefix": "A String", # 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} |
| 621 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 622 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 623 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 624 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 625 | }, |
| 626 | "tempStoragePrefix": "A String", # 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} |
| 627 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 628 | "vmId": "A String", # The ID string of the VM. |
| 629 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 630 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 631 | "languageHint": "A String", # The suggested backend language. |
| 632 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 633 | "logDir": "A String", # The directory on the VM to store logs. |
| 634 | "workflowFileName": "A String", # The file to store the workflow in. |
| 635 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 636 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 637 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
| 638 | "A String", |
| 639 | ], |
| 640 | "logUploadLocation": "A String", # 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} |
| 641 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 642 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 643 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 644 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 645 | }, |
| 646 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 647 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 648 | "a_key": "A String", |
| 649 | }, |
| 650 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 651 | "workerHarnessContainerImage": "A String", # 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. |
| 652 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
| 653 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 654 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 655 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 656 | }, |
| 657 | "defaultPackageSet": "A String", # 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. |
| 658 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 659 | "poolArgs": { # Extra arguments for this worker pool. |
| 660 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 661 | }, |
| 662 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 663 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 664 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 665 | "numWorkers": 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. |
| 666 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 667 | { # Describes the data disk used by a workflow job. |
| 668 | "diskType": "A String", # 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 "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". 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 |
| 669 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 670 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 671 | }, |
| 672 | ], |
| 673 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 674 | "numThreadsPerWorker": 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). |
| 675 | }, |
| 676 | ], |
| 677 | }, |
| 678 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 679 | "currentState": "A String", # 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. |
| 680 | "jobMetadata": { # 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. |
| 681 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 682 | { # Metadata for a BigTable connector used by the job. |
| 683 | "tableId": "A String", # TableId accessed in the connection. |
| 684 | "projectId": "A String", # ProjectId accessed in the connection. |
| 685 | "instanceId": "A String", # InstanceId accessed in the connection. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 686 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 687 | ], |
| 688 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 689 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 690 | "version": "A String", # The version of the SDK used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 691 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 692 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 693 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 694 | { # Metadata for a BigQuery connector used by the job. |
| 695 | "dataset": "A String", # Dataset accessed in the connection. |
| 696 | "table": "A String", # Table accessed in the connection. |
| 697 | "projectId": "A String", # Project accessed in the connection. |
| 698 | "query": "A String", # Query used to access data in the connection. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 699 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 700 | ], |
| 701 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 702 | { # Metadata for a File connector used by the job. |
| 703 | "filePattern": "A String", # File Pattern used to access files by the connector. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 704 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 705 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 706 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 707 | { # Metadata for a Datastore connector used by the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 708 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 709 | "namespace": "A String", # Namespace used in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 710 | }, |
| 711 | ], |
| 712 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 713 | { # Metadata for a Spanner connector used by the job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 714 | "databaseId": "A String", # DatabaseId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 715 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 716 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 717 | }, |
| 718 | ], |
| 719 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 720 | { # Metadata for a PubSub connector used by the job. |
| 721 | "subscription": "A String", # Subscription used in the connection. |
| 722 | "topic": "A String", # Topic accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 723 | }, |
| 724 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 725 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 726 | "replacedByJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 727 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 728 | "a_key": "A String", |
| 729 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 730 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 731 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 732 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 733 | "stages": { # A mapping from each stage to the information about that stage. |
| 734 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 735 | "stepName": [ # 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. |
| 736 | "A String", |
| 737 | ], |
| 738 | }, |
| 739 | }, |
| 740 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 741 | "type": "A String", # The type of Cloud Dataflow job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 742 | "clientRequestId": "A String", # The client'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'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. |
| 743 | "requestedState": "A String", # The job'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's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state. |
| 744 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 745 | "startTime": "A String", # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service. |
| 746 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 747 | "steps": [ # 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. |
| 748 | { # 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'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'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. |
| 749 | "properties": { # 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. |
| 750 | "a_key": "", # Properties of the object. |
| 751 | }, |
| 752 | "name": "A String", # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. |
| 753 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 754 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 755 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 756 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 757 | { # A message describing the state of a particular execution stage. |
| 758 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 759 | "executionStageName": "A String", # The name of the execution stage. |
| 760 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 761 | }, |
| 762 | ], |
| 763 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 764 | "replaceJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 765 | } |
| 766 | |
| 767 | location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 768 | view: string, The level of information requested in response. |
| 769 | Allowed values |
| 770 | JOB_VIEW_UNKNOWN - The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information. |
| 771 | 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. |
| 772 | JOB_VIEW_ALL - Request all information available for this job. |
| 773 | JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 774 | replaceJobId: string, Deprecated. This field is now in the Job message. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 775 | x__xgafv: string, V1 error format. |
| 776 | Allowed values |
| 777 | 1 - v1 error format |
| 778 | 2 - v2 error format |
| 779 | |
| 780 | Returns: |
| 781 | An object of the form: |
| 782 | |
| 783 | { # Defines a job to be run by the Cloud Dataflow service. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 784 | "id": "A String", # 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. |
| 785 | "pipelineDescription": { # 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. |
| 786 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 787 | { # 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. |
| 788 | "kind": "A String", # Type of tranform this stage is executing. |
| 789 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 790 | { # Description of a transform executed as part of an execution stage. |
| 791 | "name": "A String", # Dataflow service generated name for this source. |
| 792 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 793 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
| 794 | }, |
| 795 | ], |
| 796 | "id": "A String", # Dataflow service generated id for this stage. |
| 797 | "name": "A String", # Dataflow service generated name for this stage. |
| 798 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 799 | { # Description of an interstitial value between transforms in an execution stage. |
| 800 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 801 | "name": "A String", # Dataflow service generated name for this source. |
| 802 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 803 | }, |
| 804 | ], |
| 805 | "inputSource": [ # Input sources for this stage. |
| 806 | { # Description of an input or output of an execution stage. |
| 807 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 808 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 809 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 810 | "name": "A String", # Dataflow service generated name for this source. |
| 811 | }, |
| 812 | ], |
| 813 | "prerequisiteStage": [ # Other stages that must complete before this stage can run. |
| 814 | "A String", |
| 815 | ], |
| 816 | "outputSource": [ # Output sources for this stage. |
| 817 | { # Description of an input or output of an execution stage. |
| 818 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 819 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 820 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 821 | "name": "A String", # Dataflow service generated name for this source. |
| 822 | }, |
| 823 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 824 | }, |
| 825 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 826 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 827 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 828 | "kind": "A String", # Type of transform. |
| 829 | "displayData": [ # Transform-specific display data. |
| 830 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 831 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 832 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 833 | "namespace": "A String", # 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. |
| 834 | "shortStrValue": "A String", # A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip. |
| 835 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 836 | "key": "A String", # 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. |
| 837 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 838 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 839 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 840 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 841 | "url": "A String", # An optional full URL. |
| 842 | "strValue": "A String", # Contains value if the data is of string type. |
| 843 | }, |
| 844 | ], |
| 845 | "name": "A String", # User provided name for this transform instance. |
| 846 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 847 | "A String", |
| 848 | ], |
| 849 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 850 | "A String", |
| 851 | ], |
| 852 | "id": "A String", # SDK generated id of this transform instance. |
| 853 | }, |
| 854 | ], |
| 855 | "displayData": [ # Pipeline level display data. |
| 856 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 857 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 858 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 859 | "namespace": "A String", # 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. |
| 860 | "shortStrValue": "A String", # 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. |
| 861 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 862 | "key": "A String", # 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. |
| 863 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 864 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 865 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 866 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 867 | "url": "A String", # An optional full URL. |
| 868 | "strValue": "A String", # Contains value if the data is of string type. |
| 869 | }, |
| 870 | ], |
| 871 | }, |
| 872 | "labels": { # 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 <= 128 bytes in size. |
| 873 | "a_key": "A String", |
| 874 | }, |
| 875 | "tempFiles": [ # 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} |
| 876 | "A String", |
| 877 | ], |
| 878 | "name": "A String", # 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])?` |
| 879 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 880 | "clusterManagerApiService": "A String", # 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. "compute.googleapis.com". |
| 881 | "sdkPipelineOptions": { # 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. |
| 882 | "a_key": "", # Properties of the object. |
| 883 | }, |
| 884 | "experiments": [ # The list of experiments to enable. |
| 885 | "A String", |
| 886 | ], |
| 887 | "dataset": "A String", # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} |
| 888 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
| 889 | "a_key": "", # Properties of the object. |
| 890 | }, |
| 891 | "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. |
| 892 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary storage. The system will append the suffix "/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} |
| 893 | "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. |
| 894 | "internalExperiments": { # Experimental settings. |
| 895 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 896 | }, |
| 897 | "serviceKmsKeyName": "A String", # 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 |
| 898 | "userAgent": { # A description of the process that generated the request. |
| 899 | "a_key": "", # Properties of the object. |
| 900 | }, |
| 901 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 902 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 903 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 904 | { # 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. |
| 905 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 906 | "packages": [ # Packages to be installed on workers. |
| 907 | { # 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's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run. |
| 908 | "location": "A String", # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ |
| 909 | "name": "A String", # The name of the package. |
| 910 | }, |
| 911 | ], |
| 912 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 913 | "teardownPolicy": "A String", # 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'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. |
| 914 | "sdkHarnessContainerImages": [ # 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. |
| 915 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 916 | "useSingleCorePerContainer": 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. |
| 917 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 918 | }, |
| 919 | ], |
| 920 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 921 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 922 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 923 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 924 | "tempStoragePrefix": "A String", # 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} |
| 925 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 926 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 927 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 928 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 929 | }, |
| 930 | "tempStoragePrefix": "A String", # 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} |
| 931 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 932 | "vmId": "A String", # The ID string of the VM. |
| 933 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 934 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 935 | "languageHint": "A String", # The suggested backend language. |
| 936 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 937 | "logDir": "A String", # The directory on the VM to store logs. |
| 938 | "workflowFileName": "A String", # The file to store the workflow in. |
| 939 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 940 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 941 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
| 942 | "A String", |
| 943 | ], |
| 944 | "logUploadLocation": "A String", # 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} |
| 945 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 946 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 947 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 948 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 949 | }, |
| 950 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 951 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 952 | "a_key": "A String", |
| 953 | }, |
| 954 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 955 | "workerHarnessContainerImage": "A String", # 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. |
| 956 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
| 957 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 958 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 959 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 960 | }, |
| 961 | "defaultPackageSet": "A String", # 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. |
| 962 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 963 | "poolArgs": { # Extra arguments for this worker pool. |
| 964 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 965 | }, |
| 966 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 967 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 968 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 969 | "numWorkers": 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. |
| 970 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 971 | { # Describes the data disk used by a workflow job. |
| 972 | "diskType": "A String", # 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 "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". 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 |
| 973 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 974 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 975 | }, |
| 976 | ], |
| 977 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 978 | "numThreadsPerWorker": 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). |
| 979 | }, |
| 980 | ], |
| 981 | }, |
| 982 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 983 | "currentState": "A String", # 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. |
| 984 | "jobMetadata": { # 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. |
| 985 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 986 | { # Metadata for a BigTable connector used by the job. |
| 987 | "tableId": "A String", # TableId accessed in the connection. |
| 988 | "projectId": "A String", # ProjectId accessed in the connection. |
| 989 | "instanceId": "A String", # InstanceId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 990 | }, |
| 991 | ], |
| 992 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 993 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 994 | "version": "A String", # The version of the SDK used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 995 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 996 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 997 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 998 | { # Metadata for a BigQuery connector used by the job. |
| 999 | "dataset": "A String", # Dataset accessed in the connection. |
| 1000 | "table": "A String", # Table accessed in the connection. |
| 1001 | "projectId": "A String", # Project accessed in the connection. |
| 1002 | "query": "A String", # Query used to access data in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1003 | }, |
| 1004 | ], |
| 1005 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 1006 | { # Metadata for a File connector used by the job. |
| 1007 | "filePattern": "A String", # File Pattern used to access files by the connector. |
| 1008 | }, |
| 1009 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1010 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 1011 | { # Metadata for a Datastore connector used by the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1012 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1013 | "namespace": "A String", # Namespace used in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1014 | }, |
| 1015 | ], |
| 1016 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 1017 | { # Metadata for a Spanner connector used by the job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1018 | "databaseId": "A String", # DatabaseId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1019 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 1020 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1021 | }, |
| 1022 | ], |
| 1023 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 1024 | { # Metadata for a PubSub connector used by the job. |
| 1025 | "subscription": "A String", # Subscription used in the connection. |
| 1026 | "topic": "A String", # Topic accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1027 | }, |
| 1028 | ], |
| 1029 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1030 | "replacedByJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1031 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 1032 | "a_key": "A String", |
| 1033 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1034 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1035 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1036 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 1037 | "stages": { # A mapping from each stage to the information about that stage. |
| 1038 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 1039 | "stepName": [ # 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. |
| 1040 | "A String", |
| 1041 | ], |
| 1042 | }, |
| 1043 | }, |
| 1044 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1045 | "type": "A String", # The type of Cloud Dataflow job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1046 | "clientRequestId": "A String", # The client'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'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. |
| 1047 | "requestedState": "A String", # The job'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's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state. |
| 1048 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 1049 | "startTime": "A String", # 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. |
| 1050 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 1051 | "steps": [ # 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. |
| 1052 | { # 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'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'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. |
| 1053 | "properties": { # 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. |
| 1054 | "a_key": "", # Properties of the object. |
| 1055 | }, |
| 1056 | "name": "A String", # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. |
| 1057 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 1058 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1059 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1060 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 1061 | { # A message describing the state of a particular execution stage. |
| 1062 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 1063 | "executionStageName": "A String", # The name of the execution stage. |
| 1064 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 1065 | }, |
| 1066 | ], |
| 1067 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 1068 | "replaceJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1069 | }</pre> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1070 | </div> |
| 1071 | |
| 1072 | <div class="method"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1073 | <code class="details" id="get">get(projectId, jobId, view=None, location=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 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 | |
| 1076 | Args: |
| 1077 | projectId: string, The ID of the Cloud Platform project that the job belongs to. (required) |
| 1078 | jobId: string, The job ID. (required) |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1079 | view: string, The level of information requested in response. |
| 1080 | Allowed values |
| 1081 | JOB_VIEW_UNKNOWN - The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information. |
| 1082 | 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. |
| 1083 | JOB_VIEW_ALL - Request all information available for this job. |
| 1084 | JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1085 | location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1086 | x__xgafv: string, V1 error format. |
| 1087 | Allowed values |
| 1088 | 1 - v1 error format |
| 1089 | 2 - v2 error format |
| 1090 | |
| 1091 | Returns: |
| 1092 | An object of the form: |
| 1093 | |
| 1094 | { # Defines a job to be run by the Cloud Dataflow service. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1095 | "id": "A String", # 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. |
| 1096 | "pipelineDescription": { # 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. |
| 1097 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 1098 | { # 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. |
| 1099 | "kind": "A String", # Type of tranform this stage is executing. |
| 1100 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 1101 | { # Description of a transform executed as part of an execution stage. |
| 1102 | "name": "A String", # Dataflow service generated name for this source. |
| 1103 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 1104 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
| 1105 | }, |
| 1106 | ], |
| 1107 | "id": "A String", # Dataflow service generated id for this stage. |
| 1108 | "name": "A String", # Dataflow service generated name for this stage. |
| 1109 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 1110 | { # Description of an interstitial value between transforms in an execution stage. |
| 1111 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1112 | "name": "A String", # Dataflow service generated name for this source. |
| 1113 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 1114 | }, |
| 1115 | ], |
| 1116 | "inputSource": [ # Input sources for this stage. |
| 1117 | { # Description of an input or output of an execution stage. |
| 1118 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 1119 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 1120 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1121 | "name": "A String", # Dataflow service generated name for this source. |
| 1122 | }, |
| 1123 | ], |
| 1124 | "prerequisiteStage": [ # Other stages that must complete before this stage can run. |
| 1125 | "A String", |
| 1126 | ], |
| 1127 | "outputSource": [ # Output sources for this stage. |
| 1128 | { # Description of an input or output of an execution stage. |
| 1129 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 1130 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 1131 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1132 | "name": "A String", # Dataflow service generated name for this source. |
| 1133 | }, |
| 1134 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1135 | }, |
| 1136 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1137 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 1138 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 1139 | "kind": "A String", # Type of transform. |
| 1140 | "displayData": [ # Transform-specific display data. |
| 1141 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 1142 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 1143 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 1144 | "namespace": "A String", # 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. |
| 1145 | "shortStrValue": "A String", # 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. |
| 1146 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 1147 | "key": "A String", # 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. |
| 1148 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 1149 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 1150 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 1151 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 1152 | "url": "A String", # An optional full URL. |
| 1153 | "strValue": "A String", # Contains value if the data is of string type. |
| 1154 | }, |
| 1155 | ], |
| 1156 | "name": "A String", # User provided name for this transform instance. |
| 1157 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 1158 | "A String", |
| 1159 | ], |
| 1160 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 1161 | "A String", |
| 1162 | ], |
| 1163 | "id": "A String", # SDK generated id of this transform instance. |
| 1164 | }, |
| 1165 | ], |
| 1166 | "displayData": [ # Pipeline level display data. |
| 1167 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 1168 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 1169 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 1170 | "namespace": "A String", # 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. |
| 1171 | "shortStrValue": "A String", # 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. |
| 1172 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 1173 | "key": "A String", # 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. |
| 1174 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 1175 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 1176 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 1177 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 1178 | "url": "A String", # An optional full URL. |
| 1179 | "strValue": "A String", # Contains value if the data is of string type. |
| 1180 | }, |
| 1181 | ], |
| 1182 | }, |
| 1183 | "labels": { # 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 <= 128 bytes in size. |
| 1184 | "a_key": "A String", |
| 1185 | }, |
| 1186 | "tempFiles": [ # 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} |
| 1187 | "A String", |
| 1188 | ], |
| 1189 | "name": "A String", # 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])?` |
| 1190 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 1191 | "clusterManagerApiService": "A String", # 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. "compute.googleapis.com". |
| 1192 | "sdkPipelineOptions": { # 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. |
| 1193 | "a_key": "", # Properties of the object. |
| 1194 | }, |
| 1195 | "experiments": [ # The list of experiments to enable. |
| 1196 | "A String", |
| 1197 | ], |
| 1198 | "dataset": "A String", # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} |
| 1199 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
| 1200 | "a_key": "", # Properties of the object. |
| 1201 | }, |
| 1202 | "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. |
| 1203 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary storage. The system will append the suffix "/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} |
| 1204 | "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. |
| 1205 | "internalExperiments": { # Experimental settings. |
| 1206 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1207 | }, |
| 1208 | "serviceKmsKeyName": "A String", # 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 |
| 1209 | "userAgent": { # A description of the process that generated the request. |
| 1210 | "a_key": "", # Properties of the object. |
| 1211 | }, |
| 1212 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 1213 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 1214 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 1215 | { # 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. |
| 1216 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1217 | "packages": [ # Packages to be installed on workers. |
| 1218 | { # 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's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run. |
| 1219 | "location": "A String", # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ |
| 1220 | "name": "A String", # The name of the package. |
| 1221 | }, |
| 1222 | ], |
| 1223 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1224 | "teardownPolicy": "A String", # 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'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. |
| 1225 | "sdkHarnessContainerImages": [ # 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. |
| 1226 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 1227 | "useSingleCorePerContainer": 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. |
| 1228 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 1229 | }, |
| 1230 | ], |
| 1231 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 1232 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 1233 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 1234 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 1235 | "tempStoragePrefix": "A String", # 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} |
| 1236 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 1237 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 1238 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 1239 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 1240 | }, |
| 1241 | "tempStoragePrefix": "A String", # 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} |
| 1242 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 1243 | "vmId": "A String", # The ID string of the VM. |
| 1244 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 1245 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 1246 | "languageHint": "A String", # The suggested backend language. |
| 1247 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 1248 | "logDir": "A String", # The directory on the VM to store logs. |
| 1249 | "workflowFileName": "A String", # The file to store the workflow in. |
| 1250 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 1251 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 1252 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
| 1253 | "A String", |
| 1254 | ], |
| 1255 | "logUploadLocation": "A String", # 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} |
| 1256 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 1257 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 1258 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 1259 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 1260 | }, |
| 1261 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 1262 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 1263 | "a_key": "A String", |
| 1264 | }, |
| 1265 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 1266 | "workerHarnessContainerImage": "A String", # 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. |
| 1267 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1268 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 1269 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 1270 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 1271 | }, |
| 1272 | "defaultPackageSet": "A String", # 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. |
| 1273 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 1274 | "poolArgs": { # Extra arguments for this worker pool. |
| 1275 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1276 | }, |
| 1277 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 1278 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 1279 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 1280 | "numWorkers": 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. |
| 1281 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 1282 | { # Describes the data disk used by a workflow job. |
| 1283 | "diskType": "A String", # 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 "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". 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 |
| 1284 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 1285 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 1286 | }, |
| 1287 | ], |
| 1288 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 1289 | "numThreadsPerWorker": 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). |
| 1290 | }, |
| 1291 | ], |
| 1292 | }, |
| 1293 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 1294 | "currentState": "A String", # 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. |
| 1295 | "jobMetadata": { # 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. |
| 1296 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 1297 | { # Metadata for a BigTable connector used by the job. |
| 1298 | "tableId": "A String", # TableId accessed in the connection. |
| 1299 | "projectId": "A String", # ProjectId accessed in the connection. |
| 1300 | "instanceId": "A String", # InstanceId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1301 | }, |
| 1302 | ], |
| 1303 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1304 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1305 | "version": "A String", # The version of the SDK used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1306 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 1307 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1308 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 1309 | { # Metadata for a BigQuery connector used by the job. |
| 1310 | "dataset": "A String", # Dataset accessed in the connection. |
| 1311 | "table": "A String", # Table accessed in the connection. |
| 1312 | "projectId": "A String", # Project accessed in the connection. |
| 1313 | "query": "A String", # Query used to access data in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1314 | }, |
| 1315 | ], |
| 1316 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 1317 | { # Metadata for a File connector used by the job. |
| 1318 | "filePattern": "A String", # File Pattern used to access files by the connector. |
| 1319 | }, |
| 1320 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1321 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 1322 | { # Metadata for a Datastore connector used by the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1323 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1324 | "namespace": "A String", # Namespace used in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1325 | }, |
| 1326 | ], |
| 1327 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 1328 | { # Metadata for a Spanner connector used by the job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1329 | "databaseId": "A String", # DatabaseId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1330 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 1331 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1332 | }, |
| 1333 | ], |
| 1334 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 1335 | { # Metadata for a PubSub connector used by the job. |
| 1336 | "subscription": "A String", # Subscription used in the connection. |
| 1337 | "topic": "A String", # Topic accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1338 | }, |
| 1339 | ], |
| 1340 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1341 | "replacedByJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1342 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 1343 | "a_key": "A String", |
| 1344 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1345 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1346 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1347 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 1348 | "stages": { # A mapping from each stage to the information about that stage. |
| 1349 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 1350 | "stepName": [ # 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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1351 | "A String", |
| 1352 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1353 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1354 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1355 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1356 | "type": "A String", # The type of Cloud Dataflow job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1357 | "clientRequestId": "A String", # The client'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'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. |
| 1358 | "requestedState": "A String", # The job'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's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state. |
| 1359 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 1360 | "startTime": "A String", # 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. |
| 1361 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 1362 | "steps": [ # 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. |
| 1363 | { # 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'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'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. |
| 1364 | "properties": { # 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. |
| 1365 | "a_key": "", # Properties of the object. |
| 1366 | }, |
| 1367 | "name": "A String", # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. |
| 1368 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 1369 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1370 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1371 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 1372 | { # A message describing the state of a particular execution stage. |
| 1373 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 1374 | "executionStageName": "A String", # The name of the execution stage. |
| 1375 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 1376 | }, |
| 1377 | ], |
| 1378 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 1379 | "replaceJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1380 | }</pre> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1381 | </div> |
| 1382 | |
| 1383 | <div class="method"> |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1384 | <code class="details" id="getMetrics">getMetrics(projectId, jobId, location=None, startTime=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1385 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1386 | |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1387 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1388 | projectId: string, A project id. (required) |
| 1389 | jobId: string, The job to get metrics for. (required) |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1390 | location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1391 | 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 Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 1392 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1393 | Allowed values |
| 1394 | 1 - v1 error format |
| 1395 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1396 | |
| 1397 | Returns: |
| 1398 | An object of the form: |
| 1399 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1400 | { # 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. |
| 1401 | "metrics": [ # All metrics for this job. |
| 1402 | { # Describes the state of a metric. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1403 | "meanCount": "", # Worker-computed aggregate value for the "Mean" 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1404 | "cumulative": 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1405 | "name": { # Identifies a metric, by describing the source which generated the metric. # Name of the metric. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1406 | "context": { # 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['step'] = . Counters associated with PCollections in the SDK will have context['pcollection'] = . |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1407 | "a_key": "A String", |
| 1408 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1409 | "origin": "A String", # Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK. |
| 1410 | "name": "A String", # Worker-defined metric name. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1411 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1412 | "gauge": "", # 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. |
| 1413 | "kind": "A String", # Metric aggregation kind. The possible metric aggregation kinds are "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". The specified aggregation kind is case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1414 | "scalar": "", # Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or". The possible value types are Long, Double, and Boolean. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1415 | "meanSum": "", # Worker-computed aggregate value for the "Mean" 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. |
| 1416 | "updateTime": "A String", # Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API. |
| 1417 | "distribution": "", # A struct value describing properties of a distribution of numeric values. |
| 1418 | "internal": "", # Worker-computed aggregate value for internal use by the Dataflow service. |
| 1419 | "set": "", # Worker-computed aggregate value for the "Set" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric's type. All Values in the list must be of the same type. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1420 | }, |
| 1421 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1422 | "metricTime": "A String", # Timestamp as of which metric values are current. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1423 | }</pre> |
| 1424 | </div> |
| 1425 | |
| 1426 | <div class="method"> |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1427 | <code class="details" id="list">list(projectId, location=None, pageSize=None, filter=None, view=None, pageToken=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1428 | <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 | |
| 1430 | Args: |
| 1431 | projectId: string, The project which owns the jobs. (required) |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1432 | location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
| 1433 | 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. |
| 1434 | filter: string, The kind of filter to use. |
| 1435 | Allowed values |
| 1436 | UNKNOWN - The filter isn't specified, or is unknown. This returns all jobs ordered on descending `JobUuid`. |
| 1437 | ALL - Returns all running jobs first ordered on creation timestamp, then returns all terminated jobs ordered on the termination timestamp. |
| 1438 | 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. |
| 1439 | ACTIVE - Filters the jobs that are running ordered on the creation timestamp. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1440 | view: string, Level of information requested in response. Default is `JOB_VIEW_SUMMARY`. |
| 1441 | Allowed values |
| 1442 | JOB_VIEW_UNKNOWN - The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information. |
| 1443 | 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. |
| 1444 | JOB_VIEW_ALL - Request all information available for this job. |
| 1445 | JOB_VIEW_DESCRIPTION - Request summary info and limited job description data for steps, labels and environment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1446 | pageToken: string, Set this to the 'next_page_token' field of a previous response to request additional results in a long list. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1447 | x__xgafv: string, V1 error format. |
| 1448 | Allowed values |
| 1449 | 1 - v1 error format |
| 1450 | 2 - v2 error format |
| 1451 | |
| 1452 | Returns: |
| 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's response body is empty {}. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1456 | "failedLocation": [ # Zero or more messages describing the [regional endpoints] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond. |
| 1457 | { # Indicates which [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed to respond to a request for data. |
| 1458 | "name": "A String", # The name of the [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond. |
| 1459 | }, |
| 1460 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1461 | "nextPageToken": "A String", # Set if there may be more results than fit in this response. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1462 | "jobs": [ # A subset of the requested job information. |
| 1463 | { # Defines a job to be run by the Cloud Dataflow service. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1464 | "id": "A String", # 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. |
| 1465 | "pipelineDescription": { # 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. |
| 1466 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 1467 | { # 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. |
| 1468 | "kind": "A String", # Type of tranform this stage is executing. |
| 1469 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 1470 | { # Description of a transform executed as part of an execution stage. |
| 1471 | "name": "A String", # Dataflow service generated name for this source. |
| 1472 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 1473 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
| 1474 | }, |
| 1475 | ], |
| 1476 | "id": "A String", # Dataflow service generated id for this stage. |
| 1477 | "name": "A String", # Dataflow service generated name for this stage. |
| 1478 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 1479 | { # Description of an interstitial value between transforms in an execution stage. |
| 1480 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1481 | "name": "A String", # Dataflow service generated name for this source. |
| 1482 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 1483 | }, |
| 1484 | ], |
| 1485 | "inputSource": [ # Input sources for this stage. |
| 1486 | { # Description of an input or output of an execution stage. |
| 1487 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 1488 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 1489 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1490 | "name": "A String", # Dataflow service generated name for this source. |
| 1491 | }, |
| 1492 | ], |
| 1493 | "prerequisiteStage": [ # Other stages that must complete before this stage can run. |
| 1494 | "A String", |
| 1495 | ], |
| 1496 | "outputSource": [ # Output sources for this stage. |
| 1497 | { # Description of an input or output of an execution stage. |
| 1498 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 1499 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 1500 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1501 | "name": "A String", # Dataflow service generated name for this source. |
| 1502 | }, |
| 1503 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1504 | }, |
| 1505 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1506 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 1507 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 1508 | "kind": "A String", # Type of transform. |
| 1509 | "displayData": [ # Transform-specific display data. |
| 1510 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 1511 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 1512 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 1513 | "namespace": "A String", # 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. |
| 1514 | "shortStrValue": "A String", # 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. |
| 1515 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 1516 | "key": "A String", # 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. |
| 1517 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 1518 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 1519 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 1520 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 1521 | "url": "A String", # An optional full URL. |
| 1522 | "strValue": "A String", # Contains value if the data is of string type. |
| 1523 | }, |
| 1524 | ], |
| 1525 | "name": "A String", # User provided name for this transform instance. |
| 1526 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 1527 | "A String", |
| 1528 | ], |
| 1529 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 1530 | "A String", |
| 1531 | ], |
| 1532 | "id": "A String", # SDK generated id of this transform instance. |
| 1533 | }, |
| 1534 | ], |
| 1535 | "displayData": [ # Pipeline level display data. |
| 1536 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 1537 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 1538 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 1539 | "namespace": "A String", # 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. |
| 1540 | "shortStrValue": "A String", # 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. |
| 1541 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 1542 | "key": "A String", # 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. |
| 1543 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 1544 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 1545 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 1546 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 1547 | "url": "A String", # An optional full URL. |
| 1548 | "strValue": "A String", # Contains value if the data is of string type. |
| 1549 | }, |
| 1550 | ], |
| 1551 | }, |
| 1552 | "labels": { # 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 <= 128 bytes in size. |
| 1553 | "a_key": "A String", |
| 1554 | }, |
| 1555 | "tempFiles": [ # 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} |
| 1556 | "A String", |
| 1557 | ], |
| 1558 | "name": "A String", # 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])?` |
| 1559 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 1560 | "clusterManagerApiService": "A String", # 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. "compute.googleapis.com". |
| 1561 | "sdkPipelineOptions": { # 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. |
| 1562 | "a_key": "", # Properties of the object. |
| 1563 | }, |
| 1564 | "experiments": [ # The list of experiments to enable. |
| 1565 | "A String", |
| 1566 | ], |
| 1567 | "dataset": "A String", # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} |
| 1568 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
| 1569 | "a_key": "", # Properties of the object. |
| 1570 | }, |
| 1571 | "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. |
| 1572 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary storage. The system will append the suffix "/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} |
| 1573 | "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. |
| 1574 | "internalExperiments": { # Experimental settings. |
| 1575 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1576 | }, |
| 1577 | "serviceKmsKeyName": "A String", # 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 |
| 1578 | "userAgent": { # A description of the process that generated the request. |
| 1579 | "a_key": "", # Properties of the object. |
| 1580 | }, |
| 1581 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 1582 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 1583 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 1584 | { # 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. |
| 1585 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1586 | "packages": [ # Packages to be installed on workers. |
| 1587 | { # 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's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run. |
| 1588 | "location": "A String", # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ |
| 1589 | "name": "A String", # The name of the package. |
| 1590 | }, |
| 1591 | ], |
| 1592 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1593 | "teardownPolicy": "A String", # 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'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. |
| 1594 | "sdkHarnessContainerImages": [ # 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. |
| 1595 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 1596 | "useSingleCorePerContainer": 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. |
| 1597 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 1598 | }, |
| 1599 | ], |
| 1600 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 1601 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 1602 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 1603 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 1604 | "tempStoragePrefix": "A String", # 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} |
| 1605 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 1606 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 1607 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 1608 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 1609 | }, |
| 1610 | "tempStoragePrefix": "A String", # 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} |
| 1611 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 1612 | "vmId": "A String", # The ID string of the VM. |
| 1613 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 1614 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 1615 | "languageHint": "A String", # The suggested backend language. |
| 1616 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 1617 | "logDir": "A String", # The directory on the VM to store logs. |
| 1618 | "workflowFileName": "A String", # The file to store the workflow in. |
| 1619 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 1620 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 1621 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
| 1622 | "A String", |
| 1623 | ], |
| 1624 | "logUploadLocation": "A String", # 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} |
| 1625 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 1626 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 1627 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 1628 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 1629 | }, |
| 1630 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 1631 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 1632 | "a_key": "A String", |
| 1633 | }, |
| 1634 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 1635 | "workerHarnessContainerImage": "A String", # 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. |
| 1636 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1637 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 1638 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 1639 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 1640 | }, |
| 1641 | "defaultPackageSet": "A String", # 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. |
| 1642 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 1643 | "poolArgs": { # Extra arguments for this worker pool. |
| 1644 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1645 | }, |
| 1646 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 1647 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 1648 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 1649 | "numWorkers": 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. |
| 1650 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 1651 | { # Describes the data disk used by a workflow job. |
| 1652 | "diskType": "A String", # 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 "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". 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 |
| 1653 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 1654 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 1655 | }, |
| 1656 | ], |
| 1657 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 1658 | "numThreadsPerWorker": 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). |
| 1659 | }, |
| 1660 | ], |
| 1661 | }, |
| 1662 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 1663 | "currentState": "A String", # 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. |
| 1664 | "jobMetadata": { # 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. |
| 1665 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 1666 | { # Metadata for a BigTable connector used by the job. |
| 1667 | "tableId": "A String", # TableId accessed in the connection. |
| 1668 | "projectId": "A String", # ProjectId accessed in the connection. |
| 1669 | "instanceId": "A String", # InstanceId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1670 | }, |
| 1671 | ], |
| 1672 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1673 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1674 | "version": "A String", # The version of the SDK used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1675 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 1676 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1677 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 1678 | { # Metadata for a BigQuery connector used by the job. |
| 1679 | "dataset": "A String", # Dataset accessed in the connection. |
| 1680 | "table": "A String", # Table accessed in the connection. |
| 1681 | "projectId": "A String", # Project accessed in the connection. |
| 1682 | "query": "A String", # Query used to access data in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1683 | }, |
| 1684 | ], |
| 1685 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 1686 | { # Metadata for a File connector used by the job. |
| 1687 | "filePattern": "A String", # File Pattern used to access files by the connector. |
| 1688 | }, |
| 1689 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1690 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 1691 | { # Metadata for a Datastore connector used by the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1692 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1693 | "namespace": "A String", # Namespace used in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1694 | }, |
| 1695 | ], |
| 1696 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 1697 | { # Metadata for a Spanner connector used by the job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1698 | "databaseId": "A String", # DatabaseId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1699 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 1700 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1701 | }, |
| 1702 | ], |
| 1703 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 1704 | { # Metadata for a PubSub connector used by the job. |
| 1705 | "subscription": "A String", # Subscription used in the connection. |
| 1706 | "topic": "A String", # Topic accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1707 | }, |
| 1708 | ], |
| 1709 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1710 | "replacedByJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1711 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 1712 | "a_key": "A String", |
| 1713 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1714 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1715 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1716 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 1717 | "stages": { # A mapping from each stage to the information about that stage. |
| 1718 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 1719 | "stepName": [ # 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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1720 | "A String", |
| 1721 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1722 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1723 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1724 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1725 | "type": "A String", # The type of Cloud Dataflow job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1726 | "clientRequestId": "A String", # The client'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'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. |
| 1727 | "requestedState": "A String", # The job'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's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state. |
| 1728 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 1729 | "startTime": "A String", # 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. |
| 1730 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 1731 | "steps": [ # 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. |
| 1732 | { # 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'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'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. |
| 1733 | "properties": { # 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. |
| 1734 | "a_key": "", # Properties of the object. |
| 1735 | }, |
| 1736 | "name": "A String", # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. |
| 1737 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 1738 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1739 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1740 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 1741 | { # A message describing the state of a particular execution stage. |
| 1742 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 1743 | "executionStageName": "A String", # The name of the execution stage. |
| 1744 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 1745 | }, |
| 1746 | ], |
| 1747 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 1748 | "replaceJobId": "A String", # 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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1749 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1750 | ], |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1751 | }</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 | |
| 1758 | Args: |
| 1759 | previous_request: The request for the previous page. (required) |
| 1760 | previous_response: The response from the request for the previous page. (required) |
| 1761 | |
| 1762 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1763 | A request object that you can call 'execute()' on to request the next |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1764 | page. Returns None if there are no more items in the collection. |
| 1765 | </pre> |
| 1766 | </div> |
| 1767 | |
| 1768 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1769 | <code class="details" id="snapshot">snapshot(projectId, jobId, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1770 | <pre>Snapshot the state of a streaming job. |
| 1771 | |
| 1772 | Args: |
| 1773 | projectId: string, The project which owns the job to be snapshotted. (required) |
| 1774 | jobId: string, The job to be snapshotted. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1775 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1776 | The object takes the form of: |
| 1777 | |
| 1778 | { # Request to create a snapshot of a job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1779 | "snapshotSources": True or False, # If true, perform snapshots for sources which support this. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1780 | "ttl": "A String", # TTL for the snapshot. |
| 1781 | "location": "A String", # The location that contains this job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1782 | "description": "A String", # User specified description of the snapshot. Maybe empty. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1783 | } |
| 1784 | |
| 1785 | x__xgafv: string, V1 error format. |
| 1786 | Allowed values |
| 1787 | 1 - v1 error format |
| 1788 | 2 - v2 error format |
| 1789 | |
| 1790 | Returns: |
| 1791 | An object of the form: |
| 1792 | |
| 1793 | { # Represents a snapshot of a job. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1794 | "pubsubMetadata": [ # PubSub snapshot metadata. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1795 | { # Represents a Pubsub snapshot. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1796 | "expireTime": "A String", # The expire time of the Pubsub snapshot. |
| 1797 | "topicName": "A String", # The name of the Pubsub topic. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1798 | "snapshotName": "A String", # The name of the Pubsub snapshot. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1799 | }, |
| 1800 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1801 | "state": "A String", # State of the snapshot. |
| 1802 | "sourceJobId": "A String", # The job this snapshot was created from. |
| 1803 | "ttl": "A String", # The time after which this snapshot will be automatically deleted. |
| 1804 | "diskSizeBytes": "A String", # The disk byte size of the snapshot. Only available for snapshots in READY state. |
| 1805 | "projectId": "A String", # The project this snapshot belongs to. |
| 1806 | "creationTime": "A String", # The time this snapshot was created. |
| 1807 | "id": "A String", # The unique ID of this snapshot. |
| 1808 | "description": "A String", # User specified description of the snapshot. Maybe empty. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1809 | }</pre> |
| 1810 | </div> |
| 1811 | |
| 1812 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1813 | <code class="details" id="update">update(projectId, jobId, body=None, location=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1814 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1815 | |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1816 | Args: |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1817 | projectId: string, The ID of the Cloud Platform project that the job belongs to. (required) |
| 1818 | jobId: string, The job ID. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1819 | body: object, The request body. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1820 | The object takes the form of: |
| 1821 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1822 | { # Defines a job to be run by the Cloud Dataflow service. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1823 | "id": "A String", # 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. |
| 1824 | "pipelineDescription": { # 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. |
| 1825 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 1826 | { # 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. |
| 1827 | "kind": "A String", # Type of tranform this stage is executing. |
| 1828 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 1829 | { # Description of a transform executed as part of an execution stage. |
| 1830 | "name": "A String", # Dataflow service generated name for this source. |
| 1831 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 1832 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
| 1833 | }, |
| 1834 | ], |
| 1835 | "id": "A String", # Dataflow service generated id for this stage. |
| 1836 | "name": "A String", # Dataflow service generated name for this stage. |
| 1837 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 1838 | { # Description of an interstitial value between transforms in an execution stage. |
| 1839 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1840 | "name": "A String", # Dataflow service generated name for this source. |
| 1841 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 1842 | }, |
| 1843 | ], |
| 1844 | "inputSource": [ # Input sources for this stage. |
| 1845 | { # Description of an input or output of an execution stage. |
| 1846 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 1847 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 1848 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1849 | "name": "A String", # Dataflow service generated name for this source. |
| 1850 | }, |
| 1851 | ], |
| 1852 | "prerequisiteStage": [ # Other stages that must complete before this stage can run. |
| 1853 | "A String", |
| 1854 | ], |
| 1855 | "outputSource": [ # Output sources for this stage. |
| 1856 | { # Description of an input or output of an execution stage. |
| 1857 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 1858 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 1859 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 1860 | "name": "A String", # Dataflow service generated name for this source. |
| 1861 | }, |
| 1862 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1863 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1864 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1865 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 1866 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 1867 | "kind": "A String", # Type of transform. |
| 1868 | "displayData": [ # Transform-specific display data. |
| 1869 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 1870 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 1871 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 1872 | "namespace": "A String", # 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. |
| 1873 | "shortStrValue": "A String", # 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. |
| 1874 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 1875 | "key": "A String", # 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. |
| 1876 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 1877 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 1878 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 1879 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 1880 | "url": "A String", # An optional full URL. |
| 1881 | "strValue": "A String", # Contains value if the data is of string type. |
| 1882 | }, |
| 1883 | ], |
| 1884 | "name": "A String", # User provided name for this transform instance. |
| 1885 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 1886 | "A String", |
| 1887 | ], |
| 1888 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 1889 | "A String", |
| 1890 | ], |
| 1891 | "id": "A String", # SDK generated id of this transform instance. |
| 1892 | }, |
| 1893 | ], |
| 1894 | "displayData": [ # Pipeline level display data. |
| 1895 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 1896 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 1897 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 1898 | "namespace": "A String", # 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. |
| 1899 | "shortStrValue": "A String", # 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. |
| 1900 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 1901 | "key": "A String", # 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. |
| 1902 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 1903 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 1904 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 1905 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 1906 | "url": "A String", # An optional full URL. |
| 1907 | "strValue": "A String", # Contains value if the data is of string type. |
| 1908 | }, |
| 1909 | ], |
| 1910 | }, |
| 1911 | "labels": { # 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 <= 128 bytes in size. |
| 1912 | "a_key": "A String", |
| 1913 | }, |
| 1914 | "tempFiles": [ # 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} |
| 1915 | "A String", |
| 1916 | ], |
| 1917 | "name": "A String", # 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])?` |
| 1918 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 1919 | "clusterManagerApiService": "A String", # 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. "compute.googleapis.com". |
| 1920 | "sdkPipelineOptions": { # 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. |
| 1921 | "a_key": "", # Properties of the object. |
| 1922 | }, |
| 1923 | "experiments": [ # The list of experiments to enable. |
| 1924 | "A String", |
| 1925 | ], |
| 1926 | "dataset": "A String", # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} |
| 1927 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
| 1928 | "a_key": "", # Properties of the object. |
| 1929 | }, |
| 1930 | "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. |
| 1931 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary storage. The system will append the suffix "/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} |
| 1932 | "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. |
| 1933 | "internalExperiments": { # Experimental settings. |
| 1934 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1935 | }, |
| 1936 | "serviceKmsKeyName": "A String", # 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 |
| 1937 | "userAgent": { # A description of the process that generated the request. |
| 1938 | "a_key": "", # Properties of the object. |
| 1939 | }, |
| 1940 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 1941 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 1942 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 1943 | { # 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. |
| 1944 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1945 | "packages": [ # Packages to be installed on workers. |
| 1946 | { # 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's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run. |
| 1947 | "location": "A String", # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ |
| 1948 | "name": "A String", # The name of the package. |
| 1949 | }, |
| 1950 | ], |
| 1951 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1952 | "teardownPolicy": "A String", # 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'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. |
| 1953 | "sdkHarnessContainerImages": [ # 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. |
| 1954 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 1955 | "useSingleCorePerContainer": 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. |
| 1956 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 1957 | }, |
| 1958 | ], |
| 1959 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 1960 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 1961 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 1962 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 1963 | "tempStoragePrefix": "A String", # 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} |
| 1964 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 1965 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 1966 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 1967 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 1968 | }, |
| 1969 | "tempStoragePrefix": "A String", # 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} |
| 1970 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 1971 | "vmId": "A String", # The ID string of the VM. |
| 1972 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 1973 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 1974 | "languageHint": "A String", # The suggested backend language. |
| 1975 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 1976 | "logDir": "A String", # The directory on the VM to store logs. |
| 1977 | "workflowFileName": "A String", # The file to store the workflow in. |
| 1978 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 1979 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 1980 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
| 1981 | "A String", |
| 1982 | ], |
| 1983 | "logUploadLocation": "A String", # 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} |
| 1984 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 1985 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 1986 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 1987 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 1988 | }, |
| 1989 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 1990 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 1991 | "a_key": "A String", |
| 1992 | }, |
| 1993 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 1994 | "workerHarnessContainerImage": "A String", # 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. |
| 1995 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
| 1996 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 1997 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 1998 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 1999 | }, |
| 2000 | "defaultPackageSet": "A String", # 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. |
| 2001 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 2002 | "poolArgs": { # Extra arguments for this worker pool. |
| 2003 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2004 | }, |
| 2005 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 2006 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 2007 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 2008 | "numWorkers": 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. |
| 2009 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 2010 | { # Describes the data disk used by a workflow job. |
| 2011 | "diskType": "A String", # 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 "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". 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 |
| 2012 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 2013 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 2014 | }, |
| 2015 | ], |
| 2016 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 2017 | "numThreadsPerWorker": 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). |
| 2018 | }, |
| 2019 | ], |
| 2020 | }, |
| 2021 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 2022 | "currentState": "A String", # 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. |
| 2023 | "jobMetadata": { # 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. |
| 2024 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 2025 | { # Metadata for a BigTable connector used by the job. |
| 2026 | "tableId": "A String", # TableId accessed in the connection. |
| 2027 | "projectId": "A String", # ProjectId accessed in the connection. |
| 2028 | "instanceId": "A String", # InstanceId accessed in the connection. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2029 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2030 | ], |
| 2031 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2032 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2033 | "version": "A String", # The version of the SDK used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2034 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 2035 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2036 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 2037 | { # Metadata for a BigQuery connector used by the job. |
| 2038 | "dataset": "A String", # Dataset accessed in the connection. |
| 2039 | "table": "A String", # Table accessed in the connection. |
| 2040 | "projectId": "A String", # Project accessed in the connection. |
| 2041 | "query": "A String", # Query used to access data in the connection. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2042 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2043 | ], |
| 2044 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 2045 | { # Metadata for a File connector used by the job. |
| 2046 | "filePattern": "A String", # File Pattern used to access files by the connector. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2047 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2048 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2049 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 2050 | { # Metadata for a Datastore connector used by the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2051 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2052 | "namespace": "A String", # Namespace used in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2053 | }, |
| 2054 | ], |
| 2055 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 2056 | { # Metadata for a Spanner connector used by the job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2057 | "databaseId": "A String", # DatabaseId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2058 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 2059 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2060 | }, |
| 2061 | ], |
| 2062 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 2063 | { # Metadata for a PubSub connector used by the job. |
| 2064 | "subscription": "A String", # Subscription used in the connection. |
| 2065 | "topic": "A String", # Topic accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2066 | }, |
| 2067 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2068 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2069 | "replacedByJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2070 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 2071 | "a_key": "A String", |
| 2072 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2073 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2074 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2075 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 2076 | "stages": { # A mapping from each stage to the information about that stage. |
| 2077 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 2078 | "stepName": [ # 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. |
| 2079 | "A String", |
| 2080 | ], |
| 2081 | }, |
| 2082 | }, |
| 2083 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2084 | "type": "A String", # The type of Cloud Dataflow job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2085 | "clientRequestId": "A String", # The client'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'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. |
| 2086 | "requestedState": "A String", # The job'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's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state. |
| 2087 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 2088 | "startTime": "A String", # 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. |
| 2089 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 2090 | "steps": [ # 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. |
| 2091 | { # 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'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'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. |
| 2092 | "properties": { # 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. |
| 2093 | "a_key": "", # Properties of the object. |
| 2094 | }, |
| 2095 | "name": "A String", # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. |
| 2096 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 2097 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2098 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2099 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 2100 | { # A message describing the state of a particular execution stage. |
| 2101 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 2102 | "executionStageName": "A String", # The name of the execution stage. |
| 2103 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 2104 | }, |
| 2105 | ], |
| 2106 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 2107 | "replaceJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2108 | } |
| 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 | |
| 2116 | Returns: |
| 2117 | An object of the form: |
| 2118 | |
| 2119 | { # Defines a job to be run by the Cloud Dataflow service. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2120 | "id": "A String", # 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. |
| 2121 | "pipelineDescription": { # 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. |
| 2122 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 2123 | { # 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. |
| 2124 | "kind": "A String", # Type of tranform this stage is executing. |
| 2125 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 2126 | { # Description of a transform executed as part of an execution stage. |
| 2127 | "name": "A String", # Dataflow service generated name for this source. |
| 2128 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 2129 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
| 2130 | }, |
| 2131 | ], |
| 2132 | "id": "A String", # Dataflow service generated id for this stage. |
| 2133 | "name": "A String", # Dataflow service generated name for this stage. |
| 2134 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 2135 | { # Description of an interstitial value between transforms in an execution stage. |
| 2136 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 2137 | "name": "A String", # Dataflow service generated name for this source. |
| 2138 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 2139 | }, |
| 2140 | ], |
| 2141 | "inputSource": [ # Input sources for this stage. |
| 2142 | { # Description of an input or output of an execution stage. |
| 2143 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 2144 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 2145 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 2146 | "name": "A String", # Dataflow service generated name for this source. |
| 2147 | }, |
| 2148 | ], |
| 2149 | "prerequisiteStage": [ # Other stages that must complete before this stage can run. |
| 2150 | "A String", |
| 2151 | ], |
| 2152 | "outputSource": [ # Output sources for this stage. |
| 2153 | { # Description of an input or output of an execution stage. |
| 2154 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 2155 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 2156 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 2157 | "name": "A String", # Dataflow service generated name for this source. |
| 2158 | }, |
| 2159 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2160 | }, |
| 2161 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2162 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 2163 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 2164 | "kind": "A String", # Type of transform. |
| 2165 | "displayData": [ # Transform-specific display data. |
| 2166 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 2167 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 2168 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 2169 | "namespace": "A String", # 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. |
| 2170 | "shortStrValue": "A String", # 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. |
| 2171 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 2172 | "key": "A String", # 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. |
| 2173 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 2174 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 2175 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 2176 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 2177 | "url": "A String", # An optional full URL. |
| 2178 | "strValue": "A String", # Contains value if the data is of string type. |
| 2179 | }, |
| 2180 | ], |
| 2181 | "name": "A String", # User provided name for this transform instance. |
| 2182 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 2183 | "A String", |
| 2184 | ], |
| 2185 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 2186 | "A String", |
| 2187 | ], |
| 2188 | "id": "A String", # SDK generated id of this transform instance. |
| 2189 | }, |
| 2190 | ], |
| 2191 | "displayData": [ # Pipeline level display data. |
| 2192 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 2193 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 2194 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 2195 | "namespace": "A String", # 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. |
| 2196 | "shortStrValue": "A String", # 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. |
| 2197 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 2198 | "key": "A String", # 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. |
| 2199 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 2200 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 2201 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 2202 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 2203 | "url": "A String", # An optional full URL. |
| 2204 | "strValue": "A String", # Contains value if the data is of string type. |
| 2205 | }, |
| 2206 | ], |
| 2207 | }, |
| 2208 | "labels": { # 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 <= 128 bytes in size. |
| 2209 | "a_key": "A String", |
| 2210 | }, |
| 2211 | "tempFiles": [ # 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} |
| 2212 | "A String", |
| 2213 | ], |
| 2214 | "name": "A String", # 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])?` |
| 2215 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 2216 | "clusterManagerApiService": "A String", # 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. "compute.googleapis.com". |
| 2217 | "sdkPipelineOptions": { # 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. |
| 2218 | "a_key": "", # Properties of the object. |
| 2219 | }, |
| 2220 | "experiments": [ # The list of experiments to enable. |
| 2221 | "A String", |
| 2222 | ], |
| 2223 | "dataset": "A String", # The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} |
| 2224 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
| 2225 | "a_key": "", # Properties of the object. |
| 2226 | }, |
| 2227 | "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. |
| 2228 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary storage. The system will append the suffix "/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} |
| 2229 | "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. |
| 2230 | "internalExperiments": { # Experimental settings. |
| 2231 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2232 | }, |
| 2233 | "serviceKmsKeyName": "A String", # 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 |
| 2234 | "userAgent": { # A description of the process that generated the request. |
| 2235 | "a_key": "", # Properties of the object. |
| 2236 | }, |
| 2237 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 2238 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 2239 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 2240 | { # 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. |
| 2241 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 2242 | "packages": [ # Packages to be installed on workers. |
| 2243 | { # 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's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run. |
| 2244 | "location": "A String", # The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ |
| 2245 | "name": "A String", # The name of the package. |
| 2246 | }, |
| 2247 | ], |
| 2248 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 2249 | "teardownPolicy": "A String", # 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'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. |
| 2250 | "sdkHarnessContainerImages": [ # 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. |
| 2251 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 2252 | "useSingleCorePerContainer": 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. |
| 2253 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 2254 | }, |
| 2255 | ], |
| 2256 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 2257 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 2258 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 2259 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 2260 | "tempStoragePrefix": "A String", # 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} |
| 2261 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 2262 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 2263 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 2264 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 2265 | }, |
| 2266 | "tempStoragePrefix": "A String", # 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} |
| 2267 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 2268 | "vmId": "A String", # The ID string of the VM. |
| 2269 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 2270 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 2271 | "languageHint": "A String", # The suggested backend language. |
| 2272 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 2273 | "logDir": "A String", # The directory on the VM to store logs. |
| 2274 | "workflowFileName": "A String", # The file to store the workflow in. |
| 2275 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 2276 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 2277 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
| 2278 | "A String", |
| 2279 | ], |
| 2280 | "logUploadLocation": "A String", # 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} |
| 2281 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 2282 | "baseUrl": "A String", # 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, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
| 2283 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 2284 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 2285 | }, |
| 2286 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 2287 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 2288 | "a_key": "A String", |
| 2289 | }, |
| 2290 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 2291 | "workerHarnessContainerImage": "A String", # 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. |
| 2292 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
| 2293 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 2294 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 2295 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 2296 | }, |
| 2297 | "defaultPackageSet": "A String", # 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. |
| 2298 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 2299 | "poolArgs": { # Extra arguments for this worker pool. |
| 2300 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2301 | }, |
| 2302 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 2303 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 2304 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 2305 | "numWorkers": 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. |
| 2306 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 2307 | { # Describes the data disk used by a workflow job. |
| 2308 | "diskType": "A String", # 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 "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". 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 |
| 2309 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 2310 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 2311 | }, |
| 2312 | ], |
| 2313 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 2314 | "numThreadsPerWorker": 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). |
| 2315 | }, |
| 2316 | ], |
| 2317 | }, |
| 2318 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 2319 | "currentState": "A String", # 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. |
| 2320 | "jobMetadata": { # 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. |
| 2321 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 2322 | { # Metadata for a BigTable connector used by the job. |
| 2323 | "tableId": "A String", # TableId accessed in the connection. |
| 2324 | "projectId": "A String", # ProjectId accessed in the connection. |
| 2325 | "instanceId": "A String", # InstanceId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2326 | }, |
| 2327 | ], |
| 2328 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2329 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2330 | "version": "A String", # The version of the SDK used to run the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2331 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 2332 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2333 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 2334 | { # Metadata for a BigQuery connector used by the job. |
| 2335 | "dataset": "A String", # Dataset accessed in the connection. |
| 2336 | "table": "A String", # Table accessed in the connection. |
| 2337 | "projectId": "A String", # Project accessed in the connection. |
| 2338 | "query": "A String", # Query used to access data in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2339 | }, |
| 2340 | ], |
| 2341 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 2342 | { # Metadata for a File connector used by the job. |
| 2343 | "filePattern": "A String", # File Pattern used to access files by the connector. |
| 2344 | }, |
| 2345 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2346 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 2347 | { # Metadata for a Datastore connector used by the job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2348 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2349 | "namespace": "A String", # Namespace used in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2350 | }, |
| 2351 | ], |
| 2352 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 2353 | { # Metadata for a Spanner connector used by the job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2354 | "databaseId": "A String", # DatabaseId accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2355 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 2356 | "projectId": "A String", # ProjectId accessed in the connection. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2357 | }, |
| 2358 | ], |
| 2359 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 2360 | { # Metadata for a PubSub connector used by the job. |
| 2361 | "subscription": "A String", # Subscription used in the connection. |
| 2362 | "topic": "A String", # Topic accessed in the connection. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2363 | }, |
| 2364 | ], |
| 2365 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2366 | "replacedByJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2367 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 2368 | "a_key": "A String", |
| 2369 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2370 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2371 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2372 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 2373 | "stages": { # A mapping from each stage to the information about that stage. |
| 2374 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 2375 | "stepName": [ # 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. |
| 2376 | "A String", |
| 2377 | ], |
| 2378 | }, |
| 2379 | }, |
| 2380 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2381 | "type": "A String", # The type of Cloud Dataflow job. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2382 | "clientRequestId": "A String", # The client'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'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. |
| 2383 | "requestedState": "A String", # The job'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's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state. |
| 2384 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 2385 | "startTime": "A String", # 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. |
| 2386 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 2387 | "steps": [ # 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. |
| 2388 | { # 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'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'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. |
| 2389 | "properties": { # 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. |
| 2390 | "a_key": "", # Properties of the object. |
| 2391 | }, |
| 2392 | "name": "A String", # The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. |
| 2393 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 2394 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2395 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2396 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 2397 | { # A message describing the state of a particular execution stage. |
| 2398 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 2399 | "executionStageName": "A String", # The name of the execution stage. |
| 2400 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 2401 | }, |
| 2402 | ], |
| 2403 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 2404 | "replaceJobId": "A String", # 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2405 | }</pre> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 2406 | </div> |
| 2407 | |
| 2408 | </body></html> |