1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="datapipelines_v1.html">Data pipelines API</a> . <a href="datapipelines_v1.projects.html">projects</a> . <a href="datapipelines_v1.projects.locations.html">locations</a> . <a href="datapipelines_v1.projects.locations.pipelines.html">pipelines</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Creates a pipeline. For a batch pipeline, you can pass scheduler information. Data Pipelines uses the scheduler information to create an internal scheduler that runs jobs periodically. If the internal scheduler is not configured, you can use RunPipeline to run jobs.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes a pipeline. If a scheduler job is attached to the pipeline, it will be deleted.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 88<p class="firstline">Looks up a single pipeline. Returns a "NOT_FOUND" error if no such pipeline exists. Returns a "FORBIDDEN" error if the caller doesn't have permission to access it.</p> 89<p class="toc_element"> 90 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Updates a pipeline. If successful, the updated Pipeline is returned. Returns `NOT_FOUND` if the pipeline doesn't exist. If UpdatePipeline does not return successfully, you can retry the UpdatePipeline request until you receive a successful response.</p> 92<p class="toc_element"> 93 <code><a href="#run">run(name, body=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Creates a job for the specified pipeline directly. You can use this method when the internal scheduler is not configured and you want to trigger the job directly or through an external system. Returns a "NOT_FOUND" error if the pipeline doesn't exist. Returns a "FORBIDDEN" error if the user doesn't have permission to access the pipeline or run jobs for the pipeline.</p> 95<p class="toc_element"> 96 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Freezes pipeline execution permanently. If there's a corresponding scheduler entry, it's deleted, and the pipeline state is changed to "ARCHIVED". However, pipeline metadata is retained.</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="close">close()</code> 101 <pre>Close httplib2 connections.</pre> 102</div> 103 104<div class="method"> 105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> 106 <pre>Creates a pipeline. For a batch pipeline, you can pass scheduler information. Data Pipelines uses the scheduler information to create an internal scheduler that runs jobs periodically. If the internal scheduler is not configured, you can use RunPipeline to run jobs. 107 108Args: 109 parent: string, Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. (required) 110 body: object, The request body. 111 The object takes the form of: 112 113{ # The main pipeline entity and all the necessary metadata for launching and managing linked jobs. 114 "createTime": "A String", # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service. 115 "displayName": "A String", # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_). 116 "jobCount": 42, # Output only. Number of jobs. 117 "lastUpdateTime": "A String", # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service. 118 "name": "A String", # The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), and periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects). * `LOCATION_ID` is the canonical ID for the pipeline's location. The list of available locations can be obtained by calling `google.cloud.location.Locations.ListLocations`. Note that the Data Pipelines service is not available in all regions. It depends on Cloud Scheduler, an App Engine application, so it's only available in [App Engine regions](https://cloud.google.com/about/locations#region). * `PIPELINE_ID` is the ID of the pipeline. Must be unique for the selected project and location. 119 "pipelineSources": { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation. 120 "a_key": "A String", 121 }, 122 "scheduleInfo": { # Details of the schedule the pipeline runs on. # Internal scheduling information for a pipeline. If this information is provided, periodic jobs will be created per the schedule. If not, users are responsible for creating jobs externally. 123 "nextJobTime": "A String", # Output only. When the next Scheduler job is going to run. 124 "schedule": "A String", # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler. 125 "timeZone": "A String", # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed. 126 }, 127 "schedulerServiceAccountEmail": "A String", # Optional. A service account email to be used with the Cloud Scheduler job. If not specified, the default compute engine service account will be used. 128 "state": "A String", # Required. The state of the pipeline. When the pipeline is created, the state is set to 'PIPELINE_STATE_ACTIVE' by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests. 129 "type": "A String", # Required. The type of the pipeline. This field affects the scheduling of the pipeline and the type of metrics to show for the pipeline. 130 "workload": { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs. 131 "dataflowFlexTemplateRequest": { # A request to launch a Dataflow job from a Flex Template. # Template information and additional parameters needed to launch a Dataflow job using the flex launch API. 132 "launchParameter": { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template. 133 "containerSpecGcsPath": "A String", # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content. 134 "environment": { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job. 135 "additionalExperiments": [ # Additional experiment flags for the job. 136 "A String", 137 ], 138 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions). An object containing a list of key/value pairs. Example: `{ "name": "wrench", "mass": "1kg", "count": "3" }`. 139 "a_key": "A String", 140 }, 141 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 142 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 143 "ipConfiguration": "A String", # Configuration for VM IPs. 144 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 145 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 146 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 147 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 148 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 149 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 150 "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. 151 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 152 "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, defaults to the control plane region. 153 "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 region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 154 "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. 155 }, 156 "jobName": "A String", # Required. The job name to use for the created job. For an update job request, the job name should be the same as the existing running job. 157 "launchOptions": { # Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters. 158 "a_key": "A String", 159 }, 160 "parameters": { # The parameters for the Flex Template. Example: `{"num_workers":"5"}` 161 "a_key": "A String", 162 }, 163 "transformNameMappings": { # Use this to pass transform name mappings for streaming update jobs. Example: `{"oldTransformName":"newTransformName",...}` 164 "a_key": "A String", 165 }, 166 "update": True or False, # Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. 167 }, 168 "location": "A String", # Required. The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. For example, `us-central1`, `us-west1`. 169 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 170 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 171 }, 172 "dataflowLaunchTemplateRequest": { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API. 173 "gcsPath": "A String", # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'. 174 "launchParameters": { # Parameters to provide to the template being launched. # The parameters of the template to launch. This should be part of the body of the POST request. 175 "environment": { # The environment values to set at runtime. # The runtime environment for the job. 176 "additionalExperiments": [ # Additional experiment flags for the job. 177 "A String", 178 ], 179 "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" }. 180 "a_key": "A String", 181 }, 182 "bypassTempDirValidation": True or False, # Whether to bypass the safety checks for the job's temporary directory. Use with caution. 183 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 184 "ipConfiguration": "A String", # Configuration for VM IPs. 185 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/ 186 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 187 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 188 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 189 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 190 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 191 "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. 192 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 193 "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. 194 "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. 195 "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. 196 }, 197 "jobName": "A String", # Required. The job name to use for the created job. 198 "parameters": { # The runtime parameters to pass to the job. 199 "a_key": "A String", 200 }, 201 "transformNameMapping": { # Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline. 202 "a_key": "A String", 203 }, 204 "update": True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. 205 }, 206 "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. 207 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 208 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 209 }, 210 }, 211} 212 213 x__xgafv: string, V1 error format. 214 Allowed values 215 1 - v1 error format 216 2 - v2 error format 217 218Returns: 219 An object of the form: 220 221 { # The main pipeline entity and all the necessary metadata for launching and managing linked jobs. 222 "createTime": "A String", # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service. 223 "displayName": "A String", # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_). 224 "jobCount": 42, # Output only. Number of jobs. 225 "lastUpdateTime": "A String", # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service. 226 "name": "A String", # The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), and periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects). * `LOCATION_ID` is the canonical ID for the pipeline's location. The list of available locations can be obtained by calling `google.cloud.location.Locations.ListLocations`. Note that the Data Pipelines service is not available in all regions. It depends on Cloud Scheduler, an App Engine application, so it's only available in [App Engine regions](https://cloud.google.com/about/locations#region). * `PIPELINE_ID` is the ID of the pipeline. Must be unique for the selected project and location. 227 "pipelineSources": { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation. 228 "a_key": "A String", 229 }, 230 "scheduleInfo": { # Details of the schedule the pipeline runs on. # Internal scheduling information for a pipeline. If this information is provided, periodic jobs will be created per the schedule. If not, users are responsible for creating jobs externally. 231 "nextJobTime": "A String", # Output only. When the next Scheduler job is going to run. 232 "schedule": "A String", # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler. 233 "timeZone": "A String", # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed. 234 }, 235 "schedulerServiceAccountEmail": "A String", # Optional. A service account email to be used with the Cloud Scheduler job. If not specified, the default compute engine service account will be used. 236 "state": "A String", # Required. The state of the pipeline. When the pipeline is created, the state is set to 'PIPELINE_STATE_ACTIVE' by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests. 237 "type": "A String", # Required. The type of the pipeline. This field affects the scheduling of the pipeline and the type of metrics to show for the pipeline. 238 "workload": { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs. 239 "dataflowFlexTemplateRequest": { # A request to launch a Dataflow job from a Flex Template. # Template information and additional parameters needed to launch a Dataflow job using the flex launch API. 240 "launchParameter": { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template. 241 "containerSpecGcsPath": "A String", # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content. 242 "environment": { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job. 243 "additionalExperiments": [ # Additional experiment flags for the job. 244 "A String", 245 ], 246 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions). An object containing a list of key/value pairs. Example: `{ "name": "wrench", "mass": "1kg", "count": "3" }`. 247 "a_key": "A String", 248 }, 249 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 250 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 251 "ipConfiguration": "A String", # Configuration for VM IPs. 252 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 253 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 254 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 255 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 256 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 257 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 258 "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. 259 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 260 "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, defaults to the control plane region. 261 "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 region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 262 "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. 263 }, 264 "jobName": "A String", # Required. The job name to use for the created job. For an update job request, the job name should be the same as the existing running job. 265 "launchOptions": { # Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters. 266 "a_key": "A String", 267 }, 268 "parameters": { # The parameters for the Flex Template. Example: `{"num_workers":"5"}` 269 "a_key": "A String", 270 }, 271 "transformNameMappings": { # Use this to pass transform name mappings for streaming update jobs. Example: `{"oldTransformName":"newTransformName",...}` 272 "a_key": "A String", 273 }, 274 "update": True or False, # Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. 275 }, 276 "location": "A String", # Required. The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. For example, `us-central1`, `us-west1`. 277 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 278 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 279 }, 280 "dataflowLaunchTemplateRequest": { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API. 281 "gcsPath": "A String", # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'. 282 "launchParameters": { # Parameters to provide to the template being launched. # The parameters of the template to launch. This should be part of the body of the POST request. 283 "environment": { # The environment values to set at runtime. # The runtime environment for the job. 284 "additionalExperiments": [ # Additional experiment flags for the job. 285 "A String", 286 ], 287 "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" }. 288 "a_key": "A String", 289 }, 290 "bypassTempDirValidation": True or False, # Whether to bypass the safety checks for the job's temporary directory. Use with caution. 291 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 292 "ipConfiguration": "A String", # Configuration for VM IPs. 293 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/ 294 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 295 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 296 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 297 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 298 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 299 "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. 300 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 301 "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. 302 "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. 303 "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. 304 }, 305 "jobName": "A String", # Required. The job name to use for the created job. 306 "parameters": { # The runtime parameters to pass to the job. 307 "a_key": "A String", 308 }, 309 "transformNameMapping": { # Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline. 310 "a_key": "A String", 311 }, 312 "update": True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. 313 }, 314 "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. 315 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 316 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 317 }, 318 }, 319}</pre> 320</div> 321 322<div class="method"> 323 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 324 <pre>Deletes a pipeline. If a scheduler job is attached to the pipeline, it will be deleted. 325 326Args: 327 name: string, Required. The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. (required) 328 x__xgafv: string, V1 error format. 329 Allowed values 330 1 - v1 error format 331 2 - v2 error format 332 333Returns: 334 An object of the form: 335 336 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 337}</pre> 338</div> 339 340<div class="method"> 341 <code class="details" id="get">get(name, x__xgafv=None)</code> 342 <pre>Looks up a single pipeline. Returns a "NOT_FOUND" error if no such pipeline exists. Returns a "FORBIDDEN" error if the caller doesn't have permission to access it. 343 344Args: 345 name: string, Required. The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. (required) 346 x__xgafv: string, V1 error format. 347 Allowed values 348 1 - v1 error format 349 2 - v2 error format 350 351Returns: 352 An object of the form: 353 354 { # The main pipeline entity and all the necessary metadata for launching and managing linked jobs. 355 "createTime": "A String", # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service. 356 "displayName": "A String", # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_). 357 "jobCount": 42, # Output only. Number of jobs. 358 "lastUpdateTime": "A String", # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service. 359 "name": "A String", # The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), and periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects). * `LOCATION_ID` is the canonical ID for the pipeline's location. The list of available locations can be obtained by calling `google.cloud.location.Locations.ListLocations`. Note that the Data Pipelines service is not available in all regions. It depends on Cloud Scheduler, an App Engine application, so it's only available in [App Engine regions](https://cloud.google.com/about/locations#region). * `PIPELINE_ID` is the ID of the pipeline. Must be unique for the selected project and location. 360 "pipelineSources": { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation. 361 "a_key": "A String", 362 }, 363 "scheduleInfo": { # Details of the schedule the pipeline runs on. # Internal scheduling information for a pipeline. If this information is provided, periodic jobs will be created per the schedule. If not, users are responsible for creating jobs externally. 364 "nextJobTime": "A String", # Output only. When the next Scheduler job is going to run. 365 "schedule": "A String", # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler. 366 "timeZone": "A String", # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed. 367 }, 368 "schedulerServiceAccountEmail": "A String", # Optional. A service account email to be used with the Cloud Scheduler job. If not specified, the default compute engine service account will be used. 369 "state": "A String", # Required. The state of the pipeline. When the pipeline is created, the state is set to 'PIPELINE_STATE_ACTIVE' by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests. 370 "type": "A String", # Required. The type of the pipeline. This field affects the scheduling of the pipeline and the type of metrics to show for the pipeline. 371 "workload": { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs. 372 "dataflowFlexTemplateRequest": { # A request to launch a Dataflow job from a Flex Template. # Template information and additional parameters needed to launch a Dataflow job using the flex launch API. 373 "launchParameter": { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template. 374 "containerSpecGcsPath": "A String", # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content. 375 "environment": { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job. 376 "additionalExperiments": [ # Additional experiment flags for the job. 377 "A String", 378 ], 379 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions). An object containing a list of key/value pairs. Example: `{ "name": "wrench", "mass": "1kg", "count": "3" }`. 380 "a_key": "A String", 381 }, 382 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 383 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 384 "ipConfiguration": "A String", # Configuration for VM IPs. 385 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 386 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 387 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 388 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 389 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 390 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 391 "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. 392 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 393 "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, defaults to the control plane region. 394 "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 region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 395 "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. 396 }, 397 "jobName": "A String", # Required. The job name to use for the created job. For an update job request, the job name should be the same as the existing running job. 398 "launchOptions": { # Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters. 399 "a_key": "A String", 400 }, 401 "parameters": { # The parameters for the Flex Template. Example: `{"num_workers":"5"}` 402 "a_key": "A String", 403 }, 404 "transformNameMappings": { # Use this to pass transform name mappings for streaming update jobs. Example: `{"oldTransformName":"newTransformName",...}` 405 "a_key": "A String", 406 }, 407 "update": True or False, # Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. 408 }, 409 "location": "A String", # Required. The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. For example, `us-central1`, `us-west1`. 410 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 411 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 412 }, 413 "dataflowLaunchTemplateRequest": { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API. 414 "gcsPath": "A String", # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'. 415 "launchParameters": { # Parameters to provide to the template being launched. # The parameters of the template to launch. This should be part of the body of the POST request. 416 "environment": { # The environment values to set at runtime. # The runtime environment for the job. 417 "additionalExperiments": [ # Additional experiment flags for the job. 418 "A String", 419 ], 420 "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" }. 421 "a_key": "A String", 422 }, 423 "bypassTempDirValidation": True or False, # Whether to bypass the safety checks for the job's temporary directory. Use with caution. 424 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 425 "ipConfiguration": "A String", # Configuration for VM IPs. 426 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/ 427 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 428 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 429 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 430 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 431 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 432 "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. 433 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 434 "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. 435 "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. 436 "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. 437 }, 438 "jobName": "A String", # Required. The job name to use for the created job. 439 "parameters": { # The runtime parameters to pass to the job. 440 "a_key": "A String", 441 }, 442 "transformNameMapping": { # Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline. 443 "a_key": "A String", 444 }, 445 "update": True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. 446 }, 447 "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. 448 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 449 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 450 }, 451 }, 452}</pre> 453</div> 454 455<div class="method"> 456 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> 457 <pre>Updates a pipeline. If successful, the updated Pipeline is returned. Returns `NOT_FOUND` if the pipeline doesn't exist. If UpdatePipeline does not return successfully, you can retry the UpdatePipeline request until you receive a successful response. 458 459Args: 460 name: string, The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), and periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects). * `LOCATION_ID` is the canonical ID for the pipeline's location. The list of available locations can be obtained by calling `google.cloud.location.Locations.ListLocations`. Note that the Data Pipelines service is not available in all regions. It depends on Cloud Scheduler, an App Engine application, so it's only available in [App Engine regions](https://cloud.google.com/about/locations#region). * `PIPELINE_ID` is the ID of the pipeline. Must be unique for the selected project and location. (required) 461 body: object, The request body. 462 The object takes the form of: 463 464{ # The main pipeline entity and all the necessary metadata for launching and managing linked jobs. 465 "createTime": "A String", # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service. 466 "displayName": "A String", # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_). 467 "jobCount": 42, # Output only. Number of jobs. 468 "lastUpdateTime": "A String", # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service. 469 "name": "A String", # The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), and periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects). * `LOCATION_ID` is the canonical ID for the pipeline's location. The list of available locations can be obtained by calling `google.cloud.location.Locations.ListLocations`. Note that the Data Pipelines service is not available in all regions. It depends on Cloud Scheduler, an App Engine application, so it's only available in [App Engine regions](https://cloud.google.com/about/locations#region). * `PIPELINE_ID` is the ID of the pipeline. Must be unique for the selected project and location. 470 "pipelineSources": { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation. 471 "a_key": "A String", 472 }, 473 "scheduleInfo": { # Details of the schedule the pipeline runs on. # Internal scheduling information for a pipeline. If this information is provided, periodic jobs will be created per the schedule. If not, users are responsible for creating jobs externally. 474 "nextJobTime": "A String", # Output only. When the next Scheduler job is going to run. 475 "schedule": "A String", # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler. 476 "timeZone": "A String", # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed. 477 }, 478 "schedulerServiceAccountEmail": "A String", # Optional. A service account email to be used with the Cloud Scheduler job. If not specified, the default compute engine service account will be used. 479 "state": "A String", # Required. The state of the pipeline. When the pipeline is created, the state is set to 'PIPELINE_STATE_ACTIVE' by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests. 480 "type": "A String", # Required. The type of the pipeline. This field affects the scheduling of the pipeline and the type of metrics to show for the pipeline. 481 "workload": { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs. 482 "dataflowFlexTemplateRequest": { # A request to launch a Dataflow job from a Flex Template. # Template information and additional parameters needed to launch a Dataflow job using the flex launch API. 483 "launchParameter": { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template. 484 "containerSpecGcsPath": "A String", # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content. 485 "environment": { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job. 486 "additionalExperiments": [ # Additional experiment flags for the job. 487 "A String", 488 ], 489 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions). An object containing a list of key/value pairs. Example: `{ "name": "wrench", "mass": "1kg", "count": "3" }`. 490 "a_key": "A String", 491 }, 492 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 493 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 494 "ipConfiguration": "A String", # Configuration for VM IPs. 495 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 496 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 497 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 498 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 499 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 500 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 501 "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. 502 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 503 "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, defaults to the control plane region. 504 "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 region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 505 "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. 506 }, 507 "jobName": "A String", # Required. The job name to use for the created job. For an update job request, the job name should be the same as the existing running job. 508 "launchOptions": { # Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters. 509 "a_key": "A String", 510 }, 511 "parameters": { # The parameters for the Flex Template. Example: `{"num_workers":"5"}` 512 "a_key": "A String", 513 }, 514 "transformNameMappings": { # Use this to pass transform name mappings for streaming update jobs. Example: `{"oldTransformName":"newTransformName",...}` 515 "a_key": "A String", 516 }, 517 "update": True or False, # Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. 518 }, 519 "location": "A String", # Required. The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. For example, `us-central1`, `us-west1`. 520 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 521 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 522 }, 523 "dataflowLaunchTemplateRequest": { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API. 524 "gcsPath": "A String", # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'. 525 "launchParameters": { # Parameters to provide to the template being launched. # The parameters of the template to launch. This should be part of the body of the POST request. 526 "environment": { # The environment values to set at runtime. # The runtime environment for the job. 527 "additionalExperiments": [ # Additional experiment flags for the job. 528 "A String", 529 ], 530 "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" }. 531 "a_key": "A String", 532 }, 533 "bypassTempDirValidation": True or False, # Whether to bypass the safety checks for the job's temporary directory. Use with caution. 534 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 535 "ipConfiguration": "A String", # Configuration for VM IPs. 536 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/ 537 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 538 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 539 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 540 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 541 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 542 "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. 543 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 544 "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. 545 "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. 546 "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. 547 }, 548 "jobName": "A String", # Required. The job name to use for the created job. 549 "parameters": { # The runtime parameters to pass to the job. 550 "a_key": "A String", 551 }, 552 "transformNameMapping": { # Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline. 553 "a_key": "A String", 554 }, 555 "update": True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. 556 }, 557 "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. 558 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 559 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 560 }, 561 }, 562} 563 564 updateMask: string, The list of fields to be updated. 565 x__xgafv: string, V1 error format. 566 Allowed values 567 1 - v1 error format 568 2 - v2 error format 569 570Returns: 571 An object of the form: 572 573 { # The main pipeline entity and all the necessary metadata for launching and managing linked jobs. 574 "createTime": "A String", # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service. 575 "displayName": "A String", # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_). 576 "jobCount": 42, # Output only. Number of jobs. 577 "lastUpdateTime": "A String", # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service. 578 "name": "A String", # The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), and periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects). * `LOCATION_ID` is the canonical ID for the pipeline's location. The list of available locations can be obtained by calling `google.cloud.location.Locations.ListLocations`. Note that the Data Pipelines service is not available in all regions. It depends on Cloud Scheduler, an App Engine application, so it's only available in [App Engine regions](https://cloud.google.com/about/locations#region). * `PIPELINE_ID` is the ID of the pipeline. Must be unique for the selected project and location. 579 "pipelineSources": { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation. 580 "a_key": "A String", 581 }, 582 "scheduleInfo": { # Details of the schedule the pipeline runs on. # Internal scheduling information for a pipeline. If this information is provided, periodic jobs will be created per the schedule. If not, users are responsible for creating jobs externally. 583 "nextJobTime": "A String", # Output only. When the next Scheduler job is going to run. 584 "schedule": "A String", # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler. 585 "timeZone": "A String", # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed. 586 }, 587 "schedulerServiceAccountEmail": "A String", # Optional. A service account email to be used with the Cloud Scheduler job. If not specified, the default compute engine service account will be used. 588 "state": "A String", # Required. The state of the pipeline. When the pipeline is created, the state is set to 'PIPELINE_STATE_ACTIVE' by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests. 589 "type": "A String", # Required. The type of the pipeline. This field affects the scheduling of the pipeline and the type of metrics to show for the pipeline. 590 "workload": { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs. 591 "dataflowFlexTemplateRequest": { # A request to launch a Dataflow job from a Flex Template. # Template information and additional parameters needed to launch a Dataflow job using the flex launch API. 592 "launchParameter": { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template. 593 "containerSpecGcsPath": "A String", # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content. 594 "environment": { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job. 595 "additionalExperiments": [ # Additional experiment flags for the job. 596 "A String", 597 ], 598 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions). An object containing a list of key/value pairs. Example: `{ "name": "wrench", "mass": "1kg", "count": "3" }`. 599 "a_key": "A String", 600 }, 601 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 602 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 603 "ipConfiguration": "A String", # Configuration for VM IPs. 604 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 605 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 606 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 607 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 608 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 609 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 610 "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. 611 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 612 "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, defaults to the control plane region. 613 "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 region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 614 "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. 615 }, 616 "jobName": "A String", # Required. The job name to use for the created job. For an update job request, the job name should be the same as the existing running job. 617 "launchOptions": { # Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters. 618 "a_key": "A String", 619 }, 620 "parameters": { # The parameters for the Flex Template. Example: `{"num_workers":"5"}` 621 "a_key": "A String", 622 }, 623 "transformNameMappings": { # Use this to pass transform name mappings for streaming update jobs. Example: `{"oldTransformName":"newTransformName",...}` 624 "a_key": "A String", 625 }, 626 "update": True or False, # Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. 627 }, 628 "location": "A String", # Required. The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. For example, `us-central1`, `us-west1`. 629 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 630 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 631 }, 632 "dataflowLaunchTemplateRequest": { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API. 633 "gcsPath": "A String", # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'. 634 "launchParameters": { # Parameters to provide to the template being launched. # The parameters of the template to launch. This should be part of the body of the POST request. 635 "environment": { # The environment values to set at runtime. # The runtime environment for the job. 636 "additionalExperiments": [ # Additional experiment flags for the job. 637 "A String", 638 ], 639 "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" }. 640 "a_key": "A String", 641 }, 642 "bypassTempDirValidation": True or False, # Whether to bypass the safety checks for the job's temporary directory. Use with caution. 643 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 644 "ipConfiguration": "A String", # Configuration for VM IPs. 645 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/ 646 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 647 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 648 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 649 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 650 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 651 "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. 652 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 653 "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. 654 "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. 655 "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. 656 }, 657 "jobName": "A String", # Required. The job name to use for the created job. 658 "parameters": { # The runtime parameters to pass to the job. 659 "a_key": "A String", 660 }, 661 "transformNameMapping": { # Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline. 662 "a_key": "A String", 663 }, 664 "update": True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. 665 }, 666 "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. 667 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 668 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 669 }, 670 }, 671}</pre> 672</div> 673 674<div class="method"> 675 <code class="details" id="run">run(name, body=None, x__xgafv=None)</code> 676 <pre>Creates a job for the specified pipeline directly. You can use this method when the internal scheduler is not configured and you want to trigger the job directly or through an external system. Returns a "NOT_FOUND" error if the pipeline doesn't exist. Returns a "FORBIDDEN" error if the user doesn't have permission to access the pipeline or run jobs for the pipeline. 677 678Args: 679 name: string, Required. The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. (required) 680 body: object, The request body. 681 The object takes the form of: 682 683{ # Request message for RunPipeline 684} 685 686 x__xgafv: string, V1 error format. 687 Allowed values 688 1 - v1 error format 689 2 - v2 error format 690 691Returns: 692 An object of the form: 693 694 { # Response message for RunPipeline 695 "job": { # Definition of the job information maintained by the pipeline. Fields in this entity are retrieved from the executor API (e.g. Dataflow API). # Job that was created as part of RunPipeline operation. 696 "createTime": "A String", # Output only. The time of job creation. 697 "dataflowJobDetails": { # Pipeline job details specific to the Dataflow API. This is encapsulated here to allow for more executors to store their specific details separately. # All the details that are specific to a Dataflow job. 698 "currentWorkers": 42, # Output only. The current number of workers used to run the jobs. Only set to a value if the job is still running. 699 "resourceInfo": { # Cached version of all the metrics of interest for the job. This value gets stored here when the job is terminated. As long as the job is running, this field is populated from the Dataflow API. 700 "a_key": 3.14, 701 }, 702 "sdkVersion": { # The version of the SDK used to run the job. # Output only. The SDK version used to run the job. 703 "sdkSupportStatus": "A String", # The support status for this SDK version. 704 "version": "A String", # The version of the SDK used to run the job. 705 "versionDisplayName": "A String", # A readable string describing the version of the SDK. 706 }, 707 }, 708 "endTime": "A String", # Output only. The time of job termination. This is absent if the job is still running. 709 "id": "A String", # Output only. The internal ID for the job. 710 "name": "A String", # Required. The fully qualified resource name for the job. 711 "state": "A String", # The current state of the job. 712 "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). # Status capturing any error code or message related to job creation or execution. 713 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 714 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 715 { 716 "a_key": "", # Properties of the object. Contains field @type with type URL. 717 }, 718 ], 719 "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. 720 }, 721 }, 722}</pre> 723</div> 724 725<div class="method"> 726 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code> 727 <pre>Freezes pipeline execution permanently. If there's a corresponding scheduler entry, it's deleted, and the pipeline state is changed to "ARCHIVED". However, pipeline metadata is retained. 728 729Args: 730 name: string, Required. The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. (required) 731 body: object, The request body. 732 The object takes the form of: 733 734{ # Request message for StopPipeline. 735} 736 737 x__xgafv: string, V1 error format. 738 Allowed values 739 1 - v1 error format 740 2 - v2 error format 741 742Returns: 743 An object of the form: 744 745 { # The main pipeline entity and all the necessary metadata for launching and managing linked jobs. 746 "createTime": "A String", # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service. 747 "displayName": "A String", # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_). 748 "jobCount": 42, # Output only. Number of jobs. 749 "lastUpdateTime": "A String", # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service. 750 "name": "A String", # The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), and periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects). * `LOCATION_ID` is the canonical ID for the pipeline's location. The list of available locations can be obtained by calling `google.cloud.location.Locations.ListLocations`. Note that the Data Pipelines service is not available in all regions. It depends on Cloud Scheduler, an App Engine application, so it's only available in [App Engine regions](https://cloud.google.com/about/locations#region). * `PIPELINE_ID` is the ID of the pipeline. Must be unique for the selected project and location. 751 "pipelineSources": { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation. 752 "a_key": "A String", 753 }, 754 "scheduleInfo": { # Details of the schedule the pipeline runs on. # Internal scheduling information for a pipeline. If this information is provided, periodic jobs will be created per the schedule. If not, users are responsible for creating jobs externally. 755 "nextJobTime": "A String", # Output only. When the next Scheduler job is going to run. 756 "schedule": "A String", # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler. 757 "timeZone": "A String", # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed. 758 }, 759 "schedulerServiceAccountEmail": "A String", # Optional. A service account email to be used with the Cloud Scheduler job. If not specified, the default compute engine service account will be used. 760 "state": "A String", # Required. The state of the pipeline. When the pipeline is created, the state is set to 'PIPELINE_STATE_ACTIVE' by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests. 761 "type": "A String", # Required. The type of the pipeline. This field affects the scheduling of the pipeline and the type of metrics to show for the pipeline. 762 "workload": { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs. 763 "dataflowFlexTemplateRequest": { # A request to launch a Dataflow job from a Flex Template. # Template information and additional parameters needed to launch a Dataflow job using the flex launch API. 764 "launchParameter": { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template. 765 "containerSpecGcsPath": "A String", # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content. 766 "environment": { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job. 767 "additionalExperiments": [ # Additional experiment flags for the job. 768 "A String", 769 ], 770 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions). An object containing a list of key/value pairs. Example: `{ "name": "wrench", "mass": "1kg", "count": "3" }`. 771 "a_key": "A String", 772 }, 773 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 774 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 775 "ipConfiguration": "A String", # Configuration for VM IPs. 776 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 777 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 778 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 779 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 780 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 781 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 782 "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. 783 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 784 "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, defaults to the control plane region. 785 "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 region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 786 "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. 787 }, 788 "jobName": "A String", # Required. The job name to use for the created job. For an update job request, the job name should be the same as the existing running job. 789 "launchOptions": { # Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters. 790 "a_key": "A String", 791 }, 792 "parameters": { # The parameters for the Flex Template. Example: `{"num_workers":"5"}` 793 "a_key": "A String", 794 }, 795 "transformNameMappings": { # Use this to pass transform name mappings for streaming update jobs. Example: `{"oldTransformName":"newTransformName",...}` 796 "a_key": "A String", 797 }, 798 "update": True or False, # Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. 799 }, 800 "location": "A String", # Required. The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. For example, `us-central1`, `us-west1`. 801 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 802 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 803 }, 804 "dataflowLaunchTemplateRequest": { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API. 805 "gcsPath": "A String", # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'. 806 "launchParameters": { # Parameters to provide to the template being launched. # The parameters of the template to launch. This should be part of the body of the POST request. 807 "environment": { # The environment values to set at runtime. # The runtime environment for the job. 808 "additionalExperiments": [ # Additional experiment flags for the job. 809 "A String", 810 ], 811 "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" }. 812 "a_key": "A String", 813 }, 814 "bypassTempDirValidation": True or False, # Whether to bypass the safety checks for the job's temporary directory. Use with caution. 815 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 816 "ipConfiguration": "A String", # Configuration for VM IPs. 817 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/ 818 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 819 "maxWorkers": 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 820 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 821 "numWorkers": 42, # The initial number of Compute Engine instances for the job. 822 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 823 "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. 824 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 825 "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. 826 "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. 827 "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. 828 }, 829 "jobName": "A String", # Required. The job name to use for the created job. 830 "parameters": { # The runtime parameters to pass to the job. 831 "a_key": "A String", 832 }, 833 "transformNameMapping": { # Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline. 834 "a_key": "A String", 835 }, 836 "update": True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. 837 }, 838 "location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. 839 "projectId": "A String", # Required. The ID of the Cloud Platform project that the job belongs to. 840 "validateOnly": True or False, # If true, the request is validated but not actually executed. Defaults to false. 841 }, 842 }, 843}</pre> 844</div> 845 846</body></html>