Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [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.locations.html">locations</a> . <a href="dataflow_v1b3.projects.locations.templates.html">templates</a></h1> |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#create">create(projectId, location, body=None, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 82 | <p class="firstline">Creates a Cloud Dataflow job from a template.</p> |
| 83 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 84 | <code><a href="#get">get(projectId, location, gcsPath=None, view=None, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 85 | <p class="firstline">Get the template associated with a template.</p> |
| 86 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 87 | <code><a href="#launch">launch(projectId, location, body=None, gcsPath=None, validateOnly=None, dynamicTemplate_stagingLocation=None, dynamicTemplate_gcsPath=None, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 88 | <p class="firstline">Launch a template.</p> |
| 89 | <h3>Method Details</h3> |
| 90 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 91 | <code class="details" id="close">close()</code> |
| 92 | <pre>Close httplib2 connections.</pre> |
| 93 | </div> |
| 94 | |
| 95 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 96 | <code class="details" id="create">create(projectId, location, body=None, x__xgafv=None)</code> |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 97 | <pre>Creates a Cloud Dataflow job from a template. |
| 98 | |
| 99 | Args: |
| 100 | projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required) |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 101 | location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 102 | body: object, The request body. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 103 | The object takes the form of: |
| 104 | |
| 105 | { # A request to create a Cloud Dataflow job from a template. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 106 | "environment": { # The environment values to set at runtime. # The runtime environment for the job. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 107 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. |
| 108 | "bypassTempDirValidation": True or False, # Whether to bypass the safety checks for the job's temporary directory. Use with caution. |
| 109 | "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. |
| 110 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 111 | "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. |
| 112 | "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values should follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }. |
| 113 | "a_key": "A String", |
| 114 | }, |
| 115 | "zone": "A String", # The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence. |
| 116 | "maxWorkers": 42, # The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 117 | "numWorkers": 42, # The initial number of Google Compute Engine instnaces for the job. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 118 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 119 | "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. |
| 120 | "serviceAccountEmail": "A String", # The email address of the service account to run the job as. |
| 121 | "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. |
| 122 | "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 123 | "additionalExperiments": [ # Additional experiment flags for the job. |
| 124 | "A String", |
| 125 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 126 | "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. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 127 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 128 | "parameters": { # The runtime parameters to pass to the job. |
| 129 | "a_key": "A String", |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 130 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 131 | "jobName": "A String", # Required. The job name to use for the created job. |
| 132 | "gcsPath": "A String", # Required. A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with `gs://`. |
| 133 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 134 | } |
| 135 | |
| 136 | x__xgafv: string, V1 error format. |
| 137 | Allowed values |
| 138 | 1 - v1 error format |
| 139 | 2 - v2 error format |
| 140 | |
| 141 | Returns: |
| 142 | An object of the form: |
| 143 | |
| 144 | { # Defines a job to be run by the Cloud Dataflow service. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 145 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 146 | { # A message describing the state of a particular execution stage. |
| 147 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 148 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 149 | "executionStageName": "A String", # The name of the execution stage. |
| 150 | }, |
| 151 | ], |
| 152 | "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. |
| 153 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 154 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 155 | "name": "A String", # User provided name for this transform instance. |
| 156 | "displayData": [ # Transform-specific display data. |
| 157 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 158 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 159 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 160 | "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. |
| 161 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 162 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 163 | "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. |
| 164 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 165 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 166 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 167 | "url": "A String", # An optional full URL. |
| 168 | "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. |
| 169 | "strValue": "A String", # Contains value if the data is of string type. |
| 170 | }, |
| 171 | ], |
| 172 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 173 | "A String", |
| 174 | ], |
| 175 | "id": "A String", # SDK generated id of this transform instance. |
| 176 | "kind": "A String", # Type of transform. |
| 177 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 178 | "A String", |
| 179 | ], |
| 180 | }, |
| 181 | ], |
| 182 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 183 | { # 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. |
| 184 | "kind": "A String", # Type of tranform this stage is executing. |
| 185 | "id": "A String", # Dataflow service generated id for this stage. |
| 186 | "name": "A String", # Dataflow service generated name for this stage. |
| 187 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 188 | { # Description of a transform executed as part of an execution stage. |
| 189 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 190 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
| 191 | "name": "A String", # Dataflow service generated name for this source. |
| 192 | }, |
| 193 | ], |
| 194 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 195 | { # Description of an interstitial value between transforms in an execution stage. |
| 196 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 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 | ], |
| 201 | "outputSource": [ # Output sources for this stage. |
| 202 | { # Description of an input or output of an execution stage. |
| 203 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 204 | "name": "A String", # Dataflow service generated name for this source. |
| 205 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 206 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 207 | }, |
| 208 | ], |
| 209 | "inputSource": [ # Input sources for this stage. |
| 210 | { # Description of an input or output of an execution stage. |
| 211 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 212 | "name": "A String", # Dataflow service generated name for this source. |
| 213 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 214 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 215 | }, |
| 216 | ], |
| 217 | }, |
| 218 | ], |
| 219 | "displayData": [ # Pipeline level display data. |
| 220 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 221 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 222 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 223 | "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. |
| 224 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 225 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 226 | "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. |
| 227 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 228 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 229 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 230 | "url": "A String", # An optional full URL. |
| 231 | "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. |
| 232 | "strValue": "A String", # Contains value if the data is of string type. |
| 233 | }, |
| 234 | ], |
| 235 | }, |
| 236 | "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. |
| 237 | "a_key": "A String", |
| 238 | }, |
| 239 | "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. |
| 240 | { # 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. |
| 241 | "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. |
| 242 | "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. |
| 243 | "a_key": "", # Properties of the object. |
| 244 | }, |
| 245 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 246 | }, |
| 247 | ], |
| 248 | "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])?` |
| 249 | "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. |
| 250 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 251 | "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. |
| 252 | "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 |
| 253 | "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} |
| 254 | "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} |
| 255 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
| 256 | "a_key": "", # Properties of the object. |
| 257 | }, |
| 258 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 259 | { # 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. |
| 260 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 261 | "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. |
| 262 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 263 | "a_key": "A String", |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 264 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 265 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 266 | "poolArgs": { # Extra arguments for this worker pool. |
| 267 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 268 | }, |
| 269 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 270 | "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. |
| 271 | "packages": [ # Packages to be installed on workers. |
| 272 | { # 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. |
| 273 | "name": "A String", # The name of the package. |
| 274 | "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/ |
| 275 | }, |
| 276 | ], |
| 277 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 278 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 279 | "languageHint": "A String", # The suggested backend language. |
| 280 | "workflowFileName": "A String", # The file to store the workflow in. |
| 281 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 282 | "vmId": "A String", # The ID string of the VM. |
| 283 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 284 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 285 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 286 | "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} |
| 287 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 288 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 289 | "A String", |
| 290 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 291 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 292 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 293 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 294 | "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} |
| 295 | "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/" |
| 296 | "logDir": "A String", # The directory on the VM to store logs. |
| 297 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 298 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 299 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 300 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 301 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 302 | "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/" |
| 303 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 304 | "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} |
| 305 | }, |
| 306 | }, |
| 307 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 308 | "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. |
| 309 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 310 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 311 | "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. |
| 312 | }, |
| 313 | ], |
| 314 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 315 | "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. |
| 316 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
| 317 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 318 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 319 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 320 | }, |
| 321 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 322 | "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). |
| 323 | "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. |
| 324 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 325 | { # Describes the data disk used by a workflow job. |
| 326 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 327 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 328 | "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 |
| 329 | }, |
| 330 | ], |
| 331 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 332 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 333 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 334 | }, |
| 335 | ], |
| 336 | "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. |
| 337 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 338 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 339 | "userAgent": { # A description of the process that generated the request. |
| 340 | "a_key": "", # Properties of the object. |
| 341 | }, |
| 342 | "experiments": [ # The list of experiments to enable. |
| 343 | "A String", |
| 344 | ], |
| 345 | "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. |
| 346 | "a_key": "", # Properties of the object. |
| 347 | }, |
| 348 | "internalExperiments": { # Experimental settings. |
| 349 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 350 | }, |
| 351 | "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". |
| 352 | }, |
| 353 | "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} |
| 354 | "A String", |
| 355 | ], |
| 356 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 357 | "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. |
| 358 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 359 | "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. |
| 360 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
| 361 | "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. |
| 362 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 363 | "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. |
| 364 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 365 | "stages": { # A mapping from each stage to the information about that stage. |
| 366 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 367 | "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. |
| 368 | "A String", |
| 369 | ], |
| 370 | }, |
| 371 | }, |
| 372 | }, |
| 373 | "type": "A String", # The type of Cloud Dataflow job. |
| 374 | "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. |
| 375 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
| 376 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 377 | "a_key": "A String", |
| 378 | }, |
| 379 | "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. |
| 380 | "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. |
| 381 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 382 | { # Metadata for a File connector used by the job. |
| 383 | "filePattern": "A String", # File Pattern used to access files by the connector. |
| 384 | }, |
| 385 | ], |
| 386 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 387 | { # Metadata for a Spanner connector used by the job. |
| 388 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 389 | "projectId": "A String", # ProjectId accessed in the connection. |
| 390 | "databaseId": "A String", # DatabaseId accessed in the connection. |
| 391 | }, |
| 392 | ], |
| 393 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 394 | { # Metadata for a Datastore connector used by the job. |
| 395 | "namespace": "A String", # Namespace used in the connection. |
| 396 | "projectId": "A String", # ProjectId accessed in the connection. |
| 397 | }, |
| 398 | ], |
| 399 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
| 400 | "version": "A String", # The version of the SDK used to run the job. |
| 401 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 402 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
| 403 | }, |
| 404 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 405 | { # Metadata for a PubSub connector used by the job. |
| 406 | "subscription": "A String", # Subscription used in the connection. |
| 407 | "topic": "A String", # Topic accessed in the connection. |
| 408 | }, |
| 409 | ], |
| 410 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 411 | { # Metadata for a BigQuery connector used by the job. |
| 412 | "dataset": "A String", # Dataset accessed in the connection. |
| 413 | "projectId": "A String", # Project accessed in the connection. |
| 414 | "query": "A String", # Query used to access data in the connection. |
| 415 | "table": "A String", # Table accessed in the connection. |
| 416 | }, |
| 417 | ], |
| 418 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 419 | { # Metadata for a BigTable connector used by the job. |
| 420 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 421 | "tableId": "A String", # TableId accessed in the connection. |
| 422 | "projectId": "A String", # ProjectId accessed in the connection. |
| 423 | }, |
| 424 | ], |
| 425 | }, |
| 426 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 427 | }</pre> |
| 428 | </div> |
| 429 | |
| 430 | <div class="method"> |
| 431 | <code class="details" id="get">get(projectId, location, gcsPath=None, view=None, x__xgafv=None)</code> |
| 432 | <pre>Get the template associated with a template. |
| 433 | |
| 434 | Args: |
| 435 | projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required) |
| 436 | location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. (required) |
| 437 | gcsPath: string, Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. |
| 438 | view: string, The view to retrieve. Defaults to METADATA_ONLY. |
| 439 | Allowed values |
| 440 | METADATA_ONLY - Template view that retrieves only the metadata associated with the template. |
| 441 | x__xgafv: string, V1 error format. |
| 442 | Allowed values |
| 443 | 1 - v1 error format |
| 444 | 2 - v2 error format |
| 445 | |
| 446 | Returns: |
| 447 | An object of the form: |
| 448 | |
| 449 | { # The response to a GetTemplate request. |
| 450 | "templateType": "A String", # Template Type. |
| 451 | "runtimeMetadata": { # RuntimeMetadata describing a runtime environment. # Describes the runtime metadata with SDKInfo and available parameters. |
| 452 | "sdkInfo": { # SDK Information. # SDK Info for the template. |
| 453 | "language": "A String", # Required. The SDK Language. |
| 454 | "version": "A String", # Optional. The SDK version. |
| 455 | }, |
| 456 | "parameters": [ # The parameters for the template. |
| 457 | { # Metadata for a specific parameter. |
| 458 | "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. |
| 459 | "paramType": "A String", # Optional. The type of the parameter. Used for selecting input picker. |
| 460 | "name": "A String", # Required. The name of the parameter. |
| 461 | "regexes": [ # Optional. Regexes that the parameter must match. |
| 462 | "A String", |
| 463 | ], |
| 464 | "label": "A String", # Required. The label to display for the parameter. |
| 465 | "helpText": "A String", # Required. The help text to display for the parameter. |
| 466 | }, |
| 467 | ], |
| 468 | }, |
| 469 | "status": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The status of the get template request. Any problems with the request will be indicated in the error_details. |
| 470 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 471 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 472 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 473 | { |
| 474 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 475 | }, |
| 476 | ], |
| 477 | }, |
| 478 | "metadata": { # Metadata describing a template. # The template metadata describing the template name, available parameters, etc. |
| 479 | "description": "A String", # Optional. A description of the template. |
| 480 | "parameters": [ # The parameters for the template. |
| 481 | { # Metadata for a specific parameter. |
| 482 | "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. |
| 483 | "paramType": "A String", # Optional. The type of the parameter. Used for selecting input picker. |
| 484 | "name": "A String", # Required. The name of the parameter. |
| 485 | "regexes": [ # Optional. Regexes that the parameter must match. |
| 486 | "A String", |
| 487 | ], |
| 488 | "label": "A String", # Required. The label to display for the parameter. |
| 489 | "helpText": "A String", # Required. The help text to display for the parameter. |
| 490 | }, |
| 491 | ], |
| 492 | "name": "A String", # Required. The name of the template. |
| 493 | }, |
| 494 | }</pre> |
| 495 | </div> |
| 496 | |
| 497 | <div class="method"> |
| 498 | <code class="details" id="launch">launch(projectId, location, body=None, gcsPath=None, validateOnly=None, dynamicTemplate_stagingLocation=None, dynamicTemplate_gcsPath=None, x__xgafv=None)</code> |
| 499 | <pre>Launch a template. |
| 500 | |
| 501 | Args: |
| 502 | projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required) |
| 503 | location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. (required) |
| 504 | body: object, The request body. |
| 505 | The object takes the form of: |
| 506 | |
| 507 | { # Parameters to provide to the template being launched. |
| 508 | "environment": { # The environment values to set at runtime. # The runtime environment for the job. |
| 509 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. |
| 510 | "bypassTempDirValidation": True or False, # Whether to bypass the safety checks for the job's temporary directory. Use with caution. |
| 511 | "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. |
| 512 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
| 513 | "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. |
| 514 | "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values should follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }. |
| 515 | "a_key": "A String", |
| 516 | }, |
| 517 | "zone": "A String", # The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence. |
| 518 | "maxWorkers": 42, # The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. |
| 519 | "numWorkers": 42, # The initial number of Google Compute Engine instnaces for the job. |
| 520 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 521 | "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. |
| 522 | "serviceAccountEmail": "A String", # The email address of the service account to run the job as. |
| 523 | "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. |
| 524 | "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ |
| 525 | "additionalExperiments": [ # Additional experiment flags for the job. |
| 526 | "A String", |
| 527 | ], |
| 528 | "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. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. |
| 529 | }, |
| 530 | "parameters": { # The runtime parameters to pass to the job. |
| 531 | "a_key": "A String", |
| 532 | }, |
| 533 | "update": True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. |
| 534 | "jobName": "A String", # Required. The job name to use for the created job. |
| 535 | "transformNameMapping": { # Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 536 | "a_key": "A String", |
| 537 | }, |
| 538 | } |
| 539 | |
| 540 | gcsPath: string, A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. |
| 541 | validateOnly: boolean, If true, the request is validated but not actually executed. Defaults to false. |
| 542 | dynamicTemplate_stagingLocation: string, Cloud Storage path for staging dependencies. Must be a valid Cloud Storage URL, beginning with `gs://`. |
| 543 | dynamicTemplate_gcsPath: string, Path to dynamic template spec file on GCS. The file must be a Json serialized DynamicTemplateFieSpec object. |
| 544 | x__xgafv: string, V1 error format. |
| 545 | Allowed values |
| 546 | 1 - v1 error format |
| 547 | 2 - v2 error format |
| 548 | |
| 549 | Returns: |
| 550 | An object of the form: |
| 551 | |
| 552 | { # Response to the request to launch a template. |
| 553 | "job": { # Defines a job to be run by the Cloud Dataflow service. # The job that was launched, if the request was not a dry run and the job was successfully launched. |
| 554 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
| 555 | { # A message describing the state of a particular execution stage. |
| 556 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 557 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 558 | "executionStageName": "A String", # The name of the execution stage. |
| 559 | }, |
| 560 | ], |
| 561 | "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. |
| 562 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 563 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 564 | "name": "A String", # User provided name for this transform instance. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 565 | "displayData": [ # Transform-specific display data. |
| 566 | { # Data provided with a pipeline or transform to provide descriptive info. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 567 | "durationValue": "A String", # Contains value if the data is of duration type. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 568 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 569 | "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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 570 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 571 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 572 | "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. |
| 573 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 574 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 575 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 576 | "url": "A String", # An optional full URL. |
| 577 | "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. |
| 578 | "strValue": "A String", # Contains value if the data is of string type. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 579 | }, |
| 580 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 581 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 582 | "A String", |
| 583 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 584 | "id": "A String", # SDK generated id of this transform instance. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 585 | "kind": "A String", # Type of transform. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 586 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 587 | "A String", |
| 588 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 589 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 590 | ], |
| 591 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 592 | { # 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. |
| 593 | "kind": "A String", # Type of tranform this stage is executing. |
| 594 | "id": "A String", # Dataflow service generated id for this stage. |
| 595 | "name": "A String", # Dataflow service generated name for this stage. |
| 596 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 597 | { # Description of a transform executed as part of an execution stage. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 598 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 599 | "originalTransform": "A String", # User name for the original user transform with which this transform is most closely associated. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 600 | "name": "A String", # Dataflow service generated name for this source. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 601 | }, |
| 602 | ], |
| 603 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 604 | { # Description of an interstitial value between transforms in an execution stage. |
| 605 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 606 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
| 607 | "name": "A String", # Dataflow service generated name for this source. |
| 608 | }, |
| 609 | ], |
| 610 | "outputSource": [ # Output sources for this stage. |
| 611 | { # Description of an input or output of an execution stage. |
| 612 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 613 | "name": "A String", # Dataflow service generated name for this source. |
| 614 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 615 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 616 | }, |
| 617 | ], |
| 618 | "inputSource": [ # Input sources for this stage. |
| 619 | { # Description of an input or output of an execution stage. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 620 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 621 | "name": "A String", # Dataflow service generated name for this source. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 622 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 623 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this source is most closely associated. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 624 | }, |
| 625 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 626 | }, |
| 627 | ], |
| 628 | "displayData": [ # Pipeline level display data. |
| 629 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 630 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 631 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 632 | "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. |
| 633 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 634 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 635 | "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. |
| 636 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 637 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 638 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 639 | "url": "A String", # An optional full URL. |
| 640 | "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. |
| 641 | "strValue": "A String", # Contains value if the data is of string type. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 642 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 643 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 644 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 645 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 646 | "a_key": "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 647 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 648 | "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. |
| 649 | { # 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. |
| 650 | "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. |
| 651 | "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. |
| 652 | "a_key": "", # Properties of the object. |
| 653 | }, |
| 654 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 655 | }, |
| 656 | ], |
| 657 | "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])?` |
| 658 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 659 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 660 | "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. |
| 661 | "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 |
| 662 | "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} |
| 663 | "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} |
| 664 | "version": { # A structure describing which components and their versions of the service are required in order to run the job. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 665 | "a_key": "", # Properties of the object. |
| 666 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 667 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
| 668 | { # 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. |
| 669 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google Compute Engine API. |
| 670 | "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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 671 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 672 | "a_key": "A String", |
| 673 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 674 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 675 | "poolArgs": { # Extra arguments for this worker pool. |
| 676 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 677 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 678 | "ipConfiguration": "A String", # Configuration for VM IPs. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 679 | "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. |
| 680 | "packages": [ # Packages to be installed on workers. |
| 681 | { # 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. |
| 682 | "name": "A String", # The name of the package. |
| 683 | "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/ |
| 684 | }, |
| 685 | ], |
| 686 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
| 687 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 688 | "languageHint": "A String", # The suggested backend language. |
| 689 | "workflowFileName": "A String", # The file to store the workflow in. |
| 690 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 691 | "vmId": "A String", # The ID string of the VM. |
| 692 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 693 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
| 694 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 695 | "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} |
| 696 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 697 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
| 698 | "A String", |
| 699 | ], |
| 700 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 701 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
| 702 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 703 | "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} |
| 704 | "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/" |
| 705 | "logDir": "A String", # The directory on the VM to store logs. |
| 706 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial console. |
| 707 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 708 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
| 709 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 710 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
| 711 | "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/" |
| 712 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 713 | "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} |
| 714 | }, |
| 715 | }, |
| 716 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
| 717 | "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. |
| 718 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 719 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 720 | "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. |
| 721 | }, |
| 722 | ], |
| 723 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
| 724 | "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. |
| 725 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 726 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 727 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 728 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 729 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 730 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 731 | "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). |
| 732 | "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. |
| 733 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 734 | { # Describes the data disk used by a workflow job. |
| 735 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 736 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
| 737 | "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 |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 738 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 739 | ], |
| 740 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` are supported. |
| 741 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 742 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 743 | }, |
| 744 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 745 | "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. |
| 746 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 747 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 748 | "userAgent": { # A description of the process that generated the request. |
| 749 | "a_key": "", # Properties of the object. |
| 750 | }, |
| 751 | "experiments": [ # The list of experiments to enable. |
| 752 | "A String", |
| 753 | ], |
| 754 | "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. |
| 755 | "a_key": "", # Properties of the object. |
| 756 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 757 | "internalExperiments": { # Experimental settings. |
| 758 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 759 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 760 | "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". |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 761 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 762 | "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} |
| 763 | "A String", |
| 764 | ], |
| 765 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 766 | "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. |
| 767 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 768 | "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. |
| 769 | "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |
| 770 | "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. |
| 771 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. |
| 772 | "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. |
| 773 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job. # Deprecated. |
| 774 | "stages": { # A mapping from each stage to the information about that stage. |
| 775 | "a_key": { # Contains information about how a particular google.dataflow.v1beta3.Step will be executed. |
| 776 | "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. |
| 777 | "A String", |
| 778 | ], |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 779 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 780 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 781 | }, |
| 782 | "type": "A String", # The type of Cloud Dataflow job. |
| 783 | "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. |
| 784 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given snapshot. |
| 785 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
| 786 | "a_key": "A String", |
| 787 | }, |
| 788 | "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. |
| 789 | "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. |
| 790 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 791 | { # Metadata for a File connector used by the job. |
| 792 | "filePattern": "A String", # File Pattern used to access files by the connector. |
| 793 | }, |
| 794 | ], |
| 795 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 796 | { # Metadata for a Spanner connector used by the job. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 797 | "instanceId": "A String", # InstanceId accessed in the connection. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 798 | "projectId": "A String", # ProjectId accessed in the connection. |
| 799 | "databaseId": "A String", # DatabaseId accessed in the connection. |
| 800 | }, |
| 801 | ], |
| 802 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 803 | { # Metadata for a Datastore connector used by the job. |
| 804 | "namespace": "A String", # Namespace used in the connection. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 805 | "projectId": "A String", # ProjectId accessed in the connection. |
| 806 | }, |
| 807 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 808 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
| 809 | "version": "A String", # The version of the SDK used to run the job. |
| 810 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 811 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
| 812 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 813 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 814 | { # Metadata for a PubSub connector used by the job. |
| 815 | "subscription": "A String", # Subscription used in the connection. |
| 816 | "topic": "A String", # Topic accessed in the connection. |
| 817 | }, |
| 818 | ], |
| 819 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 820 | { # Metadata for a BigQuery connector used by the job. |
| 821 | "dataset": "A String", # Dataset accessed in the connection. |
| 822 | "projectId": "A String", # Project accessed in the connection. |
| 823 | "query": "A String", # Query used to access data in the connection. |
| 824 | "table": "A String", # Table accessed in the connection. |
| 825 | }, |
| 826 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 827 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 828 | { # Metadata for a BigTable connector used by the job. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 829 | "instanceId": "A String", # InstanceId accessed in the connection. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 830 | "tableId": "A String", # TableId accessed in the connection. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 831 | "projectId": "A String", # ProjectId accessed in the connection. |
| 832 | }, |
| 833 | ], |
| 834 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 835 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 836 | }, |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 837 | }</pre> |
| 838 | </div> |
| 839 | |
| 840 | </body></html> |