blob: c41317bb2f3a41456a741a922f0736e277272095 [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -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.triggers.html">triggers</a></h1>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(projectId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a new `BuildTrigger`.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070080<p class="toc_element">
81 <code><a href="#delete">delete(projectId, triggerId, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deletes a `BuildTrigger` by its project ID and trigger ID.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070083<p class="toc_element">
84 <code><a href="#get">get(projectId, triggerId, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Returns information about a `BuildTrigger`.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070086<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070087 <code><a href="#list">list(projectId, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists existing `BuildTrigger`s.</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>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(projectId, triggerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Updates a `BuildTrigger` by its project ID and trigger ID.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#run">run(projectId, triggerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Runs a `BuildTrigger` at a particular source revision.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070098<h3>Method Details</h3>
99<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700100 <code class="details" id="create">create(projectId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101 <pre>Creates a new `BuildTrigger`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700102
103This API is experimental.
104
105Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 projectId: string, Required. ID of the project for which to configure automatic builds. (required)
107 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700108 The object takes the form of:
109
110{ # Configuration for an automated build in response to source repository
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111 # changes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700112 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
116 # Trigger names must meet the following requirements:
117 #
118 # + They must contain only alphanumeric characters and dashes.
119 # + They can be 1-64 characters long.
120 # + They must begin and end with an alphanumeric character.
121 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
122 &quot;A String&quot;,
123 ],
124 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
125 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 #
127 # At a high level, a `Build` describes where to find source code, how to build
128 # it (for example, the builder image to run on the source), and where to store
129 # the built artifacts.
130 #
131 # Fields can include the following variables, which will be expanded when the
132 # build is created:
133 #
134 # - $PROJECT_ID: the project ID of the build.
135 # - $BUILD_ID: the autogenerated ID of the build.
136 # - $REPO_NAME: the source repository name specified by RepoSource.
137 # - $BRANCH_NAME: the branch name specified by RepoSource.
138 # - $TAG_NAME: the tag name specified by RepoSource.
139 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
140 # resolved from the specified branch or tag.
141 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700142 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
143 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
144 &quot;a_key&quot;: &quot;A String&quot;,
145 },
146 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
147 # are:
148 #
149 # * BUILD: time to execute all build steps
150 # * PUSH: time to push all specified images.
151 # * FETCHSOURCE: time to fetch source.
152 #
153 # If the build does not specify source or images,
154 # these keys will not be included.
155 &quot;a_key&quot;: { # Start and end times for a build execution phase.
156 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
157 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
158 },
159 },
160 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
161 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
162 # some source was used for this build.
163 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
164 # the original source integrity was maintained in the build. Note that
165 # `FileHashes` will only be populated if `BuildOptions` has requested a
166 # `SourceProvenanceHash`.
167 #
168 # The keys to this map are file paths used as build source and the values
169 # contain the hash values for those files.
170 #
171 # If the build source came in a single package such as a gzipped tarfile
172 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
173 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
174 # SourceProvenance messages to verify integrity of source input to the build.
175 &quot;fileHash&quot;: [ # Collection of file hashes.
176 { # Container message for hash values.
177 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
178 &quot;value&quot;: &quot;A String&quot;, # The hash value.
179 },
180 ],
181 },
182 },
183 &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
184 # revisions resolved.
185 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches 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;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
190 #
191 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
192 # absolute path, this value is ignored for that step&#x27;s execution.
193 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
194 #
195 # The syntax of the regular expressions accepted is the syntax accepted by
196 # RE2 and described at https://github.com/google/re2/wiki/Syntax
197 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
198 # project ID requesting the build is assumed.
199 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
200 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
201 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
202 # Should only be used with RunBuildTrigger
203 &quot;a_key&quot;: &quot;A String&quot;,
204 },
205 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
206 # regex.
207 },
208 &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
209 # generations resolved.
210 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
211 #
212 # This object must be a gzipped archive file (`.tar.gz`) containing source to
213 # build.
214 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
215 # omitted, the latest generation will be used.
216 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
217 # [Bucket Name
218 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
219 },
220 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &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 -0700222 # steps.
223 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700225 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700227 # results field.
228 #
229 # If any of the images fail to be pushed, the build status is marked
230 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700231 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700232 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
234 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
235 &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 -0700236 # than this value, the build will expire and the build status will be
237 # `EXPIRED`.
238 #
239 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 &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 -0700241 #
242 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 # build&#x27;s execution.
244 &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 -0700245 &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
246 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches 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
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700251 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
252 #
253 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
254 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700256 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 # The syntax of the regular expressions accepted is the syntax accepted by
258 # RE2 and described at https://github.com/google/re2/wiki/Syntax
259 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
260 # project ID requesting the build is assumed.
261 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700262 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
263 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
264 # Should only be used with RunBuildTrigger
265 &quot;a_key&quot;: &quot;A String&quot;,
266 },
267 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
268 # regex.
269 },
270 &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.
271 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
272 #
273 # This object must be a gzipped archive file (`.tar.gz`) containing source to
274 # build.
275 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
276 # omitted, the latest generation will be used.
277 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
278 # [Bucket Name
279 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 },
282 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700283 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
284 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -0700286 # build steps in this build. If a variable is defined in both globally and in
287 # a build step, the variable will use the build step value.
288 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
290 # being given the value &quot;VALUE&quot;.
291 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700292 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700293 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
294 # Format: projects/{project}/workerPools/{workerPool}
295 #
296 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
298 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
300 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700301 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
303 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -0700304 # build utilities. Also note that this is the minimum disk size that will be
305 # allocated for the build -- the build may run with a larger disk than
306 # requested. At present, the maximum disk size is 1000GB; builds that request
307 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
309 &quot;A String&quot;,
310 ],
311 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
312 # Key Management Service crypto key. These values must be specified in the
313 # build&#x27;s `Secret`. These variables will be available to all build steps
314 # in this build.
315 &quot;A String&quot;,
316 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700317 &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 -0700318 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 #
320 # Each volume is created as an empty volume prior to starting the build
321 # process. Upon completion of the build, volumes and their contents are
322 # discarded. Global volume names and paths cannot conflict with the volumes
323 # defined a build step.
324 #
325 # Using a global volume in a build with only one step is not valid as
326 # it is indicative of a build request with an incorrect configuration.
327 { # Volume describes a Docker container volume which is mounted into build steps
328 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700330 #
331 # Paths must be absolute and cannot conflict with other volume paths on the
332 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700334 #
335 # Volume names must be unique per build step and must be valid names for
336 # Docker volumes. Each named volume must be used by at least two build steps.
337 },
338 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700339 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
341 # granularity. If this amount of time elapses, work on the build will cease
342 # and the build status will be `TIMEOUT`.
343 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700344 # `timeout` starts ticking from `startTime`.
345 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 # Default time is ten minutes.
347 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
348 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
349 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
350 # successful completion of all build steps.
351 # successful completion of all build steps.
352 &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
353 # completion of all build steps.
354 #
355 # Files in the workspace matching specified paths globs will be uploaded to
356 # the specified Cloud Storage location using the builder service account&#x27;s
357 # credentials.
358 #
359 # The location and generation of the uploaded objects will be stored in the
360 # Build resource&#x27;s results field.
361 #
362 # If any objects fail to be pushed, the build is marked FAILURE.
363 # completion of all build steps.
364 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
365 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
366 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
367 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
369 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
370 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
371 #
372 # Files in the workspace matching any path pattern will be uploaded to
373 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700374 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
375 &quot;A String&quot;,
376 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 },
378 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
379 # steps.
380 #
381 # The images will be pushed using the builder service account&#x27;s credentials.
382 #
383 # The digests of the pushed images will be stored in the Build resource&#x27;s
384 # results field.
385 #
386 # If any of the images fail to be pushed, the build is marked FAILURE.
387 &quot;A String&quot;,
388 ],
389 },
390 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
391 { # Pairs a set of secret environment variables containing encrypted
392 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700393 &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 -0700394 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
395 #
396 # Secret environment variables must be unique across all of a build&#x27;s
397 # secrets, and must be used by at least one build step. Values can be at most
398 # 64 KB in size. There can be at most 100 secret values across all of a
399 # build&#x27;s secrets.
400 &quot;a_key&quot;: &quot;A String&quot;,
401 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 },
403 ],
404 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700405 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
406 &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 -0700407 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
408 # indices.
409 &quot;A String&quot;,
410 ],
411 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
412 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
413 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
414 },
415 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
416 # corresponding to build step indices.
417 #
418 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
419 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
420 # Only the first 4KB of data is stored.
421 &quot;A String&quot;,
422 ],
423 &quot;images&quot;: [ # Container images that were built as a part of the build.
424 { # An image built by the pipeline.
425 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
426 # presented to `docker push`.
427 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
428 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
429 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
430 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
431 },
432 },
433 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 },
435 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
436 # [Bucket Name
437 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
438 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
439 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
440 { # A step in the build pipeline.
441 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
442 # If unset, the image&#x27;s default entrypoint is used.
443 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
444 #
445 # Each volume is created as an empty volume prior to execution of the
446 # build step. Upon completion of the build, volumes and their contents are
447 # discarded.
448 #
449 # Using a named volume in only one step is not valid as it is indicative
450 # of a build request with an incorrect configuration.
451 { # Volume describes a Docker container volume which is mounted into build steps
452 # in order to persist files across build step execution.
453 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
454 #
455 # Paths must be absolute and cannot conflict with other volume paths on the
456 # same build step or with certain reserved volume paths.
457 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
458 #
459 # Volume names must be unique per build step and must be valid names for
460 # Docker volumes. Each named volume must be used by at least two build steps.
461 },
462 ],
463 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
464 #
465 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
466 # are used as arguments to that entrypoint. If the image does not define
467 # an entrypoint, the first element in args is used as the entrypoint,
468 # and the remainder will be used as arguments.
469 &quot;A String&quot;,
470 ],
471 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
472 # only updated on build completion; step status is not updated in real-time
473 # as the build progresses.
474 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
475 # time limit and will be allowed to continue to run until either it completes
476 # or the build itself times out.
477 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
478 # builder image only.
479 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
480 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
481 },
482 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
483 # build step.
484 #
485 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
486 # will be run directly. If not, the host will attempt to pull the image
487 # first, using the builder service account&#x27;s credentials if necessary.
488 #
489 # The Docker daemon&#x27;s cache will already have the latest versions of all of
490 # the officially supported build steps
491 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
492 # The Docker daemon will also have cached many of the layers for some popular
493 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
494 # attempt to use them.
495 #
496 # If you built an image in a previous build step, it will be stored in the
497 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
498 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -0700499 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
500 # Management Service crypto key. These values must be specified in the
501 # build&#x27;s `Secret`.
502 &quot;A String&quot;,
503 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700504 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
505 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
507 #
508 # If this value is a relative path, it is relative to the build&#x27;s working
509 # directory. If this value is absolute, it may be outside the build&#x27;s working
510 # directory, in which case the contents of the path may not be persisted
511 # across build step executions, unless a `volume` for that path is specified.
512 #
513 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
514 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
515 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700516 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
517 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
518 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
519 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
521 # This build step will not start until all the build steps in `wait_for`
522 # have completed successfully. If `wait_for` is empty, this build step will
523 # start when all previous build steps in the `Build.Steps` list have
524 # completed successfully.
525 &quot;A String&quot;,
526 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700527 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
528 #
529 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
530 # being given the value &quot;VALUE&quot;.
531 &quot;A String&quot;,
532 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 },
534 ],
535 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
536 # was triggered automatically.
537 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
538 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
539 &quot;A String&quot;,
540 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700541 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700542 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
543 # a build whenever a GitHub event is received.
544 #
545 # Mutually exclusive with `trigger_template`.
546 # build whenever a GitHub event is received.
547 #
548 # This message is experimental.
549 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
550 # Requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700551 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
552 # comments `/gcbrun`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
554 #
555 # The syntax of the regular expressions accepted is the syntax accepted by
556 # RE2 and described at https://github.com/google/re2/wiki/Syntax
557 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 },
559 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
560 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
561 #
562 # The syntax of the regular expressions accepted is the syntax accepted by
563 # RE2 and described at https://github.com/google/re2/wiki/Syntax
564 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
565 # git_ref regex.
566 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
567 #
568 # The syntax of the regular expressions accepted is the syntax accepted by
569 # RE2 and described at https://github.com/google/re2/wiki/Syntax
570 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700571 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
573 # https://github.com/googlecloudplatform/cloud-builders is
574 # &quot;googlecloudplatform&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
576 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
577 },
578 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
579 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
580 #
581 # If ignored_files and changed files are both empty, then they are
582 # not used to determine whether or not to trigger a build.
583 #
584 # If ignored_files is not empty, then we ignore any files that match
585 # any of the ignored_file globs. If the change has no files that are
586 # outside of the ignored_files globs, then we do not trigger a build.
587 &quot;A String&quot;,
588 ],
589 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
590 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
591 # keys in bindings.
592 &quot;a_key&quot;: &quot;A String&quot;,
593 },
594 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700595 # filter and included_files is empty, then as far as this filter is
596 # concerned, we should trigger the build.
597 #
598 # If any of the files altered in the commit pass the ignored_files
599 # filter and included_files is not empty, then we make sure that at
600 # least one of those files matches a included_files glob. If not,
601 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700602 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700603 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700604 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
605 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
606 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700607 #
608 # Branch and tag names in trigger templates are interpreted as regular
609 # expressions. Any branch or tag change that matches that regular expression
610 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -0700611 #
612 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -0700614 #
615 # The syntax of the regular expressions accepted is the syntax accepted by
616 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700617 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
618 #
619 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
620 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -0700622 #
623 # The syntax of the regular expressions accepted is the syntax accepted by
624 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
626 # project ID requesting the build is assumed.
627 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700628 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
629 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
630 # Should only be used with RunBuildTrigger
631 &quot;a_key&quot;: &quot;A String&quot;,
632 },
633 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
634 # regex.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700635 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700636}
637
638 x__xgafv: string, V1 error format.
639 Allowed values
640 1 - v1 error format
641 2 - v2 error format
642
643Returns:
644 An object of the form:
645
646 { # Configuration for an automated build in response to source repository
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700647 # changes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700648 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400650 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -0700651 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
652 # Trigger names must meet the following requirements:
653 #
654 # + They must contain only alphanumeric characters and dashes.
655 # + They can be 1-64 characters long.
656 # + They must begin and end with an alphanumeric character.
657 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
658 &quot;A String&quot;,
659 ],
660 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
661 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700662 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700663 # At a high level, a `Build` describes where to find source code, how to build
664 # it (for example, the builder image to run on the source), and where to store
665 # the built artifacts.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700666 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700667 # Fields can include the following variables, which will be expanded when the
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700668 # build is created:
669 #
670 # - $PROJECT_ID: the project ID of the build.
671 # - $BUILD_ID: the autogenerated ID of the build.
672 # - $REPO_NAME: the source repository name specified by RepoSource.
673 # - $BRANCH_NAME: the branch name specified by RepoSource.
674 # - $TAG_NAME: the tag name specified by RepoSource.
675 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
676 # resolved from the specified branch or tag.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700677 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700678 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
679 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
680 &quot;a_key&quot;: &quot;A String&quot;,
681 },
682 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
683 # are:
684 #
685 # * BUILD: time to execute all build steps
686 # * PUSH: time to push all specified images.
687 # * FETCHSOURCE: time to fetch source.
688 #
689 # If the build does not specify source or images,
690 # these keys will not be included.
691 &quot;a_key&quot;: { # Start and end times for a build execution phase.
692 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
693 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
694 },
695 },
696 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
697 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
698 # some source was used for this build.
699 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
700 # the original source integrity was maintained in the build. Note that
701 # `FileHashes` will only be populated if `BuildOptions` has requested a
702 # `SourceProvenanceHash`.
703 #
704 # The keys to this map are file paths used as build source and the values
705 # contain the hash values for those files.
706 #
707 # If the build source came in a single package such as a gzipped tarfile
708 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
709 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
710 # SourceProvenance messages to verify integrity of source input to the build.
711 &quot;fileHash&quot;: [ # Collection of file hashes.
712 { # Container message for hash values.
713 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
714 &quot;value&quot;: &quot;A String&quot;, # The hash value.
715 },
716 ],
717 },
718 },
719 &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
720 # revisions resolved.
721 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
722 #
723 # The syntax of the regular expressions accepted is the syntax accepted by
724 # RE2 and described at https://github.com/google/re2/wiki/Syntax
725 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
726 #
727 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
728 # absolute path, this value is ignored for that step&#x27;s execution.
729 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
730 #
731 # The syntax of the regular expressions accepted is the syntax accepted by
732 # RE2 and described at https://github.com/google/re2/wiki/Syntax
733 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
734 # project ID requesting the build is assumed.
735 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
736 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
737 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
738 # Should only be used with RunBuildTrigger
739 &quot;a_key&quot;: &quot;A String&quot;,
740 },
741 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
742 # regex.
743 },
744 &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
745 # generations resolved.
746 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
747 #
748 # This object must be a gzipped archive file (`.tar.gz`) containing source to
749 # build.
750 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
751 # omitted, the latest generation will be used.
752 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
753 # [Bucket Name
754 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
755 },
756 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &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 -0700758 # steps.
759 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700760 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700761 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700763 # results field.
764 #
765 # If any of the images fail to be pushed, the build status is marked
766 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700767 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700768 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
770 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
771 &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 -0700772 # than this value, the build will expire and the build status will be
773 # `EXPIRED`.
774 #
775 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 &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 -0700777 #
778 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -0700779 # build&#x27;s execution.
780 &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 -0700781 &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
782 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -0700783 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700784 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700785 # The syntax of the regular expressions accepted is the syntax accepted by
786 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700787 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
788 #
789 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
790 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700792 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700793 # The syntax of the regular expressions accepted is the syntax accepted by
794 # RE2 and described at https://github.com/google/re2/wiki/Syntax
795 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
796 # project ID requesting the build is assumed.
797 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700798 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
799 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
800 # Should only be used with RunBuildTrigger
801 &quot;a_key&quot;: &quot;A String&quot;,
802 },
803 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
804 # regex.
805 },
806 &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.
807 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
808 #
809 # This object must be a gzipped archive file (`.tar.gz`) containing source to
810 # build.
811 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
812 # omitted, the latest generation will be used.
813 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
814 # [Bucket Name
815 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700816 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700817 },
818 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700819 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
820 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -0700822 # build steps in this build. If a variable is defined in both globally and in
823 # a build step, the variable will use the build step value.
824 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
826 # being given the value &quot;VALUE&quot;.
827 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700828 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700829 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
830 # Format: projects/{project}/workerPools/{workerPool}
831 #
832 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
834 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700835 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
836 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700837 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700838 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
839 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -0700840 # build utilities. Also note that this is the minimum disk size that will be
841 # allocated for the build -- the build may run with a larger disk than
842 # requested. At present, the maximum disk size is 1000GB; builds that request
843 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
845 &quot;A String&quot;,
846 ],
847 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
848 # Key Management Service crypto key. These values must be specified in the
849 # build&#x27;s `Secret`. These variables will be available to all build steps
850 # in this build.
851 &quot;A String&quot;,
852 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700853 &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 -0700854 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700855 #
856 # Each volume is created as an empty volume prior to starting the build
857 # process. Upon completion of the build, volumes and their contents are
858 # discarded. Global volume names and paths cannot conflict with the volumes
859 # defined a build step.
860 #
861 # Using a global volume in a build with only one step is not valid as
862 # it is indicative of a build request with an incorrect configuration.
863 { # Volume describes a Docker container volume which is mounted into build steps
864 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700865 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700866 #
867 # Paths must be absolute and cannot conflict with other volume paths on the
868 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700870 #
871 # Volume names must be unique per build step and must be valid names for
872 # Docker volumes. Each named volume must be used by at least two build steps.
873 },
874 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700875 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700876 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
877 # granularity. If this amount of time elapses, work on the build will cease
878 # and the build status will be `TIMEOUT`.
879 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700880 # `timeout` starts ticking from `startTime`.
881 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700882 # Default time is ten minutes.
883 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
884 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
885 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
886 # successful completion of all build steps.
887 # successful completion of all build steps.
888 &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
889 # completion of all build steps.
890 #
891 # Files in the workspace matching specified paths globs will be uploaded to
892 # the specified Cloud Storage location using the builder service account&#x27;s
893 # credentials.
894 #
895 # The location and generation of the uploaded objects will be stored in the
896 # Build resource&#x27;s results field.
897 #
898 # If any objects fail to be pushed, the build is marked FAILURE.
899 # completion of all build steps.
900 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
901 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
902 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
903 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
905 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
906 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
907 #
908 # Files in the workspace matching any path pattern will be uploaded to
909 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700910 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
911 &quot;A String&quot;,
912 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700913 },
914 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
915 # steps.
916 #
917 # The images will be pushed using the builder service account&#x27;s credentials.
918 #
919 # The digests of the pushed images will be stored in the Build resource&#x27;s
920 # results field.
921 #
922 # If any of the images fail to be pushed, the build is marked FAILURE.
923 &quot;A String&quot;,
924 ],
925 },
926 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
927 { # Pairs a set of secret environment variables containing encrypted
928 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700929 &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 -0700930 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
931 #
932 # Secret environment variables must be unique across all of a build&#x27;s
933 # secrets, and must be used by at least one build step. Values can be at most
934 # 64 KB in size. There can be at most 100 secret values across all of a
935 # build&#x27;s secrets.
936 &quot;a_key&quot;: &quot;A String&quot;,
937 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700938 },
939 ],
940 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700941 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
942 &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 -0700943 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
944 # indices.
945 &quot;A String&quot;,
946 ],
947 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
948 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
949 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
950 },
951 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
952 # corresponding to build step indices.
953 #
954 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
955 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
956 # Only the first 4KB of data is stored.
957 &quot;A String&quot;,
958 ],
959 &quot;images&quot;: [ # Container images that were built as a part of the build.
960 { # An image built by the pipeline.
961 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
962 # presented to `docker push`.
963 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
964 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
965 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
966 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
967 },
968 },
969 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700970 },
971 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
972 # [Bucket Name
973 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
974 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
975 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
976 { # A step in the build pipeline.
977 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
978 # If unset, the image&#x27;s default entrypoint is used.
979 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
980 #
981 # Each volume is created as an empty volume prior to execution of the
982 # build step. Upon completion of the build, volumes and their contents are
983 # discarded.
984 #
985 # Using a named volume in only one step is not valid as it is indicative
986 # of a build request with an incorrect configuration.
987 { # Volume describes a Docker container volume which is mounted into build steps
988 # in order to persist files across build step execution.
989 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
990 #
991 # Paths must be absolute and cannot conflict with other volume paths on the
992 # same build step or with certain reserved volume paths.
993 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
994 #
995 # Volume names must be unique per build step and must be valid names for
996 # Docker volumes. Each named volume must be used by at least two build steps.
997 },
998 ],
999 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
1000 #
1001 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
1002 # are used as arguments to that entrypoint. If the image does not define
1003 # an entrypoint, the first element in args is used as the entrypoint,
1004 # and the remainder will be used as arguments.
1005 &quot;A String&quot;,
1006 ],
1007 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
1008 # only updated on build completion; step status is not updated in real-time
1009 # as the build progresses.
1010 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
1011 # time limit and will be allowed to continue to run until either it completes
1012 # or the build itself times out.
1013 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
1014 # builder image only.
1015 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1016 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1017 },
1018 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
1019 # build step.
1020 #
1021 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
1022 # will be run directly. If not, the host will attempt to pull the image
1023 # first, using the builder service account&#x27;s credentials if necessary.
1024 #
1025 # The Docker daemon&#x27;s cache will already have the latest versions of all of
1026 # the officially supported build steps
1027 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
1028 # The Docker daemon will also have cached many of the layers for some popular
1029 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
1030 # attempt to use them.
1031 #
1032 # If you built an image in a previous build step, it will be stored in the
1033 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
1034 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -07001035 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
1036 # Management Service crypto key. These values must be specified in the
1037 # build&#x27;s `Secret`.
1038 &quot;A String&quot;,
1039 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001040 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
1041 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -07001042 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
1043 #
1044 # If this value is a relative path, it is relative to the build&#x27;s working
1045 # directory. If this value is absolute, it may be outside the build&#x27;s working
1046 # directory, in which case the contents of the path may not be persisted
1047 # across build step executions, unless a `volume` for that path is specified.
1048 #
1049 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
1050 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
1051 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001052 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1053 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1054 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1055 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001056 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
1057 # This build step will not start until all the build steps in `wait_for`
1058 # have completed successfully. If `wait_for` is empty, this build step will
1059 # start when all previous build steps in the `Build.Steps` list have
1060 # completed successfully.
1061 &quot;A String&quot;,
1062 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001063 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
1064 #
1065 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1066 # being given the value &quot;VALUE&quot;.
1067 &quot;A String&quot;,
1068 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001069 },
1070 ],
1071 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
1072 # was triggered automatically.
1073 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1074 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1075 &quot;A String&quot;,
1076 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001077 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001078 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
1079 # a build whenever a GitHub event is received.
1080 #
1081 # Mutually exclusive with `trigger_template`.
1082 # build whenever a GitHub event is received.
1083 #
1084 # This message is experimental.
1085 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
1086 # Requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001087 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
1088 # comments `/gcbrun`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001089 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
1090 #
1091 # The syntax of the regular expressions accepted is the syntax accepted by
1092 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1093 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001094 },
1095 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1096 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
1097 #
1098 # The syntax of the regular expressions accepted is the syntax accepted by
1099 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1100 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
1101 # git_ref regex.
1102 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
1103 #
1104 # The syntax of the regular expressions accepted is the syntax accepted by
1105 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1106 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001107 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
1109 # https://github.com/googlecloudplatform/cloud-builders is
1110 # &quot;googlecloudplatform&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001111 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
1112 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1113 },
1114 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
1115 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
1116 #
1117 # If ignored_files and changed files are both empty, then they are
1118 # not used to determine whether or not to trigger a build.
1119 #
1120 # If ignored_files is not empty, then we ignore any files that match
1121 # any of the ignored_file globs. If the change has no files that are
1122 # outside of the ignored_files globs, then we do not trigger a build.
1123 &quot;A String&quot;,
1124 ],
1125 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
1126 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
1127 # keys in bindings.
1128 &quot;a_key&quot;: &quot;A String&quot;,
1129 },
1130 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001131 # filter and included_files is empty, then as far as this filter is
1132 # concerned, we should trigger the build.
1133 #
1134 # If any of the files altered in the commit pass the ignored_files
1135 # filter and included_files is not empty, then we make sure that at
1136 # least one of those files matches a included_files glob. If not,
1137 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001139 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001140 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
1141 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1142 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001143 #
Thomas Coffee2f245372017-03-27 10:39:26 -07001144 # Branch and tag names in trigger templates are interpreted as regular
1145 # expressions. Any branch or tag change that matches that regular expression
1146 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001147 #
1148 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001150 #
1151 # The syntax of the regular expressions accepted is the syntax accepted by
1152 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001153 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1154 #
1155 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1156 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001157 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001158 #
1159 # The syntax of the regular expressions accepted is the syntax accepted by
1160 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1162 # project ID requesting the build is assumed.
1163 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001164 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1165 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1166 # Should only be used with RunBuildTrigger
1167 &quot;a_key&quot;: &quot;A String&quot;,
1168 },
1169 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1170 # regex.
Thomas Coffee2f245372017-03-27 10:39:26 -07001171 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001172 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001173</div>
1174
1175<div class="method">
1176 <code class="details" id="delete">delete(projectId, triggerId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001177 <pre>Deletes a `BuildTrigger` by its project ID and trigger ID.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001178
1179This API is experimental.
1180
1181Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001182 projectId: string, Required. ID of the project that owns the trigger. (required)
1183 triggerId: string, Required. ID of the `BuildTrigger` to delete. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001184 x__xgafv: string, V1 error format.
1185 Allowed values
1186 1 - v1 error format
1187 2 - v2 error format
1188
1189Returns:
1190 An object of the form:
1191
1192 { # A generic empty message that you can re-use to avoid defining duplicated
1193 # empty messages in your APIs. A typical example is to use it as the request
1194 # or the response type of an API method. For instance:
1195 #
1196 # service Foo {
1197 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1198 # }
1199 #
1200 # The JSON representation for `Empty` is empty JSON object `{}`.
1201 }</pre>
1202</div>
1203
1204<div class="method">
1205 <code class="details" id="get">get(projectId, triggerId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001206 <pre>Returns information about a `BuildTrigger`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001207
1208This API is experimental.
1209
1210Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001211 projectId: string, Required. ID of the project that owns the trigger. (required)
1212 triggerId: string, Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001213 x__xgafv: string, V1 error format.
1214 Allowed values
1215 1 - v1 error format
1216 2 - v2 error format
1217
1218Returns:
1219 An object of the form:
1220
1221 { # Configuration for an automated build in response to source repository
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001222 # changes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001223 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim65020912020-05-20 12:08:20 -07001224 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001225 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -07001226 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
1227 # Trigger names must meet the following requirements:
1228 #
1229 # + They must contain only alphanumeric characters and dashes.
1230 # + They can be 1-64 characters long.
1231 # + They must begin and end with an alphanumeric character.
1232 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1233 &quot;A String&quot;,
1234 ],
1235 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1236 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001237 #
1238 # At a high level, a `Build` describes where to find source code, how to build
1239 # it (for example, the builder image to run on the source), and where to store
1240 # the built artifacts.
1241 #
1242 # Fields can include the following variables, which will be expanded when the
1243 # build is created:
1244 #
1245 # - $PROJECT_ID: the project ID of the build.
1246 # - $BUILD_ID: the autogenerated ID of the build.
1247 # - $REPO_NAME: the source repository name specified by RepoSource.
1248 # - $BRANCH_NAME: the branch name specified by RepoSource.
1249 # - $TAG_NAME: the tag name specified by RepoSource.
1250 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
1251 # resolved from the specified branch or tag.
1252 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001253 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1254 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1255 &quot;a_key&quot;: &quot;A String&quot;,
1256 },
1257 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
1258 # are:
1259 #
1260 # * BUILD: time to execute all build steps
1261 # * PUSH: time to push all specified images.
1262 # * FETCHSOURCE: time to fetch source.
1263 #
1264 # If the build does not specify source or images,
1265 # these keys will not be included.
1266 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1267 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1268 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1269 },
1270 },
1271 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1272 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
1273 # some source was used for this build.
1274 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
1275 # the original source integrity was maintained in the build. Note that
1276 # `FileHashes` will only be populated if `BuildOptions` has requested a
1277 # `SourceProvenanceHash`.
1278 #
1279 # The keys to this map are file paths used as build source and the values
1280 # contain the hash values for those files.
1281 #
1282 # If the build source came in a single package such as a gzipped tarfile
1283 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
1284 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
1285 # SourceProvenance messages to verify integrity of source input to the build.
1286 &quot;fileHash&quot;: [ # Collection of file hashes.
1287 { # Container message for hash values.
1288 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1289 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1290 },
1291 ],
1292 },
1293 },
1294 &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
1295 # revisions resolved.
1296 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
1297 #
1298 # The syntax of the regular expressions accepted is the syntax accepted by
1299 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1300 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1301 #
1302 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1303 # absolute path, this value is ignored for that step&#x27;s execution.
1304 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
1305 #
1306 # The syntax of the regular expressions accepted is the syntax accepted by
1307 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1308 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1309 # project ID requesting the build is assumed.
1310 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1311 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1312 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1313 # Should only be used with RunBuildTrigger
1314 &quot;a_key&quot;: &quot;A String&quot;,
1315 },
1316 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1317 # regex.
1318 },
1319 &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
1320 # generations resolved.
1321 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1322 #
1323 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1324 # build.
1325 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1326 # omitted, the latest generation will be used.
1327 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1328 # [Bucket Name
1329 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1330 },
1331 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001332 &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 -07001333 # steps.
1334 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001335 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001336 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001338 # results field.
1339 #
1340 # If any of the images fail to be pushed, the build status is marked
1341 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001342 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001343 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001344 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1345 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1346 &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 -07001347 # than this value, the build will expire and the build status will be
1348 # `EXPIRED`.
1349 #
1350 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001351 &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 -07001352 #
1353 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07001354 # build&#x27;s execution.
1355 &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 -07001356 &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
1357 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -07001358 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001359 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 # The syntax of the regular expressions accepted is the syntax accepted by
1361 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001362 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1363 #
1364 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1365 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001366 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001367 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001368 # The syntax of the regular expressions accepted is the syntax accepted by
1369 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1370 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1371 # project ID requesting the build is assumed.
1372 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001373 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1374 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1375 # Should only be used with RunBuildTrigger
1376 &quot;a_key&quot;: &quot;A String&quot;,
1377 },
1378 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1379 # regex.
1380 },
1381 &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.
1382 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1383 #
1384 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1385 # build.
1386 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1387 # omitted, the latest generation will be used.
1388 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1389 # [Bucket Name
1390 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001391 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001392 },
1393 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001394 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
1395 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07001397 # build steps in this build. If a variable is defined in both globally and in
1398 # a build step, the variable will use the build step value.
1399 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001400 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1401 # being given the value &quot;VALUE&quot;.
1402 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001403 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001404 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
1405 # Format: projects/{project}/workerPools/{workerPool}
1406 #
1407 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07001408 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
1409 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001410 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
1411 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001412 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001413 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
1414 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07001415 # build utilities. Also note that this is the minimum disk size that will be
1416 # allocated for the build -- the build may run with a larger disk than
1417 # requested. At present, the maximum disk size is 1000GB; builds that request
1418 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001419 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1420 &quot;A String&quot;,
1421 ],
1422 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
1423 # Key Management Service crypto key. These values must be specified in the
1424 # build&#x27;s `Secret`. These variables will be available to all build steps
1425 # in this build.
1426 &quot;A String&quot;,
1427 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001428 &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 -07001429 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001430 #
1431 # Each volume is created as an empty volume prior to starting the build
1432 # process. Upon completion of the build, volumes and their contents are
1433 # discarded. Global volume names and paths cannot conflict with the volumes
1434 # defined a build step.
1435 #
1436 # Using a global volume in a build with only one step is not valid as
1437 # it is indicative of a build request with an incorrect configuration.
1438 { # Volume describes a Docker container volume which is mounted into build steps
1439 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001440 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001441 #
1442 # Paths must be absolute and cannot conflict with other volume paths on the
1443 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07001444 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001445 #
1446 # Volume names must be unique per build step and must be valid names for
1447 # Docker volumes. Each named volume must be used by at least two build steps.
1448 },
1449 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001450 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001451 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
1452 # granularity. If this amount of time elapses, work on the build will cease
1453 # and the build status will be `TIMEOUT`.
1454 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001455 # `timeout` starts ticking from `startTime`.
1456 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001457 # Default time is ten minutes.
1458 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1459 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1460 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
1461 # successful completion of all build steps.
1462 # successful completion of all build steps.
1463 &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
1464 # completion of all build steps.
1465 #
1466 # Files in the workspace matching specified paths globs will be uploaded to
1467 # the specified Cloud Storage location using the builder service account&#x27;s
1468 # credentials.
1469 #
1470 # The location and generation of the uploaded objects will be stored in the
1471 # Build resource&#x27;s results field.
1472 #
1473 # If any objects fail to be pushed, the build is marked FAILURE.
1474 # completion of all build steps.
1475 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1476 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1477 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1478 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001479 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
1480 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
1481 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1482 #
1483 # Files in the workspace matching any path pattern will be uploaded to
1484 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001485 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1486 &quot;A String&quot;,
1487 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001488 },
1489 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
1490 # steps.
1491 #
1492 # The images will be pushed using the builder service account&#x27;s credentials.
1493 #
1494 # The digests of the pushed images will be stored in the Build resource&#x27;s
1495 # results field.
1496 #
1497 # If any of the images fail to be pushed, the build is marked FAILURE.
1498 &quot;A String&quot;,
1499 ],
1500 },
1501 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1502 { # Pairs a set of secret environment variables containing encrypted
1503 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001504 &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 -07001505 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
1506 #
1507 # Secret environment variables must be unique across all of a build&#x27;s
1508 # secrets, and must be used by at least one build step. Values can be at most
1509 # 64 KB in size. There can be at most 100 secret values across all of a
1510 # build&#x27;s secrets.
1511 &quot;a_key&quot;: &quot;A String&quot;,
1512 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001513 },
1514 ],
1515 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001516 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1517 &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 -07001518 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
1519 # indices.
1520 &quot;A String&quot;,
1521 ],
1522 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1523 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1524 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1525 },
1526 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
1527 # corresponding to build step indices.
1528 #
1529 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
1530 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
1531 # Only the first 4KB of data is stored.
1532 &quot;A String&quot;,
1533 ],
1534 &quot;images&quot;: [ # Container images that were built as a part of the build.
1535 { # An image built by the pipeline.
1536 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
1537 # presented to `docker push`.
1538 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1539 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1540 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1541 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1542 },
1543 },
1544 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001545 },
1546 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
1547 # [Bucket Name
1548 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1549 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1550 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1551 { # A step in the build pipeline.
1552 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
1553 # If unset, the image&#x27;s default entrypoint is used.
1554 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
1555 #
1556 # Each volume is created as an empty volume prior to execution of the
1557 # build step. Upon completion of the build, volumes and their contents are
1558 # discarded.
1559 #
1560 # Using a named volume in only one step is not valid as it is indicative
1561 # of a build request with an incorrect configuration.
1562 { # Volume describes a Docker container volume which is mounted into build steps
1563 # in order to persist files across build step execution.
1564 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
1565 #
1566 # Paths must be absolute and cannot conflict with other volume paths on the
1567 # same build step or with certain reserved volume paths.
1568 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
1569 #
1570 # Volume names must be unique per build step and must be valid names for
1571 # Docker volumes. Each named volume must be used by at least two build steps.
1572 },
1573 ],
1574 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
1575 #
1576 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
1577 # are used as arguments to that entrypoint. If the image does not define
1578 # an entrypoint, the first element in args is used as the entrypoint,
1579 # and the remainder will be used as arguments.
1580 &quot;A String&quot;,
1581 ],
1582 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
1583 # only updated on build completion; step status is not updated in real-time
1584 # as the build progresses.
1585 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
1586 # time limit and will be allowed to continue to run until either it completes
1587 # or the build itself times out.
1588 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
1589 # builder image only.
1590 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1591 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1592 },
1593 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
1594 # build step.
1595 #
1596 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
1597 # will be run directly. If not, the host will attempt to pull the image
1598 # first, using the builder service account&#x27;s credentials if necessary.
1599 #
1600 # The Docker daemon&#x27;s cache will already have the latest versions of all of
1601 # the officially supported build steps
1602 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
1603 # The Docker daemon will also have cached many of the layers for some popular
1604 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
1605 # attempt to use them.
1606 #
1607 # If you built an image in a previous build step, it will be stored in the
1608 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
1609 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -07001610 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
1611 # Management Service crypto key. These values must be specified in the
1612 # build&#x27;s `Secret`.
1613 &quot;A String&quot;,
1614 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001615 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
1616 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -07001617 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
1618 #
1619 # If this value is a relative path, it is relative to the build&#x27;s working
1620 # directory. If this value is absolute, it may be outside the build&#x27;s working
1621 # directory, in which case the contents of the path may not be persisted
1622 # across build step executions, unless a `volume` for that path is specified.
1623 #
1624 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
1625 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
1626 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001627 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1628 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1629 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1630 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001631 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
1632 # This build step will not start until all the build steps in `wait_for`
1633 # have completed successfully. If `wait_for` is empty, this build step will
1634 # start when all previous build steps in the `Build.Steps` list have
1635 # completed successfully.
1636 &quot;A String&quot;,
1637 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001638 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
1639 #
1640 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1641 # being given the value &quot;VALUE&quot;.
1642 &quot;A String&quot;,
1643 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001644 },
1645 ],
1646 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
1647 # was triggered automatically.
1648 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1649 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1650 &quot;A String&quot;,
1651 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001652 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001653 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
1654 # a build whenever a GitHub event is received.
1655 #
1656 # Mutually exclusive with `trigger_template`.
1657 # build whenever a GitHub event is received.
1658 #
1659 # This message is experimental.
1660 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
1661 # Requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001662 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
1663 # comments `/gcbrun`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001664 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
1665 #
1666 # The syntax of the regular expressions accepted is the syntax accepted by
1667 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1668 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001669 },
1670 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1671 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
1672 #
1673 # The syntax of the regular expressions accepted is the syntax accepted by
1674 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1675 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
1676 # git_ref regex.
1677 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
1678 #
1679 # The syntax of the regular expressions accepted is the syntax accepted by
1680 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1681 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001682 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Bu Sun Kim65020912020-05-20 12:08:20 -07001683 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
1684 # https://github.com/googlecloudplatform/cloud-builders is
1685 # &quot;googlecloudplatform&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001686 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
1687 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1688 },
1689 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
1690 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
1691 #
1692 # If ignored_files and changed files are both empty, then they are
1693 # not used to determine whether or not to trigger a build.
1694 #
1695 # If ignored_files is not empty, then we ignore any files that match
1696 # any of the ignored_file globs. If the change has no files that are
1697 # outside of the ignored_files globs, then we do not trigger a build.
1698 &quot;A String&quot;,
1699 ],
1700 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
1701 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
1702 # keys in bindings.
1703 &quot;a_key&quot;: &quot;A String&quot;,
1704 },
1705 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001706 # filter and included_files is empty, then as far as this filter is
1707 # concerned, we should trigger the build.
1708 #
1709 # If any of the files altered in the commit pass the ignored_files
1710 # filter and included_files is not empty, then we make sure that at
1711 # least one of those files matches a included_files glob. If not,
1712 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001713 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001714 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001715 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
1716 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1717 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001718 #
1719 # Branch and tag names in trigger templates are interpreted as regular
1720 # expressions. Any branch or tag change that matches that regular expression
1721 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001722 #
1723 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001724 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001725 #
1726 # The syntax of the regular expressions accepted is the syntax accepted by
1727 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001728 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1729 #
1730 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1731 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001732 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001733 #
1734 # The syntax of the regular expressions accepted is the syntax accepted by
1735 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07001736 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1737 # project ID requesting the build is assumed.
1738 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001739 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1740 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1741 # Should only be used with RunBuildTrigger
1742 &quot;a_key&quot;: &quot;A String&quot;,
1743 },
1744 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1745 # regex.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001746 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001747 }</pre>
1748</div>
1749
1750<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001751 <code class="details" id="list">list(projectId, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001752 <pre>Lists existing `BuildTrigger`s.
1753
1754This API is experimental.
1755
1756Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001757 projectId: string, Required. ID of the project for which to list BuildTriggers. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001758 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001759 pageSize: integer, Number of results to return in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001760 x__xgafv: string, V1 error format.
1761 Allowed values
1762 1 - v1 error format
1763 2 - v2 error format
1764
1765Returns:
1766 An object of the form:
1767
1768 { # Response containing existing `BuildTriggers`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001769 &quot;triggers&quot;: [ # `BuildTriggers` for the project, sorted by `create_time` descending.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001770 { # Configuration for an automated build in response to source repository
1771 # changes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001772 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim65020912020-05-20 12:08:20 -07001773 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001774 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -07001775 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
1776 # Trigger names must meet the following requirements:
1777 #
1778 # + They must contain only alphanumeric characters and dashes.
1779 # + They can be 1-64 characters long.
1780 # + They must begin and end with an alphanumeric character.
1781 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1782 &quot;A String&quot;,
1783 ],
1784 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1785 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001786 #
1787 # At a high level, a `Build` describes where to find source code, how to build
1788 # it (for example, the builder image to run on the source), and where to store
1789 # the built artifacts.
1790 #
1791 # Fields can include the following variables, which will be expanded when the
1792 # build is created:
1793 #
1794 # - $PROJECT_ID: the project ID of the build.
1795 # - $BUILD_ID: the autogenerated ID of the build.
1796 # - $REPO_NAME: the source repository name specified by RepoSource.
1797 # - $BRANCH_NAME: the branch name specified by RepoSource.
1798 # - $TAG_NAME: the tag name specified by RepoSource.
1799 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
1800 # resolved from the specified branch or tag.
1801 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001802 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1803 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1804 &quot;a_key&quot;: &quot;A String&quot;,
1805 },
1806 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
1807 # are:
1808 #
1809 # * BUILD: time to execute all build steps
1810 # * PUSH: time to push all specified images.
1811 # * FETCHSOURCE: time to fetch source.
1812 #
1813 # If the build does not specify source or images,
1814 # these keys will not be included.
1815 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1816 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1817 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1818 },
1819 },
1820 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1821 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
1822 # some source was used for this build.
1823 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
1824 # the original source integrity was maintained in the build. Note that
1825 # `FileHashes` will only be populated if `BuildOptions` has requested a
1826 # `SourceProvenanceHash`.
1827 #
1828 # The keys to this map are file paths used as build source and the values
1829 # contain the hash values for those files.
1830 #
1831 # If the build source came in a single package such as a gzipped tarfile
1832 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
1833 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
1834 # SourceProvenance messages to verify integrity of source input to the build.
1835 &quot;fileHash&quot;: [ # Collection of file hashes.
1836 { # Container message for hash values.
1837 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1838 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1839 },
1840 ],
1841 },
1842 },
1843 &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
1844 # revisions resolved.
1845 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
1846 #
1847 # The syntax of the regular expressions accepted is the syntax accepted by
1848 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1849 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1850 #
1851 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1852 # absolute path, this value is ignored for that step&#x27;s execution.
1853 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
1854 #
1855 # The syntax of the regular expressions accepted is the syntax accepted by
1856 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1857 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1858 # project ID requesting the build is assumed.
1859 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1860 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1861 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1862 # Should only be used with RunBuildTrigger
1863 &quot;a_key&quot;: &quot;A String&quot;,
1864 },
1865 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1866 # regex.
1867 },
1868 &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
1869 # generations resolved.
1870 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1871 #
1872 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1873 # build.
1874 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1875 # omitted, the latest generation will be used.
1876 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1877 # [Bucket Name
1878 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1879 },
1880 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001881 &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 -07001882 # steps.
1883 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001884 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001885 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001886 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001887 # results field.
1888 #
1889 # If any of the images fail to be pushed, the build status is marked
1890 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001891 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001892 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001893 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1894 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1895 &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 -07001896 # than this value, the build will expire and the build status will be
1897 # `EXPIRED`.
1898 #
1899 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001900 &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 -07001901 #
1902 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07001903 # build&#x27;s execution.
1904 &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 -07001905 &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
1906 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -07001907 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001908 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001909 # The syntax of the regular expressions accepted is the syntax accepted by
1910 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001911 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1912 #
1913 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1914 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001915 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001916 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001917 # The syntax of the regular expressions accepted is the syntax accepted by
1918 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1919 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1920 # project ID requesting the build is assumed.
1921 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001922 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1923 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1924 # Should only be used with RunBuildTrigger
1925 &quot;a_key&quot;: &quot;A String&quot;,
1926 },
1927 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1928 # regex.
1929 },
1930 &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.
1931 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1932 #
1933 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1934 # build.
1935 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1936 # omitted, the latest generation will be used.
1937 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1938 # [Bucket Name
1939 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001940 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001941 },
1942 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001943 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
1944 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001945 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07001946 # build steps in this build. If a variable is defined in both globally and in
1947 # a build step, the variable will use the build step value.
1948 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001949 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1950 # being given the value &quot;VALUE&quot;.
1951 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001952 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001953 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
1954 # Format: projects/{project}/workerPools/{workerPool}
1955 #
1956 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07001957 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
1958 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001959 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
1960 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001961 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001962 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
1963 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07001964 # build utilities. Also note that this is the minimum disk size that will be
1965 # allocated for the build -- the build may run with a larger disk than
1966 # requested. At present, the maximum disk size is 1000GB; builds that request
1967 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001968 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1969 &quot;A String&quot;,
1970 ],
1971 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
1972 # Key Management Service crypto key. These values must be specified in the
1973 # build&#x27;s `Secret`. These variables will be available to all build steps
1974 # in this build.
1975 &quot;A String&quot;,
1976 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001977 &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 -07001978 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001979 #
1980 # Each volume is created as an empty volume prior to starting the build
1981 # process. Upon completion of the build, volumes and their contents are
1982 # discarded. Global volume names and paths cannot conflict with the volumes
1983 # defined a build step.
1984 #
1985 # Using a global volume in a build with only one step is not valid as
1986 # it is indicative of a build request with an incorrect configuration.
1987 { # Volume describes a Docker container volume which is mounted into build steps
1988 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001989 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001990 #
1991 # Paths must be absolute and cannot conflict with other volume paths on the
1992 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07001993 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001994 #
1995 # Volume names must be unique per build step and must be valid names for
1996 # Docker volumes. Each named volume must be used by at least two build steps.
1997 },
1998 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001999 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002000 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
2001 # granularity. If this amount of time elapses, work on the build will cease
2002 # and the build status will be `TIMEOUT`.
2003 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002004 # `timeout` starts ticking from `startTime`.
2005 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002006 # Default time is ten minutes.
2007 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
2008 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
2009 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
2010 # successful completion of all build steps.
2011 # successful completion of all build steps.
2012 &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
2013 # completion of all build steps.
2014 #
2015 # Files in the workspace matching specified paths globs will be uploaded to
2016 # the specified Cloud Storage location using the builder service account&#x27;s
2017 # credentials.
2018 #
2019 # The location and generation of the uploaded objects will be stored in the
2020 # Build resource&#x27;s results field.
2021 #
2022 # If any objects fail to be pushed, the build is marked FAILURE.
2023 # completion of all build steps.
2024 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
2025 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2026 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2027 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002028 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
2029 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
2030 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2031 #
2032 # Files in the workspace matching any path pattern will be uploaded to
2033 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002034 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
2035 &quot;A String&quot;,
2036 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002037 },
2038 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
2039 # steps.
2040 #
2041 # The images will be pushed using the builder service account&#x27;s credentials.
2042 #
2043 # The digests of the pushed images will be stored in the Build resource&#x27;s
2044 # results field.
2045 #
2046 # If any of the images fail to be pushed, the build is marked FAILURE.
2047 &quot;A String&quot;,
2048 ],
2049 },
2050 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
2051 { # Pairs a set of secret environment variables containing encrypted
2052 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002053 &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 -07002054 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
2055 #
2056 # Secret environment variables must be unique across all of a build&#x27;s
2057 # secrets, and must be used by at least one build step. Values can be at most
2058 # 64 KB in size. There can be at most 100 secret values across all of a
2059 # build&#x27;s secrets.
2060 &quot;a_key&quot;: &quot;A String&quot;,
2061 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002062 },
2063 ],
2064 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002065 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
2066 &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 -07002067 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
2068 # indices.
2069 &quot;A String&quot;,
2070 ],
2071 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
2072 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2073 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2074 },
2075 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
2076 # corresponding to build step indices.
2077 #
2078 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
2079 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
2080 # Only the first 4KB of data is stored.
2081 &quot;A String&quot;,
2082 ],
2083 &quot;images&quot;: [ # Container images that were built as a part of the build.
2084 { # An image built by the pipeline.
2085 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
2086 # presented to `docker push`.
2087 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
2088 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
2089 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2090 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2091 },
2092 },
2093 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002094 },
2095 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
2096 # [Bucket Name
2097 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2098 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
2099 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
2100 { # A step in the build pipeline.
2101 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
2102 # If unset, the image&#x27;s default entrypoint is used.
2103 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
2104 #
2105 # Each volume is created as an empty volume prior to execution of the
2106 # build step. Upon completion of the build, volumes and their contents are
2107 # discarded.
2108 #
2109 # Using a named volume in only one step is not valid as it is indicative
2110 # of a build request with an incorrect configuration.
2111 { # Volume describes a Docker container volume which is mounted into build steps
2112 # in order to persist files across build step execution.
2113 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
2114 #
2115 # Paths must be absolute and cannot conflict with other volume paths on the
2116 # same build step or with certain reserved volume paths.
2117 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
2118 #
2119 # Volume names must be unique per build step and must be valid names for
2120 # Docker volumes. Each named volume must be used by at least two build steps.
2121 },
2122 ],
2123 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
2124 #
2125 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
2126 # are used as arguments to that entrypoint. If the image does not define
2127 # an entrypoint, the first element in args is used as the entrypoint,
2128 # and the remainder will be used as arguments.
2129 &quot;A String&quot;,
2130 ],
2131 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
2132 # only updated on build completion; step status is not updated in real-time
2133 # as the build progresses.
2134 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
2135 # time limit and will be allowed to continue to run until either it completes
2136 # or the build itself times out.
2137 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
2138 # builder image only.
2139 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2140 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2141 },
2142 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
2143 # build step.
2144 #
2145 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
2146 # will be run directly. If not, the host will attempt to pull the image
2147 # first, using the builder service account&#x27;s credentials if necessary.
2148 #
2149 # The Docker daemon&#x27;s cache will already have the latest versions of all of
2150 # the officially supported build steps
2151 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
2152 # The Docker daemon will also have cached many of the layers for some popular
2153 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
2154 # attempt to use them.
2155 #
2156 # If you built an image in a previous build step, it will be stored in the
2157 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
2158 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -07002159 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
2160 # Management Service crypto key. These values must be specified in the
2161 # build&#x27;s `Secret`.
2162 &quot;A String&quot;,
2163 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002164 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
2165 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -07002166 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
2167 #
2168 # If this value is a relative path, it is relative to the build&#x27;s working
2169 # directory. If this value is absolute, it may be outside the build&#x27;s working
2170 # directory, in which case the contents of the path may not be persisted
2171 # across build step executions, unless a `volume` for that path is specified.
2172 #
2173 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
2174 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
2175 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002176 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
2177 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2178 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2179 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002180 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
2181 # This build step will not start until all the build steps in `wait_for`
2182 # have completed successfully. If `wait_for` is empty, this build step will
2183 # start when all previous build steps in the `Build.Steps` list have
2184 # completed successfully.
2185 &quot;A String&quot;,
2186 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002187 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
2188 #
2189 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
2190 # being given the value &quot;VALUE&quot;.
2191 &quot;A String&quot;,
2192 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002193 },
2194 ],
2195 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
2196 # was triggered automatically.
2197 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
2198 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
2199 &quot;A String&quot;,
2200 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002201 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002202 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
2203 # a build whenever a GitHub event is received.
2204 #
2205 # Mutually exclusive with `trigger_template`.
2206 # build whenever a GitHub event is received.
2207 #
2208 # This message is experimental.
2209 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
2210 # Requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002211 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
2212 # comments `/gcbrun`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002213 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
2214 #
2215 # The syntax of the regular expressions accepted is the syntax accepted by
2216 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2217 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002218 },
2219 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
2220 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
2221 #
2222 # The syntax of the regular expressions accepted is the syntax accepted by
2223 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2224 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
2225 # git_ref regex.
2226 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
2227 #
2228 # The syntax of the regular expressions accepted is the syntax accepted by
2229 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2230 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002231 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Bu Sun Kim65020912020-05-20 12:08:20 -07002232 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
2233 # https://github.com/googlecloudplatform/cloud-builders is
2234 # &quot;googlecloudplatform&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002235 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
2236 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
2237 },
2238 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
2239 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
2240 #
2241 # If ignored_files and changed files are both empty, then they are
2242 # not used to determine whether or not to trigger a build.
2243 #
2244 # If ignored_files is not empty, then we ignore any files that match
2245 # any of the ignored_file globs. If the change has no files that are
2246 # outside of the ignored_files globs, then we do not trigger a build.
2247 &quot;A String&quot;,
2248 ],
2249 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
2250 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
2251 # keys in bindings.
2252 &quot;a_key&quot;: &quot;A String&quot;,
2253 },
2254 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002255 # filter and included_files is empty, then as far as this filter is
2256 # concerned, we should trigger the build.
2257 #
2258 # If any of the files altered in the commit pass the ignored_files
2259 # filter and included_files is not empty, then we make sure that at
2260 # least one of those files matches a included_files glob. If not,
2261 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002262 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002263 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002264 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
2265 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
2266 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002267 #
2268 # Branch and tag names in trigger templates are interpreted as regular
2269 # expressions. Any branch or tag change that matches that regular expression
2270 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002271 #
2272 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002273 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002274 #
2275 # The syntax of the regular expressions accepted is the syntax accepted by
2276 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002277 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2278 #
2279 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2280 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002281 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002282 #
2283 # The syntax of the regular expressions accepted is the syntax accepted by
2284 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07002285 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2286 # project ID requesting the build is assumed.
2287 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002288 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2289 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2290 # Should only be used with RunBuildTrigger
2291 &quot;a_key&quot;: &quot;A String&quot;,
2292 },
2293 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2294 # regex.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002295 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002296 },
2297 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002298 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002299 }</pre>
2300</div>
2301
2302<div class="method">
2303 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2304 <pre>Retrieves the next page of results.
2305
2306Args:
2307 previous_request: The request for the previous page. (required)
2308 previous_response: The response from the request for the previous page. (required)
2309
2310Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002311 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002312 page. Returns None if there are no more items in the collection.
2313 </pre>
2314</div>
2315
2316<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002317 <code class="details" id="patch">patch(projectId, triggerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002318 <pre>Updates a `BuildTrigger` by its project ID and trigger ID.
2319
2320This API is experimental.
2321
2322Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002323 projectId: string, Required. ID of the project that owns the trigger. (required)
2324 triggerId: string, Required. ID of the `BuildTrigger` to update. (required)
2325 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002326 The object takes the form of:
2327
2328{ # Configuration for an automated build in response to source repository
2329 # changes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002330 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim65020912020-05-20 12:08:20 -07002331 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002332 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -07002333 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
2334 # Trigger names must meet the following requirements:
2335 #
2336 # + They must contain only alphanumeric characters and dashes.
2337 # + They can be 1-64 characters long.
2338 # + They must begin and end with an alphanumeric character.
2339 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
2340 &quot;A String&quot;,
2341 ],
2342 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
2343 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002344 #
2345 # At a high level, a `Build` describes where to find source code, how to build
2346 # it (for example, the builder image to run on the source), and where to store
2347 # the built artifacts.
2348 #
2349 # Fields can include the following variables, which will be expanded when the
2350 # build is created:
2351 #
2352 # - $PROJECT_ID: the project ID of the build.
2353 # - $BUILD_ID: the autogenerated ID of the build.
2354 # - $REPO_NAME: the source repository name specified by RepoSource.
2355 # - $BRANCH_NAME: the branch name specified by RepoSource.
2356 # - $TAG_NAME: the tag name specified by RepoSource.
2357 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
2358 # resolved from the specified branch or tag.
2359 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002360 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
2361 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
2362 &quot;a_key&quot;: &quot;A String&quot;,
2363 },
2364 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
2365 # are:
2366 #
2367 # * BUILD: time to execute all build steps
2368 # * PUSH: time to push all specified images.
2369 # * FETCHSOURCE: time to fetch source.
2370 #
2371 # If the build does not specify source or images,
2372 # these keys will not be included.
2373 &quot;a_key&quot;: { # Start and end times for a build execution phase.
2374 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2375 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2376 },
2377 },
2378 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
2379 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
2380 # some source was used for this build.
2381 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
2382 # the original source integrity was maintained in the build. Note that
2383 # `FileHashes` will only be populated if `BuildOptions` has requested a
2384 # `SourceProvenanceHash`.
2385 #
2386 # The keys to this map are file paths used as build source and the values
2387 # contain the hash values for those files.
2388 #
2389 # If the build source came in a single package such as a gzipped tarfile
2390 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
2391 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
2392 # SourceProvenance messages to verify integrity of source input to the build.
2393 &quot;fileHash&quot;: [ # Collection of file hashes.
2394 { # Container message for hash values.
2395 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2396 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2397 },
2398 ],
2399 },
2400 },
2401 &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
2402 # revisions resolved.
2403 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
2404 #
2405 # The syntax of the regular expressions accepted is the syntax accepted by
2406 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2407 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2408 #
2409 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2410 # absolute path, this value is ignored for that step&#x27;s execution.
2411 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
2412 #
2413 # The syntax of the regular expressions accepted is the syntax accepted by
2414 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2415 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2416 # project ID requesting the build is assumed.
2417 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
2418 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2419 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2420 # Should only be used with RunBuildTrigger
2421 &quot;a_key&quot;: &quot;A String&quot;,
2422 },
2423 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2424 # regex.
2425 },
2426 &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
2427 # generations resolved.
2428 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
2429 #
2430 # This object must be a gzipped archive file (`.tar.gz`) containing source to
2431 # build.
2432 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
2433 # omitted, the latest generation will be used.
2434 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
2435 # [Bucket Name
2436 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2437 },
2438 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002439 &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 -07002440 # steps.
2441 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002442 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002443 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002444 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002445 # results field.
2446 #
2447 # If any of the images fail to be pushed, the build status is marked
2448 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002449 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002450 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002451 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
2452 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
2453 &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 -07002454 # than this value, the build will expire and the build status will be
2455 # `EXPIRED`.
2456 #
2457 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002458 &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 -07002459 #
2460 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07002461 # build&#x27;s execution.
2462 &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 -07002463 &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
2464 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -07002465 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002466 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002467 # The syntax of the regular expressions accepted is the syntax accepted by
2468 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002469 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2470 #
2471 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2472 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002473 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002474 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002475 # The syntax of the regular expressions accepted is the syntax accepted by
2476 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2477 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2478 # project ID requesting the build is assumed.
2479 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002480 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2481 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2482 # Should only be used with RunBuildTrigger
2483 &quot;a_key&quot;: &quot;A String&quot;,
2484 },
2485 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2486 # regex.
2487 },
2488 &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.
2489 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
2490 #
2491 # This object must be a gzipped archive file (`.tar.gz`) containing source to
2492 # build.
2493 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
2494 # omitted, the latest generation will be used.
2495 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
2496 # [Bucket Name
2497 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002498 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002499 },
2500 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002501 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
2502 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -07002503 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07002504 # build steps in this build. If a variable is defined in both globally and in
2505 # a build step, the variable will use the build step value.
2506 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002507 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
2508 # being given the value &quot;VALUE&quot;.
2509 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002510 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002511 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
2512 # Format: projects/{project}/workerPools/{workerPool}
2513 #
2514 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07002515 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
2516 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -07002517 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
2518 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002519 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -07002520 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
2521 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07002522 # build utilities. Also note that this is the minimum disk size that will be
2523 # allocated for the build -- the build may run with a larger disk than
2524 # requested. At present, the maximum disk size is 1000GB; builds that request
2525 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07002526 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
2527 &quot;A String&quot;,
2528 ],
2529 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
2530 # Key Management Service crypto key. These values must be specified in the
2531 # build&#x27;s `Secret`. These variables will be available to all build steps
2532 # in this build.
2533 &quot;A String&quot;,
2534 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002535 &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 -07002536 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002537 #
2538 # Each volume is created as an empty volume prior to starting the build
2539 # process. Upon completion of the build, volumes and their contents are
2540 # discarded. Global volume names and paths cannot conflict with the volumes
2541 # defined a build step.
2542 #
2543 # Using a global volume in a build with only one step is not valid as
2544 # it is indicative of a build request with an incorrect configuration.
2545 { # Volume describes a Docker container volume which is mounted into build steps
2546 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002547 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002548 #
2549 # Paths must be absolute and cannot conflict with other volume paths on the
2550 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07002551 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002552 #
2553 # Volume names must be unique per build step and must be valid names for
2554 # Docker volumes. Each named volume must be used by at least two build steps.
2555 },
2556 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002557 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002558 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
2559 # granularity. If this amount of time elapses, work on the build will cease
2560 # and the build status will be `TIMEOUT`.
2561 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002562 # `timeout` starts ticking from `startTime`.
2563 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002564 # Default time is ten minutes.
2565 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
2566 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
2567 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
2568 # successful completion of all build steps.
2569 # successful completion of all build steps.
2570 &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
2571 # completion of all build steps.
2572 #
2573 # Files in the workspace matching specified paths globs will be uploaded to
2574 # the specified Cloud Storage location using the builder service account&#x27;s
2575 # credentials.
2576 #
2577 # The location and generation of the uploaded objects will be stored in the
2578 # Build resource&#x27;s results field.
2579 #
2580 # If any objects fail to be pushed, the build is marked FAILURE.
2581 # completion of all build steps.
2582 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
2583 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2584 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2585 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002586 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
2587 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
2588 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2589 #
2590 # Files in the workspace matching any path pattern will be uploaded to
2591 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002592 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
2593 &quot;A String&quot;,
2594 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002595 },
2596 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
2597 # steps.
2598 #
2599 # The images will be pushed using the builder service account&#x27;s credentials.
2600 #
2601 # The digests of the pushed images will be stored in the Build resource&#x27;s
2602 # results field.
2603 #
2604 # If any of the images fail to be pushed, the build is marked FAILURE.
2605 &quot;A String&quot;,
2606 ],
2607 },
2608 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
2609 { # Pairs a set of secret environment variables containing encrypted
2610 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002611 &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 -07002612 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
2613 #
2614 # Secret environment variables must be unique across all of a build&#x27;s
2615 # secrets, and must be used by at least one build step. Values can be at most
2616 # 64 KB in size. There can be at most 100 secret values across all of a
2617 # build&#x27;s secrets.
2618 &quot;a_key&quot;: &quot;A String&quot;,
2619 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002620 },
2621 ],
2622 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002623 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
2624 &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 -07002625 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
2626 # indices.
2627 &quot;A String&quot;,
2628 ],
2629 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
2630 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2631 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2632 },
2633 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
2634 # corresponding to build step indices.
2635 #
2636 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
2637 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
2638 # Only the first 4KB of data is stored.
2639 &quot;A String&quot;,
2640 ],
2641 &quot;images&quot;: [ # Container images that were built as a part of the build.
2642 { # An image built by the pipeline.
2643 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
2644 # presented to `docker push`.
2645 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
2646 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
2647 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2648 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2649 },
2650 },
2651 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002652 },
2653 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
2654 # [Bucket Name
2655 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2656 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
2657 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
2658 { # A step in the build pipeline.
2659 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
2660 # If unset, the image&#x27;s default entrypoint is used.
2661 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
2662 #
2663 # Each volume is created as an empty volume prior to execution of the
2664 # build step. Upon completion of the build, volumes and their contents are
2665 # discarded.
2666 #
2667 # Using a named volume in only one step is not valid as it is indicative
2668 # of a build request with an incorrect configuration.
2669 { # Volume describes a Docker container volume which is mounted into build steps
2670 # in order to persist files across build step execution.
2671 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
2672 #
2673 # Paths must be absolute and cannot conflict with other volume paths on the
2674 # same build step or with certain reserved volume paths.
2675 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
2676 #
2677 # Volume names must be unique per build step and must be valid names for
2678 # Docker volumes. Each named volume must be used by at least two build steps.
2679 },
2680 ],
2681 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
2682 #
2683 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
2684 # are used as arguments to that entrypoint. If the image does not define
2685 # an entrypoint, the first element in args is used as the entrypoint,
2686 # and the remainder will be used as arguments.
2687 &quot;A String&quot;,
2688 ],
2689 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
2690 # only updated on build completion; step status is not updated in real-time
2691 # as the build progresses.
2692 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
2693 # time limit and will be allowed to continue to run until either it completes
2694 # or the build itself times out.
2695 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
2696 # builder image only.
2697 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2698 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2699 },
2700 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
2701 # build step.
2702 #
2703 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
2704 # will be run directly. If not, the host will attempt to pull the image
2705 # first, using the builder service account&#x27;s credentials if necessary.
2706 #
2707 # The Docker daemon&#x27;s cache will already have the latest versions of all of
2708 # the officially supported build steps
2709 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
2710 # The Docker daemon will also have cached many of the layers for some popular
2711 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
2712 # attempt to use them.
2713 #
2714 # If you built an image in a previous build step, it will be stored in the
2715 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
2716 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -07002717 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
2718 # Management Service crypto key. These values must be specified in the
2719 # build&#x27;s `Secret`.
2720 &quot;A String&quot;,
2721 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002722 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
2723 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -07002724 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
2725 #
2726 # If this value is a relative path, it is relative to the build&#x27;s working
2727 # directory. If this value is absolute, it may be outside the build&#x27;s working
2728 # directory, in which case the contents of the path may not be persisted
2729 # across build step executions, unless a `volume` for that path is specified.
2730 #
2731 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
2732 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
2733 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002734 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
2735 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2736 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2737 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002738 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
2739 # This build step will not start until all the build steps in `wait_for`
2740 # have completed successfully. If `wait_for` is empty, this build step will
2741 # start when all previous build steps in the `Build.Steps` list have
2742 # completed successfully.
2743 &quot;A String&quot;,
2744 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002745 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
2746 #
2747 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
2748 # being given the value &quot;VALUE&quot;.
2749 &quot;A String&quot;,
2750 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002751 },
2752 ],
2753 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
2754 # was triggered automatically.
2755 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
2756 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
2757 &quot;A String&quot;,
2758 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002759 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002760 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
2761 # a build whenever a GitHub event is received.
2762 #
2763 # Mutually exclusive with `trigger_template`.
2764 # build whenever a GitHub event is received.
2765 #
2766 # This message is experimental.
2767 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
2768 # Requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002769 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
2770 # comments `/gcbrun`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002771 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
2772 #
2773 # The syntax of the regular expressions accepted is the syntax accepted by
2774 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2775 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002776 },
2777 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
2778 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
2779 #
2780 # The syntax of the regular expressions accepted is the syntax accepted by
2781 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2782 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
2783 # git_ref regex.
2784 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
2785 #
2786 # The syntax of the regular expressions accepted is the syntax accepted by
2787 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2788 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002789 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Bu Sun Kim65020912020-05-20 12:08:20 -07002790 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
2791 # https://github.com/googlecloudplatform/cloud-builders is
2792 # &quot;googlecloudplatform&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002793 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
2794 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
2795 },
2796 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
2797 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
2798 #
2799 # If ignored_files and changed files are both empty, then they are
2800 # not used to determine whether or not to trigger a build.
2801 #
2802 # If ignored_files is not empty, then we ignore any files that match
2803 # any of the ignored_file globs. If the change has no files that are
2804 # outside of the ignored_files globs, then we do not trigger a build.
2805 &quot;A String&quot;,
2806 ],
2807 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
2808 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
2809 # keys in bindings.
2810 &quot;a_key&quot;: &quot;A String&quot;,
2811 },
2812 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002813 # filter and included_files is empty, then as far as this filter is
2814 # concerned, we should trigger the build.
2815 #
2816 # If any of the files altered in the commit pass the ignored_files
2817 # filter and included_files is not empty, then we make sure that at
2818 # least one of those files matches a included_files glob. If not,
2819 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002820 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002821 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002822 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
2823 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
2824 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002825 #
2826 # Branch and tag names in trigger templates are interpreted as regular
2827 # expressions. Any branch or tag change that matches that regular expression
2828 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002829 #
2830 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002831 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002832 #
2833 # The syntax of the regular expressions accepted is the syntax accepted by
2834 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002835 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2836 #
2837 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2838 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002839 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002840 #
2841 # The syntax of the regular expressions accepted is the syntax accepted by
2842 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07002843 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2844 # project ID requesting the build is assumed.
2845 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002846 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2847 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2848 # Should only be used with RunBuildTrigger
2849 &quot;a_key&quot;: &quot;A String&quot;,
2850 },
2851 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2852 # regex.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002853 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002854}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002855
2856 x__xgafv: string, V1 error format.
2857 Allowed values
2858 1 - v1 error format
2859 2 - v2 error format
2860
2861Returns:
2862 An object of the form:
2863
2864 { # Configuration for an automated build in response to source repository
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002865 # changes.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002866 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim65020912020-05-20 12:08:20 -07002867 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002868 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -07002869 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
2870 # Trigger names must meet the following requirements:
2871 #
2872 # + They must contain only alphanumeric characters and dashes.
2873 # + They can be 1-64 characters long.
2874 # + They must begin and end with an alphanumeric character.
2875 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
2876 &quot;A String&quot;,
2877 ],
2878 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
2879 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002880 #
2881 # At a high level, a `Build` describes where to find source code, how to build
2882 # it (for example, the builder image to run on the source), and where to store
2883 # the built artifacts.
2884 #
2885 # Fields can include the following variables, which will be expanded when the
2886 # build is created:
2887 #
2888 # - $PROJECT_ID: the project ID of the build.
2889 # - $BUILD_ID: the autogenerated ID of the build.
2890 # - $REPO_NAME: the source repository name specified by RepoSource.
2891 # - $BRANCH_NAME: the branch name specified by RepoSource.
2892 # - $TAG_NAME: the tag name specified by RepoSource.
2893 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
2894 # resolved from the specified branch or tag.
2895 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002896 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
2897 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
2898 &quot;a_key&quot;: &quot;A String&quot;,
2899 },
2900 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
2901 # are:
2902 #
2903 # * BUILD: time to execute all build steps
2904 # * PUSH: time to push all specified images.
2905 # * FETCHSOURCE: time to fetch source.
2906 #
2907 # If the build does not specify source or images,
2908 # these keys will not be included.
2909 &quot;a_key&quot;: { # Start and end times for a build execution phase.
2910 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2911 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2912 },
2913 },
2914 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
2915 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
2916 # some source was used for this build.
2917 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
2918 # the original source integrity was maintained in the build. Note that
2919 # `FileHashes` will only be populated if `BuildOptions` has requested a
2920 # `SourceProvenanceHash`.
2921 #
2922 # The keys to this map are file paths used as build source and the values
2923 # contain the hash values for those files.
2924 #
2925 # If the build source came in a single package such as a gzipped tarfile
2926 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
2927 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
2928 # SourceProvenance messages to verify integrity of source input to the build.
2929 &quot;fileHash&quot;: [ # Collection of file hashes.
2930 { # Container message for hash values.
2931 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2932 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2933 },
2934 ],
2935 },
2936 },
2937 &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
2938 # revisions resolved.
2939 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
2940 #
2941 # The syntax of the regular expressions accepted is the syntax accepted by
2942 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2943 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2944 #
2945 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2946 # absolute path, this value is ignored for that step&#x27;s execution.
2947 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
2948 #
2949 # The syntax of the regular expressions accepted is the syntax accepted by
2950 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2951 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2952 # project ID requesting the build is assumed.
2953 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
2954 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2955 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2956 # Should only be used with RunBuildTrigger
2957 &quot;a_key&quot;: &quot;A String&quot;,
2958 },
2959 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2960 # regex.
2961 },
2962 &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
2963 # generations resolved.
2964 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
2965 #
2966 # This object must be a gzipped archive file (`.tar.gz`) containing source to
2967 # build.
2968 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
2969 # omitted, the latest generation will be used.
2970 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
2971 # [Bucket Name
2972 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2973 },
2974 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002975 &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 -07002976 # steps.
2977 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002978 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002979 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002980 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002981 # results field.
2982 #
2983 # If any of the images fail to be pushed, the build status is marked
2984 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002985 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002986 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002987 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
2988 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
2989 &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 -07002990 # than this value, the build will expire and the build status will be
2991 # `EXPIRED`.
2992 #
2993 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002994 &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 -07002995 #
2996 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07002997 # build&#x27;s execution.
2998 &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 -07002999 &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
3000 # Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -07003001 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003002 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003003 # The syntax of the regular expressions accepted is the syntax accepted by
3004 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003005 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
3006 #
3007 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
3008 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07003009 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003010 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003011 # The syntax of the regular expressions accepted is the syntax accepted by
3012 # RE2 and described at https://github.com/google/re2/wiki/Syntax
3013 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
3014 # project ID requesting the build is assumed.
3015 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003016 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3017 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
3018 # Should only be used with RunBuildTrigger
3019 &quot;a_key&quot;: &quot;A String&quot;,
3020 },
3021 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
3022 # regex.
3023 },
3024 &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.
3025 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
3026 #
3027 # This object must be a gzipped archive file (`.tar.gz`) containing source to
3028 # build.
3029 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
3030 # omitted, the latest generation will be used.
3031 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
3032 # [Bucket Name
3033 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003034 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003035 },
3036 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003037 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
3038 # Storage.
Bu Sun Kim65020912020-05-20 12:08:20 -07003039 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07003040 # build steps in this build. If a variable is defined in both globally and in
3041 # a build step, the variable will use the build step value.
3042 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003043 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
3044 # being given the value &quot;VALUE&quot;.
3045 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003046 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003047 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
3048 # Format: projects/{project}/workerPools/{workerPool}
3049 #
3050 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07003051 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
3052 # stored.
Bu Sun Kim65020912020-05-20 12:08:20 -07003053 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
3054 # checks.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003055 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
Bu Sun Kim65020912020-05-20 12:08:20 -07003056 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
3057 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07003058 # build utilities. Also note that this is the minimum disk size that will be
3059 # allocated for the build -- the build may run with a larger disk than
3060 # requested. At present, the maximum disk size is 1000GB; builds that request
3061 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07003062 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
3063 &quot;A String&quot;,
3064 ],
3065 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
3066 # Key Management Service crypto key. These values must be specified in the
3067 # build&#x27;s `Secret`. These variables will be available to all build steps
3068 # in this build.
3069 &quot;A String&quot;,
3070 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003071 &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 -07003072 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003073 #
3074 # Each volume is created as an empty volume prior to starting the build
3075 # process. Upon completion of the build, volumes and their contents are
3076 # discarded. Global volume names and paths cannot conflict with the volumes
3077 # defined a build step.
3078 #
3079 # Using a global volume in a build with only one step is not valid as
3080 # it is indicative of a build request with an incorrect configuration.
3081 { # Volume describes a Docker container volume which is mounted into build steps
3082 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07003083 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003084 #
3085 # Paths must be absolute and cannot conflict with other volume paths on the
3086 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07003087 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003088 #
3089 # Volume names must be unique per build step and must be valid names for
3090 # Docker volumes. Each named volume must be used by at least two build steps.
3091 },
3092 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003093 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003094 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
3095 # granularity. If this amount of time elapses, work on the build will cease
3096 # and the build status will be `TIMEOUT`.
3097 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003098 # `timeout` starts ticking from `startTime`.
3099 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003100 # Default time is ten minutes.
3101 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
3102 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
3103 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
3104 # successful completion of all build steps.
3105 # successful completion of all build steps.
3106 &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
3107 # completion of all build steps.
3108 #
3109 # Files in the workspace matching specified paths globs will be uploaded to
3110 # the specified Cloud Storage location using the builder service account&#x27;s
3111 # credentials.
3112 #
3113 # The location and generation of the uploaded objects will be stored in the
3114 # Build resource&#x27;s results field.
3115 #
3116 # If any objects fail to be pushed, the build is marked FAILURE.
3117 # completion of all build steps.
3118 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
3119 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3120 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3121 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003122 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
3123 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
3124 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3125 #
3126 # Files in the workspace matching any path pattern will be uploaded to
3127 # Cloud Storage with this location as a prefix.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003128 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
3129 &quot;A String&quot;,
3130 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003131 },
3132 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
3133 # steps.
3134 #
3135 # The images will be pushed using the builder service account&#x27;s credentials.
3136 #
3137 # The digests of the pushed images will be stored in the Build resource&#x27;s
3138 # results field.
3139 #
3140 # If any of the images fail to be pushed, the build is marked FAILURE.
3141 &quot;A String&quot;,
3142 ],
3143 },
3144 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
3145 { # Pairs a set of secret environment variables containing encrypted
3146 # values with the Cloud KMS key to use to decrypt the value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003147 &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 -07003148 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
3149 #
3150 # Secret environment variables must be unique across all of a build&#x27;s
3151 # secrets, and must be used by at least one build step. Values can be at most
3152 # 64 KB in size. There can be at most 100 secret values across all of a
3153 # build&#x27;s secrets.
3154 &quot;a_key&quot;: &quot;A String&quot;,
3155 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003156 },
3157 ],
3158 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003159 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
3160 &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 -07003161 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
3162 # indices.
3163 &quot;A String&quot;,
3164 ],
3165 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
3166 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3167 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3168 },
3169 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
3170 # corresponding to build step indices.
3171 #
3172 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
3173 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
3174 # Only the first 4KB of data is stored.
3175 &quot;A String&quot;,
3176 ],
3177 &quot;images&quot;: [ # Container images that were built as a part of the build.
3178 { # An image built by the pipeline.
3179 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
3180 # presented to `docker push`.
3181 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
3182 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
3183 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3184 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3185 },
3186 },
3187 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003188 },
3189 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
3190 # [Bucket Name
3191 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3192 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
3193 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
3194 { # A step in the build pipeline.
3195 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
3196 # If unset, the image&#x27;s default entrypoint is used.
3197 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
3198 #
3199 # Each volume is created as an empty volume prior to execution of the
3200 # build step. Upon completion of the build, volumes and their contents are
3201 # discarded.
3202 #
3203 # Using a named volume in only one step is not valid as it is indicative
3204 # of a build request with an incorrect configuration.
3205 { # Volume describes a Docker container volume which is mounted into build steps
3206 # in order to persist files across build step execution.
3207 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
3208 #
3209 # Paths must be absolute and cannot conflict with other volume paths on the
3210 # same build step or with certain reserved volume paths.
3211 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
3212 #
3213 # Volume names must be unique per build step and must be valid names for
3214 # Docker volumes. Each named volume must be used by at least two build steps.
3215 },
3216 ],
3217 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
3218 #
3219 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
3220 # are used as arguments to that entrypoint. If the image does not define
3221 # an entrypoint, the first element in args is used as the entrypoint,
3222 # and the remainder will be used as arguments.
3223 &quot;A String&quot;,
3224 ],
3225 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
3226 # only updated on build completion; step status is not updated in real-time
3227 # as the build progresses.
3228 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
3229 # time limit and will be allowed to continue to run until either it completes
3230 # or the build itself times out.
3231 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
3232 # builder image only.
3233 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3234 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3235 },
3236 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
3237 # build step.
3238 #
3239 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
3240 # will be run directly. If not, the host will attempt to pull the image
3241 # first, using the builder service account&#x27;s credentials if necessary.
3242 #
3243 # The Docker daemon&#x27;s cache will already have the latest versions of all of
3244 # the officially supported build steps
3245 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
3246 # The Docker daemon will also have cached many of the layers for some popular
3247 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
3248 # attempt to use them.
3249 #
3250 # If you built an image in a previous build step, it will be stored in the
3251 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
3252 # later build step.
Bu Sun Kim65020912020-05-20 12:08:20 -07003253 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
3254 # Management Service crypto key. These values must be specified in the
3255 # build&#x27;s `Secret`.
3256 &quot;A String&quot;,
3257 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003258 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
3259 # reference this build step as a dependency.
Bu Sun Kim65020912020-05-20 12:08:20 -07003260 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
3261 #
3262 # If this value is a relative path, it is relative to the build&#x27;s working
3263 # directory. If this value is absolute, it may be outside the build&#x27;s working
3264 # directory, in which case the contents of the path may not be persisted
3265 # across build step executions, unless a `volume` for that path is specified.
3266 #
3267 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
3268 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
3269 # the step&#x27;s execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003270 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
3271 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3272 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3273 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003274 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
3275 # This build step will not start until all the build steps in `wait_for`
3276 # have completed successfully. If `wait_for` is empty, this build step will
3277 # start when all previous build steps in the `Build.Steps` list have
3278 # completed successfully.
3279 &quot;A String&quot;,
3280 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003281 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
3282 #
3283 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
3284 # being given the value &quot;VALUE&quot;.
3285 &quot;A String&quot;,
3286 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003287 },
3288 ],
3289 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
3290 # was triggered automatically.
3291 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
3292 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
3293 &quot;A String&quot;,
3294 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003295 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003296 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
3297 # a build whenever a GitHub event is received.
3298 #
3299 # Mutually exclusive with `trigger_template`.
3300 # build whenever a GitHub event is received.
3301 #
3302 # This message is experimental.
3303 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
3304 # Requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003305 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
3306 # comments `/gcbrun`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003307 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
3308 #
3309 # The syntax of the regular expressions accepted is the syntax accepted by
3310 # RE2 and described at https://github.com/google/re2/wiki/Syntax
3311 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07003312 },
3313 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
3314 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
3315 #
3316 # The syntax of the regular expressions accepted is the syntax accepted by
3317 # RE2 and described at https://github.com/google/re2/wiki/Syntax
3318 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
3319 # git_ref regex.
3320 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
3321 #
3322 # The syntax of the regular expressions accepted is the syntax accepted by
3323 # RE2 and described at https://github.com/google/re2/wiki/Syntax
3324 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003325 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Bu Sun Kim65020912020-05-20 12:08:20 -07003326 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
3327 # https://github.com/googlecloudplatform/cloud-builders is
3328 # &quot;googlecloudplatform&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003329 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
3330 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
3331 },
3332 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
3333 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
3334 #
3335 # If ignored_files and changed files are both empty, then they are
3336 # not used to determine whether or not to trigger a build.
3337 #
3338 # If ignored_files is not empty, then we ignore any files that match
3339 # any of the ignored_file globs. If the change has no files that are
3340 # outside of the ignored_files globs, then we do not trigger a build.
3341 &quot;A String&quot;,
3342 ],
3343 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
3344 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
3345 # keys in bindings.
3346 &quot;a_key&quot;: &quot;A String&quot;,
3347 },
3348 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003349 # filter and included_files is empty, then as far as this filter is
3350 # concerned, we should trigger the build.
3351 #
3352 # If any of the files altered in the commit pass the ignored_files
3353 # filter and included_files is not empty, then we make sure that at
3354 # least one of those files matches a included_files glob. If not,
3355 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07003356 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003357 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003358 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
3359 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
3360 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003361 #
3362 # Branch and tag names in trigger templates are interpreted as regular
3363 # expressions. Any branch or tag change that matches that regular expression
3364 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003365 #
3366 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003367 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003368 #
3369 # The syntax of the regular expressions accepted is the syntax accepted by
3370 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003371 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
3372 #
3373 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
3374 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07003375 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003376 #
3377 # The syntax of the regular expressions accepted is the syntax accepted by
3378 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07003379 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
3380 # project ID requesting the build is assumed.
3381 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003382 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3383 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
3384 # Should only be used with RunBuildTrigger
3385 &quot;a_key&quot;: &quot;A String&quot;,
3386 },
3387 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
3388 # regex.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003389 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003390 }</pre>
3391</div>
3392
3393<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003394 <code class="details" id="run">run(projectId, triggerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003395 <pre>Runs a `BuildTrigger` at a particular source revision.
3396
3397Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07003398 projectId: string, Required. ID of the project. (required)
3399 triggerId: string, Required. ID of the trigger. (required)
3400 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003401 The object takes the form of:
3402
3403{ # Location of the source in a Google Cloud Source Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -07003404 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003405 #
3406 # The syntax of the regular expressions accepted is the syntax accepted by
3407 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003408 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
3409 #
3410 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
3411 # absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07003412 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003413 #
3414 # The syntax of the regular expressions accepted is the syntax accepted by
3415 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07003416 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
3417 # project ID requesting the build is assumed.
3418 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003419 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3420 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
3421 # Should only be used with RunBuildTrigger
3422 &quot;a_key&quot;: &quot;A String&quot;,
3423 },
3424 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
3425 # regex.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003426}
3427
3428 x__xgafv: string, V1 error format.
3429 Allowed values
3430 1 - v1 error format
3431 2 - v2 error format
3432
3433Returns:
3434 An object of the form:
3435
3436 { # This resource represents a long-running operation that is the result of a
3437 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003438 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
3439 # originally returns it. If you use the default HTTP mapping, the
3440 # `name` should be a resource name ending with `operations/{unique_id}`.
3441 &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.
3442 # different programming environments, including REST APIs and RPC APIs. It is
3443 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3444 # three pieces of data: error code, error message, and error details.
3445 #
3446 # You can find out more about this error model and how to work with it in the
3447 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3448 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3449 # user-facing error message should be localized and sent in the
3450 # google.rpc.Status.details field, or localized by the client.
3451 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3452 # message types for APIs to use.
3453 {
3454 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3455 },
3456 ],
3457 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3458 },
3459 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
3460 # contains progress information and common metadata such as create time.
3461 # Some services might not provide such metadata. Any method that returns a
3462 # long-running operation should document the metadata type, if any.
3463 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3464 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003465 &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 -07003466 # If `true`, the operation is completed, and either `error` or `response` is
3467 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003468 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003469 # method returns no data on success, such as `Delete`, the response is
3470 # `google.protobuf.Empty`. If the original method is standard
3471 # `Get`/`Create`/`Update`, the response should be the resource. For other
3472 # methods, the response should have the type `XxxResponse`, where `Xxx`
3473 # is the original method name. For example, if the original method name
3474 # is `TakeSnapshot()`, the inferred response type is
3475 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003477 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003478 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003479</div>
3480
3481</body></html>