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  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service.
115  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_).
116  &quot;jobCount&quot;: 42, # Output only. Number of jobs.
117  &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service.
118  &quot;name&quot;: &quot;A String&quot;, # 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&#x27;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&#x27;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  &quot;pipelineSources&quot;: { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation.
120    &quot;a_key&quot;: &quot;A String&quot;,
121  },
122  &quot;scheduleInfo&quot;: { # 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    &quot;nextJobTime&quot;: &quot;A String&quot;, # Output only. When the next Scheduler job is going to run.
124    &quot;schedule&quot;: &quot;A String&quot;, # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
125    &quot;timeZone&quot;: &quot;A String&quot;, # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
126  },
127  &quot;schedulerServiceAccountEmail&quot;: &quot;A String&quot;, # 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  &quot;state&quot;: &quot;A String&quot;, # Required. The state of the pipeline. When the pipeline is created, the state is set to &#x27;PIPELINE_STATE_ACTIVE&#x27; by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests.
129  &quot;type&quot;: &quot;A String&quot;, # 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  &quot;workload&quot;: { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs.
131    &quot;dataflowFlexTemplateRequest&quot;: { # 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      &quot;launchParameter&quot;: { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template.
133        &quot;containerSpecGcsPath&quot;: &quot;A String&quot;, # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
134        &quot;environment&quot;: { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job.
135          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
136            &quot;A String&quot;,
137          ],
138          &quot;additionalUserLabels&quot;: { # 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: `{ &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }`.
139            &quot;a_key&quot;: &quot;A String&quot;,
140          },
141          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
142          &quot;flexrsGoal&quot;: &quot;A String&quot;, # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs
143          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
144          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
145          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
146          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
147          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
148          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
149          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
150          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
151          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
152          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, defaults to the control plane region.
153          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
154          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # 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        &quot;launchOptions&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
159        },
160        &quot;parameters&quot;: { # The parameters for the Flex Template. Example: `{&quot;num_workers&quot;:&quot;5&quot;}`
161          &quot;a_key&quot;: &quot;A String&quot;,
162        },
163        &quot;transformNameMappings&quot;: { # Use this to pass transform name mappings for streaming update jobs. Example: `{&quot;oldTransformName&quot;:&quot;newTransformName&quot;,...}`
164          &quot;a_key&quot;: &quot;A String&quot;,
165        },
166        &quot;update&quot;: 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      &quot;location&quot;: &quot;A String&quot;, # 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      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
170      &quot;validateOnly&quot;: True or False, # If true, the request is validated but not actually executed. Defaults to false.
171    },
172    &quot;dataflowLaunchTemplateRequest&quot;: { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
173      &quot;gcsPath&quot;: &quot;A String&quot;, # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
174      &quot;launchParameters&quot;: { # 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        &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
176          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
177            &quot;A String&quot;,
178          ],
179          &quot;additionalUserLabels&quot;: { # 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: { &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }.
180            &quot;a_key&quot;: &quot;A String&quot;,
181          },
182          &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory. Use with caution.
183          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
184          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
185          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/
186          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
187          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
188          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
189          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
190          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
191          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
192          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
193          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
194          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
195          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
198        &quot;parameters&quot;: { # The runtime parameters to pass to the job.
199          &quot;a_key&quot;: &quot;A String&quot;,
200        },
201        &quot;transformNameMapping&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
203        },
204        &quot;update&quot;: True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
205      },
206      &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
207      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
208      &quot;validateOnly&quot;: 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  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service.
223  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_).
224  &quot;jobCount&quot;: 42, # Output only. Number of jobs.
225  &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service.
226  &quot;name&quot;: &quot;A String&quot;, # 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&#x27;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&#x27;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  &quot;pipelineSources&quot;: { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation.
228    &quot;a_key&quot;: &quot;A String&quot;,
229  },
230  &quot;scheduleInfo&quot;: { # 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    &quot;nextJobTime&quot;: &quot;A String&quot;, # Output only. When the next Scheduler job is going to run.
232    &quot;schedule&quot;: &quot;A String&quot;, # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
233    &quot;timeZone&quot;: &quot;A String&quot;, # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
234  },
235  &quot;schedulerServiceAccountEmail&quot;: &quot;A String&quot;, # 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  &quot;state&quot;: &quot;A String&quot;, # Required. The state of the pipeline. When the pipeline is created, the state is set to &#x27;PIPELINE_STATE_ACTIVE&#x27; by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests.
237  &quot;type&quot;: &quot;A String&quot;, # 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  &quot;workload&quot;: { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs.
239    &quot;dataflowFlexTemplateRequest&quot;: { # 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      &quot;launchParameter&quot;: { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template.
241        &quot;containerSpecGcsPath&quot;: &quot;A String&quot;, # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
242        &quot;environment&quot;: { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job.
243          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
244            &quot;A String&quot;,
245          ],
246          &quot;additionalUserLabels&quot;: { # 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: `{ &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }`.
247            &quot;a_key&quot;: &quot;A String&quot;,
248          },
249          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
250          &quot;flexrsGoal&quot;: &quot;A String&quot;, # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs
251          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
252          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
253          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
254          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
255          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
256          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
257          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
258          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
259          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
260          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, defaults to the control plane region.
261          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
262          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # 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        &quot;launchOptions&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
267        },
268        &quot;parameters&quot;: { # The parameters for the Flex Template. Example: `{&quot;num_workers&quot;:&quot;5&quot;}`
269          &quot;a_key&quot;: &quot;A String&quot;,
270        },
271        &quot;transformNameMappings&quot;: { # Use this to pass transform name mappings for streaming update jobs. Example: `{&quot;oldTransformName&quot;:&quot;newTransformName&quot;,...}`
272          &quot;a_key&quot;: &quot;A String&quot;,
273        },
274        &quot;update&quot;: 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      &quot;location&quot;: &quot;A String&quot;, # 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      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
278      &quot;validateOnly&quot;: True or False, # If true, the request is validated but not actually executed. Defaults to false.
279    },
280    &quot;dataflowLaunchTemplateRequest&quot;: { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
281      &quot;gcsPath&quot;: &quot;A String&quot;, # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
282      &quot;launchParameters&quot;: { # 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        &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
284          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
285            &quot;A String&quot;,
286          ],
287          &quot;additionalUserLabels&quot;: { # 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: { &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }.
288            &quot;a_key&quot;: &quot;A String&quot;,
289          },
290          &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory. Use with caution.
291          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
292          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
293          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/
294          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
295          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
296          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
297          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
298          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
299          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
300          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
301          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
302          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
303          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
306        &quot;parameters&quot;: { # The runtime parameters to pass to the job.
307          &quot;a_key&quot;: &quot;A String&quot;,
308        },
309        &quot;transformNameMapping&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
311        },
312        &quot;update&quot;: True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
313      },
314      &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
315      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
316      &quot;validateOnly&quot;: 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 &quot;NOT_FOUND&quot; error if no such pipeline exists. Returns a &quot;FORBIDDEN&quot; error if the caller doesn&#x27;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  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service.
356  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_).
357  &quot;jobCount&quot;: 42, # Output only. Number of jobs.
358  &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service.
359  &quot;name&quot;: &quot;A String&quot;, # 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&#x27;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&#x27;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  &quot;pipelineSources&quot;: { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation.
361    &quot;a_key&quot;: &quot;A String&quot;,
362  },
363  &quot;scheduleInfo&quot;: { # 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    &quot;nextJobTime&quot;: &quot;A String&quot;, # Output only. When the next Scheduler job is going to run.
365    &quot;schedule&quot;: &quot;A String&quot;, # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
366    &quot;timeZone&quot;: &quot;A String&quot;, # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
367  },
368  &quot;schedulerServiceAccountEmail&quot;: &quot;A String&quot;, # 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  &quot;state&quot;: &quot;A String&quot;, # Required. The state of the pipeline. When the pipeline is created, the state is set to &#x27;PIPELINE_STATE_ACTIVE&#x27; by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests.
370  &quot;type&quot;: &quot;A String&quot;, # 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  &quot;workload&quot;: { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs.
372    &quot;dataflowFlexTemplateRequest&quot;: { # 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      &quot;launchParameter&quot;: { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template.
374        &quot;containerSpecGcsPath&quot;: &quot;A String&quot;, # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
375        &quot;environment&quot;: { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job.
376          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
377            &quot;A String&quot;,
378          ],
379          &quot;additionalUserLabels&quot;: { # 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: `{ &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }`.
380            &quot;a_key&quot;: &quot;A String&quot;,
381          },
382          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
383          &quot;flexrsGoal&quot;: &quot;A String&quot;, # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs
384          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
385          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
386          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
387          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
388          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
389          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
390          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
391          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
392          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
393          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, defaults to the control plane region.
394          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
395          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # 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        &quot;launchOptions&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
400        },
401        &quot;parameters&quot;: { # The parameters for the Flex Template. Example: `{&quot;num_workers&quot;:&quot;5&quot;}`
402          &quot;a_key&quot;: &quot;A String&quot;,
403        },
404        &quot;transformNameMappings&quot;: { # Use this to pass transform name mappings for streaming update jobs. Example: `{&quot;oldTransformName&quot;:&quot;newTransformName&quot;,...}`
405          &quot;a_key&quot;: &quot;A String&quot;,
406        },
407        &quot;update&quot;: 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      &quot;location&quot;: &quot;A String&quot;, # 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      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
411      &quot;validateOnly&quot;: True or False, # If true, the request is validated but not actually executed. Defaults to false.
412    },
413    &quot;dataflowLaunchTemplateRequest&quot;: { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
414      &quot;gcsPath&quot;: &quot;A String&quot;, # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
415      &quot;launchParameters&quot;: { # 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        &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
417          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
418            &quot;A String&quot;,
419          ],
420          &quot;additionalUserLabels&quot;: { # 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: { &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }.
421            &quot;a_key&quot;: &quot;A String&quot;,
422          },
423          &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory. Use with caution.
424          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
425          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
426          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/
427          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
428          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
429          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
430          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
431          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
432          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
433          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
434          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
435          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
436          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
439        &quot;parameters&quot;: { # The runtime parameters to pass to the job.
440          &quot;a_key&quot;: &quot;A String&quot;,
441        },
442        &quot;transformNameMapping&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
444        },
445        &quot;update&quot;: True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
446      },
447      &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
448      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
449      &quot;validateOnly&quot;: 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&#x27;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&#x27;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&#x27;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  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service.
466  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_).
467  &quot;jobCount&quot;: 42, # Output only. Number of jobs.
468  &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service.
469  &quot;name&quot;: &quot;A String&quot;, # 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&#x27;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&#x27;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  &quot;pipelineSources&quot;: { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation.
471    &quot;a_key&quot;: &quot;A String&quot;,
472  },
473  &quot;scheduleInfo&quot;: { # 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    &quot;nextJobTime&quot;: &quot;A String&quot;, # Output only. When the next Scheduler job is going to run.
475    &quot;schedule&quot;: &quot;A String&quot;, # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
476    &quot;timeZone&quot;: &quot;A String&quot;, # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
477  },
478  &quot;schedulerServiceAccountEmail&quot;: &quot;A String&quot;, # 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  &quot;state&quot;: &quot;A String&quot;, # Required. The state of the pipeline. When the pipeline is created, the state is set to &#x27;PIPELINE_STATE_ACTIVE&#x27; by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests.
480  &quot;type&quot;: &quot;A String&quot;, # 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  &quot;workload&quot;: { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs.
482    &quot;dataflowFlexTemplateRequest&quot;: { # 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      &quot;launchParameter&quot;: { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template.
484        &quot;containerSpecGcsPath&quot;: &quot;A String&quot;, # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
485        &quot;environment&quot;: { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job.
486          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
487            &quot;A String&quot;,
488          ],
489          &quot;additionalUserLabels&quot;: { # 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: `{ &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }`.
490            &quot;a_key&quot;: &quot;A String&quot;,
491          },
492          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
493          &quot;flexrsGoal&quot;: &quot;A String&quot;, # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs
494          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
495          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
496          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
497          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
498          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
499          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
500          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
501          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
502          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
503          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, defaults to the control plane region.
504          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
505          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # 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        &quot;launchOptions&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
510        },
511        &quot;parameters&quot;: { # The parameters for the Flex Template. Example: `{&quot;num_workers&quot;:&quot;5&quot;}`
512          &quot;a_key&quot;: &quot;A String&quot;,
513        },
514        &quot;transformNameMappings&quot;: { # Use this to pass transform name mappings for streaming update jobs. Example: `{&quot;oldTransformName&quot;:&quot;newTransformName&quot;,...}`
515          &quot;a_key&quot;: &quot;A String&quot;,
516        },
517        &quot;update&quot;: 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      &quot;location&quot;: &quot;A String&quot;, # 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      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
521      &quot;validateOnly&quot;: True or False, # If true, the request is validated but not actually executed. Defaults to false.
522    },
523    &quot;dataflowLaunchTemplateRequest&quot;: { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
524      &quot;gcsPath&quot;: &quot;A String&quot;, # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
525      &quot;launchParameters&quot;: { # 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        &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
527          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
528            &quot;A String&quot;,
529          ],
530          &quot;additionalUserLabels&quot;: { # 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: { &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }.
531            &quot;a_key&quot;: &quot;A String&quot;,
532          },
533          &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory. Use with caution.
534          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
535          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
536          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/
537          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
538          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
539          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
540          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
541          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
542          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
543          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
544          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
545          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
546          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
549        &quot;parameters&quot;: { # The runtime parameters to pass to the job.
550          &quot;a_key&quot;: &quot;A String&quot;,
551        },
552        &quot;transformNameMapping&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
554        },
555        &quot;update&quot;: True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
556      },
557      &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
558      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
559      &quot;validateOnly&quot;: 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  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service.
575  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_).
576  &quot;jobCount&quot;: 42, # Output only. Number of jobs.
577  &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service.
578  &quot;name&quot;: &quot;A String&quot;, # 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&#x27;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&#x27;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  &quot;pipelineSources&quot;: { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation.
580    &quot;a_key&quot;: &quot;A String&quot;,
581  },
582  &quot;scheduleInfo&quot;: { # 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    &quot;nextJobTime&quot;: &quot;A String&quot;, # Output only. When the next Scheduler job is going to run.
584    &quot;schedule&quot;: &quot;A String&quot;, # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
585    &quot;timeZone&quot;: &quot;A String&quot;, # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
586  },
587  &quot;schedulerServiceAccountEmail&quot;: &quot;A String&quot;, # 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  &quot;state&quot;: &quot;A String&quot;, # Required. The state of the pipeline. When the pipeline is created, the state is set to &#x27;PIPELINE_STATE_ACTIVE&#x27; by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests.
589  &quot;type&quot;: &quot;A String&quot;, # 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  &quot;workload&quot;: { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs.
591    &quot;dataflowFlexTemplateRequest&quot;: { # 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      &quot;launchParameter&quot;: { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template.
593        &quot;containerSpecGcsPath&quot;: &quot;A String&quot;, # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
594        &quot;environment&quot;: { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job.
595          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
596            &quot;A String&quot;,
597          ],
598          &quot;additionalUserLabels&quot;: { # 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: `{ &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }`.
599            &quot;a_key&quot;: &quot;A String&quot;,
600          },
601          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
602          &quot;flexrsGoal&quot;: &quot;A String&quot;, # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs
603          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
604          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
605          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
606          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
607          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
608          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
609          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
610          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
611          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
612          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, defaults to the control plane region.
613          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
614          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # 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        &quot;launchOptions&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
619        },
620        &quot;parameters&quot;: { # The parameters for the Flex Template. Example: `{&quot;num_workers&quot;:&quot;5&quot;}`
621          &quot;a_key&quot;: &quot;A String&quot;,
622        },
623        &quot;transformNameMappings&quot;: { # Use this to pass transform name mappings for streaming update jobs. Example: `{&quot;oldTransformName&quot;:&quot;newTransformName&quot;,...}`
624          &quot;a_key&quot;: &quot;A String&quot;,
625        },
626        &quot;update&quot;: 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      &quot;location&quot;: &quot;A String&quot;, # 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      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
630      &quot;validateOnly&quot;: True or False, # If true, the request is validated but not actually executed. Defaults to false.
631    },
632    &quot;dataflowLaunchTemplateRequest&quot;: { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
633      &quot;gcsPath&quot;: &quot;A String&quot;, # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
634      &quot;launchParameters&quot;: { # 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        &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
636          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
637            &quot;A String&quot;,
638          ],
639          &quot;additionalUserLabels&quot;: { # 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: { &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }.
640            &quot;a_key&quot;: &quot;A String&quot;,
641          },
642          &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory. Use with caution.
643          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
644          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
645          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/
646          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
647          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
648          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
649          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
650          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
651          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
652          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
653          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
654          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
655          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
658        &quot;parameters&quot;: { # The runtime parameters to pass to the job.
659          &quot;a_key&quot;: &quot;A String&quot;,
660        },
661        &quot;transformNameMapping&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
663        },
664        &quot;update&quot;: True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
665      },
666      &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
667      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
668      &quot;validateOnly&quot;: 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 &quot;NOT_FOUND&quot; error if the pipeline doesn&#x27;t exist. Returns a &quot;FORBIDDEN&quot; error if the user doesn&#x27;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  &quot;job&quot;: { # 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    &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of job creation.
697    &quot;dataflowJobDetails&quot;: { # 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      &quot;currentWorkers&quot;: 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      &quot;resourceInfo&quot;: { # 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        &quot;a_key&quot;: 3.14,
701      },
702      &quot;sdkVersion&quot;: { # The version of the SDK used to run the job. # Output only. The SDK version used to run the job.
703        &quot;sdkSupportStatus&quot;: &quot;A String&quot;, # The support status for this SDK version.
704        &quot;version&quot;: &quot;A String&quot;, # The version of the SDK used to run the job.
705        &quot;versionDisplayName&quot;: &quot;A String&quot;, # A readable string describing the version of the SDK.
706      },
707    },
708    &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time of job termination. This is absent if the job is still running.
709    &quot;id&quot;: &quot;A String&quot;, # Output only. The internal ID for the job.
710    &quot;name&quot;: &quot;A String&quot;, # Required. The fully qualified resource name for the job.
711    &quot;state&quot;: &quot;A String&quot;, # The current state of the job.
712    &quot;status&quot;: { # 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      &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
714      &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
715        {
716          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
717        },
718      ],
719      &quot;message&quot;: &quot;A String&quot;, # 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&#x27;s a corresponding scheduler entry, it&#x27;s deleted, and the pipeline state is changed to &quot;ARCHIVED&quot;. 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  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was initially created. Set by the Data Pipelines service.
747  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the pipeline. It can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_).
748  &quot;jobCount&quot;: 42, # Output only. Number of jobs.
749  &quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. Immutable. The timestamp when the pipeline was last modified. Set by the Data Pipelines service.
750  &quot;name&quot;: &quot;A String&quot;, # 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&#x27;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&#x27;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  &quot;pipelineSources&quot;: { # Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation.
752    &quot;a_key&quot;: &quot;A String&quot;,
753  },
754  &quot;scheduleInfo&quot;: { # 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    &quot;nextJobTime&quot;: &quot;A String&quot;, # Output only. When the next Scheduler job is going to run.
756    &quot;schedule&quot;: &quot;A String&quot;, # Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler.
757    &quot;timeZone&quot;: &quot;A String&quot;, # Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed.
758  },
759  &quot;schedulerServiceAccountEmail&quot;: &quot;A String&quot;, # 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  &quot;state&quot;: &quot;A String&quot;, # Required. The state of the pipeline. When the pipeline is created, the state is set to &#x27;PIPELINE_STATE_ACTIVE&#x27; by default. State changes can be requested by setting the state to stopping, paused, or resuming. State cannot be changed through UpdatePipeline requests.
761  &quot;type&quot;: &quot;A String&quot;, # 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  &quot;workload&quot;: { # Workload details for creating the pipeline jobs. # Workload information for creating new jobs.
763    &quot;dataflowFlexTemplateRequest&quot;: { # 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      &quot;launchParameter&quot;: { # Launch Flex Template parameter. # Required. Parameter to launch a job from a Flex Template.
765        &quot;containerSpecGcsPath&quot;: &quot;A String&quot;, # Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
766        &quot;environment&quot;: { # The environment values to be set at runtime for a Flex Template. # The runtime environment for the Flex Template job.
767          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
768            &quot;A String&quot;,
769          ],
770          &quot;additionalUserLabels&quot;: { # 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: `{ &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }`.
771            &quot;a_key&quot;: &quot;A String&quot;,
772          },
773          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
774          &quot;flexrsGoal&quot;: &quot;A String&quot;, # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs
775          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
776          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/
777          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
778          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
779          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
780          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
781          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
782          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
783          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
784          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, defaults to the control plane region.
785          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
786          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # 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        &quot;launchOptions&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
791        },
792        &quot;parameters&quot;: { # The parameters for the Flex Template. Example: `{&quot;num_workers&quot;:&quot;5&quot;}`
793          &quot;a_key&quot;: &quot;A String&quot;,
794        },
795        &quot;transformNameMappings&quot;: { # Use this to pass transform name mappings for streaming update jobs. Example: `{&quot;oldTransformName&quot;:&quot;newTransformName&quot;,...}`
796          &quot;a_key&quot;: &quot;A String&quot;,
797        },
798        &quot;update&quot;: 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      &quot;location&quot;: &quot;A String&quot;, # 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      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
802      &quot;validateOnly&quot;: True or False, # If true, the request is validated but not actually executed. Defaults to false.
803    },
804    &quot;dataflowLaunchTemplateRequest&quot;: { # A request to launch a template. # Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
805      &quot;gcsPath&quot;: &quot;A String&quot;, # A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with &#x27;gs://&#x27;.
806      &quot;launchParameters&quot;: { # 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        &quot;environment&quot;: { # The environment values to set at runtime. # The runtime environment for the job.
808          &quot;additionalExperiments&quot;: [ # Additional experiment flags for the job.
809            &quot;A String&quot;,
810          ],
811          &quot;additionalUserLabels&quot;: { # 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: { &quot;name&quot;: &quot;wrench&quot;, &quot;mass&quot;: &quot;1kg&quot;, &quot;count&quot;: &quot;3&quot; }.
812            &quot;a_key&quot;: &quot;A String&quot;,
813          },
814          &quot;bypassTempDirValidation&quot;: True or False, # Whether to bypass the safety checks for the job&#x27;s temporary directory. Use with caution.
815          &quot;enableStreamingEngine&quot;: True or False, # Whether to enable Streaming Engine for the job.
816          &quot;ipConfiguration&quot;: &quot;A String&quot;, # Configuration for VM IPs.
817          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Name for the Cloud KMS key for the job. The key format is: projects//locations//keyRings//cryptoKeys/
818          &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for the job. Defaults to the value from the template if not specified.
819          &quot;maxWorkers&quot;: 42, # The maximum number of Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000.
820          &quot;network&quot;: &quot;A String&quot;, # Network to which VMs will be assigned. If empty or unspecified, the service will use the network &quot;default&quot;.
821          &quot;numWorkers&quot;: 42, # The initial number of Compute Engine instances for the job.
822          &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email address of the service account to run the job as.
823          &quot;subnetwork&quot;: &quot;A String&quot;, # 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 &quot;https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK&quot; or &quot;regions/REGION/subnetworks/SUBNETWORK&quot;. If the subnetwork is located in a Shared VPC network, you must use the complete URL.
824          &quot;tempLocation&quot;: &quot;A String&quot;, # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`.
825          &quot;workerRegion&quot;: &quot;A String&quot;, # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1&quot;. Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane&#x27;s region.
826          &quot;workerZone&quot;: &quot;A String&quot;, # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. &quot;us-west1-a&quot;. Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane&#x27;s region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
827          &quot;zone&quot;: &quot;A String&quot;, # 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        &quot;jobName&quot;: &quot;A String&quot;, # Required. The job name to use for the created job.
830        &quot;parameters&quot;: { # The runtime parameters to pass to the job.
831          &quot;a_key&quot;: &quot;A String&quot;,
832        },
833        &quot;transformNameMapping&quot;: { # 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          &quot;a_key&quot;: &quot;A String&quot;,
835        },
836        &quot;update&quot;: True or False, # If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
837      },
838      &quot;location&quot;: &quot;A String&quot;, # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.
839      &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Cloud Platform project that the job belongs to.
840      &quot;validateOnly&quot;: 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>