blob: ec8a23e8a0a64c26fa9357db25c8aba88dd134e1 [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 Kim4ed7d3f2020-05-27 12:20:54 -070090 <code><a href="#list">list(pageToken=None, pageSize=None, projectId=None, namePrefix=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 Kim4ed7d3f2020-05-27 12:20:54 -0700121 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
122 # This name can be used for filtering Pipelines in ListPipelines.
123 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
124 # is called. Cannot be specified in the Pipeline used in the
125 # CreatePipelineRequest, and will be populated in the response to
126 # CreatePipeline and all subsequent Get and List calls. Indicates that the
127 # service has registered this pipeline.
128 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
129 # WRITE access.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400131 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400133 # with optional defaults, and can be overridden at run time.
134 #
135 # If `localCopy` is unset, then the parameter specifies a string that
136 # is passed as-is into the pipeline, as the value of the environment
137 # variable with the given name. A default value can be optionally
138 # specified at create time. The default can be overridden at run time
139 # using the inputs map. If no default is given, a value must be
140 # supplied at runtime.
141 #
142 # If `localCopy` is defined, then the parameter specifies a data
143 # source or sink, both in Google Cloud Storage and on the Docker container
144 # where the pipeline computation is run. The service account associated with
145 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400147 # Google Cloud Storage paths.
148 #
149 # At run time, the Google Cloud Storage paths can be overridden if a default
150 # was provided at create time, or must be set otherwise. The pipeline runner
151 # should add a key/value pair to either the inputs or outputs map. The
152 # indicated data copies will be carried out before/after pipeline execution,
153 # just as if the corresponding arguments were provided to `gsutil cp`.
154 #
155 # For example: Given the following `PipelineParameter`, specified
156 # in the `inputParameters` list:
157 #
158 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400160 # ```
161 #
162 # where `disk` is defined in the `PipelineResources` object as:
163 #
164 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400166 # ```
167 #
168 # We create a disk named `pd1`, mount it on the host VM, and map
169 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
170 # runtime, an entry for `input_file` would be required in the inputs
171 # map, such as:
172 #
173 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400175 # ```
176 #
177 # This would generate the following gsutil call:
178 #
179 # ```
180 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
181 # ```
182 #
183 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
184 # Docker container. Acceptable paths are:
185 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700186 # &lt;table&gt;
187 # &lt;thead&gt;
188 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
189 # &lt;/thead&gt;
190 # &lt;tbody&gt;
191 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
192 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
193 # &lt;/tbody&gt;
194 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400195 #
196 # For outputs, the direction of the copy is reversed:
197 #
198 # ```
199 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
200 # ```
201 #
202 # Acceptable paths are:
203 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700204 # &lt;table&gt;
205 # &lt;thead&gt;
206 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
207 # &lt;/thead&gt;
208 # &lt;tbody&gt;
209 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
210 # &lt;tr&gt;
211 # &lt;td&gt;file&lt;/td&gt;
212 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
213 # &lt;/tr&gt;
214 # &lt;tr&gt;
215 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 # &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 -0700217 # &lt;/tbody&gt;
218 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400219 #
220 # One restriction due to docker limitations, is that for outputs that are found
221 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 &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 -0400223 # If `localCopy` is present, then this must be a Google Cloud Storage path
224 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
226 # as the key to the input and output maps in RunPipeline.
227 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
228 &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 -0400229 # `LocalCopy` indicates where on the VM the file should be. The value
230 # given to this parameter (either at runtime or using `defaultValue`)
231 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400233 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700234 # Resources field, or &quot;boot&quot;, which represents the Docker
235 # instance&#x27;s boot disk and has a mount point of `/`.
236 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
237 # this input should be localized to and from, relative to the specified
238 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700239 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700240 },
241 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &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 -0400244 # string will be executed within a bash shell.
245 #
246 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400248 # `error` field will be populated.
249 #
250 # Maximum command string length is 16384.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700251 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
252 # Users that run pipelines must have READ access to the image.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700253 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
255 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
256 { # Parameters facilitate setting and delivering data into the
257 # pipeline&#x27;s execution environment. They are defined at create time,
258 # with optional defaults, and can be overridden at run time.
259 #
260 # If `localCopy` is unset, then the parameter specifies a string that
261 # is passed as-is into the pipeline, as the value of the environment
262 # variable with the given name. A default value can be optionally
263 # specified at create time. The default can be overridden at run time
264 # using the inputs map. If no default is given, a value must be
265 # supplied at runtime.
266 #
267 # If `localCopy` is defined, then the parameter specifies a data
268 # source or sink, both in Google Cloud Storage and on the Docker container
269 # where the pipeline computation is run. The service account associated with
270 # the Pipeline (by
271 # default the project&#x27;s Compute Engine service account) must have access to the
272 # Google Cloud Storage paths.
273 #
274 # At run time, the Google Cloud Storage paths can be overridden if a default
275 # was provided at create time, or must be set otherwise. The pipeline runner
276 # should add a key/value pair to either the inputs or outputs map. The
277 # indicated data copies will be carried out before/after pipeline execution,
278 # just as if the corresponding arguments were provided to `gsutil cp`.
279 #
280 # For example: Given the following `PipelineParameter`, specified
281 # in the `inputParameters` list:
282 #
283 # ```
284 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
285 # ```
286 #
287 # where `disk` is defined in the `PipelineResources` object as:
288 #
289 # ```
290 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
291 # ```
292 #
293 # We create a disk named `pd1`, mount it on the host VM, and map
294 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
295 # runtime, an entry for `input_file` would be required in the inputs
296 # map, such as:
297 #
298 # ```
299 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
300 # ```
301 #
302 # This would generate the following gsutil call:
303 #
304 # ```
305 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
306 # ```
307 #
308 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
309 # Docker container. Acceptable paths are:
310 #
311 # &lt;table&gt;
312 # &lt;thead&gt;
313 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
314 # &lt;/thead&gt;
315 # &lt;tbody&gt;
316 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
317 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
318 # &lt;/tbody&gt;
319 # &lt;/table&gt;
320 #
321 # For outputs, the direction of the copy is reversed:
322 #
323 # ```
324 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
325 # ```
326 #
327 # Acceptable paths are:
328 #
329 # &lt;table&gt;
330 # &lt;thead&gt;
331 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
332 # &lt;/thead&gt;
333 # &lt;tbody&gt;
334 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
335 # &lt;tr&gt;
336 # &lt;td&gt;file&lt;/td&gt;
337 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
338 # &lt;/tr&gt;
339 # &lt;tr&gt;
340 # &lt;td&gt;glob&lt;/td&gt;
341 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
342 # &lt;/tbody&gt;
343 # &lt;/table&gt;
344 #
345 # One restriction due to docker limitations, is that for outputs that are found
346 # on the boot disk, the local path cannot be a glob and must be a file.
347 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
348 # If `localCopy` is present, then this must be a Google Cloud Storage path
349 # beginning with `gs://`.
350 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
351 # as the key to the input and output maps in RunPipeline.
352 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
353 &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.
354 # `LocalCopy` indicates where on the VM the file should be. The value
355 # given to this parameter (either at runtime or using `defaultValue`)
356 # must be the remote path where the file should be.
357 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
358 # located. Can be the name of one of the disks specified in the
359 # Resources field, or &quot;boot&quot;, which represents the Docker
360 # instance&#x27;s boot disk and has a mount point of `/`.
361 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
362 # this input should be localized to and from, relative to the specified
363 # disk&#x27;s mount point. For example: file.txt,
364 },
365 },
366 ],
367 &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 -0400368 # Required fields:
369 #
370 # *
371 # minimumCpuCores
372 #
373 # *
374 # minimumRamGb
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700375 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
377 # must be true for both create time and run time. Cannot be true at run time
378 # if false at create time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
380 # creation will restricted. If empty, any zone may be chosen.
381 &quot;A String&quot;,
382 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
384 # By specifying this parameter, you will download and install the following
385 # third-party software onto your managed Compute Engine instances:
386 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
387 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
388 # By specifying this parameter, you will download and install the following
389 # third-party software onto your managed Compute Engine instances: NVIDIA®
390 # Tesla® drivers and NVIDIA® CUDA toolkit.
391 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
392 # available accelerator types.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700393 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 &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 -0400395 # feature that may go away. Defaults to false.
396 # Corresponds to `--no_address` flag for [gcloud compute instances create]
397 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
398 # In order to use this, must be true for both create time and run time.
399 # Cannot be true at run time if false at create time. If you need to ssh into
400 # 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 -0700401 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400402 # only load docker images from Google Container Registry and not Docker Hub.
403 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404 # [configure access to Google services from internal
405 # 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 -0700406 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700407 { # A Google Compute Engine disk resource specification.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700408 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
409 # parameters. Must be 1 - 63 characters.
410 # The name &quot;boot&quot; is reserved for system use.
411 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
412 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
413 # of the pipeline run, regardless of what this field is set to.
414 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
415 # This field is not applicable for local SSD.
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 &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 -0400417 # Specifies the path in the docker container where files on
418 # this disk should be located. For example, if `mountPoint`
419 # is `/mnt/disk`, and the parameter has `localPath`
420 # `inputs/file.txt`, the docker container can access the data at
421 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
423 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
424 # for more details.
425 # Can only be set at create time.
426 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
427 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
428 # and
429 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
430 # for more details.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700431 },
432 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700434 },
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 Kim4ed7d3f2020-05-27 12:20:54 -0700451 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
452 # This name can be used for filtering Pipelines in ListPipelines.
453 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
454 # is called. Cannot be specified in the Pipeline used in the
455 # CreatePipelineRequest, and will be populated in the response to
456 # CreatePipeline and all subsequent Get and List calls. Indicates that the
457 # service has registered this pipeline.
458 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
459 # WRITE access.
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400461 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400463 # with optional defaults, and can be overridden at run time.
464 #
465 # If `localCopy` is unset, then the parameter specifies a string that
466 # is passed as-is into the pipeline, as the value of the environment
467 # variable with the given name. A default value can be optionally
468 # specified at create time. The default can be overridden at run time
469 # using the inputs map. If no default is given, a value must be
470 # supplied at runtime.
471 #
472 # If `localCopy` is defined, then the parameter specifies a data
473 # source or sink, both in Google Cloud Storage and on the Docker container
474 # where the pipeline computation is run. The service account associated with
475 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400477 # Google Cloud Storage paths.
478 #
479 # At run time, the Google Cloud Storage paths can be overridden if a default
480 # was provided at create time, or must be set otherwise. The pipeline runner
481 # should add a key/value pair to either the inputs or outputs map. The
482 # indicated data copies will be carried out before/after pipeline execution,
483 # just as if the corresponding arguments were provided to `gsutil cp`.
484 #
485 # For example: Given the following `PipelineParameter`, specified
486 # in the `inputParameters` list:
487 #
488 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400490 # ```
491 #
492 # where `disk` is defined in the `PipelineResources` object as:
493 #
494 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400496 # ```
497 #
498 # We create a disk named `pd1`, mount it on the host VM, and map
499 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
500 # runtime, an entry for `input_file` would be required in the inputs
501 # map, such as:
502 #
503 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400505 # ```
506 #
507 # This would generate the following gsutil call:
508 #
509 # ```
510 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
511 # ```
512 #
513 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
514 # Docker container. Acceptable paths are:
515 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700516 # &lt;table&gt;
517 # &lt;thead&gt;
518 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
519 # &lt;/thead&gt;
520 # &lt;tbody&gt;
521 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
522 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
523 # &lt;/tbody&gt;
524 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400525 #
526 # For outputs, the direction of the copy is reversed:
527 #
528 # ```
529 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
530 # ```
531 #
532 # Acceptable paths are:
533 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700534 # &lt;table&gt;
535 # &lt;thead&gt;
536 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
537 # &lt;/thead&gt;
538 # &lt;tbody&gt;
539 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
540 # &lt;tr&gt;
541 # &lt;td&gt;file&lt;/td&gt;
542 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
543 # &lt;/tr&gt;
544 # &lt;tr&gt;
545 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 # &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 -0700547 # &lt;/tbody&gt;
548 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400549 #
550 # One restriction due to docker limitations, is that for outputs that are found
551 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700552 &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 -0400553 # If `localCopy` is present, then this must be a Google Cloud Storage path
554 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700555 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
556 # as the key to the input and output maps in RunPipeline.
557 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
558 &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 -0400559 # `LocalCopy` indicates where on the VM the file should be. The value
560 # given to this parameter (either at runtime or using `defaultValue`)
561 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -0700562 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400563 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 # Resources field, or &quot;boot&quot;, which represents the Docker
565 # instance&#x27;s boot disk and has a mount point of `/`.
566 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
567 # this input should be localized to and from, relative to the specified
568 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700569 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700570 },
571 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700573 &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 -0400574 # string will be executed within a bash shell.
575 #
576 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -0700577 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400578 # `error` field will be populated.
579 #
580 # Maximum command string length is 16384.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700581 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
582 # Users that run pipelines must have READ access to the image.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700583 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
585 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
586 { # Parameters facilitate setting and delivering data into the
587 # pipeline&#x27;s execution environment. They are defined at create time,
588 # with optional defaults, and can be overridden at run time.
589 #
590 # If `localCopy` is unset, then the parameter specifies a string that
591 # is passed as-is into the pipeline, as the value of the environment
592 # variable with the given name. A default value can be optionally
593 # specified at create time. The default can be overridden at run time
594 # using the inputs map. If no default is given, a value must be
595 # supplied at runtime.
596 #
597 # If `localCopy` is defined, then the parameter specifies a data
598 # source or sink, both in Google Cloud Storage and on the Docker container
599 # where the pipeline computation is run. The service account associated with
600 # the Pipeline (by
601 # default the project&#x27;s Compute Engine service account) must have access to the
602 # Google Cloud Storage paths.
603 #
604 # At run time, the Google Cloud Storage paths can be overridden if a default
605 # was provided at create time, or must be set otherwise. The pipeline runner
606 # should add a key/value pair to either the inputs or outputs map. The
607 # indicated data copies will be carried out before/after pipeline execution,
608 # just as if the corresponding arguments were provided to `gsutil cp`.
609 #
610 # For example: Given the following `PipelineParameter`, specified
611 # in the `inputParameters` list:
612 #
613 # ```
614 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
615 # ```
616 #
617 # where `disk` is defined in the `PipelineResources` object as:
618 #
619 # ```
620 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
621 # ```
622 #
623 # We create a disk named `pd1`, mount it on the host VM, and map
624 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
625 # runtime, an entry for `input_file` would be required in the inputs
626 # map, such as:
627 #
628 # ```
629 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
630 # ```
631 #
632 # This would generate the following gsutil call:
633 #
634 # ```
635 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
636 # ```
637 #
638 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
639 # Docker container. Acceptable paths are:
640 #
641 # &lt;table&gt;
642 # &lt;thead&gt;
643 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
644 # &lt;/thead&gt;
645 # &lt;tbody&gt;
646 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
647 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
648 # &lt;/tbody&gt;
649 # &lt;/table&gt;
650 #
651 # For outputs, the direction of the copy is reversed:
652 #
653 # ```
654 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
655 # ```
656 #
657 # Acceptable paths are:
658 #
659 # &lt;table&gt;
660 # &lt;thead&gt;
661 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
662 # &lt;/thead&gt;
663 # &lt;tbody&gt;
664 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
665 # &lt;tr&gt;
666 # &lt;td&gt;file&lt;/td&gt;
667 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
668 # &lt;/tr&gt;
669 # &lt;tr&gt;
670 # &lt;td&gt;glob&lt;/td&gt;
671 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
672 # &lt;/tbody&gt;
673 # &lt;/table&gt;
674 #
675 # One restriction due to docker limitations, is that for outputs that are found
676 # on the boot disk, the local path cannot be a glob and must be a file.
677 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
678 # If `localCopy` is present, then this must be a Google Cloud Storage path
679 # beginning with `gs://`.
680 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
681 # as the key to the input and output maps in RunPipeline.
682 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
683 &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.
684 # `LocalCopy` indicates where on the VM the file should be. The value
685 # given to this parameter (either at runtime or using `defaultValue`)
686 # must be the remote path where the file should be.
687 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
688 # located. Can be the name of one of the disks specified in the
689 # Resources field, or &quot;boot&quot;, which represents the Docker
690 # instance&#x27;s boot disk and has a mount point of `/`.
691 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
692 # this input should be localized to and from, relative to the specified
693 # disk&#x27;s mount point. For example: file.txt,
694 },
695 },
696 ],
697 &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 -0400698 # Required fields:
699 #
700 # *
701 # minimumCpuCores
702 #
703 # *
704 # minimumRamGb
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700705 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
Bu Sun Kim65020912020-05-20 12:08:20 -0700706 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
707 # must be true for both create time and run time. Cannot be true at run time
708 # if false at create time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700709 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
710 # creation will restricted. If empty, any zone may be chosen.
711 &quot;A String&quot;,
712 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700713 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
714 # By specifying this parameter, you will download and install the following
715 # third-party software onto your managed Compute Engine instances:
716 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
717 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
718 # By specifying this parameter, you will download and install the following
719 # third-party software onto your managed Compute Engine instances: NVIDIA®
720 # Tesla® drivers and NVIDIA® CUDA toolkit.
721 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
722 # available accelerator types.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700723 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 &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 -0400725 # feature that may go away. Defaults to false.
726 # Corresponds to `--no_address` flag for [gcloud compute instances create]
727 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
728 # In order to use this, must be true for both create time and run time.
729 # Cannot be true at run time if false at create time. If you need to ssh into
730 # 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 -0700731 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400732 # only load docker images from Google Container Registry and not Docker Hub.
733 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700734 # [configure access to Google services from internal
735 # 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 -0700736 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700737 { # A Google Compute Engine disk resource specification.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700738 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
739 # parameters. Must be 1 - 63 characters.
740 # The name &quot;boot&quot; is reserved for system use.
741 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
742 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
743 # of the pipeline run, regardless of what this field is set to.
744 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
745 # This field is not applicable for local SSD.
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 &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 -0400747 # Specifies the path in the docker container where files on
748 # this disk should be located. For example, if `mountPoint`
749 # is `/mnt/disk`, and the parameter has `localPath`
750 # `inputs/file.txt`, the docker container can access the data at
751 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
753 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
754 # for more details.
755 # Can only be set at create time.
756 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
757 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
758 # and
759 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
760 # for more details.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700761 },
762 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700764 },
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 Kim4ed7d3f2020-05-27 12:20:54 -0700820 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
821 # This name can be used for filtering Pipelines in ListPipelines.
822 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
823 # is called. Cannot be specified in the Pipeline used in the
824 # CreatePipelineRequest, and will be populated in the response to
825 # CreatePipeline and all subsequent Get and List calls. Indicates that the
826 # service has registered this pipeline.
827 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
828 # WRITE access.
Bu Sun Kim65020912020-05-20 12:08:20 -0700829 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400830 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -0700831 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400832 # with optional defaults, and can be overridden at run time.
833 #
834 # If `localCopy` is unset, then the parameter specifies a string that
835 # is passed as-is into the pipeline, as the value of the environment
836 # variable with the given name. A default value can be optionally
837 # specified at create time. The default can be overridden at run time
838 # using the inputs map. If no default is given, a value must be
839 # supplied at runtime.
840 #
841 # If `localCopy` is defined, then the parameter specifies a data
842 # source or sink, both in Google Cloud Storage and on the Docker container
843 # where the pipeline computation is run. The service account associated with
844 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400846 # Google Cloud Storage paths.
847 #
848 # At run time, the Google Cloud Storage paths can be overridden if a default
849 # was provided at create time, or must be set otherwise. The pipeline runner
850 # should add a key/value pair to either the inputs or outputs map. The
851 # indicated data copies will be carried out before/after pipeline execution,
852 # just as if the corresponding arguments were provided to `gsutil cp`.
853 #
854 # For example: Given the following `PipelineParameter`, specified
855 # in the `inputParameters` list:
856 #
857 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700858 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400859 # ```
860 #
861 # where `disk` is defined in the `PipelineResources` object as:
862 #
863 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400865 # ```
866 #
867 # We create a disk named `pd1`, mount it on the host VM, and map
868 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
869 # runtime, an entry for `input_file` would be required in the inputs
870 # map, such as:
871 #
872 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -0700873 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400874 # ```
875 #
876 # This would generate the following gsutil call:
877 #
878 # ```
879 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
880 # ```
881 #
882 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
883 # Docker container. Acceptable paths are:
884 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700885 # &lt;table&gt;
886 # &lt;thead&gt;
887 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
888 # &lt;/thead&gt;
889 # &lt;tbody&gt;
890 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
891 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
892 # &lt;/tbody&gt;
893 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400894 #
895 # For outputs, the direction of the copy is reversed:
896 #
897 # ```
898 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
899 # ```
900 #
901 # Acceptable paths are:
902 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700903 # &lt;table&gt;
904 # &lt;thead&gt;
905 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
906 # &lt;/thead&gt;
907 # &lt;tbody&gt;
908 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
909 # &lt;tr&gt;
910 # &lt;td&gt;file&lt;/td&gt;
911 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
912 # &lt;/tr&gt;
913 # &lt;tr&gt;
914 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 # &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 -0700916 # &lt;/tbody&gt;
917 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400918 #
919 # One restriction due to docker limitations, is that for outputs that are found
920 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700921 &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 -0400922 # If `localCopy` is present, then this must be a Google Cloud Storage path
923 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700924 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
925 # as the key to the input and output maps in RunPipeline.
926 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
927 &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 -0400928 # `LocalCopy` indicates where on the VM the file should be. The value
929 # given to this parameter (either at runtime or using `defaultValue`)
930 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -0700931 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400932 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700933 # Resources field, or &quot;boot&quot;, which represents the Docker
934 # instance&#x27;s boot disk and has a mount point of `/`.
935 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
936 # this input should be localized to and from, relative to the specified
937 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700938 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700939 },
940 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700942 &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 -0400943 # string will be executed within a bash shell.
944 #
945 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400947 # `error` field will be populated.
948 #
949 # Maximum command string length is 16384.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700950 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
951 # Users that run pipelines must have READ access to the image.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700952 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700953 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
954 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
955 { # Parameters facilitate setting and delivering data into the
956 # pipeline&#x27;s execution environment. They are defined at create time,
957 # with optional defaults, and can be overridden at run time.
958 #
959 # If `localCopy` is unset, then the parameter specifies a string that
960 # is passed as-is into the pipeline, as the value of the environment
961 # variable with the given name. A default value can be optionally
962 # specified at create time. The default can be overridden at run time
963 # using the inputs map. If no default is given, a value must be
964 # supplied at runtime.
965 #
966 # If `localCopy` is defined, then the parameter specifies a data
967 # source or sink, both in Google Cloud Storage and on the Docker container
968 # where the pipeline computation is run. The service account associated with
969 # the Pipeline (by
970 # default the project&#x27;s Compute Engine service account) must have access to the
971 # Google Cloud Storage paths.
972 #
973 # At run time, the Google Cloud Storage paths can be overridden if a default
974 # was provided at create time, or must be set otherwise. The pipeline runner
975 # should add a key/value pair to either the inputs or outputs map. The
976 # indicated data copies will be carried out before/after pipeline execution,
977 # just as if the corresponding arguments were provided to `gsutil cp`.
978 #
979 # For example: Given the following `PipelineParameter`, specified
980 # in the `inputParameters` list:
981 #
982 # ```
983 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
984 # ```
985 #
986 # where `disk` is defined in the `PipelineResources` object as:
987 #
988 # ```
989 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
990 # ```
991 #
992 # We create a disk named `pd1`, mount it on the host VM, and map
993 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
994 # runtime, an entry for `input_file` would be required in the inputs
995 # map, such as:
996 #
997 # ```
998 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
999 # ```
1000 #
1001 # This would generate the following gsutil call:
1002 #
1003 # ```
1004 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1005 # ```
1006 #
1007 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1008 # Docker container. Acceptable paths are:
1009 #
1010 # &lt;table&gt;
1011 # &lt;thead&gt;
1012 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1013 # &lt;/thead&gt;
1014 # &lt;tbody&gt;
1015 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1016 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1017 # &lt;/tbody&gt;
1018 # &lt;/table&gt;
1019 #
1020 # For outputs, the direction of the copy is reversed:
1021 #
1022 # ```
1023 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1024 # ```
1025 #
1026 # Acceptable paths are:
1027 #
1028 # &lt;table&gt;
1029 # &lt;thead&gt;
1030 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1031 # &lt;/thead&gt;
1032 # &lt;tbody&gt;
1033 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1034 # &lt;tr&gt;
1035 # &lt;td&gt;file&lt;/td&gt;
1036 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1037 # &lt;/tr&gt;
1038 # &lt;tr&gt;
1039 # &lt;td&gt;glob&lt;/td&gt;
1040 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1041 # &lt;/tbody&gt;
1042 # &lt;/table&gt;
1043 #
1044 # One restriction due to docker limitations, is that for outputs that are found
1045 # on the boot disk, the local path cannot be a glob and must be a file.
1046 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1047 # If `localCopy` is present, then this must be a Google Cloud Storage path
1048 # beginning with `gs://`.
1049 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1050 # as the key to the input and output maps in RunPipeline.
1051 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1052 &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.
1053 # `LocalCopy` indicates where on the VM the file should be. The value
1054 # given to this parameter (either at runtime or using `defaultValue`)
1055 # must be the remote path where the file should be.
1056 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1057 # located. Can be the name of one of the disks specified in the
1058 # Resources field, or &quot;boot&quot;, which represents the Docker
1059 # instance&#x27;s boot disk and has a mount point of `/`.
1060 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1061 # this input should be localized to and from, relative to the specified
1062 # disk&#x27;s mount point. For example: file.txt,
1063 },
1064 },
1065 ],
1066 &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 -04001067 # Required fields:
1068 #
1069 # *
1070 # minimumCpuCores
1071 #
1072 # *
1073 # minimumRamGb
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001074 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
Bu Sun Kim65020912020-05-20 12:08:20 -07001075 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1076 # must be true for both create time and run time. Cannot be true at run time
1077 # if false at create time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001078 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1079 # creation will restricted. If empty, any zone may be chosen.
1080 &quot;A String&quot;,
1081 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001082 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1083 # By specifying this parameter, you will download and install the following
1084 # third-party software onto your managed Compute Engine instances:
1085 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1086 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1087 # By specifying this parameter, you will download and install the following
1088 # third-party software onto your managed Compute Engine instances: NVIDIA®
1089 # Tesla® drivers and NVIDIA® CUDA toolkit.
1090 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1091 # available accelerator types.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001092 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -07001093 &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 -04001094 # feature that may go away. Defaults to false.
1095 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1096 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1097 # In order to use this, must be true for both create time and run time.
1098 # Cannot be true at run time if false at create time. If you need to ssh into
1099 # 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 -07001100 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001101 # only load docker images from Google Container Registry and not Docker Hub.
1102 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001103 # [configure access to Google services from internal
1104 # 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 -07001105 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001106 { # A Google Compute Engine disk resource specification.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001107 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1108 # parameters. Must be 1 - 63 characters.
1109 # The name &quot;boot&quot; is reserved for system use.
1110 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1111 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1112 # of the pipeline run, regardless of what this field is set to.
1113 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1114 # This field is not applicable for local SSD.
Bu Sun Kim65020912020-05-20 12:08:20 -07001115 &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 -04001116 # Specifies the path in the docker container where files on
1117 # this disk should be located. For example, if `mountPoint`
1118 # is `/mnt/disk`, and the parameter has `localPath`
1119 # `inputs/file.txt`, the docker container can access the data at
1120 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001121 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1122 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1123 # for more details.
1124 # Can only be set at create time.
1125 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1126 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1127 # and
1128 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1129 # for more details.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001130 },
1131 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001132 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001133 },
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 Kim4ed7d3f2020-05-27 12:20:54 -07001156 &quot;machineType&quot;: &quot;A String&quot;,
1157 &quot;cmd&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001158 &quot;vars&quot;: {
1159 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001160 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 &quot;image&quot;: &quot;A String&quot;,
1162 &quot;gcsLogPath&quot;: &quot;A String&quot;,
1163 &quot;gcsSources&quot;: {
1164 &quot;a_key&quot;: {
1165 &quot;values&quot;: [
1166 &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001167 ],
1168 },
1169 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001170 &quot;gcsSinks&quot;: {
1171 &quot;a_key&quot;: {
1172 &quot;values&quot;: [
1173 &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001174 ],
1175 },
1176 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 &quot;disks&quot;: {
1178 &quot;a_key&quot;: &quot;A String&quot;,
1179 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001180 }</pre>
1181</div>
1182
1183<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001184 <code class="details" id="list">list(pageToken=None, pageSize=None, projectId=None, namePrefix=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 pageToken: string, Token to use to indicate where to start getting results.
1191If unspecified, returns the first page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -07001192 pageSize: integer, Number of pipelines to return at once. Defaults to 256, and max
1193is 2048.
1194 projectId: string, Required. The name of the project to search for pipelines. Caller
1195must have READ access to this project.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001196 namePrefix: string, Pipelines with names that match this prefix should be
1197returned. If unspecified, all pipelines in the project, up to
1198`pageSize`, will be returned.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001212 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token to use to get the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -07001213 &quot;pipelines&quot;: [ # The matched pipelines.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001214 { # The pipeline object. Represents a transformation from a set of input
1215 # parameters to a set of output parameters. The transformation is defined
1216 # as a docker image and command to run within that image. Each pipeline
1217 # is run on a Google Compute Engine VM. A pipeline can be created with the
1218 # `create` method and then later run with the `run` method, or a pipeline can
1219 # be defined and run all at once with the `run` method.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001220 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
1221 # This name can be used for filtering Pipelines in ListPipelines.
1222 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
1223 # is called. Cannot be specified in the Pipeline used in the
1224 # CreatePipelineRequest, and will be populated in the response to
1225 # CreatePipeline and all subsequent Get and List calls. Indicates that the
1226 # service has registered this pipeline.
1227 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
1228 # WRITE access.
Bu Sun Kim65020912020-05-20 12:08:20 -07001229 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001230 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -07001231 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001232 # with optional defaults, and can be overridden at run time.
1233 #
1234 # If `localCopy` is unset, then the parameter specifies a string that
1235 # is passed as-is into the pipeline, as the value of the environment
1236 # variable with the given name. A default value can be optionally
1237 # specified at create time. The default can be overridden at run time
1238 # using the inputs map. If no default is given, a value must be
1239 # supplied at runtime.
1240 #
1241 # If `localCopy` is defined, then the parameter specifies a data
1242 # source or sink, both in Google Cloud Storage and on the Docker container
1243 # where the pipeline computation is run. The service account associated with
1244 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -07001245 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001246 # Google Cloud Storage paths.
1247 #
1248 # At run time, the Google Cloud Storage paths can be overridden if a default
1249 # was provided at create time, or must be set otherwise. The pipeline runner
1250 # should add a key/value pair to either the inputs or outputs map. The
1251 # indicated data copies will be carried out before/after pipeline execution,
1252 # just as if the corresponding arguments were provided to `gsutil cp`.
1253 #
1254 # For example: Given the following `PipelineParameter`, specified
1255 # in the `inputParameters` list:
1256 #
1257 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001258 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001259 # ```
1260 #
1261 # where `disk` is defined in the `PipelineResources` object as:
1262 #
1263 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001264 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001265 # ```
1266 #
1267 # We create a disk named `pd1`, mount it on the host VM, and map
1268 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1269 # runtime, an entry for `input_file` would be required in the inputs
1270 # map, such as:
1271 #
1272 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001274 # ```
1275 #
1276 # This would generate the following gsutil call:
1277 #
1278 # ```
1279 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1280 # ```
1281 #
1282 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1283 # Docker container. Acceptable paths are:
1284 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001285 # &lt;table&gt;
1286 # &lt;thead&gt;
1287 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1288 # &lt;/thead&gt;
1289 # &lt;tbody&gt;
1290 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1291 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1292 # &lt;/tbody&gt;
1293 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001294 #
1295 # For outputs, the direction of the copy is reversed:
1296 #
1297 # ```
1298 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1299 # ```
1300 #
1301 # Acceptable paths are:
1302 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001303 # &lt;table&gt;
1304 # &lt;thead&gt;
1305 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1306 # &lt;/thead&gt;
1307 # &lt;tbody&gt;
1308 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1309 # &lt;tr&gt;
1310 # &lt;td&gt;file&lt;/td&gt;
1311 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1312 # &lt;/tr&gt;
1313 # &lt;tr&gt;
1314 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001315 # &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 -07001316 # &lt;/tbody&gt;
1317 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001318 #
1319 # One restriction due to docker limitations, is that for outputs that are found
1320 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001321 &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 -04001322 # If `localCopy` is present, then this must be a Google Cloud Storage path
1323 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1325 # as the key to the input and output maps in RunPipeline.
1326 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1327 &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 -04001328 # `LocalCopy` indicates where on the VM the file should be. The value
1329 # given to this parameter (either at runtime or using `defaultValue`)
1330 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -07001331 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001332 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -07001333 # Resources field, or &quot;boot&quot;, which represents the Docker
1334 # instance&#x27;s boot disk and has a mount point of `/`.
1335 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1336 # this input should be localized to and from, relative to the specified
1337 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001338 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001339 },
1340 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001341 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001342 &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 -04001343 # string will be executed within a bash shell.
1344 #
1345 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -07001346 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001347 # `error` field will be populated.
1348 #
1349 # Maximum command string length is 16384.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001350 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
1351 # Users that run pipelines must have READ access to the image.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001352 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001353 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
1354 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
1355 { # Parameters facilitate setting and delivering data into the
1356 # pipeline&#x27;s execution environment. They are defined at create time,
1357 # with optional defaults, and can be overridden at run time.
1358 #
1359 # If `localCopy` is unset, then the parameter specifies a string that
1360 # is passed as-is into the pipeline, as the value of the environment
1361 # variable with the given name. A default value can be optionally
1362 # specified at create time. The default can be overridden at run time
1363 # using the inputs map. If no default is given, a value must be
1364 # supplied at runtime.
1365 #
1366 # If `localCopy` is defined, then the parameter specifies a data
1367 # source or sink, both in Google Cloud Storage and on the Docker container
1368 # where the pipeline computation is run. The service account associated with
1369 # the Pipeline (by
1370 # default the project&#x27;s Compute Engine service account) must have access to the
1371 # Google Cloud Storage paths.
1372 #
1373 # At run time, the Google Cloud Storage paths can be overridden if a default
1374 # was provided at create time, or must be set otherwise. The pipeline runner
1375 # should add a key/value pair to either the inputs or outputs map. The
1376 # indicated data copies will be carried out before/after pipeline execution,
1377 # just as if the corresponding arguments were provided to `gsutil cp`.
1378 #
1379 # For example: Given the following `PipelineParameter`, specified
1380 # in the `inputParameters` list:
1381 #
1382 # ```
1383 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1384 # ```
1385 #
1386 # where `disk` is defined in the `PipelineResources` object as:
1387 #
1388 # ```
1389 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1390 # ```
1391 #
1392 # We create a disk named `pd1`, mount it on the host VM, and map
1393 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1394 # runtime, an entry for `input_file` would be required in the inputs
1395 # map, such as:
1396 #
1397 # ```
1398 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1399 # ```
1400 #
1401 # This would generate the following gsutil call:
1402 #
1403 # ```
1404 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1405 # ```
1406 #
1407 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1408 # Docker container. Acceptable paths are:
1409 #
1410 # &lt;table&gt;
1411 # &lt;thead&gt;
1412 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1413 # &lt;/thead&gt;
1414 # &lt;tbody&gt;
1415 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1416 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1417 # &lt;/tbody&gt;
1418 # &lt;/table&gt;
1419 #
1420 # For outputs, the direction of the copy is reversed:
1421 #
1422 # ```
1423 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1424 # ```
1425 #
1426 # Acceptable paths are:
1427 #
1428 # &lt;table&gt;
1429 # &lt;thead&gt;
1430 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1431 # &lt;/thead&gt;
1432 # &lt;tbody&gt;
1433 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1434 # &lt;tr&gt;
1435 # &lt;td&gt;file&lt;/td&gt;
1436 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1437 # &lt;/tr&gt;
1438 # &lt;tr&gt;
1439 # &lt;td&gt;glob&lt;/td&gt;
1440 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1441 # &lt;/tbody&gt;
1442 # &lt;/table&gt;
1443 #
1444 # One restriction due to docker limitations, is that for outputs that are found
1445 # on the boot disk, the local path cannot be a glob and must be a file.
1446 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1447 # If `localCopy` is present, then this must be a Google Cloud Storage path
1448 # beginning with `gs://`.
1449 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1450 # as the key to the input and output maps in RunPipeline.
1451 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1452 &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.
1453 # `LocalCopy` indicates where on the VM the file should be. The value
1454 # given to this parameter (either at runtime or using `defaultValue`)
1455 # must be the remote path where the file should be.
1456 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1457 # located. Can be the name of one of the disks specified in the
1458 # Resources field, or &quot;boot&quot;, which represents the Docker
1459 # instance&#x27;s boot disk and has a mount point of `/`.
1460 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1461 # this input should be localized to and from, relative to the specified
1462 # disk&#x27;s mount point. For example: file.txt,
1463 },
1464 },
1465 ],
1466 &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 -04001467 # Required fields:
1468 #
1469 # *
1470 # minimumCpuCores
1471 #
1472 # *
1473 # minimumRamGb
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001474 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
Bu Sun Kim65020912020-05-20 12:08:20 -07001475 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1476 # must be true for both create time and run time. Cannot be true at run time
1477 # if false at create time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1479 # creation will restricted. If empty, any zone may be chosen.
1480 &quot;A String&quot;,
1481 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001482 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1483 # By specifying this parameter, you will download and install the following
1484 # third-party software onto your managed Compute Engine instances:
1485 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1486 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1487 # By specifying this parameter, you will download and install the following
1488 # third-party software onto your managed Compute Engine instances: NVIDIA®
1489 # Tesla® drivers and NVIDIA® CUDA toolkit.
1490 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1491 # available accelerator types.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001492 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -07001493 &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 -04001494 # feature that may go away. Defaults to false.
1495 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1496 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1497 # In order to use this, must be true for both create time and run time.
1498 # Cannot be true at run time if false at create time. If you need to ssh into
1499 # 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 -07001500 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001501 # only load docker images from Google Container Registry and not Docker Hub.
1502 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001503 # [configure access to Google services from internal
1504 # 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 -07001505 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001506 { # A Google Compute Engine disk resource specification.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001507 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1508 # parameters. Must be 1 - 63 characters.
1509 # The name &quot;boot&quot; is reserved for system use.
1510 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1511 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1512 # of the pipeline run, regardless of what this field is set to.
1513 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1514 # This field is not applicable for local SSD.
Bu Sun Kim65020912020-05-20 12:08:20 -07001515 &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 -04001516 # Specifies the path in the docker container where files on
1517 # this disk should be located. For example, if `mountPoint`
1518 # is `/mnt/disk`, and the parameter has `localPath`
1519 # `inputs/file.txt`, the docker container can access the data at
1520 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001521 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1522 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1523 # for more details.
1524 # Can only be set at create time.
1525 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1526 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1527 # and
1528 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1529 # for more details.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001530 },
1531 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001532 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001533 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001534 },
1535 ],
1536 }</pre>
1537</div>
1538
1539<div class="method">
1540 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1541 <pre>Retrieves the next page of results.
1542
1543Args:
1544 previous_request: The request for the previous page. (required)
1545 previous_response: The response from the request for the previous page. (required)
1546
1547Returns:
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001582 &quot;serviceAccount&quot;: { # A Google Cloud Service Account. # The Google Cloud Service Account that will be used to access data and
1583 # services. By default, the compute service account associated with
1584 # `projectId` is used.
1585 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. Defaults to `default`,
1586 # which uses the compute service account associated with the project.
1587 &quot;scopes&quot;: [ # List of scopes to be enabled for this service account on the VM.
1588 # The following scopes are automatically included:
1589 #
1590 # * https://www.googleapis.com/auth/compute
1591 # * https://www.googleapis.com/auth/devstorage.full_control
1592 # * https://www.googleapis.com/auth/genomics
1593 # * https://www.googleapis.com/auth/logging.write
1594 # * https://www.googleapis.com/auth/monitoring.write
1595 &quot;A String&quot;,
1596 ],
1597 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001598 &quot;inputs&quot;: { # Pipeline input arguments; keys are defined in the pipeline documentation.
1599 # All input parameters that do not have default values must be specified.
1600 # If parameters with defaults are specified here, the defaults will be
1601 # overridden.
1602 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001603 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001604 &quot;labels&quot;: { # Labels to apply to this pipeline run. Labels will also be applied to
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001605 # compute resources (VM, disks) created by this pipeline run. When listing
1606 # operations, operations can filtered by labels.
1607 # Label keys may not be empty; label values may be empty. Non-empty labels
1608 # must be 1-63 characters long, and comply with [RFC1035]
1609 # (https://www.ietf.org/rfc/rfc1035.txt).
1610 # Specifically, the name must be 1-63 characters long and match the regular
1611 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1612 # character must be a lowercase letter, and all following characters must be
1613 # a dash, lowercase letter, or digit, except the last character, which cannot
1614 # be a dash.
Bu Sun Kim65020912020-05-20 12:08:20 -07001615 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001616 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001617 &quot;logging&quot;: { # The logging options for the pipeline run. # Required. Logging options. Used by the service to communicate results
1618 # to the user.
1619 &quot;gcsPath&quot;: &quot;A String&quot;, # The location in Google Cloud Storage to which the pipeline logs
1620 # will be copied. Can be specified as a fully qualified directory
1621 # path, in which case logs will be output with a unique identifier
1622 # as the filename in that directory, or as a fully specified path,
1623 # which must end in `.log`, in which case that path will be
1624 # used, and the user must ensure that logs are not
1625 # overwritten. Stdout and stderr logs from the run are also
1626 # generated and output as `-stdout.log` and `-stderr.log`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001627 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001628 &quot;keepVmAliveOnFailureDuration&quot;: &quot;A String&quot;, # How long to keep the VM up after a failure (for example docker command
1629 # failed, copying input or output files failed, etc). While the VM is up, one
1630 # can ssh into the VM to debug. Default is 0; maximum allowed value is 1 day.
Bu Sun Kim65020912020-05-20 12:08:20 -07001631 &quot;resources&quot;: { # The system resources for the pipeline run. # Specifies resource requirements/overrides for the pipeline run.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001632 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
Bu Sun Kim65020912020-05-20 12:08:20 -07001633 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1634 # must be true for both create time and run time. Cannot be true at run time
1635 # if false at create time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001636 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1637 # creation will restricted. If empty, any zone may be chosen.
1638 &quot;A String&quot;,
1639 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001640 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1641 # By specifying this parameter, you will download and install the following
1642 # third-party software onto your managed Compute Engine instances:
1643 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1644 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1645 # By specifying this parameter, you will download and install the following
1646 # third-party software onto your managed Compute Engine instances: NVIDIA®
1647 # Tesla® drivers and NVIDIA® CUDA toolkit.
1648 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1649 # available accelerator types.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001650 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -07001651 &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 -04001652 # feature that may go away. Defaults to false.
1653 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1654 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1655 # In order to use this, must be true for both create time and run time.
1656 # Cannot be true at run time if false at create time. If you need to ssh into
1657 # 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 -07001658 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001659 # only load docker images from Google Container Registry and not Docker Hub.
1660 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001661 # [configure access to Google services from internal
1662 # 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 -07001663 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001664 { # A Google Compute Engine disk resource specification.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001665 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1666 # parameters. Must be 1 - 63 characters.
1667 # The name &quot;boot&quot; is reserved for system use.
1668 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1669 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1670 # of the pipeline run, regardless of what this field is set to.
1671 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
1672 # This field is not applicable for local SSD.
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 &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 -04001674 # Specifies the path in the docker container where files on
1675 # this disk should be located. For example, if `mountPoint`
1676 # is `/mnt/disk`, and the parameter has `localPath`
1677 # `inputs/file.txt`, the docker container can access the data at
1678 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001679 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
1680 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
1681 # for more details.
1682 # Can only be set at create time.
1683 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
1684 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
1685 # and
1686 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
1687 # for more details.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001688 },
1689 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001690 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001691 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001692 &quot;outputs&quot;: { # Pipeline output arguments; keys are defined in the pipeline
1693 # documentation. All output parameters of without default values
1694 # must be specified. If parameters with defaults are specified
1695 # here, the defaults will be overridden.
1696 &quot;a_key&quot;: &quot;A String&quot;,
1697 },
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 Kim4ed7d3f2020-05-27 12:20:54 -07001706 &quot;name&quot;: &quot;A String&quot;, # Required. A user specified pipeline name that does not have to be unique.
1707 # This name can be used for filtering Pipelines in ListPipelines.
1708 &quot;pipelineId&quot;: &quot;A String&quot;, # Unique pipeline id that is generated by the service when CreatePipeline
1709 # is called. Cannot be specified in the Pipeline used in the
1710 # CreatePipelineRequest, and will be populated in the response to
1711 # CreatePipeline and all subsequent Get and List calls. Indicates that the
1712 # service has registered this pipeline.
1713 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project in which to create the pipeline. The caller must have
1714 # WRITE access.
Bu Sun Kim65020912020-05-20 12:08:20 -07001715 &quot;outputParameters&quot;: [ # Output parameters of the pipeline.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001716 { # Parameters facilitate setting and delivering data into the
Bu Sun Kim65020912020-05-20 12:08:20 -07001717 # pipeline&#x27;s execution environment. They are defined at create time,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001718 # with optional defaults, and can be overridden at run time.
1719 #
1720 # If `localCopy` is unset, then the parameter specifies a string that
1721 # is passed as-is into the pipeline, as the value of the environment
1722 # variable with the given name. A default value can be optionally
1723 # specified at create time. The default can be overridden at run time
1724 # using the inputs map. If no default is given, a value must be
1725 # supplied at runtime.
1726 #
1727 # If `localCopy` is defined, then the parameter specifies a data
1728 # source or sink, both in Google Cloud Storage and on the Docker container
1729 # where the pipeline computation is run. The service account associated with
1730 # the Pipeline (by
Bu Sun Kim65020912020-05-20 12:08:20 -07001731 # default the project&#x27;s Compute Engine service account) must have access to the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001732 # Google Cloud Storage paths.
1733 #
1734 # At run time, the Google Cloud Storage paths can be overridden if a default
1735 # was provided at create time, or must be set otherwise. The pipeline runner
1736 # should add a key/value pair to either the inputs or outputs map. The
1737 # indicated data copies will be carried out before/after pipeline execution,
1738 # just as if the corresponding arguments were provided to `gsutil cp`.
1739 #
1740 # For example: Given the following `PipelineParameter`, specified
1741 # in the `inputParameters` list:
1742 #
1743 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001744 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001745 # ```
1746 #
1747 # where `disk` is defined in the `PipelineResources` object as:
1748 #
1749 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001751 # ```
1752 #
1753 # We create a disk named `pd1`, mount it on the host VM, and map
1754 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1755 # runtime, an entry for `input_file` would be required in the inputs
1756 # map, such as:
1757 #
1758 # ```
Bu Sun Kim65020912020-05-20 12:08:20 -07001759 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001760 # ```
1761 #
1762 # This would generate the following gsutil call:
1763 #
1764 # ```
1765 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1766 # ```
1767 #
1768 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1769 # Docker container. Acceptable paths are:
1770 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001771 # &lt;table&gt;
1772 # &lt;thead&gt;
1773 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1774 # &lt;/thead&gt;
1775 # &lt;tbody&gt;
1776 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1777 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1778 # &lt;/tbody&gt;
1779 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001780 #
1781 # For outputs, the direction of the copy is reversed:
1782 #
1783 # ```
1784 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1785 # ```
1786 #
1787 # Acceptable paths are:
1788 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001789 # &lt;table&gt;
1790 # &lt;thead&gt;
1791 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1792 # &lt;/thead&gt;
1793 # &lt;tbody&gt;
1794 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1795 # &lt;tr&gt;
1796 # &lt;td&gt;file&lt;/td&gt;
1797 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1798 # &lt;/tr&gt;
1799 # &lt;tr&gt;
1800 # &lt;td&gt;glob&lt;/td&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001801 # &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 -07001802 # &lt;/tbody&gt;
1803 # &lt;/table&gt;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001804 #
1805 # One restriction due to docker limitations, is that for outputs that are found
1806 # on the boot disk, the local path cannot be a glob and must be a file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001807 &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 -04001808 # If `localCopy` is present, then this must be a Google Cloud Storage path
1809 # beginning with `gs://`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001810 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1811 # as the key to the input and output maps in RunPipeline.
1812 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1813 &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 -04001814 # `LocalCopy` indicates where on the VM the file should be. The value
1815 # given to this parameter (either at runtime or using `defaultValue`)
1816 # must be the remote path where the file should be.
Bu Sun Kim65020912020-05-20 12:08:20 -07001817 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001818 # located. Can be the name of one of the disks specified in the
Bu Sun Kim65020912020-05-20 12:08:20 -07001819 # Resources field, or &quot;boot&quot;, which represents the Docker
1820 # instance&#x27;s boot disk and has a mount point of `/`.
1821 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1822 # this input should be localized to and from, relative to the specified
1823 # disk&#x27;s mount point. For example: file.txt,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001824 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001825 },
1826 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001827 &quot;docker&quot;: { # The Docker execuctor specification. # Specifies the docker run information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001828 &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 -04001829 # string will be executed within a bash shell.
1830 #
1831 # If the command exits with a non-zero exit code, output parameter
Bu Sun Kim65020912020-05-20 12:08:20 -07001832 # de-localization will be skipped and the pipeline operation&#x27;s
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001833 # `error` field will be populated.
1834 #
1835 # Maximum command string length is 16384.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001836 &quot;imageName&quot;: &quot;A String&quot;, # Required. Image name from either Docker Hub or Google Container Registry.
1837 # Users that run pipelines must have READ access to the image.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001838 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001839 &quot;description&quot;: &quot;A String&quot;, # User-specified description.
1840 &quot;inputParameters&quot;: [ # Input parameters of the pipeline.
1841 { # Parameters facilitate setting and delivering data into the
1842 # pipeline&#x27;s execution environment. They are defined at create time,
1843 # with optional defaults, and can be overridden at run time.
1844 #
1845 # If `localCopy` is unset, then the parameter specifies a string that
1846 # is passed as-is into the pipeline, as the value of the environment
1847 # variable with the given name. A default value can be optionally
1848 # specified at create time. The default can be overridden at run time
1849 # using the inputs map. If no default is given, a value must be
1850 # supplied at runtime.
1851 #
1852 # If `localCopy` is defined, then the parameter specifies a data
1853 # source or sink, both in Google Cloud Storage and on the Docker container
1854 # where the pipeline computation is run. The service account associated with
1855 # the Pipeline (by
1856 # default the project&#x27;s Compute Engine service account) must have access to the
1857 # Google Cloud Storage paths.
1858 #
1859 # At run time, the Google Cloud Storage paths can be overridden if a default
1860 # was provided at create time, or must be set otherwise. The pipeline runner
1861 # should add a key/value pair to either the inputs or outputs map. The
1862 # indicated data copies will be carried out before/after pipeline execution,
1863 # just as if the corresponding arguments were provided to `gsutil cp`.
1864 #
1865 # For example: Given the following `PipelineParameter`, specified
1866 # in the `inputParameters` list:
1867 #
1868 # ```
1869 # {name: &quot;input_file&quot;, localCopy: {path: &quot;file.txt&quot;, disk: &quot;pd1&quot;}}
1870 # ```
1871 #
1872 # where `disk` is defined in the `PipelineResources` object as:
1873 #
1874 # ```
1875 # {name: &quot;pd1&quot;, mountPoint: &quot;/mnt/disk/&quot;}
1876 # ```
1877 #
1878 # We create a disk named `pd1`, mount it on the host VM, and map
1879 # `/mnt/pd1` to `/mnt/disk` in the docker container. At
1880 # runtime, an entry for `input_file` would be required in the inputs
1881 # map, such as:
1882 #
1883 # ```
1884 # inputs[&quot;input_file&quot;] = &quot;gs://my-bucket/bar.txt&quot;
1885 # ```
1886 #
1887 # This would generate the following gsutil call:
1888 #
1889 # ```
1890 # gsutil cp gs://my-bucket/bar.txt /mnt/pd1/file.txt
1891 # ```
1892 #
1893 # The file `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the
1894 # Docker container. Acceptable paths are:
1895 #
1896 # &lt;table&gt;
1897 # &lt;thead&gt;
1898 # &lt;tr&gt;&lt;th&gt;Google Cloud storage path&lt;/th&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;/tr&gt;
1899 # &lt;/thead&gt;
1900 # &lt;tbody&gt;
1901 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1902 # &lt;tr&gt;&lt;td&gt;glob&lt;/td&gt;&lt;td&gt;directory&lt;/td&gt;&lt;/tr&gt;
1903 # &lt;/tbody&gt;
1904 # &lt;/table&gt;
1905 #
1906 # For outputs, the direction of the copy is reversed:
1907 #
1908 # ```
1909 # gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt
1910 # ```
1911 #
1912 # Acceptable paths are:
1913 #
1914 # &lt;table&gt;
1915 # &lt;thead&gt;
1916 # &lt;tr&gt;&lt;th&gt;Local path&lt;/th&gt;&lt;th&gt;Google Cloud Storage path&lt;/th&gt;&lt;/tr&gt;
1917 # &lt;/thead&gt;
1918 # &lt;tbody&gt;
1919 # &lt;tr&gt;&lt;td&gt;file&lt;/td&gt;&lt;td&gt;file&lt;/td&gt;&lt;/tr&gt;
1920 # &lt;tr&gt;
1921 # &lt;td&gt;file&lt;/td&gt;
1922 # &lt;td&gt;directory - directory must already exist&lt;/td&gt;
1923 # &lt;/tr&gt;
1924 # &lt;tr&gt;
1925 # &lt;td&gt;glob&lt;/td&gt;
1926 # &lt;td&gt;directory - directory will be created if it doesn&#x27;t exist&lt;/td&gt;&lt;/tr&gt;
1927 # &lt;/tbody&gt;
1928 # &lt;/table&gt;
1929 #
1930 # One restriction due to docker limitations, is that for outputs that are found
1931 # on the boot disk, the local path cannot be a glob and must be a file.
1932 &quot;defaultValue&quot;: &quot;A String&quot;, # The default value for this parameter. Can be overridden at runtime.
1933 # If `localCopy` is present, then this must be a Google Cloud Storage path
1934 # beginning with `gs://`.
1935 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the parameter - the pipeline runner uses this string
1936 # as the key to the input and output maps in RunPipeline.
1937 &quot;description&quot;: &quot;A String&quot;, # Human-readable description.
1938 &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.
1939 # `LocalCopy` indicates where on the VM the file should be. The value
1940 # given to this parameter (either at runtime or using `defaultValue`)
1941 # must be the remote path where the file should be.
1942 &quot;disk&quot;: &quot;A String&quot;, # Required. The name of the disk where this parameter is
1943 # located. Can be the name of one of the disks specified in the
1944 # Resources field, or &quot;boot&quot;, which represents the Docker
1945 # instance&#x27;s boot disk and has a mount point of `/`.
1946 &quot;path&quot;: &quot;A String&quot;, # Required. The path within the user&#x27;s docker container where
1947 # this input should be localized to and from, relative to the specified
1948 # disk&#x27;s mount point. For example: file.txt,
1949 },
1950 },
1951 ],
1952 &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 -04001953 # Required fields:
1954 #
1955 # *
1956 # minimumCpuCores
1957 #
1958 # *
1959 # minimumRamGb
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001960 &quot;minimumRamGb&quot;: 3.14, # The minimum amount of RAM to use. Defaults to 3.75 (GB)
Bu Sun Kim65020912020-05-20 12:08:20 -07001961 &quot;preemptible&quot;: True or False, # Whether to use preemptible VMs. Defaults to `false`. In order to use this,
1962 # must be true for both create time and run time. Cannot be true at run time
1963 # if false at create time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001964 &quot;zones&quot;: [ # List of Google Compute Engine availability zones to which resource
1965 # creation will restricted. If empty, any zone may be chosen.
1966 &quot;A String&quot;,
1967 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001968 &quot;acceleratorCount&quot;: &quot;A String&quot;, # Optional. The number of accelerators of the specified type to attach.
1969 # By specifying this parameter, you will download and install the following
1970 # third-party software onto your managed Compute Engine instances:
1971 # NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
1972 &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The Compute Engine defined accelerator type.
1973 # By specifying this parameter, you will download and install the following
1974 # third-party software onto your managed Compute Engine instances: NVIDIA®
1975 # Tesla® drivers and NVIDIA® CUDA toolkit.
1976 # Please see https://cloud.google.com/compute/docs/gpus/ for a list of
1977 # available accelerator types.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001978 &quot;minimumCpuCores&quot;: 42, # The minimum number of cores to use. Defaults to 1.
Bu Sun Kim65020912020-05-20 12:08:20 -07001979 &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 -04001980 # feature that may go away. Defaults to false.
1981 # Corresponds to `--no_address` flag for [gcloud compute instances create]
1982 # (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create).
1983 # In order to use this, must be true for both create time and run time.
1984 # Cannot be true at run time if false at create time. If you need to ssh into
1985 # 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 -07001986 # the private VM&#x27;s Internal IP. If noAddress is set, this pipeline run may
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001987 # only load docker images from Google Container Registry and not Docker Hub.
1988 # Before using this, you must
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001989 # [configure access to Google services from internal
1990 # 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 -07001991 &quot;disks&quot;: [ # Disks to attach.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001992 { # A Google Compute Engine disk resource specification.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001993 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the disk that can be used in the pipeline
1994 # parameters. Must be 1 - 63 characters.
1995 # The name &quot;boot&quot; is reserved for system use.
1996 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the disk to create.
1997 &quot;autoDelete&quot;: True or False, # Deprecated. Disks created by the Pipelines API will be deleted at the end
1998 # of the pipeline run, regardless of what this field is set to.
1999 &quot;sizeGb&quot;: 42, # The size of the disk. Defaults to 500 (GB).
2000 # This field is not applicable for local SSD.
Bu Sun Kim65020912020-05-20 12:08:20 -07002001 &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 -04002002 # Specifies the path in the docker container where files on
2003 # this disk should be located. For example, if `mountPoint`
2004 # is `/mnt/disk`, and the parameter has `localPath`
2005 # `inputs/file.txt`, the docker container can access the data at
2006 # `/mnt/disk/inputs/file.txt`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002007 &quot;readOnly&quot;: True or False, # Specifies how a sourced-base persistent disk will be mounted. See
2008 # https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances
2009 # for more details.
2010 # Can only be set at create time.
2011 &quot;source&quot;: &quot;A String&quot;, # The full or partial URL of the persistent disk to attach. See
2012 # https://cloud.google.com/compute/docs/reference/latest/instances#resource
2013 # and
2014 # https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots
2015 # for more details.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002016 },
2017 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002018 &quot;bootDiskSizeGb&quot;: 42, # The size of the boot disk. Defaults to 10 (GB).
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002019 },
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;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`
2034 &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 -07002035 # different programming environments, including REST APIs and RPC APIs. It is
2036 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2037 # three pieces of data: error code, error message, and error details.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002038 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002039 # You can find out more about this error model and how to work with it in the
2040 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002041 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -07002042 &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 -04002043 # user-facing error message should be localized and sent in the
2044 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07002045 &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 -07002046 # message types for APIs to use.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002047 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002048 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002049 },
2050 ],
2051 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002052 &quot;metadata&quot;: { # An OperationMetadata or Metadata object. This will always be returned with the Operation.
2053 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002054 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002055 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
2056 # If `true`, the operation is completed, and either `error` or `response` is
2057 # available.
2058 &quot;response&quot;: { # An Empty object.
2059 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2060 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002061 }</pre>
2062</div>
2063
2064<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002065 <code class="details" id="setOperationStatus">setOperationStatus(body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002066 <pre>Sets status of a given operation. Any new timestamps (as determined by
2067description) are appended to TimestampEvents. Should only be called by VMs
2068created by the Pipelines Service and not by end users.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002069
2070Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002071 body: object, The request body.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002072 The object takes the form of:
2073
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002074{ # Request to set operation status. Should only be used by VMs
2075 # created by the Pipelines Service and not by end users.
Bu Sun Kim65020912020-05-20 12:08:20 -07002076 &quot;errorMessage&quot;: &quot;A String&quot;,
2077 &quot;validationToken&quot;: &quot;A String&quot;,
2078 &quot;errorCode&quot;: &quot;A String&quot;,
2079 &quot;timestampEvents&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002080 { # Stores the list of events and times they occured for major events in job
2081 # execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002082 &quot;timestamp&quot;: &quot;A String&quot;, # The time this event occured.
2083 &quot;description&quot;: &quot;A String&quot;, # String indicating the type of event
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002084 },
2085 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002086 &quot;operationId&quot;: &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002087 }
2088
2089 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002090 Allowed values
2091 1 - v1 error format
2092 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002093
2094Returns:
2095 An object of the form:
2096
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002097 { # A generic empty message that you can re-use to avoid defining duplicated
2098 # empty messages in your APIs. A typical example is to use it as the request
2099 # or the response type of an API method. For instance:
2100 #
2101 # service Foo {
2102 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
2103 # }
2104 #
2105 # The JSON representation for `Empty` is empty JSON object `{}`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07002106 }</pre>
2107</div>
2108
2109</body></html>