blob: a52a7565fd771829e1e86e6db8f138972c949c23 [file] [log] [blame]
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="cloudbuild_v1.html">Cloud Build API</a> . <a href="cloudbuild_v1.projects.html">projects</a> . <a href="cloudbuild_v1.projects.builds.html">builds</a></h1>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="#cancel">cancel(projectId, id, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Cancels a build in progress.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(projectId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070082<p class="firstline">Starts a build with the specified configuration.</p>
83<p class="toc_element">
84 <code><a href="#get">get(projectId, id, x__xgafv=None)</a></code></p>
85<p class="firstline">Returns information about a previously requested build.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(projectId, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070088<p class="firstline">Lists previously requested builds.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#retry">retry(projectId, id, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Creates a new build based on the specified build.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070095<h3>Method Details</h3>
96<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097 <code class="details" id="cancel">cancel(projectId, id, body=None, x__xgafv=None)</code>
98 <pre>Cancels a build in progress.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070099
100Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 projectId: string, Required. ID of the project. (required)
102 id: string, Required. ID of the build. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700104 The object takes the form of:
105
106{ # Request to cancel an ongoing build.
107 }
108
109 x__xgafv: string, V1 error format.
110 Allowed values
111 1 - v1 error format
112 2 - v2 error format
113
114Returns:
115 An object of the form:
116
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 { # A build resource in the Cloud Build API.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700118 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 # At a high level, a `Build` describes where to find source code, how to build
120 # it (for example, the builder image to run on the source), and where to store
121 # the built artifacts.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700122 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 # Fields can include the following variables, which will be expanded when the
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700124 # build is created:
125 #
126 # - $PROJECT_ID: the project ID of the build.
127 # - $BUILD_ID: the autogenerated ID of the build.
128 # - $REPO_NAME: the source repository name specified by RepoSource.
129 # - $BRANCH_NAME: the branch name specified by RepoSource.
130 # - $TAG_NAME: the tag name specified by RepoSource.
131 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
132 # resolved from the specified branch or tag.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700134 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
135 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
136 &quot;a_key&quot;: &quot;A String&quot;,
137 },
138 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
139 # are:
140 #
141 # * BUILD: time to execute all build steps
142 # * PUSH: time to push all specified images.
143 # * FETCHSOURCE: time to fetch source.
144 #
145 # If the build does not specify source or images,
146 # these keys will not be included.
147 &quot;a_key&quot;: { # Start and end times for a build execution phase.
148 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
149 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
150 },
151 },
152 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
153 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
154 # some source was used for this build.
155 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
156 # the original source integrity was maintained in the build. Note that
157 # `FileHashes` will only be populated if `BuildOptions` has requested a
158 # `SourceProvenanceHash`.
159 #
160 # The keys to this map are file paths used as build source and the values
161 # contain the hash values for those files.
162 #
163 # If the build source came in a single package such as a gzipped tarfile
164 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
165 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
166 # SourceProvenance messages to verify integrity of source input to the build.
167 &quot;fileHash&quot;: [ # Collection of file hashes.
168 { # Container message for hash values.
169 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
170 &quot;value&quot;: &quot;A String&quot;, # The hash value.
171 },
172 ],
173 },
174 },
175 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any
176 # revisions resolved.
177 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
178 #
179 # The syntax of the regular expressions accepted is the syntax accepted by
180 # RE2 and described at https://github.com/google/re2/wiki/Syntax
181 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
182 #
183 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
184 # absolute path, this value is ignored for that step&#x27;s execution.
185 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
186 #
187 # The syntax of the regular expressions accepted is the syntax accepted by
188 # RE2 and described at https://github.com/google/re2/wiki/Syntax
189 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
190 # project ID requesting the build is assumed.
191 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
192 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
193 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
194 # Should only be used with RunBuildTrigger
195 &quot;a_key&quot;: &quot;A String&quot;,
196 },
197 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
198 # regex.
199 },
200 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any
201 # generations resolved.
202 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
203 #
204 # This object must be a gzipped archive file (`.tar.gz`) containing source to
205 # build.
206 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
207 # omitted, the latest generation will be used.
208 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
209 # [Bucket Name
210 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
211 },
212 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700214 # steps.
215 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700217 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 # results field.
220 #
221 # If any of the images fail to be pushed, the build status is marked
222 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
226 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
227 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer
Dan O'Mearadd494642020-05-01 07:42:23 -0700228 # than this value, the build will expire and the build status will be
229 # `EXPIRED`.
230 #
231 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233 #
234 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 # build&#x27;s execution.
236 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source
238 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700240 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 # The syntax of the regular expressions accepted is the syntax accepted by
242 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700243 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
244 #
245 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
246 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 # The syntax of the regular expressions accepted is the syntax accepted by
250 # RE2 and described at https://github.com/google/re2/wiki/Syntax
251 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
252 # project ID requesting the build is assumed.
253 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700254 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
255 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
256 # Should only be used with RunBuildTrigger
257 &quot;a_key&quot;: &quot;A String&quot;,
258 },
259 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
260 # regex.
261 },
262 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
263 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
264 #
265 # This object must be a gzipped archive file (`.tar.gz`) containing source to
266 # build.
267 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
268 # omitted, the latest generation will be used.
269 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
270 # [Bucket Name
271 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700272 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700273 },
274 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700275 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
276 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -0700278 # build steps in this build. If a variable is defined in both globally and in
279 # a build step, the variable will use the build step value.
280 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
282 # being given the value &quot;VALUE&quot;.
283 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700284 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700285 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
286 # Format: projects/{project}/workerPools/{workerPool}
287 #
288 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
290 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
292 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700293 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
295 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -0700296 # build utilities. Also note that this is the minimum disk size that will be
297 # allocated for the build -- the build may run with a larger disk than
298 # requested. At present, the maximum disk size is 1000GB; builds that request
299 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
301 &quot;A String&quot;,
302 ],
303 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
304 # Key Management Service crypto key. These values must be specified in the
305 # build&#x27;s `Secret`. These variables will be available to all build steps
306 # in this build.
307 &quot;A String&quot;,
308 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700309 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700311 #
312 # Each volume is created as an empty volume prior to starting the build
313 # process. Upon completion of the build, volumes and their contents are
314 # discarded. Global volume names and paths cannot conflict with the volumes
315 # defined a build step.
316 #
317 # Using a global volume in a build with only one step is not valid as
318 # it is indicative of a build request with an incorrect configuration.
319 { # Volume describes a Docker container volume which is mounted into build steps
320 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700322 #
323 # Paths must be absolute and cannot conflict with other volume paths on the
324 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -0700325 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700326 #
327 # Volume names must be unique per build step and must be valid names for
328 # Docker volumes. Each named volume must be used by at least two build steps.
329 },
330 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700331 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
333 # granularity. If this amount of time elapses, work on the build will cease
334 # and the build status will be `TIMEOUT`.
335 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700336 # `timeout` starts ticking from `startTime`.
337 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 # Default time is ten minutes.
339 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
340 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
341 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
342 # successful completion of all build steps.
343 # successful completion of all build steps.
344 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful # A list of objects to be uploaded to Cloud Storage upon successful
345 # completion of all build steps.
346 #
347 # Files in the workspace matching specified paths globs will be uploaded to
348 # the specified Cloud Storage location using the builder service account&#x27;s
349 # credentials.
350 #
351 # The location and generation of the uploaded objects will be stored in the
352 # Build resource&#x27;s results field.
353 #
354 # If any objects fail to be pushed, the build is marked FAILURE.
355 # completion of all build steps.
356 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
357 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
358 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
359 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
361 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
362 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
363 #
364 # Files in the workspace matching any path pattern will be uploaded to
365 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700366 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
367 &quot;A String&quot;,
368 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 },
370 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
371 # steps.
372 #
373 # The images will be pushed using the builder service account&#x27;s credentials.
374 #
375 # The digests of the pushed images will be stored in the Build resource&#x27;s
376 # results field.
377 #
378 # If any of the images fail to be pushed, the build is marked FAILURE.
379 &quot;A String&quot;,
380 ],
381 },
382 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
383 { # Pairs a set of secret environment variables containing encrypted
384 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700385 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
387 #
388 # Secret environment variables must be unique across all of a build&#x27;s
389 # secrets, and must be used by at least one build step. Values can be at most
390 # 64 KB in size. There can be at most 100 secret values across all of a
391 # build&#x27;s secrets.
392 &quot;a_key&quot;: &quot;A String&quot;,
393 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 },
395 ],
396 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700397 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
398 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
400 # indices.
401 &quot;A String&quot;,
402 ],
403 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
404 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
405 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
406 },
407 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
408 # corresponding to build step indices.
409 #
410 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
411 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
412 # Only the first 4KB of data is stored.
413 &quot;A String&quot;,
414 ],
415 &quot;images&quot;: [ # Container images that were built as a part of the build.
416 { # An image built by the pipeline.
417 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
418 # presented to `docker push`.
419 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
420 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
421 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
422 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
423 },
424 },
425 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700426 },
427 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
428 # [Bucket Name
429 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
430 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
431 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
432 { # A step in the build pipeline.
433 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
434 # If unset, the image&#x27;s default entrypoint is used.
435 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
436 #
437 # Each volume is created as an empty volume prior to execution of the
438 # build step. Upon completion of the build, volumes and their contents are
439 # discarded.
440 #
441 # Using a named volume in only one step is not valid as it is indicative
442 # of a build request with an incorrect configuration.
443 { # Volume describes a Docker container volume which is mounted into build steps
444 # in order to persist files across build step execution.
445 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
446 #
447 # Paths must be absolute and cannot conflict with other volume paths on the
448 # same build step or with certain reserved volume paths.
449 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
450 #
451 # Volume names must be unique per build step and must be valid names for
452 # Docker volumes. Each named volume must be used by at least two build steps.
453 },
454 ],
455 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
456 #
457 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
458 # are used as arguments to that entrypoint. If the image does not define
459 # an entrypoint, the first element in args is used as the entrypoint,
460 # and the remainder will be used as arguments.
461 &quot;A String&quot;,
462 ],
463 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
464 # only updated on build completion; step status is not updated in real-time
465 # as the build progresses.
466 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
467 # time limit and will be allowed to continue to run until either it completes
468 # or the build itself times out.
469 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
470 # builder image only.
471 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
472 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
473 },
474 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
475 # build step.
476 #
477 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
478 # will be run directly. If not, the host will attempt to pull the image
479 # first, using the builder service account&#x27;s credentials if necessary.
480 #
481 # The Docker daemon&#x27;s cache will already have the latest versions of all of
482 # the officially supported build steps
483 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
484 # The Docker daemon will also have cached many of the layers for some popular
485 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
486 # attempt to use them.
487 #
488 # If you built an image in a previous build step, it will be stored in the
489 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
490 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -0700491 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
492 # Management Service crypto key. These values must be specified in the
493 # build&#x27;s `Secret`.
494 &quot;A String&quot;,
495 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700496 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
497 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
499 #
500 # If this value is a relative path, it is relative to the build&#x27;s working
501 # directory. If this value is absolute, it may be outside the build&#x27;s working
502 # directory, in which case the contents of the path may not be persisted
503 # across build step executions, unless a `volume` for that path is specified.
504 #
505 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
506 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
507 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700508 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
509 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
510 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
511 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700512 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
513 # This build step will not start until all the build steps in `wait_for`
514 # have completed successfully. If `wait_for` is empty, this build step will
515 # start when all previous build steps in the `Build.Steps` list have
516 # completed successfully.
517 &quot;A String&quot;,
518 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700519 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
520 #
521 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
522 # being given the value &quot;VALUE&quot;.
523 &quot;A String&quot;,
524 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 },
526 ],
527 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
528 # was triggered automatically.
529 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
530 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
531 &quot;A String&quot;,
532 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700533 }</pre>
534</div>
535
536<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700537 <code class="details" id="create">create(projectId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700538 <pre>Starts a build with the specified configuration.
539
540This method returns a long-running `Operation`, which includes the build
541ID. Pass the build ID to `GetBuild` to determine the build status (such as
542`SUCCESS` or `FAILURE`).
543
544Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700545 projectId: string, Required. ID of the project. (required)
546 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700547 The object takes the form of:
548
549{ # A build resource in the Cloud Build API.
550 #
551 # At a high level, a `Build` describes where to find source code, how to build
552 # it (for example, the builder image to run on the source), and where to store
553 # the built artifacts.
554 #
555 # Fields can include the following variables, which will be expanded when the
556 # build is created:
557 #
558 # - $PROJECT_ID: the project ID of the build.
559 # - $BUILD_ID: the autogenerated ID of the build.
560 # - $REPO_NAME: the source repository name specified by RepoSource.
561 # - $BRANCH_NAME: the branch name specified by RepoSource.
562 # - $TAG_NAME: the tag name specified by RepoSource.
563 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
564 # resolved from the specified branch or tag.
565 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700566 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
567 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
568 &quot;a_key&quot;: &quot;A String&quot;,
569 },
570 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
571 # are:
572 #
573 # * BUILD: time to execute all build steps
574 # * PUSH: time to push all specified images.
575 # * FETCHSOURCE: time to fetch source.
576 #
577 # If the build does not specify source or images,
578 # these keys will not be included.
579 &quot;a_key&quot;: { # Start and end times for a build execution phase.
580 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
581 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
582 },
583 },
584 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
585 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
586 # some source was used for this build.
587 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
588 # the original source integrity was maintained in the build. Note that
589 # `FileHashes` will only be populated if `BuildOptions` has requested a
590 # `SourceProvenanceHash`.
591 #
592 # The keys to this map are file paths used as build source and the values
593 # contain the hash values for those files.
594 #
595 # If the build source came in a single package such as a gzipped tarfile
596 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
597 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
598 # SourceProvenance messages to verify integrity of source input to the build.
599 &quot;fileHash&quot;: [ # Collection of file hashes.
600 { # Container message for hash values.
601 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
602 &quot;value&quot;: &quot;A String&quot;, # The hash value.
603 },
604 ],
605 },
606 },
607 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any
608 # revisions resolved.
609 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
610 #
611 # The syntax of the regular expressions accepted is the syntax accepted by
612 # RE2 and described at https://github.com/google/re2/wiki/Syntax
613 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
614 #
615 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
616 # absolute path, this value is ignored for that step&#x27;s execution.
617 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
618 #
619 # The syntax of the regular expressions accepted is the syntax accepted by
620 # RE2 and described at https://github.com/google/re2/wiki/Syntax
621 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
622 # project ID requesting the build is assumed.
623 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
624 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
625 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
626 # Should only be used with RunBuildTrigger
627 &quot;a_key&quot;: &quot;A String&quot;,
628 },
629 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
630 # regex.
631 },
632 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any
633 # generations resolved.
634 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
635 #
636 # This object must be a gzipped archive file (`.tar.gz`) containing source to
637 # build.
638 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
639 # omitted, the latest generation will be used.
640 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
641 # [Bucket Name
642 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
643 },
644 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 # steps.
647 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700648 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700649 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 # results field.
652 #
653 # If any of the images fail to be pushed, the build status is marked
654 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700655 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700657 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
658 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
659 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer
Dan O'Mearadd494642020-05-01 07:42:23 -0700660 # than this value, the build will expire and the build status will be
661 # `EXPIRED`.
662 #
663 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700664 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665 #
666 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 # build&#x27;s execution.
668 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source
670 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700672 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 # The syntax of the regular expressions accepted is the syntax accepted by
674 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700675 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
676 #
677 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
678 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700680 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700681 # The syntax of the regular expressions accepted is the syntax accepted by
682 # RE2 and described at https://github.com/google/re2/wiki/Syntax
683 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
684 # project ID requesting the build is assumed.
685 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700686 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
687 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
688 # Should only be used with RunBuildTrigger
689 &quot;a_key&quot;: &quot;A String&quot;,
690 },
691 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
692 # regex.
693 },
694 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
695 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
696 #
697 # This object must be a gzipped archive file (`.tar.gz`) containing source to
698 # build.
699 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
700 # omitted, the latest generation will be used.
701 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
702 # [Bucket Name
703 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700704 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700705 },
706 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700707 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
708 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700709 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -0700710 # build steps in this build. If a variable is defined in both globally and in
711 # a build step, the variable will use the build step value.
712 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700713 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
714 # being given the value &quot;VALUE&quot;.
715 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700716 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700717 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
718 # Format: projects/{project}/workerPools/{workerPool}
719 #
720 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
722 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
724 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700725 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700726 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
727 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -0700728 # build utilities. Also note that this is the minimum disk size that will be
729 # allocated for the build -- the build may run with a larger disk than
730 # requested. At present, the maximum disk size is 1000GB; builds that request
731 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700732 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
733 &quot;A String&quot;,
734 ],
735 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
736 # Key Management Service crypto key. These values must be specified in the
737 # build&#x27;s `Secret`. These variables will be available to all build steps
738 # in this build.
739 &quot;A String&quot;,
740 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700741 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700742 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700743 #
744 # Each volume is created as an empty volume prior to starting the build
745 # process. Upon completion of the build, volumes and their contents are
746 # discarded. Global volume names and paths cannot conflict with the volumes
747 # defined a build step.
748 #
749 # Using a global volume in a build with only one step is not valid as
750 # it is indicative of a build request with an incorrect configuration.
751 { # Volume describes a Docker container volume which is mounted into build steps
752 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700753 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700754 #
755 # Paths must be absolute and cannot conflict with other volume paths on the
756 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700758 #
759 # Volume names must be unique per build step and must be valid names for
760 # Docker volumes. Each named volume must be used by at least two build steps.
761 },
762 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700763 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
765 # granularity. If this amount of time elapses, work on the build will cease
766 # and the build status will be `TIMEOUT`.
767 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700768 # `timeout` starts ticking from `startTime`.
769 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 # Default time is ten minutes.
771 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
772 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
773 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
774 # successful completion of all build steps.
775 # successful completion of all build steps.
776 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful # A list of objects to be uploaded to Cloud Storage upon successful
777 # completion of all build steps.
778 #
779 # Files in the workspace matching specified paths globs will be uploaded to
780 # the specified Cloud Storage location using the builder service account&#x27;s
781 # credentials.
782 #
783 # The location and generation of the uploaded objects will be stored in the
784 # Build resource&#x27;s results field.
785 #
786 # If any objects fail to be pushed, the build is marked FAILURE.
787 # completion of all build steps.
788 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
789 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
790 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
791 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700792 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
793 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
794 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
795 #
796 # Files in the workspace matching any path pattern will be uploaded to
797 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700798 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
799 &quot;A String&quot;,
800 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700801 },
802 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
803 # steps.
804 #
805 # The images will be pushed using the builder service account&#x27;s credentials.
806 #
807 # The digests of the pushed images will be stored in the Build resource&#x27;s
808 # results field.
809 #
810 # If any of the images fail to be pushed, the build is marked FAILURE.
811 &quot;A String&quot;,
812 ],
813 },
814 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
815 { # Pairs a set of secret environment variables containing encrypted
816 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700817 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
819 #
820 # Secret environment variables must be unique across all of a build&#x27;s
821 # secrets, and must be used by at least one build step. Values can be at most
822 # 64 KB in size. There can be at most 100 secret values across all of a
823 # build&#x27;s secrets.
824 &quot;a_key&quot;: &quot;A String&quot;,
825 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700826 },
827 ],
828 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700829 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
830 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700831 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
832 # indices.
833 &quot;A String&quot;,
834 ],
835 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
836 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
837 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
838 },
839 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
840 # corresponding to build step indices.
841 #
842 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
843 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
844 # Only the first 4KB of data is stored.
845 &quot;A String&quot;,
846 ],
847 &quot;images&quot;: [ # Container images that were built as a part of the build.
848 { # An image built by the pipeline.
849 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
850 # presented to `docker push`.
851 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
852 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
853 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
854 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
855 },
856 },
857 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700858 },
859 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
860 # [Bucket Name
861 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
862 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
863 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
864 { # A step in the build pipeline.
865 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
866 # If unset, the image&#x27;s default entrypoint is used.
867 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
868 #
869 # Each volume is created as an empty volume prior to execution of the
870 # build step. Upon completion of the build, volumes and their contents are
871 # discarded.
872 #
873 # Using a named volume in only one step is not valid as it is indicative
874 # of a build request with an incorrect configuration.
875 { # Volume describes a Docker container volume which is mounted into build steps
876 # in order to persist files across build step execution.
877 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
878 #
879 # Paths must be absolute and cannot conflict with other volume paths on the
880 # same build step or with certain reserved volume paths.
881 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
882 #
883 # Volume names must be unique per build step and must be valid names for
884 # Docker volumes. Each named volume must be used by at least two build steps.
885 },
886 ],
887 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
888 #
889 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
890 # are used as arguments to that entrypoint. If the image does not define
891 # an entrypoint, the first element in args is used as the entrypoint,
892 # and the remainder will be used as arguments.
893 &quot;A String&quot;,
894 ],
895 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
896 # only updated on build completion; step status is not updated in real-time
897 # as the build progresses.
898 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
899 # time limit and will be allowed to continue to run until either it completes
900 # or the build itself times out.
901 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
902 # builder image only.
903 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
904 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
905 },
906 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
907 # build step.
908 #
909 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
910 # will be run directly. If not, the host will attempt to pull the image
911 # first, using the builder service account&#x27;s credentials if necessary.
912 #
913 # The Docker daemon&#x27;s cache will already have the latest versions of all of
914 # the officially supported build steps
915 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
916 # The Docker daemon will also have cached many of the layers for some popular
917 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
918 # attempt to use them.
919 #
920 # If you built an image in a previous build step, it will be stored in the
921 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
922 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
924 # Management Service crypto key. These values must be specified in the
925 # build&#x27;s `Secret`.
926 &quot;A String&quot;,
927 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700928 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
929 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
931 #
932 # If this value is a relative path, it is relative to the build&#x27;s working
933 # directory. If this value is absolute, it may be outside the build&#x27;s working
934 # directory, in which case the contents of the path may not be persisted
935 # across build step executions, unless a `volume` for that path is specified.
936 #
937 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
938 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
939 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700940 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
941 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
942 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
943 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
945 # This build step will not start until all the build steps in `wait_for`
946 # have completed successfully. If `wait_for` is empty, this build step will
947 # start when all previous build steps in the `Build.Steps` list have
948 # completed successfully.
949 &quot;A String&quot;,
950 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700951 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
952 #
953 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
954 # being given the value &quot;VALUE&quot;.
955 &quot;A String&quot;,
956 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700957 },
958 ],
959 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
960 # was triggered automatically.
961 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
962 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
963 &quot;A String&quot;,
964 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700965}
966
967 x__xgafv: string, V1 error format.
968 Allowed values
969 1 - v1 error format
970 2 - v2 error format
971
972Returns:
973 An object of the form:
974
975 { # This resource represents a long-running operation that is the result of a
976 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700977 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
978 # originally returns it. If you use the default HTTP mapping, the
979 # `name` should be a resource name ending with `operations/{unique_id}`.
980 &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.
981 # different programming environments, including REST APIs and RPC APIs. It is
982 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
983 # three pieces of data: error code, error message, and error details.
984 #
985 # You can find out more about this error model and how to work with it in the
986 # [API Design Guide](https://cloud.google.com/apis/design/errors).
987 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
988 # user-facing error message should be localized and sent in the
989 # google.rpc.Status.details field, or localized by the client.
990 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
991 # message types for APIs to use.
992 {
993 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
994 },
995 ],
996 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
997 },
998 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
999 # contains progress information and common metadata such as create time.
1000 # Some services might not provide such metadata. Any method that returns a
1001 # long-running operation should document the metadata type, if any.
1002 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1003 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001004 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001005 # If `true`, the operation is completed, and either `error` or `response` is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001006 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001007 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001008 # method returns no data on success, such as `Delete`, the response is
1009 # `google.protobuf.Empty`. If the original method is standard
1010 # `Get`/`Create`/`Update`, the response should be the resource. For other
1011 # methods, the response should have the type `XxxResponse`, where `Xxx`
1012 # is the original method name. For example, if the original method name
1013 # is `TakeSnapshot()`, the inferred response type is
1014 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001015 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001016 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001017 }</pre>
1018</div>
1019
1020<div class="method">
1021 <code class="details" id="get">get(projectId, id, x__xgafv=None)</code>
1022 <pre>Returns information about a previously requested build.
1023
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001024The `Build` that is returned includes its status (such as `SUCCESS`,
1025`FAILURE`, or `WORKING`), and timing information.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001026
1027Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001028 projectId: string, Required. ID of the project. (required)
1029 id: string, Required. ID of the build. (required)
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001030 x__xgafv: string, V1 error format.
1031 Allowed values
1032 1 - v1 error format
1033 2 - v2 error format
1034
1035Returns:
1036 An object of the form:
1037
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001038 { # A build resource in the Cloud Build API.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001039 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040 # At a high level, a `Build` describes where to find source code, how to build
1041 # it (for example, the builder image to run on the source), and where to store
1042 # the built artifacts.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001043 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001044 # Fields can include the following variables, which will be expanded when the
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001045 # build is created:
1046 #
1047 # - $PROJECT_ID: the project ID of the build.
1048 # - $BUILD_ID: the autogenerated ID of the build.
1049 # - $REPO_NAME: the source repository name specified by RepoSource.
1050 # - $BRANCH_NAME: the branch name specified by RepoSource.
1051 # - $TAG_NAME: the tag name specified by RepoSource.
1052 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
1053 # resolved from the specified branch or tag.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001054 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001055 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1056 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1057 &quot;a_key&quot;: &quot;A String&quot;,
1058 },
1059 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
1060 # are:
1061 #
1062 # * BUILD: time to execute all build steps
1063 # * PUSH: time to push all specified images.
1064 # * FETCHSOURCE: time to fetch source.
1065 #
1066 # If the build does not specify source or images,
1067 # these keys will not be included.
1068 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1069 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1070 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1071 },
1072 },
1073 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1074 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
1075 # some source was used for this build.
1076 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
1077 # the original source integrity was maintained in the build. Note that
1078 # `FileHashes` will only be populated if `BuildOptions` has requested a
1079 # `SourceProvenanceHash`.
1080 #
1081 # The keys to this map are file paths used as build source and the values
1082 # contain the hash values for those files.
1083 #
1084 # If the build source came in a single package such as a gzipped tarfile
1085 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
1086 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
1087 # SourceProvenance messages to verify integrity of source input to the build.
1088 &quot;fileHash&quot;: [ # Collection of file hashes.
1089 { # Container message for hash values.
1090 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1091 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1092 },
1093 ],
1094 },
1095 },
1096 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any
1097 # revisions resolved.
1098 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
1099 #
1100 # The syntax of the regular expressions accepted is the syntax accepted by
1101 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1102 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1103 #
1104 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1105 # absolute path, this value is ignored for that step&#x27;s execution.
1106 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
1107 #
1108 # The syntax of the regular expressions accepted is the syntax accepted by
1109 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1110 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1111 # project ID requesting the build is assumed.
1112 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1113 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1114 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1115 # Should only be used with RunBuildTrigger
1116 &quot;a_key&quot;: &quot;A String&quot;,
1117 },
1118 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1119 # regex.
1120 },
1121 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any
1122 # generations resolved.
1123 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1124 #
1125 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1126 # build.
1127 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1128 # omitted, the latest generation will be used.
1129 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1130 # [Bucket Name
1131 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1132 },
1133 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001134 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001135 # steps.
1136 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001138 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001139 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001140 # results field.
1141 #
1142 # If any of the images fail to be pushed, the build status is marked
1143 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001144 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001145 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1147 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1148 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer
Dan O'Mearadd494642020-05-01 07:42:23 -07001149 # than this value, the build will expire and the build status will be
1150 # `EXPIRED`.
1151 #
1152 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001153 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001154 #
1155 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07001156 # build&#x27;s execution.
1157 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001158 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source
1159 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001161 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001162 # The syntax of the regular expressions accepted is the syntax accepted by
1163 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001164 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1165 #
1166 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1167 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001169 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001170 # The syntax of the regular expressions accepted is the syntax accepted by
1171 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1172 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1173 # project ID requesting the build is assumed.
1174 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001175 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1176 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1177 # Should only be used with RunBuildTrigger
1178 &quot;a_key&quot;: &quot;A String&quot;,
1179 },
1180 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1181 # regex.
1182 },
1183 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1184 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1185 #
1186 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1187 # build.
1188 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1189 # omitted, the latest generation will be used.
1190 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1191 # [Bucket Name
1192 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001193 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001194 },
1195 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001196 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
1197 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001198 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07001199 # build steps in this build. If a variable is defined in both globally and in
1200 # a build step, the variable will use the build step value.
1201 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001202 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1203 # being given the value &quot;VALUE&quot;.
1204 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001205 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001206 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
1207 # Format: projects/{project}/workerPools/{workerPool}
1208 #
1209 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07001210 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
1211 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
1213 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001214 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001215 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
1216 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07001217 # build utilities. Also note that this is the minimum disk size that will be
1218 # allocated for the build -- the build may run with a larger disk than
1219 # requested. At present, the maximum disk size is 1000GB; builds that request
1220 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001221 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1222 &quot;A String&quot;,
1223 ],
1224 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
1225 # Key Management Service crypto key. These values must be specified in the
1226 # build&#x27;s `Secret`. These variables will be available to all build steps
1227 # in this build.
1228 &quot;A String&quot;,
1229 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001230 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001231 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001232 #
1233 # Each volume is created as an empty volume prior to starting the build
1234 # process. Upon completion of the build, volumes and their contents are
1235 # discarded. Global volume names and paths cannot conflict with the volumes
1236 # defined a build step.
1237 #
1238 # Using a global volume in a build with only one step is not valid as
1239 # it is indicative of a build request with an incorrect configuration.
1240 { # Volume describes a Docker container volume which is mounted into build steps
1241 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001243 #
1244 # Paths must be absolute and cannot conflict with other volume paths on the
1245 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07001246 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001247 #
1248 # Volume names must be unique per build step and must be valid names for
1249 # Docker volumes. Each named volume must be used by at least two build steps.
1250 },
1251 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001252 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001253 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
1254 # granularity. If this amount of time elapses, work on the build will cease
1255 # and the build status will be `TIMEOUT`.
1256 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001257 # `timeout` starts ticking from `startTime`.
1258 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001259 # Default time is ten minutes.
1260 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1261 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1262 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
1263 # successful completion of all build steps.
1264 # successful completion of all build steps.
1265 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful # A list of objects to be uploaded to Cloud Storage upon successful
1266 # completion of all build steps.
1267 #
1268 # Files in the workspace matching specified paths globs will be uploaded to
1269 # the specified Cloud Storage location using the builder service account&#x27;s
1270 # credentials.
1271 #
1272 # The location and generation of the uploaded objects will be stored in the
1273 # Build resource&#x27;s results field.
1274 #
1275 # If any objects fail to be pushed, the build is marked FAILURE.
1276 # completion of all build steps.
1277 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1278 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1279 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1280 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001281 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
1282 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
1283 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1284 #
1285 # Files in the workspace matching any path pattern will be uploaded to
1286 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001287 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1288 &quot;A String&quot;,
1289 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001290 },
1291 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
1292 # steps.
1293 #
1294 # The images will be pushed using the builder service account&#x27;s credentials.
1295 #
1296 # The digests of the pushed images will be stored in the Build resource&#x27;s
1297 # results field.
1298 #
1299 # If any of the images fail to be pushed, the build is marked FAILURE.
1300 &quot;A String&quot;,
1301 ],
1302 },
1303 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1304 { # Pairs a set of secret environment variables containing encrypted
1305 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001306 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
Bu Sun Kim65020912020-05-20 12:08:20 -07001307 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
1308 #
1309 # Secret environment variables must be unique across all of a build&#x27;s
1310 # secrets, and must be used by at least one build step. Values can be at most
1311 # 64 KB in size. There can be at most 100 secret values across all of a
1312 # build&#x27;s secrets.
1313 &quot;a_key&quot;: &quot;A String&quot;,
1314 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001315 },
1316 ],
1317 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001318 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1319 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001320 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
1321 # indices.
1322 &quot;A String&quot;,
1323 ],
1324 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1325 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1326 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1327 },
1328 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
1329 # corresponding to build step indices.
1330 #
1331 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
1332 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
1333 # Only the first 4KB of data is stored.
1334 &quot;A String&quot;,
1335 ],
1336 &quot;images&quot;: [ # Container images that were built as a part of the build.
1337 { # An image built by the pipeline.
1338 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
1339 # presented to `docker push`.
1340 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1341 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1342 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1343 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1344 },
1345 },
1346 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001347 },
1348 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
1349 # [Bucket Name
1350 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1351 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1352 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1353 { # A step in the build pipeline.
1354 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
1355 # If unset, the image&#x27;s default entrypoint is used.
1356 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
1357 #
1358 # Each volume is created as an empty volume prior to execution of the
1359 # build step. Upon completion of the build, volumes and their contents are
1360 # discarded.
1361 #
1362 # Using a named volume in only one step is not valid as it is indicative
1363 # of a build request with an incorrect configuration.
1364 { # Volume describes a Docker container volume which is mounted into build steps
1365 # in order to persist files across build step execution.
1366 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
1367 #
1368 # Paths must be absolute and cannot conflict with other volume paths on the
1369 # same build step or with certain reserved volume paths.
1370 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
1371 #
1372 # Volume names must be unique per build step and must be valid names for
1373 # Docker volumes. Each named volume must be used by at least two build steps.
1374 },
1375 ],
1376 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
1377 #
1378 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
1379 # are used as arguments to that entrypoint. If the image does not define
1380 # an entrypoint, the first element in args is used as the entrypoint,
1381 # and the remainder will be used as arguments.
1382 &quot;A String&quot;,
1383 ],
1384 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
1385 # only updated on build completion; step status is not updated in real-time
1386 # as the build progresses.
1387 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
1388 # time limit and will be allowed to continue to run until either it completes
1389 # or the build itself times out.
1390 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
1391 # builder image only.
1392 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1393 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1394 },
1395 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
1396 # build step.
1397 #
1398 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
1399 # will be run directly. If not, the host will attempt to pull the image
1400 # first, using the builder service account&#x27;s credentials if necessary.
1401 #
1402 # The Docker daemon&#x27;s cache will already have the latest versions of all of
1403 # the officially supported build steps
1404 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
1405 # The Docker daemon will also have cached many of the layers for some popular
1406 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
1407 # attempt to use them.
1408 #
1409 # If you built an image in a previous build step, it will be stored in the
1410 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
1411 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -07001412 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
1413 # Management Service crypto key. These values must be specified in the
1414 # build&#x27;s `Secret`.
1415 &quot;A String&quot;,
1416 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001417 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
1418 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -07001419 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
1420 #
1421 # If this value is a relative path, it is relative to the build&#x27;s working
1422 # directory. If this value is absolute, it may be outside the build&#x27;s working
1423 # directory, in which case the contents of the path may not be persisted
1424 # across build step executions, unless a `volume` for that path is specified.
1425 #
1426 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
1427 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
1428 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001429 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1430 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1431 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1432 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001433 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
1434 # This build step will not start until all the build steps in `wait_for`
1435 # have completed successfully. If `wait_for` is empty, this build step will
1436 # start when all previous build steps in the `Build.Steps` list have
1437 # completed successfully.
1438 &quot;A String&quot;,
1439 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001440 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
1441 #
1442 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1443 # being given the value &quot;VALUE&quot;.
1444 &quot;A String&quot;,
1445 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001446 },
1447 ],
1448 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
1449 # was triggered automatically.
1450 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1451 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1452 &quot;A String&quot;,
1453 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001454 }</pre>
1455</div>
1456
1457<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001458 <code class="details" id="list">list(projectId, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001459 <pre>Lists previously requested builds.
1460
1461Previously requested builds may still be in-progress, or may have finished
1462successfully or unsuccessfully.
1463
1464Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001465 projectId: string, Required. ID of the project. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001466 filter: string, The raw filter text to constrain the results.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001467 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07001468 pageSize: integer, Number of results to return in the list.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001469 x__xgafv: string, V1 error format.
1470 Allowed values
1471 1 - v1 error format
1472 2 - v2 error format
1473
1474Returns:
1475 An object of the form:
1476
1477 { # Response including listed builds.
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
1479 &quot;builds&quot;: [ # Builds will be sorted by `create_time`, descending.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001480 { # A build resource in the Cloud Build API.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001481 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001482 # At a high level, a `Build` describes where to find source code, how to build
1483 # it (for example, the builder image to run on the source), and where to store
1484 # the built artifacts.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001485 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001486 # Fields can include the following variables, which will be expanded when the
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001487 # build is created:
1488 #
1489 # - $PROJECT_ID: the project ID of the build.
1490 # - $BUILD_ID: the autogenerated ID of the build.
1491 # - $REPO_NAME: the source repository name specified by RepoSource.
1492 # - $BRANCH_NAME: the branch name specified by RepoSource.
1493 # - $TAG_NAME: the tag name specified by RepoSource.
1494 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
1495 # resolved from the specified branch or tag.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001496 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001497 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1498 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1499 &quot;a_key&quot;: &quot;A String&quot;,
1500 },
1501 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
1502 # are:
1503 #
1504 # * BUILD: time to execute all build steps
1505 # * PUSH: time to push all specified images.
1506 # * FETCHSOURCE: time to fetch source.
1507 #
1508 # If the build does not specify source or images,
1509 # these keys will not be included.
1510 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1511 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1512 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1513 },
1514 },
1515 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1516 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
1517 # some source was used for this build.
1518 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
1519 # the original source integrity was maintained in the build. Note that
1520 # `FileHashes` will only be populated if `BuildOptions` has requested a
1521 # `SourceProvenanceHash`.
1522 #
1523 # The keys to this map are file paths used as build source and the values
1524 # contain the hash values for those files.
1525 #
1526 # If the build source came in a single package such as a gzipped tarfile
1527 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
1528 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
1529 # SourceProvenance messages to verify integrity of source input to the build.
1530 &quot;fileHash&quot;: [ # Collection of file hashes.
1531 { # Container message for hash values.
1532 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1533 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1534 },
1535 ],
1536 },
1537 },
1538 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any
1539 # revisions resolved.
1540 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
1541 #
1542 # The syntax of the regular expressions accepted is the syntax accepted by
1543 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1544 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1545 #
1546 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1547 # absolute path, this value is ignored for that step&#x27;s execution.
1548 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
1549 #
1550 # The syntax of the regular expressions accepted is the syntax accepted by
1551 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1552 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1553 # project ID requesting the build is assumed.
1554 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1555 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1556 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1557 # Should only be used with RunBuildTrigger
1558 &quot;a_key&quot;: &quot;A String&quot;,
1559 },
1560 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1561 # regex.
1562 },
1563 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any
1564 # generations resolved.
1565 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1566 #
1567 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1568 # build.
1569 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1570 # omitted, the latest generation will be used.
1571 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1572 # [Bucket Name
1573 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1574 },
1575 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001576 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001577 # steps.
1578 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001580 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001582 # results field.
1583 #
1584 # If any of the images fail to be pushed, the build status is marked
1585 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001586 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001587 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001588 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1589 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1590 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer
Dan O'Mearadd494642020-05-01 07:42:23 -07001591 # than this value, the build will expire and the build status will be
1592 # `EXPIRED`.
1593 #
1594 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001595 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001596 #
1597 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07001598 # build&#x27;s execution.
1599 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001600 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source
1601 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -07001602 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001603 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001604 # The syntax of the regular expressions accepted is the syntax accepted by
1605 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001606 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1607 #
1608 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1609 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001610 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001611 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001612 # The syntax of the regular expressions accepted is the syntax accepted by
1613 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1614 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1615 # project ID requesting the build is assumed.
1616 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001617 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1618 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1619 # Should only be used with RunBuildTrigger
1620 &quot;a_key&quot;: &quot;A String&quot;,
1621 },
1622 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1623 # regex.
1624 },
1625 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1626 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1627 #
1628 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1629 # build.
1630 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1631 # omitted, the latest generation will be used.
1632 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1633 # [Bucket Name
1634 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001635 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001636 },
1637 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001638 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
1639 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001640 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07001641 # build steps in this build. If a variable is defined in both globally and in
1642 # a build step, the variable will use the build step value.
1643 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001644 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1645 # being given the value &quot;VALUE&quot;.
1646 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001647 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001648 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
1649 # Format: projects/{project}/workerPools/{workerPool}
1650 #
1651 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07001652 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
1653 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001654 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
1655 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001656 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001657 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
1658 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07001659 # build utilities. Also note that this is the minimum disk size that will be
1660 # allocated for the build -- the build may run with a larger disk than
1661 # requested. At present, the maximum disk size is 1000GB; builds that request
1662 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001663 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1664 &quot;A String&quot;,
1665 ],
1666 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
1667 # Key Management Service crypto key. These values must be specified in the
1668 # build&#x27;s `Secret`. These variables will be available to all build steps
1669 # in this build.
1670 &quot;A String&quot;,
1671 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001672 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001674 #
1675 # Each volume is created as an empty volume prior to starting the build
1676 # process. Upon completion of the build, volumes and their contents are
1677 # discarded. Global volume names and paths cannot conflict with the volumes
1678 # defined a build step.
1679 #
1680 # Using a global volume in a build with only one step is not valid as
1681 # it is indicative of a build request with an incorrect configuration.
1682 { # Volume describes a Docker container volume which is mounted into build steps
1683 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001684 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001685 #
1686 # Paths must be absolute and cannot conflict with other volume paths on the
1687 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07001688 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001689 #
1690 # Volume names must be unique per build step and must be valid names for
1691 # Docker volumes. Each named volume must be used by at least two build steps.
1692 },
1693 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001694 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001695 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
1696 # granularity. If this amount of time elapses, work on the build will cease
1697 # and the build status will be `TIMEOUT`.
1698 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001699 # `timeout` starts ticking from `startTime`.
1700 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001701 # Default time is ten minutes.
1702 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1703 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1704 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
1705 # successful completion of all build steps.
1706 # successful completion of all build steps.
1707 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful # A list of objects to be uploaded to Cloud Storage upon successful
1708 # completion of all build steps.
1709 #
1710 # Files in the workspace matching specified paths globs will be uploaded to
1711 # the specified Cloud Storage location using the builder service account&#x27;s
1712 # credentials.
1713 #
1714 # The location and generation of the uploaded objects will be stored in the
1715 # Build resource&#x27;s results field.
1716 #
1717 # If any objects fail to be pushed, the build is marked FAILURE.
1718 # completion of all build steps.
1719 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1720 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1721 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1722 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001723 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
1724 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
1725 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1726 #
1727 # Files in the workspace matching any path pattern will be uploaded to
1728 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001729 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1730 &quot;A String&quot;,
1731 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001732 },
1733 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
1734 # steps.
1735 #
1736 # The images will be pushed using the builder service account&#x27;s credentials.
1737 #
1738 # The digests of the pushed images will be stored in the Build resource&#x27;s
1739 # results field.
1740 #
1741 # If any of the images fail to be pushed, the build is marked FAILURE.
1742 &quot;A String&quot;,
1743 ],
1744 },
1745 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1746 { # Pairs a set of secret environment variables containing encrypted
1747 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001748 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
Bu Sun Kim65020912020-05-20 12:08:20 -07001749 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
1750 #
1751 # Secret environment variables must be unique across all of a build&#x27;s
1752 # secrets, and must be used by at least one build step. Values can be at most
1753 # 64 KB in size. There can be at most 100 secret values across all of a
1754 # build&#x27;s secrets.
1755 &quot;a_key&quot;: &quot;A String&quot;,
1756 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001757 },
1758 ],
1759 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001760 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1761 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001762 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
1763 # indices.
1764 &quot;A String&quot;,
1765 ],
1766 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1767 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1768 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1769 },
1770 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
1771 # corresponding to build step indices.
1772 #
1773 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
1774 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
1775 # Only the first 4KB of data is stored.
1776 &quot;A String&quot;,
1777 ],
1778 &quot;images&quot;: [ # Container images that were built as a part of the build.
1779 { # An image built by the pipeline.
1780 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
1781 # presented to `docker push`.
1782 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1783 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1784 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1785 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1786 },
1787 },
1788 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001789 },
1790 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
1791 # [Bucket Name
1792 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1793 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1794 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1795 { # A step in the build pipeline.
1796 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
1797 # If unset, the image&#x27;s default entrypoint is used.
1798 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
1799 #
1800 # Each volume is created as an empty volume prior to execution of the
1801 # build step. Upon completion of the build, volumes and their contents are
1802 # discarded.
1803 #
1804 # Using a named volume in only one step is not valid as it is indicative
1805 # of a build request with an incorrect configuration.
1806 { # Volume describes a Docker container volume which is mounted into build steps
1807 # in order to persist files across build step execution.
1808 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
1809 #
1810 # Paths must be absolute and cannot conflict with other volume paths on the
1811 # same build step or with certain reserved volume paths.
1812 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
1813 #
1814 # Volume names must be unique per build step and must be valid names for
1815 # Docker volumes. Each named volume must be used by at least two build steps.
1816 },
1817 ],
1818 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
1819 #
1820 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
1821 # are used as arguments to that entrypoint. If the image does not define
1822 # an entrypoint, the first element in args is used as the entrypoint,
1823 # and the remainder will be used as arguments.
1824 &quot;A String&quot;,
1825 ],
1826 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
1827 # only updated on build completion; step status is not updated in real-time
1828 # as the build progresses.
1829 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
1830 # time limit and will be allowed to continue to run until either it completes
1831 # or the build itself times out.
1832 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
1833 # builder image only.
1834 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1835 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1836 },
1837 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
1838 # build step.
1839 #
1840 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
1841 # will be run directly. If not, the host will attempt to pull the image
1842 # first, using the builder service account&#x27;s credentials if necessary.
1843 #
1844 # The Docker daemon&#x27;s cache will already have the latest versions of all of
1845 # the officially supported build steps
1846 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
1847 # The Docker daemon will also have cached many of the layers for some popular
1848 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
1849 # attempt to use them.
1850 #
1851 # If you built an image in a previous build step, it will be stored in the
1852 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
1853 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -07001854 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
1855 # Management Service crypto key. These values must be specified in the
1856 # build&#x27;s `Secret`.
1857 &quot;A String&quot;,
1858 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001859 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
1860 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -07001861 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
1862 #
1863 # If this value is a relative path, it is relative to the build&#x27;s working
1864 # directory. If this value is absolute, it may be outside the build&#x27;s working
1865 # directory, in which case the contents of the path may not be persisted
1866 # across build step executions, unless a `volume` for that path is specified.
1867 #
1868 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
1869 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
1870 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001871 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1872 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1873 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1874 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001875 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
1876 # This build step will not start until all the build steps in `wait_for`
1877 # have completed successfully. If `wait_for` is empty, this build step will
1878 # start when all previous build steps in the `Build.Steps` list have
1879 # completed successfully.
1880 &quot;A String&quot;,
1881 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001882 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
1883 #
1884 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1885 # being given the value &quot;VALUE&quot;.
1886 &quot;A String&quot;,
1887 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001888 },
1889 ],
1890 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
1891 # was triggered automatically.
1892 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1893 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1894 &quot;A String&quot;,
1895 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001896 },
1897 ],
1898 }</pre>
1899</div>
1900
1901<div class="method">
1902 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1903 <pre>Retrieves the next page of results.
1904
1905Args:
1906 previous_request: The request for the previous page. (required)
1907 previous_response: The response from the request for the previous page. (required)
1908
1909Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001910 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001911 page. Returns None if there are no more items in the collection.
1912 </pre>
1913</div>
1914
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001915<div class="method">
1916 <code class="details" id="retry">retry(projectId, id, body=None, x__xgafv=None)</code>
1917 <pre>Creates a new build based on the specified build.
1918
1919This method creates a new build using the original build request, which may
1920or may not result in an identical build.
1921
1922For triggered builds:
1923
1924* Triggered builds resolve to a precise revision; therefore a retry of a
1925triggered build will result in a build that uses the same revision.
1926
1927For non-triggered builds that specify `RepoSource`:
1928
1929* If the original build built from the tip of a branch, the retried build
1930will build from the tip of that branch, which may not be the same revision
1931as the original build.
1932* If the original build specified a commit sha or revision ID, the retried
1933build will use the identical source.
1934
1935For builds that specify `StorageSource`:
1936
1937* If the original build pulled source from Google Cloud Storage without
1938specifying the generation of the object, the new build will use the current
1939object, which may be different from the original build source.
1940* If the original build pulled source from Cloud Storage and specified the
1941generation of the object, the new build will attempt to use the same
Bu Sun Kim65020912020-05-20 12:08:20 -07001942object, which may or may not be available depending on the bucket&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001943lifecycle management settings.
1944
1945Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001946 projectId: string, Required. ID of the project. (required)
1947 id: string, Required. Build ID of the original build. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001948 body: object, The request body.
1949 The object takes the form of:
1950
1951{ # Specifies a build to retry.
1952 }
1953
1954 x__xgafv: string, V1 error format.
1955 Allowed values
1956 1 - v1 error format
1957 2 - v2 error format
1958
1959Returns:
1960 An object of the form:
1961
1962 { # This resource represents a long-running operation that is the result of a
1963 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001964 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1965 # originally returns it. If you use the default HTTP mapping, the
1966 # `name` should be a resource name ending with `operations/{unique_id}`.
1967 &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.
1968 # different programming environments, including REST APIs and RPC APIs. It is
1969 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1970 # three pieces of data: error code, error message, and error details.
1971 #
1972 # You can find out more about this error model and how to work with it in the
1973 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1974 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1975 # user-facing error message should be localized and sent in the
1976 # google.rpc.Status.details field, or localized by the client.
1977 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1978 # message types for APIs to use.
1979 {
1980 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1981 },
1982 ],
1983 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1984 },
1985 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1986 # contains progress information and common metadata such as create time.
1987 # Some services might not provide such metadata. Any method that returns a
1988 # long-running operation should document the metadata type, if any.
1989 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1990 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001991 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001992 # If `true`, the operation is completed, and either `error` or `response` is
1993 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001994 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001995 # method returns no data on success, such as `Delete`, the response is
1996 # `google.protobuf.Empty`. If the original method is standard
1997 # `Get`/`Create`/`Update`, the response should be the resource. For other
1998 # methods, the response should have the type `XxxResponse`, where `Xxx`
1999 # is the original method name. For example, if the original method name
2000 # is `TakeSnapshot()`, the inferred response type is
2001 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002002 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002003 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002004 }</pre>
2005</div>
2006
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002007</body></html>