blob: 32395427228cc2c05ef3ac21026d424473d00f86 [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001<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="genomics_v1alpha2.html">Genomics API</a> . <a href="genomics_v1alpha2.pipelines.html">pipelines</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline">Creates a pipeline that can be run later. Create takes a Pipeline that</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070080<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070081 <code><a href="#delete">delete(pipelineId, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040082<p class="firstline">Deletes a pipeline based on ID.</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070083<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070084 <code><a href="#get">get(pipelineId, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040085<p class="firstline">Retrieves a pipeline based on ID.</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070086<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#getControllerConfig">getControllerConfig(validationToken=None, operationId=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040088<p class="firstline">Gets controller configuration information. Should only be called</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070089<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#list">list(namePrefix=None, pageSize=None, projectId=None, pageToken=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040091<p class="firstline">Lists pipelines.</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#run">run(body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040097<p class="firstline">Runs a pipeline. If `pipelineId` is specified in the request, then</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#setOperationStatus">setOperationStatus(body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100<p class="firstline">Sets status of a given operation. Any new timestamps (as determined by</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400104 <pre>Creates a pipeline that can be run later. Create takes a Pipeline that
105has all fields other than `pipelineId` populated, and then returns
106the same pipeline with `pipelineId` populated. This id can be used
107to run the pipeline.
108
109Caller must have WRITE permission to the project.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700110
111Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 body: object, The request body.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700113 The object takes the form of:
114
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400115{ # The pipeline object. Represents a transformation from a set of input
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400116 # parameters to a set of output parameters. The transformation is defined
117 # as a docker image and command to run within that image. Each pipeline
118 # is run on a Google Compute Engine VM. A pipeline can be created with the
119 # `create` method and then later run with the `run` method, or a pipeline can
120 # be defined and run all at once with the `run` method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700121 &quot;resources&quot;: { # The system resources for the pipeline run. # Required. Specifies resource requirements for the pipeline run.
122 # Required fields:
123 #
124 # *
125 # minimumCpuCores
126 #
127 # *
128 # minimumRamGb
129 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
130 # must be true for both create time and run time. Cannot be true at run time
131 # if false at create time.
132 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
133 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
134 # By specifying this parameter, you will download and install the following
135 # third-party software onto your managed Compute Engine instances:
136 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
137 &quot;noAddress&quot;: True or False, # Whether to assign an external IP to the instance. This is an experimental
138 # feature that may go away. Defaults to false.
139 # Corresponds to `--no_address` flag for [gcloud compute instances create]
140 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
141 # In order to use this, must be true for both create time and run time.
142 # Cannot be true at run time if false at create time. If you need to ssh into
143 # a private IP VM for debugging, you can ssh to a public VM and then ssh into
144 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
145 # only load docker images from Google Container Registry and not Docker Hub.
146 # Before using this, you must
147 # [configure access to Google services from internal
148 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
149 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
150 # creation will restricted. If empty, any zone may be chosen.
151 &quot;A String&quot;,
152 ],
153 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
154 &quot;disks&quot;: [ # Disks to attach.
155 { # A Google Compute Engine disk resource specification.
156 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
157 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
158 # and
159 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
160 # for more details.
161 &quot;mountPoint&quot;: &quot;A String&quot;, # Required at create time and cannot be overridden at run time.
162 # Specifies the path in the docker container where files on
163 # this disk should be located. For example, if `mountPoint`
164 # is `/mnt/disk`, and the parameter has `localPath`
165 # `inputs/file.txt`, the docker container can access the data at
166 # `/mnt/disk/inputs/file.txt`.
167 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
168 # of the pipeline run, regardless of what this field is set to.
169 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
170 # parameters. Must be 1 - 63 characters.
171 # The name &quot;boot&quot; is reserved for system use.
172 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
173 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
174 # This field is not applicable for local SSD.
175 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
176 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
177 # for more details.
178 # Can only be set at create time.
179 },
180 ],
181 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
182 # By specifying this parameter, you will download and install the following
183 # third-party software onto your managed Compute Engine instances: NVIDIA®
184 # Tesla® drivers and NVIDIA® CUDA toolkit.
185 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
186 # available accelerator types.
187 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
188 },
189 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
190 # WRITE access.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700191 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
192 # is called. Cannot be specified in the Pipeline used in the
193 # CreatePipelineRequest, and will be populated in the response to
194 # CreatePipeline and all subsequent Get and List calls. Indicates that the
195 # service has registered this pipeline.
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
197 { # Parameters facilitate setting and delivering data into the
198 # pipeline&#x27;s execution environment. They are defined at create time,
199 # with optional defaults, and can be overridden at run time.
200 #
201 # If `localCopy` is unset, then the parameter specifies a string that
202 # is passed as-is into the pipeline, as the value of the environment
203 # variable with the given name. A default value can be optionally
204 # specified at create time. The default can be overridden at run time
205 # using the inputs map. If no default is given, a value must be
206 # supplied at runtime.
207 #
208 # If `localCopy` is defined, then the parameter specifies a data
209 # source or sink, both in Google Cloud Storage and on the Docker container
210 # where the pipeline computation is run. The service account associated with
211 # the Pipeline (by
212 # default the project&#x27;s Compute Engine service account) must have access to the
213 # Google Cloud Storage paths.
214 #
215 # At run time, the Google Cloud Storage paths can be overridden if a default
216 # was provided at create time, or must be set otherwise. The pipeline runner
217 # should add a key/value pair to either the inputs or outputs map. The
218 # indicated data copies will be carried out before/after pipeline execution,
219 # just as if the corresponding arguments were provided to `gsutil cp`.
220 #
221 # For example: Given the following `PipelineParameter`, specified
222 # in the `inputParameters` list:
223 #
224 # ```
225 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
226 # ```
227 #
228 # where `disk` is defined in the `PipelineResources` object as:
229 #
230 # ```
231 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
232 # ```
233 #
234 # We create a disk named `pd1`, mount it on the host VM, and map
235 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
236 # runtime, an entry for `input_file` would be required in the inputs
237 # map, such as:
238 #
239 # ```
240 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
241 # ```
242 #
243 # This would generate the following gsutil call:
244 #
245 # ```
246 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
247 # ```
248 #
249 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
250 # Docker container. Acceptable paths are:
251 #
252 # &lt;table&gt;
253 # &lt;thead&gt;
254 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
255 # &lt;/thead&gt;
256 # &lt;tbody&gt;
257 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
258 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
259 # &lt;/tbody&gt;
260 # &lt;/table&gt;
261 #
262 # For outputs, the direction of the copy is reversed:
263 #
264 # ```
265 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
266 # ```
267 #
268 # Acceptable paths are:
269 #
270 # &lt;table&gt;
271 # &lt;thead&gt;
272 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
273 # &lt;/thead&gt;
274 # &lt;tbody&gt;
275 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
276 # &lt;tr&gt;
277 # &lt;td&gt;file&lt;/td&gt;
278 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
279 # &lt;/tr&gt;
280 # &lt;tr&gt;
281 # &lt;td&gt;glob&lt;/td&gt;
282 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
283 # &lt;/tbody&gt;
284 # &lt;/table&gt;
285 #
286 # One restriction due to docker limitations, is that for outputs that are found
287 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700288 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
289 # `LocalCopy` indicates where on the VM the file should be. The value
290 # given to this parameter (either at runtime or using `defaultValue`)
291 # must be the remote path where the file should be.
292 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
293 # located. Can be the name of one of the disks specified in the
294 # Resources field, or &quot;boot&quot;, which represents the Docker
295 # instance&#x27;s boot disk and has a mount point of `/`.
296 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
297 # this input should be localized to and from, relative to the specified
298 # disk&#x27;s mount point. For example: file.txt,
299 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700300 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
301 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
302 # If `localCopy` is present, then this must be a Google Cloud Storage path
303 # beginning with `gs://`.
304 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
305 # as the key to the input and output maps in RunPipeline.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 },
307 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400309 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400311 # with optional defaults, and can be overridden at run time.
312 #
313 # If `localCopy` is unset, then the parameter specifies a string that
314 # is passed as-is into the pipeline, as the value of the environment
315 # variable with the given name. A default value can be optionally
316 # specified at create time. The default can be overridden at run time
317 # using the inputs map. If no default is given, a value must be
318 # supplied at runtime.
319 #
320 # If `localCopy` is defined, then the parameter specifies a data
321 # source or sink, both in Google Cloud Storage and on the Docker container
322 # where the pipeline computation is run. The service account associated with
323 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400325 # Google Cloud Storage paths.
326 #
327 # At run time, the Google Cloud Storage paths can be overridden if a default
328 # was provided at create time, or must be set otherwise. The pipeline runner
329 # should add a key/value pair to either the inputs or outputs map. The
330 # indicated data copies will be carried out before/after pipeline execution,
331 # just as if the corresponding arguments were provided to `gsutil cp`.
332 #
333 # For example: Given the following `PipelineParameter`, specified
334 # in the `inputParameters` list:
335 #
336 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400338 # ```
339 #
340 # where `disk` is defined in the `PipelineResources` object as:
341 #
342 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400344 # ```
345 #
346 # We create a disk named `pd1`, mount it on the host VM, and map
347 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
348 # runtime, an entry for `input_file` would be required in the inputs
349 # map, such as:
350 #
351 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400353 # ```
354 #
355 # This would generate the following gsutil call:
356 #
357 # ```
358 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
359 # ```
360 #
361 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
362 # Docker container. Acceptable paths are:
363 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700364 # &lt;table&gt;
365 # &lt;thead&gt;
366 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
367 # &lt;/thead&gt;
368 # &lt;tbody&gt;
369 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
370 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
371 # &lt;/tbody&gt;
372 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400373 #
374 # For outputs, the direction of the copy is reversed:
375 #
376 # ```
377 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
378 # ```
379 #
380 # Acceptable paths are:
381 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700382 # &lt;table&gt;
383 # &lt;thead&gt;
384 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
385 # &lt;/thead&gt;
386 # &lt;tbody&gt;
387 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
388 # &lt;tr&gt;
389 # &lt;td&gt;file&lt;/td&gt;
390 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
391 # &lt;/tr&gt;
392 # &lt;tr&gt;
393 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -0700395 # &lt;/tbody&gt;
396 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400397 #
398 # One restriction due to docker limitations, is that for outputs that are found
399 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400401 # `LocalCopy` indicates where on the VM the file should be. The value
402 # given to this parameter (either at runtime or using `defaultValue`)
403 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400405 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 # Resources field, or &quot;boot&quot;, which represents the Docker
407 # instance&#x27;s boot disk and has a mount point of `/`.
408 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
409 # this input should be localized to and from, relative to the specified
410 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700411 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700412 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
413 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
414 # If `localCopy` is present, then this must be a Google Cloud Storage path
415 # beginning with `gs://`.
416 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
417 # as the key to the input and output maps in RunPipeline.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700418 },
419 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700420 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700422 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
423 # Users that run pipelines must have READ access to the image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;cmd&quot;: &quot;A String&quot;, # Required. The command or newline delimited script to run. The command
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400425 # string will be executed within a bash shell.
426 #
427 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400429 # `error` field will be populated.
430 #
431 # Maximum command string length is 16384.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700432 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700433 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
434 # This name can be used for filtering Pipelines in ListPipelines.
435 }
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700436
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700437 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400438 Allowed values
439 1 - v1 error format
440 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700441
442Returns:
443 An object of the form:
444
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700445 { # The pipeline object. Represents a transformation from a set of input
446 # parameters to a set of output parameters. The transformation is defined
447 # as a docker image and command to run within that image. Each pipeline
448 # is run on a Google Compute Engine VM. A pipeline can be created with the
449 # `create` method and then later run with the `run` method, or a pipeline can
450 # be defined and run all at once with the `run` method.
451 &quot;resources&quot;: { # The system resources for the pipeline run. # Required. Specifies resource requirements for the pipeline run.
452 # Required fields:
453 #
454 # *
455 # minimumCpuCores
456 #
457 # *
458 # minimumRamGb
Bu Sun Kim65020912020-05-20 12:08:20 -0700459 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
460 # must be true for both create time and run time. Cannot be true at run time
461 # if false at create time.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700462 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
464 # By specifying this parameter, you will download and install the following
465 # third-party software onto your managed Compute Engine instances:
466 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;noAddress&quot;: True or False, # Whether to assign an external IP to the instance. This is an experimental
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400468 # feature that may go away. Defaults to false.
469 # Corresponds to `--no_address` flag for [gcloud compute instances create]
470 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
471 # In order to use this, must be true for both create time and run time.
472 # Cannot be true at run time if false at create time. If you need to ssh into
473 # a private IP VM for debugging, you can ssh to a public VM and then ssh into
Bu Sun Kim65020912020-05-20 12:08:20 -0700474 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400475 # only load docker images from Google Container Registry and not Docker Hub.
476 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477 # [configure access to Google services from internal
478 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700479 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
480 # creation will restricted. If empty, any zone may be chosen.
481 &quot;A String&quot;,
482 ],
483 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700485 { # A Google Compute Engine disk resource specification.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700486 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
487 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
488 # and
489 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
490 # for more details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700491 &quot;mountPoint&quot;: &quot;A String&quot;, # Required at create time and cannot be overridden at run time.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400492 # Specifies the path in the docker container where files on
493 # this disk should be located. For example, if `mountPoint`
494 # is `/mnt/disk`, and the parameter has `localPath`
495 # `inputs/file.txt`, the docker container can access the data at
496 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700497 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
498 # of the pipeline run, regardless of what this field is set to.
499 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
500 # parameters. Must be 1 - 63 characters.
501 # The name &quot;boot&quot; is reserved for system use.
502 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
503 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
504 # This field is not applicable for local SSD.
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
506 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
507 # for more details.
508 # Can only be set at create time.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700509 },
510 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700511 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
512 # By specifying this parameter, you will download and install the following
513 # third-party software onto your managed Compute Engine instances: NVIDIA®
514 # Tesla® drivers and NVIDIA® CUDA toolkit.
515 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
516 # available accelerator types.
517 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700518 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
520 # WRITE access.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700521 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
522 # is called. Cannot be specified in the Pipeline used in the
523 # CreatePipelineRequest, and will be populated in the response to
524 # CreatePipeline and all subsequent Get and List calls. Indicates that the
525 # service has registered this pipeline.
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
527 { # Parameters facilitate setting and delivering data into the
528 # pipeline&#x27;s execution environment. They are defined at create time,
529 # with optional defaults, and can be overridden at run time.
530 #
531 # If `localCopy` is unset, then the parameter specifies a string that
532 # is passed as-is into the pipeline, as the value of the environment
533 # variable with the given name. A default value can be optionally
534 # specified at create time. The default can be overridden at run time
535 # using the inputs map. If no default is given, a value must be
536 # supplied at runtime.
537 #
538 # If `localCopy` is defined, then the parameter specifies a data
539 # source or sink, both in Google Cloud Storage and on the Docker container
540 # where the pipeline computation is run. The service account associated with
541 # the Pipeline (by
542 # default the project&#x27;s Compute Engine service account) must have access to the
543 # Google Cloud Storage paths.
544 #
545 # At run time, the Google Cloud Storage paths can be overridden if a default
546 # was provided at create time, or must be set otherwise. The pipeline runner
547 # should add a key/value pair to either the inputs or outputs map. The
548 # indicated data copies will be carried out before/after pipeline execution,
549 # just as if the corresponding arguments were provided to `gsutil cp`.
550 #
551 # For example: Given the following `PipelineParameter`, specified
552 # in the `inputParameters` list:
553 #
554 # ```
555 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
556 # ```
557 #
558 # where `disk` is defined in the `PipelineResources` object as:
559 #
560 # ```
561 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
562 # ```
563 #
564 # We create a disk named `pd1`, mount it on the host VM, and map
565 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
566 # runtime, an entry for `input_file` would be required in the inputs
567 # map, such as:
568 #
569 # ```
570 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
571 # ```
572 #
573 # This would generate the following gsutil call:
574 #
575 # ```
576 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
577 # ```
578 #
579 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
580 # Docker container. Acceptable paths are:
581 #
582 # &lt;table&gt;
583 # &lt;thead&gt;
584 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
585 # &lt;/thead&gt;
586 # &lt;tbody&gt;
587 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
588 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
589 # &lt;/tbody&gt;
590 # &lt;/table&gt;
591 #
592 # For outputs, the direction of the copy is reversed:
593 #
594 # ```
595 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
596 # ```
597 #
598 # Acceptable paths are:
599 #
600 # &lt;table&gt;
601 # &lt;thead&gt;
602 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
603 # &lt;/thead&gt;
604 # &lt;tbody&gt;
605 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
606 # &lt;tr&gt;
607 # &lt;td&gt;file&lt;/td&gt;
608 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
609 # &lt;/tr&gt;
610 # &lt;tr&gt;
611 # &lt;td&gt;glob&lt;/td&gt;
612 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
613 # &lt;/tbody&gt;
614 # &lt;/table&gt;
615 #
616 # One restriction due to docker limitations, is that for outputs that are found
617 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700618 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
619 # `LocalCopy` indicates where on the VM the file should be. The value
620 # given to this parameter (either at runtime or using `defaultValue`)
621 # must be the remote path where the file should be.
622 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
623 # located. Can be the name of one of the disks specified in the
624 # Resources field, or &quot;boot&quot;, which represents the Docker
625 # instance&#x27;s boot disk and has a mount point of `/`.
626 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
627 # this input should be localized to and from, relative to the specified
628 # disk&#x27;s mount point. For example: file.txt,
629 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700630 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
631 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
632 # If `localCopy` is present, then this must be a Google Cloud Storage path
633 # beginning with `gs://`.
634 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
635 # as the key to the input and output maps in RunPipeline.
Bu Sun Kim65020912020-05-20 12:08:20 -0700636 },
637 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700638 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
639 { # Parameters facilitate setting and delivering data into the
640 # pipeline&#x27;s execution environment. They are defined at create time,
641 # with optional defaults, and can be overridden at run time.
642 #
643 # If `localCopy` is unset, then the parameter specifies a string that
644 # is passed as-is into the pipeline, as the value of the environment
645 # variable with the given name. A default value can be optionally
646 # specified at create time. The default can be overridden at run time
647 # using the inputs map. If no default is given, a value must be
648 # supplied at runtime.
649 #
650 # If `localCopy` is defined, then the parameter specifies a data
651 # source or sink, both in Google Cloud Storage and on the Docker container
652 # where the pipeline computation is run. The service account associated with
653 # the Pipeline (by
654 # default the project&#x27;s Compute Engine service account) must have access to the
655 # Google Cloud Storage paths.
656 #
657 # At run time, the Google Cloud Storage paths can be overridden if a default
658 # was provided at create time, or must be set otherwise. The pipeline runner
659 # should add a key/value pair to either the inputs or outputs map. The
660 # indicated data copies will be carried out before/after pipeline execution,
661 # just as if the corresponding arguments were provided to `gsutil cp`.
662 #
663 # For example: Given the following `PipelineParameter`, specified
664 # in the `inputParameters` list:
665 #
666 # ```
667 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
668 # ```
669 #
670 # where `disk` is defined in the `PipelineResources` object as:
671 #
672 # ```
673 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
674 # ```
675 #
676 # We create a disk named `pd1`, mount it on the host VM, and map
677 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
678 # runtime, an entry for `input_file` would be required in the inputs
679 # map, such as:
680 #
681 # ```
682 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
683 # ```
684 #
685 # This would generate the following gsutil call:
686 #
687 # ```
688 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
689 # ```
690 #
691 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
692 # Docker container. Acceptable paths are:
693 #
694 # &lt;table&gt;
695 # &lt;thead&gt;
696 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
697 # &lt;/thead&gt;
698 # &lt;tbody&gt;
699 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
700 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
701 # &lt;/tbody&gt;
702 # &lt;/table&gt;
703 #
704 # For outputs, the direction of the copy is reversed:
705 #
706 # ```
707 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
708 # ```
709 #
710 # Acceptable paths are:
711 #
712 # &lt;table&gt;
713 # &lt;thead&gt;
714 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
715 # &lt;/thead&gt;
716 # &lt;tbody&gt;
717 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
718 # &lt;tr&gt;
719 # &lt;td&gt;file&lt;/td&gt;
720 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
721 # &lt;/tr&gt;
722 # &lt;tr&gt;
723 # &lt;td&gt;glob&lt;/td&gt;
724 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
725 # &lt;/tbody&gt;
726 # &lt;/table&gt;
727 #
728 # One restriction due to docker limitations, is that for outputs that are found
729 # on the boot disk, the local path cannot be a glob and must be a file.
730 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
731 # `LocalCopy` indicates where on the VM the file should be. The value
732 # given to this parameter (either at runtime or using `defaultValue`)
733 # must be the remote path where the file should be.
734 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
735 # located. Can be the name of one of the disks specified in the
736 # Resources field, or &quot;boot&quot;, which represents the Docker
737 # instance&#x27;s boot disk and has a mount point of `/`.
738 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
739 # this input should be localized to and from, relative to the specified
740 # disk&#x27;s mount point. For example: file.txt,
741 },
742 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
743 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
744 # If `localCopy` is present, then this must be a Google Cloud Storage path
745 # beginning with `gs://`.
746 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
747 # as the key to the input and output maps in RunPipeline.
748 },
749 ],
750 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
751 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
752 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
753 # Users that run pipelines must have READ access to the image.
754 &quot;cmd&quot;: &quot;A String&quot;, # Required. The command or newline delimited script to run. The command
755 # string will be executed within a bash shell.
756 #
757 # If the command exits with a non-zero exit code, output parameter
758 # de-localization will be skipped and the pipeline operation&#x27;s
759 # `error` field will be populated.
760 #
761 # Maximum command string length is 16384.
762 },
763 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
764 # This name can be used for filtering Pipelines in ListPipelines.
765 }</pre>
766</div>
767
768<div class="method">
769 <code class="details" id="delete">delete(pipelineId, x__xgafv=None)</code>
770 <pre>Deletes a pipeline based on ID.
771
772Caller must have WRITE permission to the project.
773
774Args:
775 pipelineId: string, Caller must have WRITE access to the project in which this pipeline
776is defined. (required)
777 x__xgafv: string, V1 error format.
778 Allowed values
779 1 - v1 error format
780 2 - v2 error format
781
782Returns:
783 An object of the form:
784
785 { # A generic empty message that you can re-use to avoid defining duplicated
786 # empty messages in your APIs. A typical example is to use it as the request
787 # or the response type of an API method. For instance:
788 #
789 # service Foo {
790 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
791 # }
792 #
793 # The JSON representation for `Empty` is empty JSON object `{}`.
794 }</pre>
795</div>
796
797<div class="method">
798 <code class="details" id="get">get(pipelineId, x__xgafv=None)</code>
799 <pre>Retrieves a pipeline based on ID.
800
801Caller must have READ permission to the project.
802
803Args:
804 pipelineId: string, Caller must have READ access to the project in which this pipeline
805is defined. (required)
806 x__xgafv: string, V1 error format.
807 Allowed values
808 1 - v1 error format
809 2 - v2 error format
810
811Returns:
812 An object of the form:
813
814 { # The pipeline object. Represents a transformation from a set of input
815 # parameters to a set of output parameters. The transformation is defined
816 # as a docker image and command to run within that image. Each pipeline
817 # is run on a Google Compute Engine VM. A pipeline can be created with the
818 # `create` method and then later run with the `run` method, or a pipeline can
819 # be defined and run all at once with the `run` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 &quot;resources&quot;: { # The system resources for the pipeline run. # Required. Specifies resource requirements for the pipeline run.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400821 # Required fields:
822 #
823 # *
824 # minimumCpuCores
825 #
826 # *
827 # minimumRamGb
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
829 # must be true for both create time and run time. Cannot be true at run time
830 # if false at create time.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700831 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
833 # By specifying this parameter, you will download and install the following
834 # third-party software onto your managed Compute Engine instances:
835 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700836 &quot;noAddress&quot;: True or False, # Whether to assign an external IP to the instance. This is an experimental
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400837 # feature that may go away. Defaults to false.
838 # Corresponds to `--no_address` flag for [gcloud compute instances create]
839 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
840 # In order to use this, must be true for both create time and run time.
841 # Cannot be true at run time if false at create time. If you need to ssh into
842 # a private IP VM for debugging, you can ssh to a public VM and then ssh into
Bu Sun Kim65020912020-05-20 12:08:20 -0700843 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400844 # only load docker images from Google Container Registry and not Docker Hub.
845 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700846 # [configure access to Google services from internal
847 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700848 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
849 # creation will restricted. If empty, any zone may be chosen.
850 &quot;A String&quot;,
851 ],
852 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700854 { # A Google Compute Engine disk resource specification.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700855 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
856 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
857 # and
858 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
859 # for more details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 &quot;mountPoint&quot;: &quot;A String&quot;, # Required at create time and cannot be overridden at run time.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400861 # Specifies the path in the docker container where files on
862 # this disk should be located. For example, if `mountPoint`
863 # is `/mnt/disk`, and the parameter has `localPath`
864 # `inputs/file.txt`, the docker container can access the data at
865 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700866 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
867 # of the pipeline run, regardless of what this field is set to.
868 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
869 # parameters. Must be 1 - 63 characters.
870 # The name &quot;boot&quot; is reserved for system use.
871 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
872 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
873 # This field is not applicable for local SSD.
Bu Sun Kim65020912020-05-20 12:08:20 -0700874 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
875 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
876 # for more details.
877 # Can only be set at create time.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700878 },
879 ],
880 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
881 # By specifying this parameter, you will download and install the following
882 # third-party software onto your managed Compute Engine instances: NVIDIA®
883 # Tesla® drivers and NVIDIA® CUDA toolkit.
884 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
885 # available accelerator types.
886 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
887 },
888 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
889 # WRITE access.
890 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
891 # is called. Cannot be specified in the Pipeline used in the
892 # CreatePipelineRequest, and will be populated in the response to
893 # CreatePipeline and all subsequent Get and List calls. Indicates that the
894 # service has registered this pipeline.
895 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
896 { # Parameters facilitate setting and delivering data into the
897 # pipeline&#x27;s execution environment. They are defined at create time,
898 # with optional defaults, and can be overridden at run time.
899 #
900 # If `localCopy` is unset, then the parameter specifies a string that
901 # is passed as-is into the pipeline, as the value of the environment
902 # variable with the given name. A default value can be optionally
903 # specified at create time. The default can be overridden at run time
904 # using the inputs map. If no default is given, a value must be
905 # supplied at runtime.
906 #
907 # If `localCopy` is defined, then the parameter specifies a data
908 # source or sink, both in Google Cloud Storage and on the Docker container
909 # where the pipeline computation is run. The service account associated with
910 # the Pipeline (by
911 # default the project&#x27;s Compute Engine service account) must have access to the
912 # Google Cloud Storage paths.
913 #
914 # At run time, the Google Cloud Storage paths can be overridden if a default
915 # was provided at create time, or must be set otherwise. The pipeline runner
916 # should add a key/value pair to either the inputs or outputs map. The
917 # indicated data copies will be carried out before/after pipeline execution,
918 # just as if the corresponding arguments were provided to `gsutil cp`.
919 #
920 # For example: Given the following `PipelineParameter`, specified
921 # in the `inputParameters` list:
922 #
923 # ```
924 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
925 # ```
926 #
927 # where `disk` is defined in the `PipelineResources` object as:
928 #
929 # ```
930 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
931 # ```
932 #
933 # We create a disk named `pd1`, mount it on the host VM, and map
934 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
935 # runtime, an entry for `input_file` would be required in the inputs
936 # map, such as:
937 #
938 # ```
939 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
940 # ```
941 #
942 # This would generate the following gsutil call:
943 #
944 # ```
945 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
946 # ```
947 #
948 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
949 # Docker container. Acceptable paths are:
950 #
951 # &lt;table&gt;
952 # &lt;thead&gt;
953 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
954 # &lt;/thead&gt;
955 # &lt;tbody&gt;
956 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
957 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
958 # &lt;/tbody&gt;
959 # &lt;/table&gt;
960 #
961 # For outputs, the direction of the copy is reversed:
962 #
963 # ```
964 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
965 # ```
966 #
967 # Acceptable paths are:
968 #
969 # &lt;table&gt;
970 # &lt;thead&gt;
971 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
972 # &lt;/thead&gt;
973 # &lt;tbody&gt;
974 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
975 # &lt;tr&gt;
976 # &lt;td&gt;file&lt;/td&gt;
977 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
978 # &lt;/tr&gt;
979 # &lt;tr&gt;
980 # &lt;td&gt;glob&lt;/td&gt;
981 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
982 # &lt;/tbody&gt;
983 # &lt;/table&gt;
984 #
985 # One restriction due to docker limitations, is that for outputs that are found
986 # on the boot disk, the local path cannot be a glob and must be a file.
987 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
988 # `LocalCopy` indicates where on the VM the file should be. The value
989 # given to this parameter (either at runtime or using `defaultValue`)
990 # must be the remote path where the file should be.
991 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
992 # located. Can be the name of one of the disks specified in the
993 # Resources field, or &quot;boot&quot;, which represents the Docker
994 # instance&#x27;s boot disk and has a mount point of `/`.
995 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
996 # this input should be localized to and from, relative to the specified
997 # disk&#x27;s mount point. For example: file.txt,
998 },
999 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1000 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1001 # If `localCopy` is present, then this must be a Google Cloud Storage path
1002 # beginning with `gs://`.
1003 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1004 # as the key to the input and output maps in RunPipeline.
1005 },
1006 ],
1007 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
1008 { # Parameters facilitate setting and delivering data into the
1009 # pipeline&#x27;s execution environment. They are defined at create time,
1010 # with optional defaults, and can be overridden at run time.
1011 #
1012 # If `localCopy` is unset, then the parameter specifies a string that
1013 # is passed as-is into the pipeline, as the value of the environment
1014 # variable with the given name. A default value can be optionally
1015 # specified at create time. The default can be overridden at run time
1016 # using the inputs map. If no default is given, a value must be
1017 # supplied at runtime.
1018 #
1019 # If `localCopy` is defined, then the parameter specifies a data
1020 # source or sink, both in Google Cloud Storage and on the Docker container
1021 # where the pipeline computation is run. The service account associated with
1022 # the Pipeline (by
1023 # default the project&#x27;s Compute Engine service account) must have access to the
1024 # Google Cloud Storage paths.
1025 #
1026 # At run time, the Google Cloud Storage paths can be overridden if a default
1027 # was provided at create time, or must be set otherwise. The pipeline runner
1028 # should add a key/value pair to either the inputs or outputs map. The
1029 # indicated data copies will be carried out before/after pipeline execution,
1030 # just as if the corresponding arguments were provided to `gsutil cp`.
1031 #
1032 # For example: Given the following `PipelineParameter`, specified
1033 # in the `inputParameters` list:
1034 #
1035 # ```
1036 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1037 # ```
1038 #
1039 # where `disk` is defined in the `PipelineResources` object as:
1040 #
1041 # ```
1042 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1043 # ```
1044 #
1045 # We create a disk named `pd1`, mount it on the host VM, and map
1046 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1047 # runtime, an entry for `input_file` would be required in the inputs
1048 # map, such as:
1049 #
1050 # ```
1051 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1052 # ```
1053 #
1054 # This would generate the following gsutil call:
1055 #
1056 # ```
1057 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1058 # ```
1059 #
1060 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1061 # Docker container. Acceptable paths are:
1062 #
1063 # &lt;table&gt;
1064 # &lt;thead&gt;
1065 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1066 # &lt;/thead&gt;
1067 # &lt;tbody&gt;
1068 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1069 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1070 # &lt;/tbody&gt;
1071 # &lt;/table&gt;
1072 #
1073 # For outputs, the direction of the copy is reversed:
1074 #
1075 # ```
1076 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1077 # ```
1078 #
1079 # Acceptable paths are:
1080 #
1081 # &lt;table&gt;
1082 # &lt;thead&gt;
1083 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1084 # &lt;/thead&gt;
1085 # &lt;tbody&gt;
1086 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1087 # &lt;tr&gt;
1088 # &lt;td&gt;file&lt;/td&gt;
1089 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1090 # &lt;/tr&gt;
1091 # &lt;tr&gt;
1092 # &lt;td&gt;glob&lt;/td&gt;
1093 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1094 # &lt;/tbody&gt;
1095 # &lt;/table&gt;
1096 #
1097 # One restriction due to docker limitations, is that for outputs that are found
1098 # on the boot disk, the local path cannot be a glob and must be a file.
1099 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
1100 # `LocalCopy` indicates where on the VM the file should be. The value
1101 # given to this parameter (either at runtime or using `defaultValue`)
1102 # must be the remote path where the file should be.
1103 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1104 # located. Can be the name of one of the disks specified in the
1105 # Resources field, or &quot;boot&quot;, which represents the Docker
1106 # instance&#x27;s boot disk and has a mount point of `/`.
1107 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1108 # this input should be localized to and from, relative to the specified
1109 # disk&#x27;s mount point. For example: file.txt,
1110 },
1111 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1112 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1113 # If `localCopy` is present, then this must be a Google Cloud Storage path
1114 # beginning with `gs://`.
1115 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1116 # as the key to the input and output maps in RunPipeline.
1117 },
1118 ],
1119 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
1120 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
1121 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
1122 # Users that run pipelines must have READ access to the image.
1123 &quot;cmd&quot;: &quot;A String&quot;, # Required. The command or newline delimited script to run. The command
1124 # string will be executed within a bash shell.
1125 #
1126 # If the command exits with a non-zero exit code, output parameter
1127 # de-localization will be skipped and the pipeline operation&#x27;s
1128 # `error` field will be populated.
1129 #
1130 # Maximum command string length is 16384.
1131 },
1132 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
1133 # This name can be used for filtering Pipelines in ListPipelines.
1134 }</pre>
1135</div>
1136
1137<div class="method">
1138 <code class="details" id="getControllerConfig">getControllerConfig(validationToken=None, operationId=None, x__xgafv=None)</code>
1139 <pre>Gets controller configuration information. Should only be called
1140by VMs created by the Pipelines Service and not by end users.
1141
1142Args:
1143 validationToken: string, A parameter
1144 operationId: string, The operation to retrieve controller configuration for.
1145 x__xgafv: string, V1 error format.
1146 Allowed values
1147 1 - v1 error format
1148 2 - v2 error format
1149
1150Returns:
1151 An object of the form:
1152
1153 { # Stores the information that the controller will fetch from the
1154 # server in order to run. Should only be used by VMs created by the
1155 # Pipelines Service and not by end users.
1156 &quot;cmd&quot;: &quot;A String&quot;,
1157 &quot;gcsSinks&quot;: {
1158 &quot;a_key&quot;: {
1159 &quot;values&quot;: [
1160 &quot;A String&quot;,
1161 ],
1162 },
1163 },
1164 &quot;gcsLogPath&quot;: &quot;A String&quot;,
1165 &quot;machineType&quot;: &quot;A String&quot;,
1166 &quot;disks&quot;: {
1167 &quot;a_key&quot;: &quot;A String&quot;,
1168 },
1169 &quot;vars&quot;: {
1170 &quot;a_key&quot;: &quot;A String&quot;,
1171 },
1172 &quot;image&quot;: &quot;A String&quot;,
1173 &quot;gcsSources&quot;: {
1174 &quot;a_key&quot;: {
1175 &quot;values&quot;: [
1176 &quot;A String&quot;,
1177 ],
1178 },
1179 },
1180 }</pre>
1181</div>
1182
1183<div class="method">
1184 <code class="details" id="list">list(namePrefix=None, pageSize=None, projectId=None, pageToken=None, x__xgafv=None)</code>
1185 <pre>Lists pipelines.
1186
1187Caller must have READ permission to the project.
1188
1189Args:
1190 namePrefix: string, Pipelines with names that match this prefix should be
1191returned. If unspecified, all pipelines in the project, up to
1192`pageSize`, will be returned.
1193 pageSize: integer, Number of pipelines to return at once. Defaults to 256, and max
1194is 2048.
1195 projectId: string, Required. The name of the project to search for pipelines. Caller
1196must have READ access to this project.
1197 pageToken: string, Token to use to indicate where to start getting results.
1198If unspecified, returns the first page of results.
1199 x__xgafv: string, V1 error format.
1200 Allowed values
1201 1 - v1 error format
1202 2 - v2 error format
1203
1204Returns:
1205 An object of the form:
1206
1207 { # The response of ListPipelines. Contains at most `pageSize`
1208 # pipelines. If it contains `pageSize` pipelines, and more pipelines
1209 # exist, then `nextPageToken` will be populated and should be
1210 # used as the `pageToken` argument to a subsequent ListPipelines
1211 # request.
1212 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token to use to get the next page of results.
1213 &quot;pipelines&quot;: [ # The matched pipelines.
1214 { # The pipeline object. Represents a transformation from a set of input
1215 # parameters to a set of output parameters. The transformation is defined
1216 # as a docker image and command to run within that image. Each pipeline
1217 # is run on a Google Compute Engine VM. A pipeline can be created with the
1218 # `create` method and then later run with the `run` method, or a pipeline can
1219 # be defined and run all at once with the `run` method.
1220 &quot;resources&quot;: { # The system resources for the pipeline run. # Required. Specifies resource requirements for the pipeline run.
1221 # Required fields:
1222 #
1223 # *
1224 # minimumCpuCores
1225 #
1226 # *
1227 # minimumRamGb
1228 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1229 # must be true for both create time and run time. Cannot be true at run time
1230 # if false at create time.
1231 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
1232 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1233 # By specifying this parameter, you will download and install the following
1234 # third-party software onto your managed Compute Engine instances:
1235 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1236 &quot;noAddress&quot;: True or False, # Whether to assign an external IP to the instance. This is an experimental
1237 # feature that may go away. Defaults to false.
1238 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1239 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1240 # In order to use this, must be true for both create time and run time.
1241 # Cannot be true at run time if false at create time. If you need to ssh into
1242 # a private IP VM for debugging, you can ssh to a public VM and then ssh into
1243 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
1244 # only load docker images from Google Container Registry and not Docker Hub.
1245 # Before using this, you must
1246 # [configure access to Google services from internal
1247 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
1248 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1249 # creation will restricted. If empty, any zone may be chosen.
1250 &quot;A String&quot;,
1251 ],
1252 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
1253 &quot;disks&quot;: [ # Disks to attach.
1254 { # A Google Compute Engine disk resource specification.
1255 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1256 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1257 # and
1258 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1259 # for more details.
1260 &quot;mountPoint&quot;: &quot;A String&quot;, # Required at create time and cannot be overridden at run time.
1261 # Specifies the path in the docker container where files on
1262 # this disk should be located. For example, if `mountPoint`
1263 # is `/mnt/disk`, and the parameter has `localPath`
1264 # `inputs/file.txt`, the docker container can access the data at
1265 # `/mnt/disk/inputs/file.txt`.
1266 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1267 # of the pipeline run, regardless of what this field is set to.
1268 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1269 # parameters. Must be 1 - 63 characters.
1270 # The name &quot;boot&quot; is reserved for system use.
1271 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1272 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1273 # This field is not applicable for local SSD.
1274 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1275 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1276 # for more details.
1277 # Can only be set at create time.
1278 },
1279 ],
1280 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1281 # By specifying this parameter, you will download and install the following
1282 # third-party software onto your managed Compute Engine instances: NVIDIA®
1283 # Tesla® drivers and NVIDIA® CUDA toolkit.
1284 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1285 # available accelerator types.
1286 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
1287 },
1288 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
1289 # WRITE access.
1290 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
1291 # is called. Cannot be specified in the Pipeline used in the
1292 # CreatePipelineRequest, and will be populated in the response to
1293 # CreatePipeline and all subsequent Get and List calls. Indicates that the
1294 # service has registered this pipeline.
1295 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
1296 { # Parameters facilitate setting and delivering data into the
1297 # pipeline&#x27;s execution environment. They are defined at create time,
1298 # with optional defaults, and can be overridden at run time.
1299 #
1300 # If `localCopy` is unset, then the parameter specifies a string that
1301 # is passed as-is into the pipeline, as the value of the environment
1302 # variable with the given name. A default value can be optionally
1303 # specified at create time. The default can be overridden at run time
1304 # using the inputs map. If no default is given, a value must be
1305 # supplied at runtime.
1306 #
1307 # If `localCopy` is defined, then the parameter specifies a data
1308 # source or sink, both in Google Cloud Storage and on the Docker container
1309 # where the pipeline computation is run. The service account associated with
1310 # the Pipeline (by
1311 # default the project&#x27;s Compute Engine service account) must have access to the
1312 # Google Cloud Storage paths.
1313 #
1314 # At run time, the Google Cloud Storage paths can be overridden if a default
1315 # was provided at create time, or must be set otherwise. The pipeline runner
1316 # should add a key/value pair to either the inputs or outputs map. The
1317 # indicated data copies will be carried out before/after pipeline execution,
1318 # just as if the corresponding arguments were provided to `gsutil cp`.
1319 #
1320 # For example: Given the following `PipelineParameter`, specified
1321 # in the `inputParameters` list:
1322 #
1323 # ```
1324 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1325 # ```
1326 #
1327 # where `disk` is defined in the `PipelineResources` object as:
1328 #
1329 # ```
1330 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1331 # ```
1332 #
1333 # We create a disk named `pd1`, mount it on the host VM, and map
1334 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1335 # runtime, an entry for `input_file` would be required in the inputs
1336 # map, such as:
1337 #
1338 # ```
1339 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1340 # ```
1341 #
1342 # This would generate the following gsutil call:
1343 #
1344 # ```
1345 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1346 # ```
1347 #
1348 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1349 # Docker container. Acceptable paths are:
1350 #
1351 # &lt;table&gt;
1352 # &lt;thead&gt;
1353 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1354 # &lt;/thead&gt;
1355 # &lt;tbody&gt;
1356 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1357 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1358 # &lt;/tbody&gt;
1359 # &lt;/table&gt;
1360 #
1361 # For outputs, the direction of the copy is reversed:
1362 #
1363 # ```
1364 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1365 # ```
1366 #
1367 # Acceptable paths are:
1368 #
1369 # &lt;table&gt;
1370 # &lt;thead&gt;
1371 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1372 # &lt;/thead&gt;
1373 # &lt;tbody&gt;
1374 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1375 # &lt;tr&gt;
1376 # &lt;td&gt;file&lt;/td&gt;
1377 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1378 # &lt;/tr&gt;
1379 # &lt;tr&gt;
1380 # &lt;td&gt;glob&lt;/td&gt;
1381 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1382 # &lt;/tbody&gt;
1383 # &lt;/table&gt;
1384 #
1385 # One restriction due to docker limitations, is that for outputs that are found
1386 # on the boot disk, the local path cannot be a glob and must be a file.
1387 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
1388 # `LocalCopy` indicates where on the VM the file should be. The value
1389 # given to this parameter (either at runtime or using `defaultValue`)
1390 # must be the remote path where the file should be.
1391 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1392 # located. Can be the name of one of the disks specified in the
1393 # Resources field, or &quot;boot&quot;, which represents the Docker
1394 # instance&#x27;s boot disk and has a mount point of `/`.
1395 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1396 # this input should be localized to and from, relative to the specified
1397 # disk&#x27;s mount point. For example: file.txt,
1398 },
1399 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1400 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1401 # If `localCopy` is present, then this must be a Google Cloud Storage path
1402 # beginning with `gs://`.
1403 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1404 # as the key to the input and output maps in RunPipeline.
1405 },
1406 ],
1407 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
1408 { # Parameters facilitate setting and delivering data into the
1409 # pipeline&#x27;s execution environment. They are defined at create time,
1410 # with optional defaults, and can be overridden at run time.
1411 #
1412 # If `localCopy` is unset, then the parameter specifies a string that
1413 # is passed as-is into the pipeline, as the value of the environment
1414 # variable with the given name. A default value can be optionally
1415 # specified at create time. The default can be overridden at run time
1416 # using the inputs map. If no default is given, a value must be
1417 # supplied at runtime.
1418 #
1419 # If `localCopy` is defined, then the parameter specifies a data
1420 # source or sink, both in Google Cloud Storage and on the Docker container
1421 # where the pipeline computation is run. The service account associated with
1422 # the Pipeline (by
1423 # default the project&#x27;s Compute Engine service account) must have access to the
1424 # Google Cloud Storage paths.
1425 #
1426 # At run time, the Google Cloud Storage paths can be overridden if a default
1427 # was provided at create time, or must be set otherwise. The pipeline runner
1428 # should add a key/value pair to either the inputs or outputs map. The
1429 # indicated data copies will be carried out before/after pipeline execution,
1430 # just as if the corresponding arguments were provided to `gsutil cp`.
1431 #
1432 # For example: Given the following `PipelineParameter`, specified
1433 # in the `inputParameters` list:
1434 #
1435 # ```
1436 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1437 # ```
1438 #
1439 # where `disk` is defined in the `PipelineResources` object as:
1440 #
1441 # ```
1442 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1443 # ```
1444 #
1445 # We create a disk named `pd1`, mount it on the host VM, and map
1446 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1447 # runtime, an entry for `input_file` would be required in the inputs
1448 # map, such as:
1449 #
1450 # ```
1451 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1452 # ```
1453 #
1454 # This would generate the following gsutil call:
1455 #
1456 # ```
1457 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1458 # ```
1459 #
1460 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1461 # Docker container. Acceptable paths are:
1462 #
1463 # &lt;table&gt;
1464 # &lt;thead&gt;
1465 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1466 # &lt;/thead&gt;
1467 # &lt;tbody&gt;
1468 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1469 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1470 # &lt;/tbody&gt;
1471 # &lt;/table&gt;
1472 #
1473 # For outputs, the direction of the copy is reversed:
1474 #
1475 # ```
1476 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1477 # ```
1478 #
1479 # Acceptable paths are:
1480 #
1481 # &lt;table&gt;
1482 # &lt;thead&gt;
1483 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1484 # &lt;/thead&gt;
1485 # &lt;tbody&gt;
1486 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1487 # &lt;tr&gt;
1488 # &lt;td&gt;file&lt;/td&gt;
1489 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1490 # &lt;/tr&gt;
1491 # &lt;tr&gt;
1492 # &lt;td&gt;glob&lt;/td&gt;
1493 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1494 # &lt;/tbody&gt;
1495 # &lt;/table&gt;
1496 #
1497 # One restriction due to docker limitations, is that for outputs that are found
1498 # on the boot disk, the local path cannot be a glob and must be a file.
1499 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
1500 # `LocalCopy` indicates where on the VM the file should be. The value
1501 # given to this parameter (either at runtime or using `defaultValue`)
1502 # must be the remote path where the file should be.
1503 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1504 # located. Can be the name of one of the disks specified in the
1505 # Resources field, or &quot;boot&quot;, which represents the Docker
1506 # instance&#x27;s boot disk and has a mount point of `/`.
1507 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1508 # this input should be localized to and from, relative to the specified
1509 # disk&#x27;s mount point. For example: file.txt,
1510 },
1511 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1512 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1513 # If `localCopy` is present, then this must be a Google Cloud Storage path
1514 # beginning with `gs://`.
1515 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1516 # as the key to the input and output maps in RunPipeline.
1517 },
1518 ],
1519 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
1520 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
1521 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
1522 # Users that run pipelines must have READ access to the image.
1523 &quot;cmd&quot;: &quot;A String&quot;, # Required. The command or newline delimited script to run. The command
1524 # string will be executed within a bash shell.
1525 #
1526 # If the command exits with a non-zero exit code, output parameter
1527 # de-localization will be skipped and the pipeline operation&#x27;s
1528 # `error` field will be populated.
1529 #
1530 # Maximum command string length is 16384.
1531 },
1532 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
1533 # This name can be used for filtering Pipelines in ListPipelines.
1534 },
1535 ],
1536 }</pre>
1537</div>
1538
1539<div class="method">
1540 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1541 <pre>Retrieves the next page of results.
1542
1543Args:
1544 previous_request: The request for the previous page. (required)
1545 previous_response: The response from the request for the previous page. (required)
1546
1547Returns:
1548 A request object that you can call &#x27;execute()&#x27; on to request the next
1549 page. Returns None if there are no more items in the collection.
1550 </pre>
1551</div>
1552
1553<div class="method">
1554 <code class="details" id="run">run(body=None, x__xgafv=None)</code>
1555 <pre>Runs a pipeline. If `pipelineId` is specified in the request, then
1556run a saved pipeline. If `ephemeralPipeline` is specified, then run
1557that pipeline once without saving a copy.
1558
1559The caller must have READ permission to the project where the pipeline
1560is stored and WRITE permission to the project where the pipeline will be
1561run, as VMs will be created and storage will be used.
1562
1563If a pipeline operation is still running after 6 days, it will be canceled.
1564
1565Args:
1566 body: object, The request body.
1567 The object takes the form of:
1568
1569{ # The request to run a pipeline. If `pipelineId` is specified, it
1570 # refers to a saved pipeline created with CreatePipeline and set as
1571 # the `pipelineId` of the returned Pipeline object. If
1572 # `ephemeralPipeline` is specified, that pipeline is run once
1573 # with the given args and not saved. It is an error to specify both
1574 # `pipelineId` and `ephemeralPipeline`. `pipelineArgs`
1575 # must be specified.
1576 &quot;pipelineId&quot;: &quot;A String&quot;, # The already created pipeline to run.
1577 &quot;ephemeralPipeline&quot;: { # The pipeline object. Represents a transformation from a set of input # A new pipeline object to run once and then delete.
1578 # parameters to a set of output parameters. The transformation is defined
1579 # as a docker image and command to run within that image. Each pipeline
1580 # is run on a Google Compute Engine VM. A pipeline can be created with the
1581 # `create` method and then later run with the `run` method, or a pipeline can
1582 # be defined and run all at once with the `run` method.
1583 &quot;resources&quot;: { # The system resources for the pipeline run. # Required. Specifies resource requirements for the pipeline run.
1584 # Required fields:
1585 #
1586 # *
1587 # minimumCpuCores
1588 #
1589 # *
1590 # minimumRamGb
1591 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1592 # must be true for both create time and run time. Cannot be true at run time
1593 # if false at create time.
1594 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
1595 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1596 # By specifying this parameter, you will download and install the following
1597 # third-party software onto your managed Compute Engine instances:
1598 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1599 &quot;noAddress&quot;: True or False, # Whether to assign an external IP to the instance. This is an experimental
1600 # feature that may go away. Defaults to false.
1601 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1602 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1603 # In order to use this, must be true for both create time and run time.
1604 # Cannot be true at run time if false at create time. If you need to ssh into
1605 # a private IP VM for debugging, you can ssh to a public VM and then ssh into
1606 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
1607 # only load docker images from Google Container Registry and not Docker Hub.
1608 # Before using this, you must
1609 # [configure access to Google services from internal
1610 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
1611 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1612 # creation will restricted. If empty, any zone may be chosen.
1613 &quot;A String&quot;,
1614 ],
1615 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
1616 &quot;disks&quot;: [ # Disks to attach.
1617 { # A Google Compute Engine disk resource specification.
1618 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1619 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1620 # and
1621 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1622 # for more details.
1623 &quot;mountPoint&quot;: &quot;A String&quot;, # Required at create time and cannot be overridden at run time.
1624 # Specifies the path in the docker container where files on
1625 # this disk should be located. For example, if `mountPoint`
1626 # is `/mnt/disk`, and the parameter has `localPath`
1627 # `inputs/file.txt`, the docker container can access the data at
1628 # `/mnt/disk/inputs/file.txt`.
1629 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1630 # of the pipeline run, regardless of what this field is set to.
1631 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1632 # parameters. Must be 1 - 63 characters.
1633 # The name &quot;boot&quot; is reserved for system use.
1634 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1635 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1636 # This field is not applicable for local SSD.
1637 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1638 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1639 # for more details.
1640 # Can only be set at create time.
1641 },
1642 ],
1643 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1644 # By specifying this parameter, you will download and install the following
1645 # third-party software onto your managed Compute Engine instances: NVIDIA®
1646 # Tesla® drivers and NVIDIA® CUDA toolkit.
1647 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1648 # available accelerator types.
1649 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
1650 },
1651 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
1652 # WRITE access.
1653 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
1654 # is called. Cannot be specified in the Pipeline used in the
1655 # CreatePipelineRequest, and will be populated in the response to
1656 # CreatePipeline and all subsequent Get and List calls. Indicates that the
1657 # service has registered this pipeline.
1658 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
1659 { # Parameters facilitate setting and delivering data into the
1660 # pipeline&#x27;s execution environment. They are defined at create time,
1661 # with optional defaults, and can be overridden at run time.
1662 #
1663 # If `localCopy` is unset, then the parameter specifies a string that
1664 # is passed as-is into the pipeline, as the value of the environment
1665 # variable with the given name. A default value can be optionally
1666 # specified at create time. The default can be overridden at run time
1667 # using the inputs map. If no default is given, a value must be
1668 # supplied at runtime.
1669 #
1670 # If `localCopy` is defined, then the parameter specifies a data
1671 # source or sink, both in Google Cloud Storage and on the Docker container
1672 # where the pipeline computation is run. The service account associated with
1673 # the Pipeline (by
1674 # default the project&#x27;s Compute Engine service account) must have access to the
1675 # Google Cloud Storage paths.
1676 #
1677 # At run time, the Google Cloud Storage paths can be overridden if a default
1678 # was provided at create time, or must be set otherwise. The pipeline runner
1679 # should add a key/value pair to either the inputs or outputs map. The
1680 # indicated data copies will be carried out before/after pipeline execution,
1681 # just as if the corresponding arguments were provided to `gsutil cp`.
1682 #
1683 # For example: Given the following `PipelineParameter`, specified
1684 # in the `inputParameters` list:
1685 #
1686 # ```
1687 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1688 # ```
1689 #
1690 # where `disk` is defined in the `PipelineResources` object as:
1691 #
1692 # ```
1693 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1694 # ```
1695 #
1696 # We create a disk named `pd1`, mount it on the host VM, and map
1697 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1698 # runtime, an entry for `input_file` would be required in the inputs
1699 # map, such as:
1700 #
1701 # ```
1702 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1703 # ```
1704 #
1705 # This would generate the following gsutil call:
1706 #
1707 # ```
1708 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1709 # ```
1710 #
1711 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1712 # Docker container. Acceptable paths are:
1713 #
1714 # &lt;table&gt;
1715 # &lt;thead&gt;
1716 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1717 # &lt;/thead&gt;
1718 # &lt;tbody&gt;
1719 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1720 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1721 # &lt;/tbody&gt;
1722 # &lt;/table&gt;
1723 #
1724 # For outputs, the direction of the copy is reversed:
1725 #
1726 # ```
1727 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1728 # ```
1729 #
1730 # Acceptable paths are:
1731 #
1732 # &lt;table&gt;
1733 # &lt;thead&gt;
1734 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1735 # &lt;/thead&gt;
1736 # &lt;tbody&gt;
1737 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1738 # &lt;tr&gt;
1739 # &lt;td&gt;file&lt;/td&gt;
1740 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1741 # &lt;/tr&gt;
1742 # &lt;tr&gt;
1743 # &lt;td&gt;glob&lt;/td&gt;
1744 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1745 # &lt;/tbody&gt;
1746 # &lt;/table&gt;
1747 #
1748 # One restriction due to docker limitations, is that for outputs that are found
1749 # on the boot disk, the local path cannot be a glob and must be a file.
1750 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
1751 # `LocalCopy` indicates where on the VM the file should be. The value
1752 # given to this parameter (either at runtime or using `defaultValue`)
1753 # must be the remote path where the file should be.
1754 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1755 # located. Can be the name of one of the disks specified in the
1756 # Resources field, or &quot;boot&quot;, which represents the Docker
1757 # instance&#x27;s boot disk and has a mount point of `/`.
1758 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1759 # this input should be localized to and from, relative to the specified
1760 # disk&#x27;s mount point. For example: file.txt,
1761 },
1762 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1763 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1764 # If `localCopy` is present, then this must be a Google Cloud Storage path
1765 # beginning with `gs://`.
1766 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1767 # as the key to the input and output maps in RunPipeline.
1768 },
1769 ],
1770 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
1771 { # Parameters facilitate setting and delivering data into the
1772 # pipeline&#x27;s execution environment. They are defined at create time,
1773 # with optional defaults, and can be overridden at run time.
1774 #
1775 # If `localCopy` is unset, then the parameter specifies a string that
1776 # is passed as-is into the pipeline, as the value of the environment
1777 # variable with the given name. A default value can be optionally
1778 # specified at create time. The default can be overridden at run time
1779 # using the inputs map. If no default is given, a value must be
1780 # supplied at runtime.
1781 #
1782 # If `localCopy` is defined, then the parameter specifies a data
1783 # source or sink, both in Google Cloud Storage and on the Docker container
1784 # where the pipeline computation is run. The service account associated with
1785 # the Pipeline (by
1786 # default the project&#x27;s Compute Engine service account) must have access to the
1787 # Google Cloud Storage paths.
1788 #
1789 # At run time, the Google Cloud Storage paths can be overridden if a default
1790 # was provided at create time, or must be set otherwise. The pipeline runner
1791 # should add a key/value pair to either the inputs or outputs map. The
1792 # indicated data copies will be carried out before/after pipeline execution,
1793 # just as if the corresponding arguments were provided to `gsutil cp`.
1794 #
1795 # For example: Given the following `PipelineParameter`, specified
1796 # in the `inputParameters` list:
1797 #
1798 # ```
1799 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1800 # ```
1801 #
1802 # where `disk` is defined in the `PipelineResources` object as:
1803 #
1804 # ```
1805 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1806 # ```
1807 #
1808 # We create a disk named `pd1`, mount it on the host VM, and map
1809 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1810 # runtime, an entry for `input_file` would be required in the inputs
1811 # map, such as:
1812 #
1813 # ```
1814 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1815 # ```
1816 #
1817 # This would generate the following gsutil call:
1818 #
1819 # ```
1820 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1821 # ```
1822 #
1823 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1824 # Docker container. Acceptable paths are:
1825 #
1826 # &lt;table&gt;
1827 # &lt;thead&gt;
1828 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1829 # &lt;/thead&gt;
1830 # &lt;tbody&gt;
1831 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1832 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1833 # &lt;/tbody&gt;
1834 # &lt;/table&gt;
1835 #
1836 # For outputs, the direction of the copy is reversed:
1837 #
1838 # ```
1839 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1840 # ```
1841 #
1842 # Acceptable paths are:
1843 #
1844 # &lt;table&gt;
1845 # &lt;thead&gt;
1846 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1847 # &lt;/thead&gt;
1848 # &lt;tbody&gt;
1849 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1850 # &lt;tr&gt;
1851 # &lt;td&gt;file&lt;/td&gt;
1852 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1853 # &lt;/tr&gt;
1854 # &lt;tr&gt;
1855 # &lt;td&gt;glob&lt;/td&gt;
1856 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1857 # &lt;/tbody&gt;
1858 # &lt;/table&gt;
1859 #
1860 # One restriction due to docker limitations, is that for outputs that are found
1861 # on the boot disk, the local path cannot be a glob and must be a file.
1862 &quot;localCopy&quot;: { # LocalCopy defines how a remote file should be copied to and from the VM. # If present, this parameter is marked for copying to and from the VM.
1863 # `LocalCopy` indicates where on the VM the file should be. The value
1864 # given to this parameter (either at runtime or using `defaultValue`)
1865 # must be the remote path where the file should be.
1866 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1867 # located. Can be the name of one of the disks specified in the
1868 # Resources field, or &quot;boot&quot;, which represents the Docker
1869 # instance&#x27;s boot disk and has a mount point of `/`.
1870 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1871 # this input should be localized to and from, relative to the specified
1872 # disk&#x27;s mount point. For example: file.txt,
1873 },
1874 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1875 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1876 # If `localCopy` is present, then this must be a Google Cloud Storage path
1877 # beginning with `gs://`.
1878 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1879 # as the key to the input and output maps in RunPipeline.
1880 },
1881 ],
1882 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
1883 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
1884 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
1885 # Users that run pipelines must have READ access to the image.
1886 &quot;cmd&quot;: &quot;A String&quot;, # Required. The command or newline delimited script to run. The command
1887 # string will be executed within a bash shell.
1888 #
1889 # If the command exits with a non-zero exit code, output parameter
1890 # de-localization will be skipped and the pipeline operation&#x27;s
1891 # `error` field will be populated.
1892 #
1893 # Maximum command string length is 16384.
1894 },
1895 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
1896 # This name can be used for filtering Pipelines in ListPipelines.
1897 },
1898 &quot;pipelineArgs&quot;: { # The pipeline run arguments. # The arguments to use when running this pipeline.
1899 &quot;logging&quot;: { # The logging options for the pipeline run. # Required. Logging options. Used by the service to communicate results
1900 # to the user.
1901 &quot;gcsPath&quot;: &quot;A String&quot;, # The location in Google Cloud Storage to which the pipeline logs
1902 # will be copied. Can be specified as a fully qualified directory
1903 # path, in which case logs will be output with a unique identifier
1904 # as the filename in that directory, or as a fully specified path,
1905 # which must end in `.log`, in which case that path will be
1906 # used, and the user must ensure that logs are not
1907 # overwritten. Stdout and stderr logs from the run are also
1908 # generated and output as `-stdout.log` and `-stderr.log`.
1909 },
1910 &quot;inputs&quot;: { # Pipeline input arguments; keys are defined in the pipeline documentation.
1911 # All input parameters that do not have default values must be specified.
1912 # If parameters with defaults are specified here, the defaults will be
1913 # overridden.
1914 &quot;a_key&quot;: &quot;A String&quot;,
1915 },
1916 &quot;resources&quot;: { # The system resources for the pipeline run. # Specifies resource requirements/overrides for the pipeline run.
1917 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1918 # must be true for both create time and run time. Cannot be true at run time
1919 # if false at create time.
1920 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
1921 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1922 # By specifying this parameter, you will download and install the following
1923 # third-party software onto your managed Compute Engine instances:
1924 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1925 &quot;noAddress&quot;: True or False, # Whether to assign an external IP to the instance. This is an experimental
1926 # feature that may go away. Defaults to false.
1927 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1928 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1929 # In order to use this, must be true for both create time and run time.
1930 # Cannot be true at run time if false at create time. If you need to ssh into
1931 # a private IP VM for debugging, you can ssh to a public VM and then ssh into
1932 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
1933 # only load docker images from Google Container Registry and not Docker Hub.
1934 # Before using this, you must
1935 # [configure access to Google services from internal
1936 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
1937 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1938 # creation will restricted. If empty, any zone may be chosen.
1939 &quot;A String&quot;,
1940 ],
1941 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
1942 &quot;disks&quot;: [ # Disks to attach.
1943 { # A Google Compute Engine disk resource specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07001944 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1945 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1946 # and
1947 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1948 # for more details.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001949 &quot;mountPoint&quot;: &quot;A String&quot;, # Required at create time and cannot be overridden at run time.
1950 # Specifies the path in the docker container where files on
1951 # this disk should be located. For example, if `mountPoint`
1952 # is `/mnt/disk`, and the parameter has `localPath`
1953 # `inputs/file.txt`, the docker container can access the data at
1954 # `/mnt/disk/inputs/file.txt`.
1955 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1956 # of the pipeline run, regardless of what this field is set to.
1957 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1958 # parameters. Must be 1 - 63 characters.
1959 # The name &quot;boot&quot; is reserved for system use.
1960 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1961 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1962 # This field is not applicable for local SSD.
1963 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1964 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1965 # for more details.
1966 # Can only be set at create time.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001967 },
1968 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001969 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1970 # By specifying this parameter, you will download and install the following
1971 # third-party software onto your managed Compute Engine instances: NVIDIA®
1972 # Tesla® drivers and NVIDIA® CUDA toolkit.
1973 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1974 # available accelerator types.
1975 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001976 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001977 &quot;labels&quot;: { # Labels to apply to this pipeline run. Labels will also be applied to
1978 # compute resources (VM, disks) created by this pipeline run. When listing
1979 # operations, operations can filtered by labels.
1980 # Label keys may not be empty; label values may be empty. Non-empty labels
1981 # must be 1-63 characters long, and comply with [RFC1035]
1982 # (https://www.ietf.org/rfc/rfc1035.txt).
1983 # Specifically, the name must be 1-63 characters long and match the regular
1984 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1985 # character must be a lowercase letter, and all following characters must be
1986 # a dash, lowercase letter, or digit, except the last character, which cannot
1987 # be a dash.
1988 &quot;a_key&quot;: &quot;A String&quot;,
1989 },
1990 &quot;serviceAccount&quot;: { # A Google Cloud Service Account. # The Google Cloud Service Account that will be used to access data and
1991 # services. By default, the compute service account associated with
1992 # `projectId` is used.
1993 &quot;scopes&quot;: [ # List of scopes to be enabled for this service account on the VM.
1994 # The following scopes are automatically included:
1995 #
1996 # * https://www.googleapis.com/auth/compute
1997 # * https://www.googleapis.com/auth/devstorage.full_control
1998 # * https://www.googleapis.com/auth/genomics
1999 # * https://www.googleapis.com/auth/logging.write
2000 # * https://www.googleapis.com/auth/monitoring.write
2001 &quot;A String&quot;,
2002 ],
2003 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. Defaults to `default`,
2004 # which uses the compute service account associated with the project.
2005 },
2006 &quot;clientId&quot;: &quot;A String&quot;, # This field is deprecated. Use `labels` instead. Client-specified pipeline
2007 # operation identifier.
2008 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to run the pipeline. The caller must have
2009 # WRITER access to all Google Cloud services and resources (e.g. Google
2010 # Compute Engine) will be used.
2011 &quot;outputs&quot;: { # Pipeline output arguments; keys are defined in the pipeline
2012 # documentation. All output parameters of without default values
2013 # must be specified. If parameters with defaults are specified
2014 # here, the defaults will be overridden.
2015 &quot;a_key&quot;: &quot;A String&quot;,
2016 },
2017 &quot;keepVmAliveOnFailureDuration&quot;: &quot;A String&quot;, # How long to keep the VM up after a failure (for example docker command
2018 # failed, copying input or output files failed, etc). While the VM is up, one
2019 # can ssh into the VM to debug. Default is 0; maximum allowed value is 1 day.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002020 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002021 }
2022
2023 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002024 Allowed values
2025 1 - v1 error format
2026 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002027
2028Returns:
2029 An object of the form:
2030
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002031 { # This resource represents a long-running operation that is the result of a
2032 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07002033 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002034 # different programming environments, including REST APIs and RPC APIs. It is
2035 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2036 # three pieces of data: error code, error message, and error details.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002037 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002038 # You can find out more about this error model and how to work with it in the
2039 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002040 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -07002041 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002042 # message types for APIs to use.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002043 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002044 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002045 },
2046 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002047 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2048 # user-facing error message should be localized and sent in the
2049 # google.rpc.Status.details field, or localized by the client.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002050 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002051 &quot;metadata&quot;: { # An OperationMetadata or Metadata object. This will always be returned with the Operation.
2052 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002053 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002054 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. For example&amp;#58; `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002055 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
2056 # If `true`, the operation is completed, and either `error` or `response` is
2057 # available.
2058 &quot;response&quot;: { # An Empty object.
2059 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2060 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002061 }</pre>
2062</div>
2063
2064<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002065 <code class="details" id="setOperationStatus">setOperationStatus(body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002066 <pre>Sets status of a given operation. Any new timestamps (as determined by
2067description) are appended to TimestampEvents. Should only be called by VMs
2068created by the Pipelines Service and not by end users.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002069
2070Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002071 body: object, The request body.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002072 The object takes the form of:
2073
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002074{ # Request to set operation status. Should only be used by VMs
2075 # created by the Pipelines Service and not by end users.
Bu Sun Kim65020912020-05-20 12:08:20 -07002076 &quot;errorCode&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002077 &quot;operationId&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002078 &quot;timestampEvents&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002079 { # Stores the list of events and times they occured for major events in job
2080 # execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002081 &quot;timestamp&quot;: &quot;A String&quot;, # The time this event occured.
2082 &quot;description&quot;: &quot;A String&quot;, # String indicating the type of event
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002083 },
2084 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002085 &quot;errorMessage&quot;: &quot;A String&quot;,
2086 &quot;validationToken&quot;: &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002087 }
2088
2089 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002090 Allowed values
2091 1 - v1 error format
2092 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002093
2094Returns:
2095 An object of the form:
2096
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002097 { # A generic empty message that you can re-use to avoid defining duplicated
2098 # empty messages in your APIs. A typical example is to use it as the request
2099 # or the response type of an API method. For instance:
2100 #
2101 # service Foo {
2102 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
2103 # }
2104 #
2105 # The JSON representation for `Empty` is empty JSON object `{}`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002106 }</pre>
2107</div>
2108
2109</body></html>