blob: 169d6b6e430b41352f7cca234174b3dd25286a1d [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 Kim65020912020-05-20 12:08:20 -070087 <code><a href="#getControllerConfig">getControllerConfig(operationId=None, validationToken=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 Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(namePrefix=None, pageToken=None, pageSize=None, projectId=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
116 # 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 Kim65020912020-05-20 12:08:20 -0700121 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400122 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400124 # with optional defaults, and can be overridden at run time.
125 #
126 # If `localCopy` is unset, then the parameter specifies a string that
127 # is passed as-is into the pipeline, as the value of the environment
128 # variable with the given name. A default value can be optionally
129 # specified at create time. The default can be overridden at run time
130 # using the inputs map. If no default is given, a value must be
131 # supplied at runtime.
132 #
133 # If `localCopy` is defined, then the parameter specifies a data
134 # source or sink, both in Google Cloud Storage and on the Docker container
135 # where the pipeline computation is run. The service account associated with
136 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400138 # Google Cloud Storage paths.
139 #
140 # At run time, the Google Cloud Storage paths can be overridden if a default
141 # was provided at create time, or must be set otherwise. The pipeline runner
142 # should add a key/value pair to either the inputs or outputs map. The
143 # indicated data copies will be carried out before/after pipeline execution,
144 # just as if the corresponding arguments were provided to `gsutil cp`.
145 #
146 # For example: Given the following `PipelineParameter`, specified
147 # in the `inputParameters` list:
148 #
149 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400151 # ```
152 #
153 # where `disk` is defined in the `PipelineResources` object as:
154 #
155 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400157 # ```
158 #
159 # We create a disk named `pd1`, mount it on the host VM, and map
160 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
161 # runtime, an entry for `input_file` would be required in the inputs
162 # map, such as:
163 #
164 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400166 # ```
167 #
168 # This would generate the following gsutil call:
169 #
170 # ```
171 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
172 # ```
173 #
174 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
175 # Docker container. Acceptable paths are:
176 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700177 # &lt;table&gt;
178 # &lt;thead&gt;
179 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
180 # &lt;/thead&gt;
181 # &lt;tbody&gt;
182 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
183 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
184 # &lt;/tbody&gt;
185 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400186 #
187 # For outputs, the direction of the copy is reversed:
188 #
189 # ```
190 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
191 # ```
192 #
193 # Acceptable paths are:
194 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700195 # &lt;table&gt;
196 # &lt;thead&gt;
197 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
198 # &lt;/thead&gt;
199 # &lt;tbody&gt;
200 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
201 # &lt;tr&gt;
202 # &lt;td&gt;file&lt;/td&gt;
203 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
204 # &lt;/tr&gt;
205 # &lt;tr&gt;
206 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 # &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 -0700208 # &lt;/tbody&gt;
209 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400210 #
211 # One restriction due to docker limitations, is that for outputs that are found
212 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400214 # If `localCopy` is present, then this must be a Google Cloud Storage path
215 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
217 # as the key to the input and output maps in RunPipeline.
218 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
219 &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 -0400220 # `LocalCopy` indicates where on the VM the file should be. The value
221 # given to this parameter (either at runtime or using `defaultValue`)
222 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400224 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 # Resources field, or &quot;boot&quot;, which represents the Docker
226 # instance&#x27;s boot disk and has a mount point of `/`.
227 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
228 # this input should be localized to and from, relative to the specified
229 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700230 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700231 },
232 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
234 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
235 # Users that run pipelines must have READ access to the image.
236 &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 -0400237 # string will be executed within a bash shell.
238 #
239 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400241 # `error` field will be populated.
242 #
243 # Maximum command string length is 16384.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700244 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
246 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
247 { # Parameters facilitate setting and delivering data into the
248 # pipeline&#x27;s execution environment. They are defined at create time,
249 # with optional defaults, and can be overridden at run time.
250 #
251 # If `localCopy` is unset, then the parameter specifies a string that
252 # is passed as-is into the pipeline, as the value of the environment
253 # variable with the given name. A default value can be optionally
254 # specified at create time. The default can be overridden at run time
255 # using the inputs map. If no default is given, a value must be
256 # supplied at runtime.
257 #
258 # If `localCopy` is defined, then the parameter specifies a data
259 # source or sink, both in Google Cloud Storage and on the Docker container
260 # where the pipeline computation is run. The service account associated with
261 # the Pipeline (by
262 # default the project&#x27;s Compute Engine service account) must have access to the
263 # Google Cloud Storage paths.
264 #
265 # At run time, the Google Cloud Storage paths can be overridden if a default
266 # was provided at create time, or must be set otherwise. The pipeline runner
267 # should add a key/value pair to either the inputs or outputs map. The
268 # indicated data copies will be carried out before/after pipeline execution,
269 # just as if the corresponding arguments were provided to `gsutil cp`.
270 #
271 # For example: Given the following `PipelineParameter`, specified
272 # in the `inputParameters` list:
273 #
274 # ```
275 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
276 # ```
277 #
278 # where `disk` is defined in the `PipelineResources` object as:
279 #
280 # ```
281 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
282 # ```
283 #
284 # We create a disk named `pd1`, mount it on the host VM, and map
285 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
286 # runtime, an entry for `input_file` would be required in the inputs
287 # map, such as:
288 #
289 # ```
290 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
291 # ```
292 #
293 # This would generate the following gsutil call:
294 #
295 # ```
296 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
297 # ```
298 #
299 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
300 # Docker container. Acceptable paths are:
301 #
302 # &lt;table&gt;
303 # &lt;thead&gt;
304 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
305 # &lt;/thead&gt;
306 # &lt;tbody&gt;
307 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
308 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
309 # &lt;/tbody&gt;
310 # &lt;/table&gt;
311 #
312 # For outputs, the direction of the copy is reversed:
313 #
314 # ```
315 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
316 # ```
317 #
318 # Acceptable paths are:
319 #
320 # &lt;table&gt;
321 # &lt;thead&gt;
322 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
323 # &lt;/thead&gt;
324 # &lt;tbody&gt;
325 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
326 # &lt;tr&gt;
327 # &lt;td&gt;file&lt;/td&gt;
328 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
329 # &lt;/tr&gt;
330 # &lt;tr&gt;
331 # &lt;td&gt;glob&lt;/td&gt;
332 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
333 # &lt;/tbody&gt;
334 # &lt;/table&gt;
335 #
336 # One restriction due to docker limitations, is that for outputs that are found
337 # on the boot disk, the local path cannot be a glob and must be a file.
338 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
339 # If `localCopy` is present, then this must be a Google Cloud Storage path
340 # beginning with `gs://`.
341 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
342 # as the key to the input and output maps in RunPipeline.
343 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
344 &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.
345 # `LocalCopy` indicates where on the VM the file should be. The value
346 # given to this parameter (either at runtime or using `defaultValue`)
347 # must be the remote path where the file should be.
348 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
349 # located. Can be the name of one of the disks specified in the
350 # Resources field, or &quot;boot&quot;, which represents the Docker
351 # instance&#x27;s boot disk and has a mount point of `/`.
352 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
353 # this input should be localized to and from, relative to the specified
354 # disk&#x27;s mount point. For example: file.txt,
355 },
356 },
357 ],
358 &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 -0400359 # Required fields:
360 #
361 # *
362 # minimumCpuCores
363 #
364 # *
365 # minimumRamGb
Bu Sun Kim65020912020-05-20 12:08:20 -0700366 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
367 # must be true for both create time and run time. Cannot be true at run time
368 # if false at create time.
369 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
370 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
371 # creation will restricted. If empty, any zone may be chosen.
372 &quot;A String&quot;,
373 ],
374 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
375 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
376 # By specifying this parameter, you will download and install the following
377 # third-party software onto your managed Compute Engine instances:
378 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
379 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
380 # By specifying this parameter, you will download and install the following
381 # third-party software onto your managed Compute Engine instances: NVIDIA®
382 # Tesla® drivers and NVIDIA® CUDA toolkit.
383 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
384 # available accelerator types.
385 &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 -0400386 # feature that may go away. Defaults to false.
387 # Corresponds to `--no_address` flag for [gcloud compute instances create]
388 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
389 # In order to use this, must be true for both create time and run time.
390 # Cannot be true at run time if false at create time. If you need to ssh into
391 # 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 -0700392 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400393 # only load docker images from Google Container Registry and not Docker Hub.
394 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 # [configure access to Google services from internal
396 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700398 { # A Google Compute Engine disk resource specification.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &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 -0400400 # Specifies the path in the docker container where files on
401 # this disk should be located. For example, if `mountPoint`
402 # is `/mnt/disk`, and the parameter has `localPath`
403 # `inputs/file.txt`, the docker container can access the data at
404 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700405 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
406 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
407 # for more details.
408 # Can only be set at create time.
409 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
410 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
411 # and
412 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
413 # for more details.
414 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
415 # parameters. Must be 1 - 63 characters.
416 # The name &quot;boot&quot; is reserved for system use.
417 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
418 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
419 # of the pipeline run, regardless of what this field is set to.
420 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
421 # This field is not applicable for local SSD.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700422 },
423 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700425 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700426 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700427 # This name can be used for filtering Pipelines in ListPipelines.
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
429 # WRITE access.
430 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
431 # is called. Cannot be specified in the Pipeline used in the
432 # CreatePipelineRequest, and will be populated in the response to
433 # CreatePipeline and all subsequent Get and List calls. Indicates that the
434 # service has registered this pipeline.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700435}
436
437 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
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400445 { # 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400452 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400454 # with optional defaults, and can be overridden at run time.
455 #
456 # If `localCopy` is unset, then the parameter specifies a string that
457 # is passed as-is into the pipeline, as the value of the environment
458 # variable with the given name. A default value can be optionally
459 # specified at create time. The default can be overridden at run time
460 # using the inputs map. If no default is given, a value must be
461 # supplied at runtime.
462 #
463 # If `localCopy` is defined, then the parameter specifies a data
464 # source or sink, both in Google Cloud Storage and on the Docker container
465 # where the pipeline computation is run. The service account associated with
466 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400468 # Google Cloud Storage paths.
469 #
470 # At run time, the Google Cloud Storage paths can be overridden if a default
471 # was provided at create time, or must be set otherwise. The pipeline runner
472 # should add a key/value pair to either the inputs or outputs map. The
473 # indicated data copies will be carried out before/after pipeline execution,
474 # just as if the corresponding arguments were provided to `gsutil cp`.
475 #
476 # For example: Given the following `PipelineParameter`, specified
477 # in the `inputParameters` list:
478 #
479 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400481 # ```
482 #
483 # where `disk` is defined in the `PipelineResources` object as:
484 #
485 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400487 # ```
488 #
489 # We create a disk named `pd1`, mount it on the host VM, and map
490 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
491 # runtime, an entry for `input_file` would be required in the inputs
492 # map, such as:
493 #
494 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400496 # ```
497 #
498 # This would generate the following gsutil call:
499 #
500 # ```
501 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
502 # ```
503 #
504 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
505 # Docker container. Acceptable paths are:
506 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700507 # &lt;table&gt;
508 # &lt;thead&gt;
509 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
510 # &lt;/thead&gt;
511 # &lt;tbody&gt;
512 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
513 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
514 # &lt;/tbody&gt;
515 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400516 #
517 # For outputs, the direction of the copy is reversed:
518 #
519 # ```
520 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
521 # ```
522 #
523 # Acceptable paths are:
524 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700525 # &lt;table&gt;
526 # &lt;thead&gt;
527 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
528 # &lt;/thead&gt;
529 # &lt;tbody&gt;
530 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
531 # &lt;tr&gt;
532 # &lt;td&gt;file&lt;/td&gt;
533 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
534 # &lt;/tr&gt;
535 # &lt;tr&gt;
536 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700537 # &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 -0700538 # &lt;/tbody&gt;
539 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400540 #
541 # One restriction due to docker limitations, is that for outputs that are found
542 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700543 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400544 # If `localCopy` is present, then this must be a Google Cloud Storage path
545 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
547 # as the key to the input and output maps in RunPipeline.
548 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
549 &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 -0400550 # `LocalCopy` indicates where on the VM the file should be. The value
551 # given to this parameter (either at runtime or using `defaultValue`)
552 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400554 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700555 # Resources field, or &quot;boot&quot;, which represents the Docker
556 # instance&#x27;s boot disk and has a mount point of `/`.
557 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
558 # this input should be localized to and from, relative to the specified
559 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700560 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700561 },
562 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700563 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
564 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
565 # Users that run pipelines must have READ access to the image.
566 &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 -0400567 # string will be executed within a bash shell.
568 #
569 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -0700570 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400571 # `error` field will be populated.
572 #
573 # Maximum command string length is 16384.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700574 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
576 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
577 { # Parameters facilitate setting and delivering data into the
578 # pipeline&#x27;s execution environment. They are defined at create time,
579 # with optional defaults, and can be overridden at run time.
580 #
581 # If `localCopy` is unset, then the parameter specifies a string that
582 # is passed as-is into the pipeline, as the value of the environment
583 # variable with the given name. A default value can be optionally
584 # specified at create time. The default can be overridden at run time
585 # using the inputs map. If no default is given, a value must be
586 # supplied at runtime.
587 #
588 # If `localCopy` is defined, then the parameter specifies a data
589 # source or sink, both in Google Cloud Storage and on the Docker container
590 # where the pipeline computation is run. The service account associated with
591 # the Pipeline (by
592 # default the project&#x27;s Compute Engine service account) must have access to the
593 # Google Cloud Storage paths.
594 #
595 # At run time, the Google Cloud Storage paths can be overridden if a default
596 # was provided at create time, or must be set otherwise. The pipeline runner
597 # should add a key/value pair to either the inputs or outputs map. The
598 # indicated data copies will be carried out before/after pipeline execution,
599 # just as if the corresponding arguments were provided to `gsutil cp`.
600 #
601 # For example: Given the following `PipelineParameter`, specified
602 # in the `inputParameters` list:
603 #
604 # ```
605 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
606 # ```
607 #
608 # where `disk` is defined in the `PipelineResources` object as:
609 #
610 # ```
611 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
612 # ```
613 #
614 # We create a disk named `pd1`, mount it on the host VM, and map
615 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
616 # runtime, an entry for `input_file` would be required in the inputs
617 # map, such as:
618 #
619 # ```
620 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
621 # ```
622 #
623 # This would generate the following gsutil call:
624 #
625 # ```
626 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
627 # ```
628 #
629 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
630 # Docker container. Acceptable paths are:
631 #
632 # &lt;table&gt;
633 # &lt;thead&gt;
634 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
635 # &lt;/thead&gt;
636 # &lt;tbody&gt;
637 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
638 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
639 # &lt;/tbody&gt;
640 # &lt;/table&gt;
641 #
642 # For outputs, the direction of the copy is reversed:
643 #
644 # ```
645 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
646 # ```
647 #
648 # Acceptable paths are:
649 #
650 # &lt;table&gt;
651 # &lt;thead&gt;
652 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
653 # &lt;/thead&gt;
654 # &lt;tbody&gt;
655 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
656 # &lt;tr&gt;
657 # &lt;td&gt;file&lt;/td&gt;
658 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
659 # &lt;/tr&gt;
660 # &lt;tr&gt;
661 # &lt;td&gt;glob&lt;/td&gt;
662 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
663 # &lt;/tbody&gt;
664 # &lt;/table&gt;
665 #
666 # One restriction due to docker limitations, is that for outputs that are found
667 # on the boot disk, the local path cannot be a glob and must be a file.
668 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
669 # If `localCopy` is present, then this must be a Google Cloud Storage path
670 # beginning with `gs://`.
671 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
672 # as the key to the input and output maps in RunPipeline.
673 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
674 &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.
675 # `LocalCopy` indicates where on the VM the file should be. The value
676 # given to this parameter (either at runtime or using `defaultValue`)
677 # must be the remote path where the file should be.
678 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
679 # located. Can be the name of one of the disks specified in the
680 # Resources field, or &quot;boot&quot;, which represents the Docker
681 # instance&#x27;s boot disk and has a mount point of `/`.
682 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
683 # this input should be localized to and from, relative to the specified
684 # disk&#x27;s mount point. For example: file.txt,
685 },
686 },
687 ],
688 &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 -0400689 # Required fields:
690 #
691 # *
692 # minimumCpuCores
693 #
694 # *
695 # minimumRamGb
Bu Sun Kim65020912020-05-20 12:08:20 -0700696 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
697 # must be true for both create time and run time. Cannot be true at run time
698 # if false at create time.
699 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
700 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
701 # creation will restricted. If empty, any zone may be chosen.
702 &quot;A String&quot;,
703 ],
704 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
705 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
706 # By specifying this parameter, you will download and install the following
707 # third-party software onto your managed Compute Engine instances:
708 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
709 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
710 # By specifying this parameter, you will download and install the following
711 # third-party software onto your managed Compute Engine instances: NVIDIA®
712 # Tesla® drivers and NVIDIA® CUDA toolkit.
713 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
714 # available accelerator types.
715 &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 -0400716 # feature that may go away. Defaults to false.
717 # Corresponds to `--no_address` flag for [gcloud compute instances create]
718 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
719 # In order to use this, must be true for both create time and run time.
720 # Cannot be true at run time if false at create time. If you need to ssh into
721 # 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 -0700722 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400723 # only load docker images from Google Container Registry and not Docker Hub.
724 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700725 # [configure access to Google services from internal
726 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700728 { # A Google Compute Engine disk resource specification.
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 &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 -0400730 # Specifies the path in the docker container where files on
731 # this disk should be located. For example, if `mountPoint`
732 # is `/mnt/disk`, and the parameter has `localPath`
733 # `inputs/file.txt`, the docker container can access the data at
734 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
736 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
737 # for more details.
738 # Can only be set at create time.
739 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
740 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
741 # and
742 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
743 # for more details.
744 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
745 # parameters. Must be 1 - 63 characters.
746 # The name &quot;boot&quot; is reserved for system use.
747 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
748 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
749 # of the pipeline run, regardless of what this field is set to.
750 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
751 # This field is not applicable for local SSD.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700752 },
753 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700754 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700755 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700757 # This name can be used for filtering Pipelines in ListPipelines.
Bu Sun Kim65020912020-05-20 12:08:20 -0700758 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
759 # WRITE access.
760 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
761 # is called. Cannot be specified in the Pipeline used in the
762 # CreatePipelineRequest, and will be populated in the response to
763 # CreatePipeline and all subsequent Get and List calls. Indicates that the
764 # service has registered this pipeline.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700765 }</pre>
766</div>
767
768<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700769 <code class="details" id="delete">delete(pipelineId, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400770 <pre>Deletes a pipeline based on ID.
771
772Caller must have WRITE permission to the project.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700773
774Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400775 pipelineId: string, Caller must have WRITE access to the project in which this pipeline
776is defined. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700777 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400778 Allowed values
779 1 - v1 error format
780 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700781
782Returns:
783 An object of the form:
784
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400785 { # 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 `{}`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700794 }</pre>
795</div>
796
797<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700798 <code class="details" id="get">get(pipelineId, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400799 <pre>Retrieves a pipeline based on ID.
800
801Caller must have READ permission to the project.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700802
803Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400804 pipelineId: string, Caller must have READ access to the project in which this pipeline
805is defined. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700806 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400807 Allowed values
808 1 - v1 error format
809 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700810
811Returns:
812 An object of the form:
813
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400814 { # 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;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400821 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400823 # with optional defaults, and can be overridden at run time.
824 #
825 # If `localCopy` is unset, then the parameter specifies a string that
826 # is passed as-is into the pipeline, as the value of the environment
827 # variable with the given name. A default value can be optionally
828 # specified at create time. The default can be overridden at run time
829 # using the inputs map. If no default is given, a value must be
830 # supplied at runtime.
831 #
832 # If `localCopy` is defined, then the parameter specifies a data
833 # source or sink, both in Google Cloud Storage and on the Docker container
834 # where the pipeline computation is run. The service account associated with
835 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -0700836 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400837 # Google Cloud Storage paths.
838 #
839 # At run time, the Google Cloud Storage paths can be overridden if a default
840 # was provided at create time, or must be set otherwise. The pipeline runner
841 # should add a key/value pair to either the inputs or outputs map. The
842 # indicated data copies will be carried out before/after pipeline execution,
843 # just as if the corresponding arguments were provided to `gsutil cp`.
844 #
845 # For example: Given the following `PipelineParameter`, specified
846 # in the `inputParameters` list:
847 #
848 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700849 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400850 # ```
851 #
852 # where `disk` is defined in the `PipelineResources` object as:
853 #
854 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700855 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400856 # ```
857 #
858 # We create a disk named `pd1`, mount it on the host VM, and map
859 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
860 # runtime, an entry for `input_file` would be required in the inputs
861 # map, such as:
862 #
863 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400865 # ```
866 #
867 # This would generate the following gsutil call:
868 #
869 # ```
870 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
871 # ```
872 #
873 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
874 # Docker container. Acceptable paths are:
875 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700876 # &lt;table&gt;
877 # &lt;thead&gt;
878 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
879 # &lt;/thead&gt;
880 # &lt;tbody&gt;
881 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
882 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
883 # &lt;/tbody&gt;
884 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400885 #
886 # For outputs, the direction of the copy is reversed:
887 #
888 # ```
889 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
890 # ```
891 #
892 # Acceptable paths are:
893 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700894 # &lt;table&gt;
895 # &lt;thead&gt;
896 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
897 # &lt;/thead&gt;
898 # &lt;tbody&gt;
899 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
900 # &lt;tr&gt;
901 # &lt;td&gt;file&lt;/td&gt;
902 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
903 # &lt;/tr&gt;
904 # &lt;tr&gt;
905 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 # &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 -0700907 # &lt;/tbody&gt;
908 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400909 #
910 # One restriction due to docker limitations, is that for outputs that are found
911 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700912 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400913 # If `localCopy` is present, then this must be a Google Cloud Storage path
914 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
916 # as the key to the input and output maps in RunPipeline.
917 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
918 &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 -0400919 # `LocalCopy` indicates where on the VM the file should be. The value
920 # given to this parameter (either at runtime or using `defaultValue`)
921 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400923 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700924 # Resources field, or &quot;boot&quot;, which represents the Docker
925 # instance&#x27;s boot disk and has a mount point of `/`.
926 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
927 # this input should be localized to and from, relative to the specified
928 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700929 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700930 },
931 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700932 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
933 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
934 # Users that run pipelines must have READ access to the image.
935 &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 -0400936 # string will be executed within a bash shell.
937 #
938 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400940 # `error` field will be populated.
941 #
942 # Maximum command string length is 16384.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700943 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
945 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
946 { # Parameters facilitate setting and delivering data into the
947 # pipeline&#x27;s execution environment. They are defined at create time,
948 # with optional defaults, and can be overridden at run time.
949 #
950 # If `localCopy` is unset, then the parameter specifies a string that
951 # is passed as-is into the pipeline, as the value of the environment
952 # variable with the given name. A default value can be optionally
953 # specified at create time. The default can be overridden at run time
954 # using the inputs map. If no default is given, a value must be
955 # supplied at runtime.
956 #
957 # If `localCopy` is defined, then the parameter specifies a data
958 # source or sink, both in Google Cloud Storage and on the Docker container
959 # where the pipeline computation is run. The service account associated with
960 # the Pipeline (by
961 # default the project&#x27;s Compute Engine service account) must have access to the
962 # Google Cloud Storage paths.
963 #
964 # At run time, the Google Cloud Storage paths can be overridden if a default
965 # was provided at create time, or must be set otherwise. The pipeline runner
966 # should add a key/value pair to either the inputs or outputs map. The
967 # indicated data copies will be carried out before/after pipeline execution,
968 # just as if the corresponding arguments were provided to `gsutil cp`.
969 #
970 # For example: Given the following `PipelineParameter`, specified
971 # in the `inputParameters` list:
972 #
973 # ```
974 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
975 # ```
976 #
977 # where `disk` is defined in the `PipelineResources` object as:
978 #
979 # ```
980 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
981 # ```
982 #
983 # We create a disk named `pd1`, mount it on the host VM, and map
984 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
985 # runtime, an entry for `input_file` would be required in the inputs
986 # map, such as:
987 #
988 # ```
989 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
990 # ```
991 #
992 # This would generate the following gsutil call:
993 #
994 # ```
995 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
996 # ```
997 #
998 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
999 # Docker container. Acceptable paths are:
1000 #
1001 # &lt;table&gt;
1002 # &lt;thead&gt;
1003 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1004 # &lt;/thead&gt;
1005 # &lt;tbody&gt;
1006 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1007 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1008 # &lt;/tbody&gt;
1009 # &lt;/table&gt;
1010 #
1011 # For outputs, the direction of the copy is reversed:
1012 #
1013 # ```
1014 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1015 # ```
1016 #
1017 # Acceptable paths are:
1018 #
1019 # &lt;table&gt;
1020 # &lt;thead&gt;
1021 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1022 # &lt;/thead&gt;
1023 # &lt;tbody&gt;
1024 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1025 # &lt;tr&gt;
1026 # &lt;td&gt;file&lt;/td&gt;
1027 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1028 # &lt;/tr&gt;
1029 # &lt;tr&gt;
1030 # &lt;td&gt;glob&lt;/td&gt;
1031 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1032 # &lt;/tbody&gt;
1033 # &lt;/table&gt;
1034 #
1035 # One restriction due to docker limitations, is that for outputs that are found
1036 # on the boot disk, the local path cannot be a glob and must be a file.
1037 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1038 # If `localCopy` is present, then this must be a Google Cloud Storage path
1039 # beginning with `gs://`.
1040 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1041 # as the key to the input and output maps in RunPipeline.
1042 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1043 &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.
1044 # `LocalCopy` indicates where on the VM the file should be. The value
1045 # given to this parameter (either at runtime or using `defaultValue`)
1046 # must be the remote path where the file should be.
1047 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1048 # located. Can be the name of one of the disks specified in the
1049 # Resources field, or &quot;boot&quot;, which represents the Docker
1050 # instance&#x27;s boot disk and has a mount point of `/`.
1051 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1052 # this input should be localized to and from, relative to the specified
1053 # disk&#x27;s mount point. For example: file.txt,
1054 },
1055 },
1056 ],
1057 &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 -04001058 # Required fields:
1059 #
1060 # *
1061 # minimumCpuCores
1062 #
1063 # *
1064 # minimumRamGb
Bu Sun Kim65020912020-05-20 12:08:20 -07001065 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1066 # must be true for both create time and run time. Cannot be true at run time
1067 # if false at create time.
1068 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
1069 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1070 # creation will restricted. If empty, any zone may be chosen.
1071 &quot;A String&quot;,
1072 ],
1073 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
1074 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1075 # By specifying this parameter, you will download and install the following
1076 # third-party software onto your managed Compute Engine instances:
1077 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1078 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1079 # By specifying this parameter, you will download and install the following
1080 # third-party software onto your managed Compute Engine instances: NVIDIA®
1081 # Tesla® drivers and NVIDIA® CUDA toolkit.
1082 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1083 # available accelerator types.
1084 &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 -04001085 # feature that may go away. Defaults to false.
1086 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1087 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1088 # In order to use this, must be true for both create time and run time.
1089 # Cannot be true at run time if false at create time. If you need to ssh into
1090 # 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 -07001091 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001092 # only load docker images from Google Container Registry and not Docker Hub.
1093 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001094 # [configure access to Google services from internal
1095 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
Bu Sun Kim65020912020-05-20 12:08:20 -07001096 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001097 { # A Google Compute Engine disk resource specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07001098 &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 -04001099 # Specifies the path in the docker container where files on
1100 # this disk should be located. For example, if `mountPoint`
1101 # is `/mnt/disk`, and the parameter has `localPath`
1102 # `inputs/file.txt`, the docker container can access the data at
1103 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001104 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1105 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1106 # for more details.
1107 # Can only be set at create time.
1108 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1109 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1110 # and
1111 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1112 # for more details.
1113 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1114 # parameters. Must be 1 - 63 characters.
1115 # The name &quot;boot&quot; is reserved for system use.
1116 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1117 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1118 # of the pipeline run, regardless of what this field is set to.
1119 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1120 # This field is not applicable for local SSD.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001121 },
1122 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001123 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001124 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001125 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001126 # This name can be used for filtering Pipelines in ListPipelines.
Bu Sun Kim65020912020-05-20 12:08:20 -07001127 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
1128 # WRITE access.
1129 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
1130 # is called. Cannot be specified in the Pipeline used in the
1131 # CreatePipelineRequest, and will be populated in the response to
1132 # CreatePipeline and all subsequent Get and List calls. Indicates that the
1133 # service has registered this pipeline.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001134 }</pre>
1135</div>
1136
1137<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 <code class="details" id="getControllerConfig">getControllerConfig(operationId=None, validationToken=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001139 <pre>Gets controller configuration information. Should only be called
1140by VMs created by the Pipelines Service and not by end users.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001141
1142Args:
Bu Sun Kim65020912020-05-20 12:08:20 -07001143 operationId: string, The operation to retrieve controller configuration for.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001144 validationToken: string, A parameter
1145 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001146 Allowed values
1147 1 - v1 error format
1148 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001149
1150Returns:
1151 An object of the form:
1152
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001153 { # 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001156 &quot;vars&quot;: {
1157 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001158 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001159 &quot;image&quot;: &quot;A String&quot;,
1160 &quot;gcsLogPath&quot;: &quot;A String&quot;,
1161 &quot;gcsSources&quot;: {
1162 &quot;a_key&quot;: {
1163 &quot;values&quot;: [
1164 &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001165 ],
1166 },
1167 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 &quot;gcsSinks&quot;: {
1169 &quot;a_key&quot;: {
1170 &quot;values&quot;: [
1171 &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001172 ],
1173 },
1174 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001175 &quot;disks&quot;: {
1176 &quot;a_key&quot;: &quot;A String&quot;,
1177 },
1178 &quot;machineType&quot;: &quot;A String&quot;,
1179 &quot;cmd&quot;: &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001180 }</pre>
1181</div>
1182
1183<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001184 <code class="details" id="list">list(namePrefix=None, pageToken=None, pageSize=None, projectId=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001185 <pre>Lists pipelines.
1186
1187Caller must have READ permission to the project.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001188
1189Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001190 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 pageToken: string, Token to use to indicate where to start getting results.
1194If unspecified, returns the first page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -07001195 pageSize: integer, Number of pipelines to return at once. Defaults to 256, and max
1196is 2048.
1197 projectId: string, Required. The name of the project to search for pipelines. Caller
1198must have READ access to this project.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001199 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001200 Allowed values
1201 1 - v1 error format
1202 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001203
1204Returns:
1205 An object of the form:
1206
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001207 { # 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 &quot;pipelines&quot;: [ # The matched pipelines.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001213 { # The pipeline object. Represents a transformation from a set of input
1214 # parameters to a set of output parameters. The transformation is defined
1215 # as a docker image and command to run within that image. Each pipeline
1216 # is run on a Google Compute Engine VM. A pipeline can be created with the
1217 # `create` method and then later run with the `run` method, or a pipeline can
1218 # be defined and run all at once with the `run` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001220 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -07001221 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001222 # with optional defaults, and can be overridden at run time.
1223 #
1224 # If `localCopy` is unset, then the parameter specifies a string that
1225 # is passed as-is into the pipeline, as the value of the environment
1226 # variable with the given name. A default value can be optionally
1227 # specified at create time. The default can be overridden at run time
1228 # using the inputs map. If no default is given, a value must be
1229 # supplied at runtime.
1230 #
1231 # If `localCopy` is defined, then the parameter specifies a data
1232 # source or sink, both in Google Cloud Storage and on the Docker container
1233 # where the pipeline computation is run. The service account associated with
1234 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -07001235 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001236 # Google Cloud Storage paths.
1237 #
1238 # At run time, the Google Cloud Storage paths can be overridden if a default
1239 # was provided at create time, or must be set otherwise. The pipeline runner
1240 # should add a key/value pair to either the inputs or outputs map. The
1241 # indicated data copies will be carried out before/after pipeline execution,
1242 # just as if the corresponding arguments were provided to `gsutil cp`.
1243 #
1244 # For example: Given the following `PipelineParameter`, specified
1245 # in the `inputParameters` list:
1246 #
1247 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001248 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001249 # ```
1250 #
1251 # where `disk` is defined in the `PipelineResources` object as:
1252 #
1253 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001254 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001255 # ```
1256 #
1257 # We create a disk named `pd1`, mount it on the host VM, and map
1258 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1259 # runtime, an entry for `input_file` would be required in the inputs
1260 # map, such as:
1261 #
1262 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001263 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001264 # ```
1265 #
1266 # This would generate the following gsutil call:
1267 #
1268 # ```
1269 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1270 # ```
1271 #
1272 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1273 # Docker container. Acceptable paths are:
1274 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001275 # &lt;table&gt;
1276 # &lt;thead&gt;
1277 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1278 # &lt;/thead&gt;
1279 # &lt;tbody&gt;
1280 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1281 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1282 # &lt;/tbody&gt;
1283 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001284 #
1285 # For outputs, the direction of the copy is reversed:
1286 #
1287 # ```
1288 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1289 # ```
1290 #
1291 # Acceptable paths are:
1292 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001293 # &lt;table&gt;
1294 # &lt;thead&gt;
1295 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1296 # &lt;/thead&gt;
1297 # &lt;tbody&gt;
1298 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1299 # &lt;tr&gt;
1300 # &lt;td&gt;file&lt;/td&gt;
1301 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1302 # &lt;/tr&gt;
1303 # &lt;tr&gt;
1304 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001305 # &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 -07001306 # &lt;/tbody&gt;
1307 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001308 #
1309 # One restriction due to docker limitations, is that for outputs that are found
1310 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001311 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001312 # If `localCopy` is present, then this must be a Google Cloud Storage path
1313 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1315 # as the key to the input and output maps in RunPipeline.
1316 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1317 &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 -04001318 # `LocalCopy` indicates where on the VM the file should be. The value
1319 # given to this parameter (either at runtime or using `defaultValue`)
1320 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -07001321 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001322 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -07001323 # Resources field, or &quot;boot&quot;, which represents the Docker
1324 # instance&#x27;s boot disk and has a mount point of `/`.
1325 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1326 # this input should be localized to and from, relative to the specified
1327 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001328 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001329 },
1330 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001331 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
1332 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
1333 # Users that run pipelines must have READ access to the image.
1334 &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 -04001335 # string will be executed within a bash shell.
1336 #
1337 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -07001338 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001339 # `error` field will be populated.
1340 #
1341 # Maximum command string length is 16384.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001342 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
1344 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
1345 { # Parameters facilitate setting and delivering data into the
1346 # pipeline&#x27;s execution environment. They are defined at create time,
1347 # with optional defaults, and can be overridden at run time.
1348 #
1349 # If `localCopy` is unset, then the parameter specifies a string that
1350 # is passed as-is into the pipeline, as the value of the environment
1351 # variable with the given name. A default value can be optionally
1352 # specified at create time. The default can be overridden at run time
1353 # using the inputs map. If no default is given, a value must be
1354 # supplied at runtime.
1355 #
1356 # If `localCopy` is defined, then the parameter specifies a data
1357 # source or sink, both in Google Cloud Storage and on the Docker container
1358 # where the pipeline computation is run. The service account associated with
1359 # the Pipeline (by
1360 # default the project&#x27;s Compute Engine service account) must have access to the
1361 # Google Cloud Storage paths.
1362 #
1363 # At run time, the Google Cloud Storage paths can be overridden if a default
1364 # was provided at create time, or must be set otherwise. The pipeline runner
1365 # should add a key/value pair to either the inputs or outputs map. The
1366 # indicated data copies will be carried out before/after pipeline execution,
1367 # just as if the corresponding arguments were provided to `gsutil cp`.
1368 #
1369 # For example: Given the following `PipelineParameter`, specified
1370 # in the `inputParameters` list:
1371 #
1372 # ```
1373 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1374 # ```
1375 #
1376 # where `disk` is defined in the `PipelineResources` object as:
1377 #
1378 # ```
1379 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1380 # ```
1381 #
1382 # We create a disk named `pd1`, mount it on the host VM, and map
1383 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1384 # runtime, an entry for `input_file` would be required in the inputs
1385 # map, such as:
1386 #
1387 # ```
1388 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1389 # ```
1390 #
1391 # This would generate the following gsutil call:
1392 #
1393 # ```
1394 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1395 # ```
1396 #
1397 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1398 # Docker container. Acceptable paths are:
1399 #
1400 # &lt;table&gt;
1401 # &lt;thead&gt;
1402 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1403 # &lt;/thead&gt;
1404 # &lt;tbody&gt;
1405 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1406 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1407 # &lt;/tbody&gt;
1408 # &lt;/table&gt;
1409 #
1410 # For outputs, the direction of the copy is reversed:
1411 #
1412 # ```
1413 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1414 # ```
1415 #
1416 # Acceptable paths are:
1417 #
1418 # &lt;table&gt;
1419 # &lt;thead&gt;
1420 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1421 # &lt;/thead&gt;
1422 # &lt;tbody&gt;
1423 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1424 # &lt;tr&gt;
1425 # &lt;td&gt;file&lt;/td&gt;
1426 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1427 # &lt;/tr&gt;
1428 # &lt;tr&gt;
1429 # &lt;td&gt;glob&lt;/td&gt;
1430 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1431 # &lt;/tbody&gt;
1432 # &lt;/table&gt;
1433 #
1434 # One restriction due to docker limitations, is that for outputs that are found
1435 # on the boot disk, the local path cannot be a glob and must be a file.
1436 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1437 # If `localCopy` is present, then this must be a Google Cloud Storage path
1438 # beginning with `gs://`.
1439 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1440 # as the key to the input and output maps in RunPipeline.
1441 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1442 &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.
1443 # `LocalCopy` indicates where on the VM the file should be. The value
1444 # given to this parameter (either at runtime or using `defaultValue`)
1445 # must be the remote path where the file should be.
1446 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1447 # located. Can be the name of one of the disks specified in the
1448 # Resources field, or &quot;boot&quot;, which represents the Docker
1449 # instance&#x27;s boot disk and has a mount point of `/`.
1450 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1451 # this input should be localized to and from, relative to the specified
1452 # disk&#x27;s mount point. For example: file.txt,
1453 },
1454 },
1455 ],
1456 &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 -04001457 # Required fields:
1458 #
1459 # *
1460 # minimumCpuCores
1461 #
1462 # *
1463 # minimumRamGb
Bu Sun Kim65020912020-05-20 12:08:20 -07001464 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1465 # must be true for both create time and run time. Cannot be true at run time
1466 # if false at create time.
1467 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
1468 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1469 # creation will restricted. If empty, any zone may be chosen.
1470 &quot;A String&quot;,
1471 ],
1472 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
1473 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1474 # By specifying this parameter, you will download and install the following
1475 # third-party software onto your managed Compute Engine instances:
1476 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1477 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1478 # By specifying this parameter, you will download and install the following
1479 # third-party software onto your managed Compute Engine instances: NVIDIA®
1480 # Tesla® drivers and NVIDIA® CUDA toolkit.
1481 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1482 # available accelerator types.
1483 &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 -04001484 # feature that may go away. Defaults to false.
1485 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1486 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1487 # In order to use this, must be true for both create time and run time.
1488 # Cannot be true at run time if false at create time. If you need to ssh into
1489 # 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 -07001490 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001491 # only load docker images from Google Container Registry and not Docker Hub.
1492 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001493 # [configure access to Google services from internal
1494 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
Bu Sun Kim65020912020-05-20 12:08:20 -07001495 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001496 { # A Google Compute Engine disk resource specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07001497 &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 -04001498 # Specifies the path in the docker container where files on
1499 # this disk should be located. For example, if `mountPoint`
1500 # is `/mnt/disk`, and the parameter has `localPath`
1501 # `inputs/file.txt`, the docker container can access the data at
1502 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001503 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1504 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1505 # for more details.
1506 # Can only be set at create time.
1507 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1508 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1509 # and
1510 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1511 # for more details.
1512 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1513 # parameters. Must be 1 - 63 characters.
1514 # The name &quot;boot&quot; is reserved for system use.
1515 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1516 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1517 # of the pipeline run, regardless of what this field is set to.
1518 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1519 # This field is not applicable for local SSD.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001520 },
1521 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001522 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001523 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001524 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001525 # This name can be used for filtering Pipelines in ListPipelines.
Bu Sun Kim65020912020-05-20 12:08:20 -07001526 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
1527 # WRITE access.
1528 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
1529 # is called. Cannot be specified in the Pipeline used in the
1530 # CreatePipelineRequest, and will be populated in the response to
1531 # CreatePipeline and all subsequent Get and List calls. Indicates that the
1532 # service has registered this pipeline.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001533 },
1534 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001535 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token to use to get the next page of results.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001536 }</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:
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001549 page. Returns None if there are no more items in the collection.
1550 </pre>
1551</div>
1552
1553<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001554 <code class="details" id="run">run(body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001555 <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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001564
1565Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001566 body: object, The request body.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001567 The object takes the form of:
1568
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001569{ # 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001576 &quot;pipelineArgs&quot;: { # The pipeline run arguments. # The arguments to use when running this pipeline.
1577 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to run the pipeline. The caller must have
1578 # WRITER access to all Google Cloud services and resources (e.g. Google
1579 # Compute Engine) will be used.
1580 &quot;clientId&quot;: &quot;A String&quot;, # This field is deprecated. Use `labels` instead. Client-specified pipeline
1581 # operation identifier.
1582 &quot;inputs&quot;: { # Pipeline input arguments; keys are defined in the pipeline documentation.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001583 # All input parameters that do not have default values must be specified.
1584 # If parameters with defaults are specified here, the defaults will be
1585 # overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -07001586 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001587 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001588 &quot;serviceAccount&quot;: { # A Google Cloud Service Account. # The Google Cloud Service Account that will be used to access data and
1589 # services. By default, the compute service account associated with
1590 # `projectId` is used.
1591 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. Defaults to `default`,
1592 # which uses the compute service account associated with the project.
1593 &quot;scopes&quot;: [ # List of scopes to be enabled for this service account on the VM.
1594 # The following scopes are automatically included:
1595 #
1596 # * https://www.googleapis.com/auth/compute
1597 # * https://www.googleapis.com/auth/devstorage.full_control
1598 # * https://www.googleapis.com/auth/genomics
1599 # * https://www.googleapis.com/auth/logging.write
1600 # * https://www.googleapis.com/auth/monitoring.write
1601 &quot;A String&quot;,
1602 ],
1603 },
1604 &quot;logging&quot;: { # The logging options for the pipeline run. # Required. Logging options. Used by the service to communicate results
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001605 # to the user.
Bu Sun Kim65020912020-05-20 12:08:20 -07001606 &quot;gcsPath&quot;: &quot;A String&quot;, # The location in Google Cloud Storage to which the pipeline logs
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001607 # will be copied. Can be specified as a fully qualified directory
1608 # path, in which case logs will be output with a unique identifier
1609 # as the filename in that directory, or as a fully specified path,
1610 # which must end in `.log`, in which case that path will be
1611 # used, and the user must ensure that logs are not
1612 # overwritten. Stdout and stderr logs from the run are also
1613 # generated and output as `-stdout.log` and `-stderr.log`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001614 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001615 &quot;labels&quot;: { # Labels to apply to this pipeline run. Labels will also be applied to
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001616 # compute resources (VM, disks) created by this pipeline run. When listing
1617 # operations, operations can filtered by labels.
1618 # Label keys may not be empty; label values may be empty. Non-empty labels
1619 # must be 1-63 characters long, and comply with [RFC1035]
1620 # (https://www.ietf.org/rfc/rfc1035.txt).
1621 # Specifically, the name must be 1-63 characters long and match the regular
1622 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1623 # character must be a lowercase letter, and all following characters must be
1624 # a dash, lowercase letter, or digit, except the last character, which cannot
1625 # be a dash.
Bu Sun Kim65020912020-05-20 12:08:20 -07001626 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001627 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001628 &quot;outputs&quot;: { # Pipeline output arguments; keys are defined in the pipeline
Dan O'Mearadd494642020-05-01 07:42:23 -07001629 # documentation. All output parameters of without default values
1630 # must be specified. If parameters with defaults are specified
1631 # here, the defaults will be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -07001632 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001633 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001634 &quot;resources&quot;: { # The system resources for the pipeline run. # Specifies resource requirements/overrides for the pipeline run.
1635 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1636 # must be true for both create time and run time. Cannot be true at run time
1637 # if false at create time.
1638 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
1639 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1640 # creation will restricted. If empty, any zone may be chosen.
1641 &quot;A String&quot;,
1642 ],
1643 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
1644 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1645 # By specifying this parameter, you will download and install the following
1646 # third-party software onto your managed Compute Engine instances:
1647 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1648 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1649 # By specifying this parameter, you will download and install the following
1650 # third-party software onto your managed Compute Engine instances: NVIDIA®
1651 # Tesla® drivers and NVIDIA® CUDA toolkit.
1652 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1653 # available accelerator types.
1654 &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 -04001655 # feature that may go away. Defaults to false.
1656 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1657 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1658 # In order to use this, must be true for both create time and run time.
1659 # Cannot be true at run time if false at create time. If you need to ssh into
1660 # 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 -07001661 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001662 # only load docker images from Google Container Registry and not Docker Hub.
1663 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001664 # [configure access to Google services from internal
1665 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
Bu Sun Kim65020912020-05-20 12:08:20 -07001666 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001667 { # A Google Compute Engine disk resource specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07001668 &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 -04001669 # Specifies the path in the docker container where files on
1670 # this disk should be located. For example, if `mountPoint`
1671 # is `/mnt/disk`, and the parameter has `localPath`
1672 # `inputs/file.txt`, the docker container can access the data at
1673 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001674 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1675 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1676 # for more details.
1677 # Can only be set at create time.
1678 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1679 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1680 # and
1681 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1682 # for more details.
1683 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1684 # parameters. Must be 1 - 63 characters.
1685 # The name &quot;boot&quot; is reserved for system use.
1686 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1687 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1688 # of the pipeline run, regardless of what this field is set to.
1689 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1690 # This field is not applicable for local SSD.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001691 },
1692 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001693 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001694 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001695 &quot;keepVmAliveOnFailureDuration&quot;: &quot;A String&quot;, # How long to keep the VM up after a failure (for example docker command
1696 # failed, copying input or output files failed, etc). While the VM is up, one
1697 # can ssh into the VM to debug. Default is 0; maximum allowed value is 1 day.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001698 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001699 &quot;pipelineId&quot;: &quot;A String&quot;, # The already created pipeline to run.
1700 &quot;ephemeralPipeline&quot;: { # The pipeline object. Represents a transformation from a set of input # A new pipeline object to run once and then delete.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001701 # parameters to a set of output parameters. The transformation is defined
1702 # as a docker image and command to run within that image. Each pipeline
1703 # is run on a Google Compute Engine VM. A pipeline can be created with the
1704 # `create` method and then later run with the `run` method, or a pipeline can
1705 # be defined and run all at once with the `run` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001706 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001707 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -07001708 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001709 # with optional defaults, and can be overridden at run time.
1710 #
1711 # If `localCopy` is unset, then the parameter specifies a string that
1712 # is passed as-is into the pipeline, as the value of the environment
1713 # variable with the given name. A default value can be optionally
1714 # specified at create time. The default can be overridden at run time
1715 # using the inputs map. If no default is given, a value must be
1716 # supplied at runtime.
1717 #
1718 # If `localCopy` is defined, then the parameter specifies a data
1719 # source or sink, both in Google Cloud Storage and on the Docker container
1720 # where the pipeline computation is run. The service account associated with
1721 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -07001722 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001723 # Google Cloud Storage paths.
1724 #
1725 # At run time, the Google Cloud Storage paths can be overridden if a default
1726 # was provided at create time, or must be set otherwise. The pipeline runner
1727 # should add a key/value pair to either the inputs or outputs map. The
1728 # indicated data copies will be carried out before/after pipeline execution,
1729 # just as if the corresponding arguments were provided to `gsutil cp`.
1730 #
1731 # For example: Given the following `PipelineParameter`, specified
1732 # in the `inputParameters` list:
1733 #
1734 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001735 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001736 # ```
1737 #
1738 # where `disk` is defined in the `PipelineResources` object as:
1739 #
1740 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001741 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001742 # ```
1743 #
1744 # We create a disk named `pd1`, mount it on the host VM, and map
1745 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1746 # runtime, an entry for `input_file` would be required in the inputs
1747 # map, such as:
1748 #
1749 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001751 # ```
1752 #
1753 # This would generate the following gsutil call:
1754 #
1755 # ```
1756 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1757 # ```
1758 #
1759 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1760 # Docker container. Acceptable paths are:
1761 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001762 # &lt;table&gt;
1763 # &lt;thead&gt;
1764 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1765 # &lt;/thead&gt;
1766 # &lt;tbody&gt;
1767 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1768 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1769 # &lt;/tbody&gt;
1770 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001771 #
1772 # For outputs, the direction of the copy is reversed:
1773 #
1774 # ```
1775 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1776 # ```
1777 #
1778 # Acceptable paths are:
1779 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001780 # &lt;table&gt;
1781 # &lt;thead&gt;
1782 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1783 # &lt;/thead&gt;
1784 # &lt;tbody&gt;
1785 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1786 # &lt;tr&gt;
1787 # &lt;td&gt;file&lt;/td&gt;
1788 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1789 # &lt;/tr&gt;
1790 # &lt;tr&gt;
1791 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001792 # &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 -07001793 # &lt;/tbody&gt;
1794 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001795 #
1796 # One restriction due to docker limitations, is that for outputs that are found
1797 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001798 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001799 # If `localCopy` is present, then this must be a Google Cloud Storage path
1800 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001801 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1802 # as the key to the input and output maps in RunPipeline.
1803 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1804 &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 -04001805 # `LocalCopy` indicates where on the VM the file should be. The value
1806 # given to this parameter (either at runtime or using `defaultValue`)
1807 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -07001808 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001809 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -07001810 # Resources field, or &quot;boot&quot;, which represents the Docker
1811 # instance&#x27;s boot disk and has a mount point of `/`.
1812 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1813 # this input should be localized to and from, relative to the specified
1814 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001815 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001816 },
1817 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001818 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
1819 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
1820 # Users that run pipelines must have READ access to the image.
1821 &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 -04001822 # string will be executed within a bash shell.
1823 #
1824 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -07001825 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001826 # `error` field will be populated.
1827 #
1828 # Maximum command string length is 16384.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001829 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001830 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
1831 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
1832 { # Parameters facilitate setting and delivering data into the
1833 # pipeline&#x27;s execution environment. They are defined at create time,
1834 # with optional defaults, and can be overridden at run time.
1835 #
1836 # If `localCopy` is unset, then the parameter specifies a string that
1837 # is passed as-is into the pipeline, as the value of the environment
1838 # variable with the given name. A default value can be optionally
1839 # specified at create time. The default can be overridden at run time
1840 # using the inputs map. If no default is given, a value must be
1841 # supplied at runtime.
1842 #
1843 # If `localCopy` is defined, then the parameter specifies a data
1844 # source or sink, both in Google Cloud Storage and on the Docker container
1845 # where the pipeline computation is run. The service account associated with
1846 # the Pipeline (by
1847 # default the project&#x27;s Compute Engine service account) must have access to the
1848 # Google Cloud Storage paths.
1849 #
1850 # At run time, the Google Cloud Storage paths can be overridden if a default
1851 # was provided at create time, or must be set otherwise. The pipeline runner
1852 # should add a key/value pair to either the inputs or outputs map. The
1853 # indicated data copies will be carried out before/after pipeline execution,
1854 # just as if the corresponding arguments were provided to `gsutil cp`.
1855 #
1856 # For example: Given the following `PipelineParameter`, specified
1857 # in the `inputParameters` list:
1858 #
1859 # ```
1860 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1861 # ```
1862 #
1863 # where `disk` is defined in the `PipelineResources` object as:
1864 #
1865 # ```
1866 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1867 # ```
1868 #
1869 # We create a disk named `pd1`, mount it on the host VM, and map
1870 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1871 # runtime, an entry for `input_file` would be required in the inputs
1872 # map, such as:
1873 #
1874 # ```
1875 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1876 # ```
1877 #
1878 # This would generate the following gsutil call:
1879 #
1880 # ```
1881 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1882 # ```
1883 #
1884 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1885 # Docker container. Acceptable paths are:
1886 #
1887 # &lt;table&gt;
1888 # &lt;thead&gt;
1889 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1890 # &lt;/thead&gt;
1891 # &lt;tbody&gt;
1892 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1893 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1894 # &lt;/tbody&gt;
1895 # &lt;/table&gt;
1896 #
1897 # For outputs, the direction of the copy is reversed:
1898 #
1899 # ```
1900 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1901 # ```
1902 #
1903 # Acceptable paths are:
1904 #
1905 # &lt;table&gt;
1906 # &lt;thead&gt;
1907 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1908 # &lt;/thead&gt;
1909 # &lt;tbody&gt;
1910 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1911 # &lt;tr&gt;
1912 # &lt;td&gt;file&lt;/td&gt;
1913 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1914 # &lt;/tr&gt;
1915 # &lt;tr&gt;
1916 # &lt;td&gt;glob&lt;/td&gt;
1917 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1918 # &lt;/tbody&gt;
1919 # &lt;/table&gt;
1920 #
1921 # One restriction due to docker limitations, is that for outputs that are found
1922 # on the boot disk, the local path cannot be a glob and must be a file.
1923 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1924 # If `localCopy` is present, then this must be a Google Cloud Storage path
1925 # beginning with `gs://`.
1926 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1927 # as the key to the input and output maps in RunPipeline.
1928 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1929 &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.
1930 # `LocalCopy` indicates where on the VM the file should be. The value
1931 # given to this parameter (either at runtime or using `defaultValue`)
1932 # must be the remote path where the file should be.
1933 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1934 # located. Can be the name of one of the disks specified in the
1935 # Resources field, or &quot;boot&quot;, which represents the Docker
1936 # instance&#x27;s boot disk and has a mount point of `/`.
1937 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1938 # this input should be localized to and from, relative to the specified
1939 # disk&#x27;s mount point. For example: file.txt,
1940 },
1941 },
1942 ],
1943 &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 -04001944 # Required fields:
1945 #
1946 # *
1947 # minimumCpuCores
1948 #
1949 # *
1950 # minimumRamGb
Bu Sun Kim65020912020-05-20 12:08:20 -07001951 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1952 # must be true for both create time and run time. Cannot be true at run time
1953 # if false at create time.
1954 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
1955 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1956 # creation will restricted. If empty, any zone may be chosen.
1957 &quot;A String&quot;,
1958 ],
1959 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
1960 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1961 # By specifying this parameter, you will download and install the following
1962 # third-party software onto your managed Compute Engine instances:
1963 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1964 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1965 # By specifying this parameter, you will download and install the following
1966 # third-party software onto your managed Compute Engine instances: NVIDIA®
1967 # Tesla® drivers and NVIDIA® CUDA toolkit.
1968 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1969 # available accelerator types.
1970 &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 -04001971 # feature that may go away. Defaults to false.
1972 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1973 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1974 # In order to use this, must be true for both create time and run time.
1975 # Cannot be true at run time if false at create time. If you need to ssh into
1976 # 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 -07001977 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001978 # only load docker images from Google Container Registry and not Docker Hub.
1979 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001980 # [configure access to Google services from internal
1981 # IPs](https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips).
Bu Sun Kim65020912020-05-20 12:08:20 -07001982 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001983 { # A Google Compute Engine disk resource specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07001984 &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 -04001985 # Specifies the path in the docker container where files on
1986 # this disk should be located. For example, if `mountPoint`
1987 # is `/mnt/disk`, and the parameter has `localPath`
1988 # `inputs/file.txt`, the docker container can access the data at
1989 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001990 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1991 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1992 # for more details.
1993 # Can only be set at create time.
1994 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1995 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1996 # and
1997 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1998 # for more details.
1999 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
2000 # parameters. Must be 1 - 63 characters.
2001 # The name &quot;boot&quot; is reserved for system use.
2002 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
2003 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
2004 # of the pipeline run, regardless of what this field is set to.
2005 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
2006 # This field is not applicable for local SSD.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002007 },
2008 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002009 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002010 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002011 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002012 # This name can be used for filtering Pipelines in ListPipelines.
Bu Sun Kim65020912020-05-20 12:08:20 -07002013 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
2014 # WRITE access.
2015 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
2016 # is called. Cannot be specified in the Pipeline used in the
2017 # CreatePipelineRequest, and will be populated in the response to
2018 # CreatePipeline and all subsequent Get and List calls. Indicates that the
2019 # service has registered this pipeline.
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;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
2034 # If `true`, the operation is completed, and either `error` or `response` is
2035 # available.
2036 &quot;response&quot;: { # An Empty object.
2037 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002038 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002039 &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`
2040 &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 -07002041 # different programming environments, including REST APIs and RPC APIs. It is
2042 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2043 # three pieces of data: error code, error message, and error details.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002044 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002045 # You can find out more about this error model and how to work with it in the
2046 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07002047 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002048 # user-facing error message should be localized and sent in the
2049 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07002050 &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 -07002051 # message types for APIs to use.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002052 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002053 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002054 },
2055 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002056 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002057 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002058 &quot;metadata&quot;: { # An OperationMetadata or Metadata object. This will always be returned with the Operation.
2059 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002060 },
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;operationId&quot;: &quot;A String&quot;,
2077 &quot;errorMessage&quot;: &quot;A String&quot;,
2078 &quot;validationToken&quot;: &quot;A String&quot;,
2079 &quot;errorCode&quot;: &quot;A String&quot;,
2080 &quot;timestampEvents&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002081 { # Stores the list of events and times they occured for major events in job
2082 # execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002083 &quot;timestamp&quot;: &quot;A String&quot;, # The time this event occured.
2084 &quot;description&quot;: &quot;A String&quot;, # String indicating the type of event
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002085 },
2086 ],
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>