blob: c8e1227d623646f07fe0a70bd5e571fa3002d683 [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 Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#list">list(projectId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
88<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 Kim65020912020-05-20 12:08:20 -0700112 &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 -0700113 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -0700114 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
115 # Trigger names must meet the following requirements:
116 #
117 # + They must contain only alphanumeric characters and dashes.
118 # + They can be 1-64 characters long.
119 # + They must begin and end with an alphanumeric character.
120 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
121 &quot;A String&quot;,
122 ],
123 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
124 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 #
126 # At a high level, a `Build` describes where to find source code, how to build
127 # it (for example, the builder image to run on the source), and where to store
128 # the built artifacts.
129 #
130 # Fields can include the following variables, which will be expanded when the
131 # build is created:
132 #
133 # - $PROJECT_ID: the project ID of the build.
134 # - $BUILD_ID: the autogenerated ID of the build.
135 # - $REPO_NAME: the source repository name specified by RepoSource.
136 # - $BRANCH_NAME: the branch name specified by RepoSource.
137 # - $TAG_NAME: the tag name specified by RepoSource.
138 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
139 # resolved from the specified branch or tag.
140 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &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 -0700142 # steps.
143 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700147 # results field.
148 #
149 # If any of the images fail to be pushed, the build status is marked
150 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700152 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
154 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
155 &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 -0700156 # than this value, the build will expire and the build status will be
157 # `EXPIRED`.
158 #
159 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 &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 -0700161 #
162 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -0700163 # build&#x27;s execution.
164 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
165 &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.
166 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
167 # omitted, the latest generation will be used.
168 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
169 # [Bucket Name
170 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
171 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700172 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 # This object must be a gzipped archive file (`.tar.gz`) containing source to
174 # build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &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
177 # Repository.
178 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
179 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
180 # Should only be used with RunBuildTrigger
181 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700182 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
184 # regex.
185 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
188 # absolute path, this value is ignored for that step&#x27;s execution.
189 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 # The syntax of the regular expressions accepted is the syntax accepted by
192 # RE2 and described at https://github.com/google/re2/wiki/Syntax
193 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 },
202 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
203 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
Dan O'Mearadd494642020-05-01 07:42:23 -0700204 # Format: projects/{project}/workerPools/{workerPool}
205 #
206 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -0700208 # build steps in this build. If a variable is defined in both globally and in
209 # a build step, the variable will use the build step value.
210 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
212 # being given the value &quot;VALUE&quot;.
213 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700214 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
216 # stored.
217 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
218 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
219 # checks.
220 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
221 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -0700222 # build utilities. Also note that this is the minimum disk size that will be
223 # allocated for the build -- the build may run with a larger disk than
224 # requested. At present, the maximum disk size is 1000GB; builds that request
225 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
227 &quot;A String&quot;,
228 ],
229 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
230 # Key Management Service crypto key. These values must be specified in the
231 # build&#x27;s `Secret`. These variables will be available to all build steps
232 # in this build.
233 &quot;A String&quot;,
234 ],
235 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 #
237 # Each volume is created as an empty volume prior to starting the build
238 # process. Upon completion of the build, volumes and their contents are
239 # discarded. Global volume names and paths cannot conflict with the volumes
240 # defined a build step.
241 #
242 # Using a global volume in a build with only one step is not valid as
243 # it is indicative of a build request with an incorrect configuration.
244 { # Volume describes a Docker container volume which is mounted into build steps
245 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700247 #
248 # Paths must be absolute and cannot conflict with other volume paths on the
249 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700251 #
252 # Volume names must be unique per build step and must be valid names for
253 # Docker volumes. Each named volume must be used by at least two build steps.
254 },
255 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700256 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
257 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
258 # Storage.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
261 # granularity. If this amount of time elapses, work on the build will cease
262 # and the build status will be `TIMEOUT`.
263 #
264 # Default time is ten minutes.
265 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
266 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
267 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
268 # successful completion of all build steps.
269 # successful completion of all build steps.
270 &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
271 # completion of all build steps.
272 #
273 # Files in the workspace matching specified paths globs will be uploaded to
274 # the specified Cloud Storage location using the builder service account&#x27;s
275 # credentials.
276 #
277 # The location and generation of the uploaded objects will be stored in the
278 # Build resource&#x27;s results field.
279 #
280 # If any objects fail to be pushed, the build is marked FAILURE.
281 # completion of all build steps.
282 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
283 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
284 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
285 },
286 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
287 &quot;A String&quot;,
288 ],
289 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
290 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
291 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
292 #
293 # Files in the workspace matching any path pattern will be uploaded to
294 # Cloud Storage with this location as a prefix.
295 },
296 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
297 # steps.
298 #
299 # The images will be pushed using the builder service account&#x27;s credentials.
300 #
301 # The digests of the pushed images will be stored in the Build resource&#x27;s
302 # results field.
303 #
304 # If any of the images fail to be pushed, the build is marked FAILURE.
305 &quot;A String&quot;,
306 ],
307 },
308 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
309 { # Pairs a set of secret environment variables containing encrypted
310 # values with the Cloud KMS key to use to decrypt the value.
311 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
312 #
313 # Secret environment variables must be unique across all of a build&#x27;s
314 # secrets, and must be used by at least one build step. Values can be at most
315 # 64 KB in size. There can be at most 100 secret values across all of a
316 # build&#x27;s secrets.
317 &quot;a_key&quot;: &quot;A String&quot;,
318 },
319 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
320 },
321 ],
322 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
323 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
324 # indices.
325 &quot;A String&quot;,
326 ],
327 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
328 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
329 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
330 },
331 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
332 # corresponding to build step indices.
333 #
334 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
335 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
336 # Only the first 4KB of data is stored.
337 &quot;A String&quot;,
338 ],
339 &quot;images&quot;: [ # Container images that were built as a part of the build.
340 { # An image built by the pipeline.
341 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
342 # presented to `docker push`.
343 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
344 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
345 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
346 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
347 },
348 },
349 ],
350 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
351 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
352 },
353 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
354 # [Bucket Name
355 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
356 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
357 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
358 { # A step in the build pipeline.
359 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
360 # If unset, the image&#x27;s default entrypoint is used.
361 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
362 #
363 # Each volume is created as an empty volume prior to execution of the
364 # build step. Upon completion of the build, volumes and their contents are
365 # discarded.
366 #
367 # Using a named volume in only one step is not valid as it is indicative
368 # of a build request with an incorrect configuration.
369 { # Volume describes a Docker container volume which is mounted into build steps
370 # in order to persist files across build step execution.
371 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
372 #
373 # Paths must be absolute and cannot conflict with other volume paths on the
374 # same build step or with certain reserved volume paths.
375 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
376 #
377 # Volume names must be unique per build step and must be valid names for
378 # Docker volumes. Each named volume must be used by at least two build steps.
379 },
380 ],
381 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
382 #
383 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
384 # are used as arguments to that entrypoint. If the image does not define
385 # an entrypoint, the first element in args is used as the entrypoint,
386 # and the remainder will be used as arguments.
387 &quot;A String&quot;,
388 ],
389 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
390 # only updated on build completion; step status is not updated in real-time
391 # as the build progresses.
392 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
393 # time limit and will be allowed to continue to run until either it completes
394 # or the build itself times out.
395 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
396 # builder image only.
397 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
398 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
399 },
400 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
401 # build step.
402 #
403 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
404 # will be run directly. If not, the host will attempt to pull the image
405 # first, using the builder service account&#x27;s credentials if necessary.
406 #
407 # The Docker daemon&#x27;s cache will already have the latest versions of all of
408 # the officially supported build steps
409 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
410 # The Docker daemon will also have cached many of the layers for some popular
411 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
412 # attempt to use them.
413 #
414 # If you built an image in a previous build step, it will be stored in the
415 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
416 # later build step.
417 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
418 # reference this build step as a dependency.
419 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
420 # Management Service crypto key. These values must be specified in the
421 # build&#x27;s `Secret`.
422 &quot;A String&quot;,
423 ],
424 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
425 #
426 # If this value is a relative path, it is relative to the build&#x27;s working
427 # directory. If this value is absolute, it may be outside the build&#x27;s working
428 # directory, in which case the contents of the path may not be persisted
429 # across build step executions, unless a `volume` for that path is specified.
430 #
431 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
432 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
433 # the step&#x27;s execution.
434 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
435 #
436 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
437 # being given the value &quot;VALUE&quot;.
438 &quot;A String&quot;,
439 ],
440 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
441 # This build step will not start until all the build steps in `wait_for`
442 # have completed successfully. If `wait_for` is empty, this build step will
443 # start when all previous build steps in the `Build.Steps` list have
444 # completed successfully.
445 &quot;A String&quot;,
446 ],
447 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
448 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
449 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
450 },
451 },
452 ],
453 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
454 # was triggered automatically.
455 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
456 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
457 &quot;A String&quot;,
458 ],
459 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
460 &quot;a_key&quot;: &quot;A String&quot;,
461 },
462 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
463 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
464 # are:
465 #
466 # * BUILD: time to execute all build steps
467 # * PUSH: time to push all specified images.
468 # * FETCHSOURCE: time to fetch source.
469 #
470 # If the build does not specify source or images,
471 # these keys will not be included.
472 &quot;a_key&quot;: { # Start and end times for a build execution phase.
473 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
474 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
475 },
476 },
477 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
478 # some source was used for this build.
479 &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
480 # revisions resolved.
481 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
482 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
483 # Should only be used with RunBuildTrigger
484 &quot;a_key&quot;: &quot;A String&quot;,
485 },
486 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
487 # regex.
488 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
489 #
490 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
491 # absolute path, this value is ignored for that step&#x27;s execution.
492 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
493 #
494 # The syntax of the regular expressions accepted is the syntax accepted by
495 # RE2 and described at https://github.com/google/re2/wiki/Syntax
496 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
497 #
498 # The syntax of the regular expressions accepted is the syntax accepted by
499 # RE2 and described at https://github.com/google/re2/wiki/Syntax
500 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
501 # project ID requesting the build is assumed.
502 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
503 },
504 &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
505 # generations resolved.
506 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
507 # omitted, the latest generation will be used.
508 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
509 # [Bucket Name
510 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
511 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
512 #
513 # This object must be a gzipped archive file (`.tar.gz`) containing source to
514 # build.
515 },
516 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
517 # the original source integrity was maintained in the build. Note that
518 # `FileHashes` will only be populated if `BuildOptions` has requested a
519 # `SourceProvenanceHash`.
520 #
521 # The keys to this map are file paths used as build source and the values
522 # contain the hash values for those files.
523 #
524 # If the build source came in a single package such as a gzipped tarfile
525 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
526 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
527 # SourceProvenance messages to verify integrity of source input to the build.
528 &quot;fileHash&quot;: [ # Collection of file hashes.
529 { # Container message for hash values.
530 &quot;value&quot;: &quot;A String&quot;, # The hash value.
531 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
532 },
533 ],
534 },
535 },
536 },
537 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700538 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
540 # a build whenever a GitHub event is received.
541 #
542 # Mutually exclusive with `trigger_template`.
543 # build whenever a GitHub event is received.
544 #
545 # This message is experimental.
546 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
547 # Requests.
548 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
549 #
550 # The syntax of the regular expressions accepted is the syntax accepted by
551 # RE2 and described at https://github.com/google/re2/wiki/Syntax
552 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
553 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
554 # comments `/gcbrun`.
555 },
556 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
557 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
558 #
559 # The syntax of the regular expressions accepted is the syntax accepted by
560 # RE2 and described at https://github.com/google/re2/wiki/Syntax
561 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
562 # git_ref regex.
563 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
564 #
565 # The syntax of the regular expressions accepted is the syntax accepted by
566 # RE2 and described at https://github.com/google/re2/wiki/Syntax
567 },
568 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
569 # https://github.com/googlecloudplatform/cloud-builders is
570 # &quot;googlecloudplatform&quot;.
571 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
572 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
573 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
574 },
575 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
576 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
577 #
578 # If ignored_files and changed files are both empty, then they are
579 # not used to determine whether or not to trigger a build.
580 #
581 # If ignored_files is not empty, then we ignore any files that match
582 # any of the ignored_file globs. If the change has no files that are
583 # outside of the ignored_files globs, then we do not trigger a build.
584 &quot;A String&quot;,
585 ],
586 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
587 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
588 # keys in bindings.
589 &quot;a_key&quot;: &quot;A String&quot;,
590 },
591 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700592 # filter and included_files is empty, then as far as this filter is
593 # concerned, we should trigger the build.
594 #
595 # If any of the files altered in the commit pass the ignored_files
596 # filter and included_files is not empty, then we make sure that at
597 # least one of those files matches a included_files glob. If not,
598 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700599 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700600 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
602 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
603 &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 -0700604 #
605 # Branch and tag names in trigger templates are interpreted as regular
606 # expressions. Any branch or tag change that matches that regular expression
607 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -0700608 #
609 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
611 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
Dan O'Mearadd494642020-05-01 07:42:23 -0700612 # Should only be used with RunBuildTrigger
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700614 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
616 # regex.
617 &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.
621 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches 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;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -0700626 #
627 # The syntax of the regular expressions accepted is the syntax accepted by
628 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
630 # project ID requesting the build is assumed.
631 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700632 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700633 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700634}
635
636 x__xgafv: string, V1 error format.
637 Allowed values
638 1 - v1 error format
639 2 - v2 error format
640
641Returns:
642 An object of the form:
643
644 { # Configuration for an automated build in response to source repository
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700645 # changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700646 &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 -0400647 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -0700648 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
649 # Trigger names must meet the following requirements:
650 #
651 # + They must contain only alphanumeric characters and dashes.
652 # + They can be 1-64 characters long.
653 # + They must begin and end with an alphanumeric character.
654 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
655 &quot;A String&quot;,
656 ],
657 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
658 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700659 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700660 # At a high level, a `Build` describes where to find source code, how to build
661 # it (for example, the builder image to run on the source), and where to store
662 # the built artifacts.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700663 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 # Fields can include the following variables, which will be expanded when the
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700665 # build is created:
666 #
667 # - $PROJECT_ID: the project ID of the build.
668 # - $BUILD_ID: the autogenerated ID of the build.
669 # - $REPO_NAME: the source repository name specified by RepoSource.
670 # - $BRANCH_NAME: the branch name specified by RepoSource.
671 # - $TAG_NAME: the tag name specified by RepoSource.
672 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
673 # resolved from the specified branch or tag.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700674 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &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 -0700676 # steps.
677 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700679 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700681 # results field.
682 #
683 # If any of the images fail to be pushed, the build status is marked
684 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700685 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
688 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
689 &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 -0700690 # than this value, the build will expire and the build status will be
691 # `EXPIRED`.
692 #
693 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700694 &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 -0700695 #
696 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -0700697 # build&#x27;s execution.
698 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
699 &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.
700 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
701 # omitted, the latest generation will be used.
702 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
703 # [Bucket Name
704 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
705 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700706 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 # This object must be a gzipped archive file (`.tar.gz`) containing source to
708 # build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700709 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700710 &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
711 # Repository.
712 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
713 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
714 # Should only be used with RunBuildTrigger
715 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700716 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
718 # regex.
719 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700720 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
722 # absolute path, this value is ignored for that step&#x27;s execution.
723 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700724 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 # The syntax of the regular expressions accepted is the syntax accepted by
726 # RE2 and described at https://github.com/google/re2/wiki/Syntax
727 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700728 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 # The syntax of the regular expressions accepted is the syntax accepted by
730 # RE2 and described at https://github.com/google/re2/wiki/Syntax
731 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
732 # project ID requesting the build is assumed.
733 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700734 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 },
736 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
737 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
Dan O'Mearadd494642020-05-01 07:42:23 -0700738 # Format: projects/{project}/workerPools/{workerPool}
739 #
740 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -0700742 # build steps in this build. If a variable is defined in both globally and in
743 # a build step, the variable will use the build step value.
744 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
746 # being given the value &quot;VALUE&quot;.
747 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700748 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
750 # stored.
751 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
752 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
753 # checks.
754 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
755 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -0700756 # build utilities. Also note that this is the minimum disk size that will be
757 # allocated for the build -- the build may run with a larger disk than
758 # requested. At present, the maximum disk size is 1000GB; builds that request
759 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700760 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
761 &quot;A String&quot;,
762 ],
763 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
764 # Key Management Service crypto key. These values must be specified in the
765 # build&#x27;s `Secret`. These variables will be available to all build steps
766 # in this build.
767 &quot;A String&quot;,
768 ],
769 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700770 #
771 # Each volume is created as an empty volume prior to starting the build
772 # process. Upon completion of the build, volumes and their contents are
773 # discarded. Global volume names and paths cannot conflict with the volumes
774 # defined a build step.
775 #
776 # Using a global volume in a build with only one step is not valid as
777 # it is indicative of a build request with an incorrect configuration.
778 { # Volume describes a Docker container volume which is mounted into build steps
779 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 #
782 # Paths must be absolute and cannot conflict with other volume paths on the
783 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700785 #
786 # Volume names must be unique per build step and must be valid names for
787 # Docker volumes. Each named volume must be used by at least two build steps.
788 },
789 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700790 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
791 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
792 # Storage.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700793 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700794 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
795 # granularity. If this amount of time elapses, work on the build will cease
796 # and the build status will be `TIMEOUT`.
797 #
798 # Default time is ten minutes.
799 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
800 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
801 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
802 # successful completion of all build steps.
803 # successful completion of all build steps.
804 &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
805 # completion of all build steps.
806 #
807 # Files in the workspace matching specified paths globs will be uploaded to
808 # the specified Cloud Storage location using the builder service account&#x27;s
809 # credentials.
810 #
811 # The location and generation of the uploaded objects will be stored in the
812 # Build resource&#x27;s results field.
813 #
814 # If any objects fail to be pushed, the build is marked FAILURE.
815 # completion of all build steps.
816 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
817 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
818 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
819 },
820 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
821 &quot;A String&quot;,
822 ],
823 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
824 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
825 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
826 #
827 # Files in the workspace matching any path pattern will be uploaded to
828 # Cloud Storage with this location as a prefix.
829 },
830 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
831 # steps.
832 #
833 # The images will be pushed using the builder service account&#x27;s credentials.
834 #
835 # The digests of the pushed images will be stored in the Build resource&#x27;s
836 # results field.
837 #
838 # If any of the images fail to be pushed, the build is marked FAILURE.
839 &quot;A String&quot;,
840 ],
841 },
842 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
843 { # Pairs a set of secret environment variables containing encrypted
844 # values with the Cloud KMS key to use to decrypt the value.
845 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
846 #
847 # Secret environment variables must be unique across all of a build&#x27;s
848 # secrets, and must be used by at least one build step. Values can be at most
849 # 64 KB in size. There can be at most 100 secret values across all of a
850 # build&#x27;s secrets.
851 &quot;a_key&quot;: &quot;A String&quot;,
852 },
853 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
854 },
855 ],
856 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
857 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
858 # indices.
859 &quot;A String&quot;,
860 ],
861 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
862 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
863 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
864 },
865 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
866 # corresponding to build step indices.
867 #
868 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
869 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
870 # Only the first 4KB of data is stored.
871 &quot;A String&quot;,
872 ],
873 &quot;images&quot;: [ # Container images that were built as a part of the build.
874 { # An image built by the pipeline.
875 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
876 # presented to `docker push`.
877 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
878 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
879 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
880 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
881 },
882 },
883 ],
884 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
885 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
886 },
887 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
888 # [Bucket Name
889 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
890 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
891 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
892 { # A step in the build pipeline.
893 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
894 # If unset, the image&#x27;s default entrypoint is used.
895 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
896 #
897 # Each volume is created as an empty volume prior to execution of the
898 # build step. Upon completion of the build, volumes and their contents are
899 # discarded.
900 #
901 # Using a named volume in only one step is not valid as it is indicative
902 # of a build request with an incorrect configuration.
903 { # Volume describes a Docker container volume which is mounted into build steps
904 # in order to persist files across build step execution.
905 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
906 #
907 # Paths must be absolute and cannot conflict with other volume paths on the
908 # same build step or with certain reserved volume paths.
909 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
910 #
911 # Volume names must be unique per build step and must be valid names for
912 # Docker volumes. Each named volume must be used by at least two build steps.
913 },
914 ],
915 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
916 #
917 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
918 # are used as arguments to that entrypoint. If the image does not define
919 # an entrypoint, the first element in args is used as the entrypoint,
920 # and the remainder will be used as arguments.
921 &quot;A String&quot;,
922 ],
923 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
924 # only updated on build completion; step status is not updated in real-time
925 # as the build progresses.
926 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
927 # time limit and will be allowed to continue to run until either it completes
928 # or the build itself times out.
929 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
930 # builder image only.
931 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
932 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
933 },
934 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
935 # build step.
936 #
937 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
938 # will be run directly. If not, the host will attempt to pull the image
939 # first, using the builder service account&#x27;s credentials if necessary.
940 #
941 # The Docker daemon&#x27;s cache will already have the latest versions of all of
942 # the officially supported build steps
943 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
944 # The Docker daemon will also have cached many of the layers for some popular
945 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
946 # attempt to use them.
947 #
948 # If you built an image in a previous build step, it will be stored in the
949 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
950 # later build step.
951 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
952 # reference this build step as a dependency.
953 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
954 # Management Service crypto key. These values must be specified in the
955 # build&#x27;s `Secret`.
956 &quot;A String&quot;,
957 ],
958 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
959 #
960 # If this value is a relative path, it is relative to the build&#x27;s working
961 # directory. If this value is absolute, it may be outside the build&#x27;s working
962 # directory, in which case the contents of the path may not be persisted
963 # across build step executions, unless a `volume` for that path is specified.
964 #
965 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
966 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
967 # the step&#x27;s execution.
968 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
969 #
970 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
971 # being given the value &quot;VALUE&quot;.
972 &quot;A String&quot;,
973 ],
974 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
975 # This build step will not start until all the build steps in `wait_for`
976 # have completed successfully. If `wait_for` is empty, this build step will
977 # start when all previous build steps in the `Build.Steps` list have
978 # completed successfully.
979 &quot;A String&quot;,
980 ],
981 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
982 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
983 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
984 },
985 },
986 ],
987 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
988 # was triggered automatically.
989 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
990 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
991 &quot;A String&quot;,
992 ],
993 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
994 &quot;a_key&quot;: &quot;A String&quot;,
995 },
996 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
997 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
998 # are:
999 #
1000 # * BUILD: time to execute all build steps
1001 # * PUSH: time to push all specified images.
1002 # * FETCHSOURCE: time to fetch source.
1003 #
1004 # If the build does not specify source or images,
1005 # these keys will not be included.
1006 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1007 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1008 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1009 },
1010 },
1011 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
1012 # some source was used for this build.
1013 &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
1014 # revisions resolved.
1015 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1016 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1017 # Should only be used with RunBuildTrigger
1018 &quot;a_key&quot;: &quot;A String&quot;,
1019 },
1020 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1021 # regex.
1022 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1023 #
1024 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1025 # absolute path, this value is ignored for that step&#x27;s execution.
1026 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
1027 #
1028 # The syntax of the regular expressions accepted is the syntax accepted by
1029 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1030 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
1031 #
1032 # The syntax of the regular expressions accepted is the syntax accepted by
1033 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1034 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1035 # project ID requesting the build is assumed.
1036 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1037 },
1038 &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
1039 # generations resolved.
1040 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1041 # omitted, the latest generation will be used.
1042 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1043 # [Bucket Name
1044 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1045 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1046 #
1047 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1048 # build.
1049 },
1050 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
1051 # the original source integrity was maintained in the build. Note that
1052 # `FileHashes` will only be populated if `BuildOptions` has requested a
1053 # `SourceProvenanceHash`.
1054 #
1055 # The keys to this map are file paths used as build source and the values
1056 # contain the hash values for those files.
1057 #
1058 # If the build source came in a single package such as a gzipped tarfile
1059 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
1060 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
1061 # SourceProvenance messages to verify integrity of source input to the build.
1062 &quot;fileHash&quot;: [ # Collection of file hashes.
1063 { # Container message for hash values.
1064 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1065 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1066 },
1067 ],
1068 },
1069 },
1070 },
1071 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001072 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001073 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
1074 # a build whenever a GitHub event is received.
1075 #
1076 # Mutually exclusive with `trigger_template`.
1077 # build whenever a GitHub event is received.
1078 #
1079 # This message is experimental.
1080 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
1081 # Requests.
1082 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
1083 #
1084 # The syntax of the regular expressions accepted is the syntax accepted by
1085 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1086 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1087 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
1088 # comments `/gcbrun`.
1089 },
1090 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1091 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
1092 #
1093 # The syntax of the regular expressions accepted is the syntax accepted by
1094 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1095 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
1096 # git_ref regex.
1097 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
1098 #
1099 # The syntax of the regular expressions accepted is the syntax accepted by
1100 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1101 },
1102 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
1103 # https://github.com/googlecloudplatform/cloud-builders is
1104 # &quot;googlecloudplatform&quot;.
1105 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1106 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
1107 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1108 },
1109 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
1110 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
1111 #
1112 # If ignored_files and changed files are both empty, then they are
1113 # not used to determine whether or not to trigger a build.
1114 #
1115 # If ignored_files is not empty, then we ignore any files that match
1116 # any of the ignored_file globs. If the change has no files that are
1117 # outside of the ignored_files globs, then we do not trigger a build.
1118 &quot;A String&quot;,
1119 ],
1120 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
1121 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
1122 # keys in bindings.
1123 &quot;a_key&quot;: &quot;A String&quot;,
1124 },
1125 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001126 # filter and included_files is empty, then as far as this filter is
1127 # concerned, we should trigger the build.
1128 #
1129 # If any of the files altered in the commit pass the ignored_files
1130 # filter and included_files is not empty, then we make sure that at
1131 # least one of those files matches a included_files glob. If not,
1132 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001133 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001134 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001135 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
1136 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1137 &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 -07001138 #
Thomas Coffee2f245372017-03-27 10:39:26 -07001139 # Branch and tag names in trigger templates are interpreted as regular
1140 # expressions. Any branch or tag change that matches that regular expression
1141 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001142 #
1143 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001144 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1145 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001146 # Should only be used with RunBuildTrigger
Bu Sun Kim65020912020-05-20 12:08:20 -07001147 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001148 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1150 # regex.
1151 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1152 #
1153 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1154 # absolute path, this value is ignored for that step&#x27;s execution.
1155 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001156 #
1157 # The syntax of the regular expressions accepted is the syntax accepted by
1158 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07001159 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001160 #
1161 # The syntax of the regular expressions accepted is the syntax accepted by
1162 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07001163 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1164 # project ID requesting the build is assumed.
1165 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Thomas Coffee2f245372017-03-27 10:39:26 -07001166 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001167 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001168 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001169</div>
1170
1171<div class="method">
1172 <code class="details" id="delete">delete(projectId, triggerId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001173 <pre>Deletes a `BuildTrigger` by its project ID and trigger ID.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001174
1175This API is experimental.
1176
1177Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001178 projectId: string, Required. ID of the project that owns the trigger. (required)
1179 triggerId: string, Required. ID of the `BuildTrigger` to delete. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001180 x__xgafv: string, V1 error format.
1181 Allowed values
1182 1 - v1 error format
1183 2 - v2 error format
1184
1185Returns:
1186 An object of the form:
1187
1188 { # A generic empty message that you can re-use to avoid defining duplicated
1189 # empty messages in your APIs. A typical example is to use it as the request
1190 # or the response type of an API method. For instance:
1191 #
1192 # service Foo {
1193 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1194 # }
1195 #
1196 # The JSON representation for `Empty` is empty JSON object `{}`.
1197 }</pre>
1198</div>
1199
1200<div class="method">
1201 <code class="details" id="get">get(projectId, triggerId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001202 <pre>Returns information about a `BuildTrigger`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001203
1204This API is experimental.
1205
1206Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001207 projectId: string, Required. ID of the project that owns the trigger. (required)
1208 triggerId: string, Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001209 x__xgafv: string, V1 error format.
1210 Allowed values
1211 1 - v1 error format
1212 2 - v2 error format
1213
1214Returns:
1215 An object of the form:
1216
1217 { # Configuration for an automated build in response to source repository
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001218 # changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 &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 -07001220 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -07001221 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
1222 # Trigger names must meet the following requirements:
1223 #
1224 # + They must contain only alphanumeric characters and dashes.
1225 # + They can be 1-64 characters long.
1226 # + They must begin and end with an alphanumeric character.
1227 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1228 &quot;A String&quot;,
1229 ],
1230 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1231 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001232 #
1233 # At a high level, a `Build` describes where to find source code, how to build
1234 # it (for example, the builder image to run on the source), and where to store
1235 # the built artifacts.
1236 #
1237 # Fields can include the following variables, which will be expanded when the
1238 # build is created:
1239 #
1240 # - $PROJECT_ID: the project ID of the build.
1241 # - $BUILD_ID: the autogenerated ID of the build.
1242 # - $REPO_NAME: the source repository name specified by RepoSource.
1243 # - $BRANCH_NAME: the branch name specified by RepoSource.
1244 # - $TAG_NAME: the tag name specified by RepoSource.
1245 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
1246 # resolved from the specified branch or tag.
1247 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim65020912020-05-20 12:08:20 -07001248 &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 -07001249 # steps.
1250 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001251 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001252 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001253 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001254 # results field.
1255 #
1256 # If any of the images fail to be pushed, the build status is marked
1257 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001258 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001259 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001260 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1261 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1262 &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 -07001263 # than this value, the build will expire and the build status will be
1264 # `EXPIRED`.
1265 #
1266 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001267 &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 -07001268 #
1269 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07001270 # build&#x27;s execution.
1271 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1272 &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.
1273 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1274 # omitted, the latest generation will be used.
1275 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1276 # [Bucket Name
1277 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1278 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001279 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1281 # build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001282 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001283 &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
1284 # Repository.
1285 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1286 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1287 # Should only be used with RunBuildTrigger
1288 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001289 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001290 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1291 # regex.
1292 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001293 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001294 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1295 # absolute path, this value is ignored for that step&#x27;s execution.
1296 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001297 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001298 # 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;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001301 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001302 # The syntax of the regular expressions accepted is the syntax accepted by
1303 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1304 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1305 # project ID requesting the build is assumed.
1306 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001307 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 },
1309 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1310 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001311 # Format: projects/{project}/workerPools/{workerPool}
1312 #
1313 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07001315 # build steps in this build. If a variable is defined in both globally and in
1316 # a build step, the variable will use the build step value.
1317 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1319 # being given the value &quot;VALUE&quot;.
1320 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001321 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001322 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
1323 # stored.
1324 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1325 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
1326 # checks.
1327 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
1328 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07001329 # build utilities. Also note that this is the minimum disk size that will be
1330 # allocated for the build -- the build may run with a larger disk than
1331 # requested. At present, the maximum disk size is 1000GB; builds that request
1332 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001333 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1334 &quot;A String&quot;,
1335 ],
1336 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
1337 # Key Management Service crypto key. These values must be specified in the
1338 # build&#x27;s `Secret`. These variables will be available to all build steps
1339 # in this build.
1340 &quot;A String&quot;,
1341 ],
1342 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001343 #
1344 # Each volume is created as an empty volume prior to starting the build
1345 # process. Upon completion of the build, volumes and their contents are
1346 # discarded. Global volume names and paths cannot conflict with the volumes
1347 # defined a build step.
1348 #
1349 # Using a global volume in a build with only one step is not valid as
1350 # it is indicative of a build request with an incorrect configuration.
1351 { # Volume describes a Docker container volume which is mounted into build steps
1352 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001353 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001354 #
1355 # Paths must be absolute and cannot conflict with other volume paths on the
1356 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07001357 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001358 #
1359 # Volume names must be unique per build step and must be valid names for
1360 # Docker volumes. Each named volume must be used by at least two build steps.
1361 },
1362 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001363 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1364 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
1365 # Storage.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001366 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001367 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
1368 # granularity. If this amount of time elapses, work on the build will cease
1369 # and the build status will be `TIMEOUT`.
1370 #
1371 # Default time is ten minutes.
1372 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1373 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1374 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
1375 # successful completion of all build steps.
1376 # successful completion of all build steps.
1377 &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
1378 # completion of all build steps.
1379 #
1380 # Files in the workspace matching specified paths globs will be uploaded to
1381 # the specified Cloud Storage location using the builder service account&#x27;s
1382 # credentials.
1383 #
1384 # The location and generation of the uploaded objects will be stored in the
1385 # Build resource&#x27;s results field.
1386 #
1387 # If any objects fail to be pushed, the build is marked FAILURE.
1388 # completion of all build steps.
1389 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1390 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1391 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1392 },
1393 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1394 &quot;A String&quot;,
1395 ],
1396 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
1397 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
1398 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1399 #
1400 # Files in the workspace matching any path pattern will be uploaded to
1401 # Cloud Storage with this location as a prefix.
1402 },
1403 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
1404 # steps.
1405 #
1406 # The images will be pushed using the builder service account&#x27;s credentials.
1407 #
1408 # The digests of the pushed images will be stored in the Build resource&#x27;s
1409 # results field.
1410 #
1411 # If any of the images fail to be pushed, the build is marked FAILURE.
1412 &quot;A String&quot;,
1413 ],
1414 },
1415 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1416 { # Pairs a set of secret environment variables containing encrypted
1417 # values with the Cloud KMS key to use to decrypt the value.
1418 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
1419 #
1420 # Secret environment variables must be unique across all of a build&#x27;s
1421 # secrets, and must be used by at least one build step. Values can be at most
1422 # 64 KB in size. There can be at most 100 secret values across all of a
1423 # build&#x27;s secrets.
1424 &quot;a_key&quot;: &quot;A String&quot;,
1425 },
1426 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1427 },
1428 ],
1429 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1430 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
1431 # indices.
1432 &quot;A String&quot;,
1433 ],
1434 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1435 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1436 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1437 },
1438 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
1439 # corresponding to build step indices.
1440 #
1441 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
1442 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
1443 # Only the first 4KB of data is stored.
1444 &quot;A String&quot;,
1445 ],
1446 &quot;images&quot;: [ # Container images that were built as a part of the build.
1447 { # An image built by the pipeline.
1448 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
1449 # presented to `docker push`.
1450 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1451 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1452 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1453 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1454 },
1455 },
1456 ],
1457 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1458 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1459 },
1460 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
1461 # [Bucket Name
1462 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1463 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1464 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1465 { # A step in the build pipeline.
1466 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
1467 # If unset, the image&#x27;s default entrypoint is used.
1468 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
1469 #
1470 # Each volume is created as an empty volume prior to execution of the
1471 # build step. Upon completion of the build, volumes and their contents are
1472 # discarded.
1473 #
1474 # Using a named volume in only one step is not valid as it is indicative
1475 # of a build request with an incorrect configuration.
1476 { # Volume describes a Docker container volume which is mounted into build steps
1477 # in order to persist files across build step execution.
1478 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
1479 #
1480 # Paths must be absolute and cannot conflict with other volume paths on the
1481 # same build step or with certain reserved volume paths.
1482 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
1483 #
1484 # Volume names must be unique per build step and must be valid names for
1485 # Docker volumes. Each named volume must be used by at least two build steps.
1486 },
1487 ],
1488 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
1489 #
1490 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
1491 # are used as arguments to that entrypoint. If the image does not define
1492 # an entrypoint, the first element in args is used as the entrypoint,
1493 # and the remainder will be used as arguments.
1494 &quot;A String&quot;,
1495 ],
1496 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
1497 # only updated on build completion; step status is not updated in real-time
1498 # as the build progresses.
1499 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
1500 # time limit and will be allowed to continue to run until either it completes
1501 # or the build itself times out.
1502 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
1503 # builder image only.
1504 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1505 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1506 },
1507 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
1508 # build step.
1509 #
1510 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
1511 # will be run directly. If not, the host will attempt to pull the image
1512 # first, using the builder service account&#x27;s credentials if necessary.
1513 #
1514 # The Docker daemon&#x27;s cache will already have the latest versions of all of
1515 # the officially supported build steps
1516 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
1517 # The Docker daemon will also have cached many of the layers for some popular
1518 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
1519 # attempt to use them.
1520 #
1521 # If you built an image in a previous build step, it will be stored in the
1522 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
1523 # later build step.
1524 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
1525 # reference this build step as a dependency.
1526 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
1527 # Management Service crypto key. These values must be specified in the
1528 # build&#x27;s `Secret`.
1529 &quot;A String&quot;,
1530 ],
1531 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
1532 #
1533 # If this value is a relative path, it is relative to the build&#x27;s working
1534 # directory. If this value is absolute, it may be outside the build&#x27;s working
1535 # directory, in which case the contents of the path may not be persisted
1536 # across build step executions, unless a `volume` for that path is specified.
1537 #
1538 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
1539 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
1540 # the step&#x27;s execution.
1541 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
1542 #
1543 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1544 # being given the value &quot;VALUE&quot;.
1545 &quot;A String&quot;,
1546 ],
1547 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
1548 # This build step will not start until all the build steps in `wait_for`
1549 # have completed successfully. If `wait_for` is empty, this build step will
1550 # start when all previous build steps in the `Build.Steps` list have
1551 # completed successfully.
1552 &quot;A String&quot;,
1553 ],
1554 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1555 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1556 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1557 },
1558 },
1559 ],
1560 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
1561 # was triggered automatically.
1562 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1563 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1564 &quot;A String&quot;,
1565 ],
1566 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1567 &quot;a_key&quot;: &quot;A String&quot;,
1568 },
1569 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1570 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
1571 # are:
1572 #
1573 # * BUILD: time to execute all build steps
1574 # * PUSH: time to push all specified images.
1575 # * FETCHSOURCE: time to fetch source.
1576 #
1577 # If the build does not specify source or images,
1578 # these keys will not be included.
1579 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1580 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1581 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1582 },
1583 },
1584 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
1585 # some source was used for this build.
1586 &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
1587 # revisions resolved.
1588 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1589 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1590 # Should only be used with RunBuildTrigger
1591 &quot;a_key&quot;: &quot;A String&quot;,
1592 },
1593 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1594 # regex.
1595 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1596 #
1597 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1598 # absolute path, this value is ignored for that step&#x27;s execution.
1599 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
1600 #
1601 # The syntax of the regular expressions accepted is the syntax accepted by
1602 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1603 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
1604 #
1605 # The syntax of the regular expressions accepted is the syntax accepted by
1606 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1607 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1608 # project ID requesting the build is assumed.
1609 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1610 },
1611 &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
1612 # generations resolved.
1613 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1614 # omitted, the latest generation will be used.
1615 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1616 # [Bucket Name
1617 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1618 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
1619 #
1620 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1621 # build.
1622 },
1623 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
1624 # the original source integrity was maintained in the build. Note that
1625 # `FileHashes` will only be populated if `BuildOptions` has requested a
1626 # `SourceProvenanceHash`.
1627 #
1628 # The keys to this map are file paths used as build source and the values
1629 # contain the hash values for those files.
1630 #
1631 # If the build source came in a single package such as a gzipped tarfile
1632 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
1633 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
1634 # SourceProvenance messages to verify integrity of source input to the build.
1635 &quot;fileHash&quot;: [ # Collection of file hashes.
1636 { # Container message for hash values.
1637 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1638 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1639 },
1640 ],
1641 },
1642 },
1643 },
1644 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001645 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001646 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
1647 # a build whenever a GitHub event is received.
1648 #
1649 # Mutually exclusive with `trigger_template`.
1650 # build whenever a GitHub event is received.
1651 #
1652 # This message is experimental.
1653 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
1654 # Requests.
1655 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
1656 #
1657 # The syntax of the regular expressions accepted is the syntax accepted by
1658 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1659 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1660 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
1661 # comments `/gcbrun`.
1662 },
1663 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1664 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
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, # When true, only trigger a build if the revision regex does NOT match the
1669 # git_ref regex.
1670 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
1671 #
1672 # The syntax of the regular expressions accepted is the syntax accepted by
1673 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1674 },
1675 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
1676 # https://github.com/googlecloudplatform/cloud-builders is
1677 # &quot;googlecloudplatform&quot;.
1678 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1679 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
1680 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1681 },
1682 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
1683 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
1684 #
1685 # If ignored_files and changed files are both empty, then they are
1686 # not used to determine whether or not to trigger a build.
1687 #
1688 # If ignored_files is not empty, then we ignore any files that match
1689 # any of the ignored_file globs. If the change has no files that are
1690 # outside of the ignored_files globs, then we do not trigger a build.
1691 &quot;A String&quot;,
1692 ],
1693 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
1694 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
1695 # keys in bindings.
1696 &quot;a_key&quot;: &quot;A String&quot;,
1697 },
1698 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001699 # filter and included_files is empty, then as far as this filter is
1700 # concerned, we should trigger the build.
1701 #
1702 # If any of the files altered in the commit pass the ignored_files
1703 # filter and included_files is not empty, then we make sure that at
1704 # least one of those files matches a included_files glob. If not,
1705 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001706 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001707 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001708 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
1709 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1710 &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 -07001711 #
1712 # Branch and tag names in trigger templates are interpreted as regular
1713 # expressions. Any branch or tag change that matches that regular expression
1714 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001715 #
1716 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001717 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1718 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001719 # Should only be used with RunBuildTrigger
Bu Sun Kim65020912020-05-20 12:08:20 -07001720 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001721 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001722 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1723 # regex.
1724 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
1725 #
1726 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1727 # absolute path, this value is ignored for that step&#x27;s execution.
1728 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001729 #
1730 # The syntax of the regular expressions accepted is the syntax accepted by
1731 # RE2 and described at https://github.com/google/re2/wiki/Syntax
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 Kim715bd7f2019-06-14 16:50:42 -07001739 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001740 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001741 }</pre>
1742</div>
1743
1744<div class="method">
1745 <code class="details" id="list">list(projectId, pageSize=None, pageToken=None, x__xgafv=None)</code>
1746 <pre>Lists existing `BuildTrigger`s.
1747
1748This API is experimental.
1749
1750Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001751 projectId: string, Required. ID of the project for which to list BuildTriggers. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001752 pageSize: integer, Number of results to return in the list.
1753 pageToken: string, Token to provide to skip to a particular spot in the list.
1754 x__xgafv: string, V1 error format.
1755 Allowed values
1756 1 - v1 error format
1757 2 - v2 error format
1758
1759Returns:
1760 An object of the form:
1761
1762 { # Response containing existing `BuildTriggers`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001763 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
1764 &quot;triggers&quot;: [ # `BuildTriggers` for the project, sorted by `create_time` descending.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001765 { # Configuration for an automated build in response to source repository
1766 # changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001767 &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 -07001768 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -07001769 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
1770 # Trigger names must meet the following requirements:
1771 #
1772 # + They must contain only alphanumeric characters and dashes.
1773 # + They can be 1-64 characters long.
1774 # + They must begin and end with an alphanumeric character.
1775 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1776 &quot;A String&quot;,
1777 ],
1778 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1779 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001780 #
1781 # At a high level, a `Build` describes where to find source code, how to build
1782 # it (for example, the builder image to run on the source), and where to store
1783 # the built artifacts.
1784 #
1785 # Fields can include the following variables, which will be expanded when the
1786 # build is created:
1787 #
1788 # - $PROJECT_ID: the project ID of the build.
1789 # - $BUILD_ID: the autogenerated ID of the build.
1790 # - $REPO_NAME: the source repository name specified by RepoSource.
1791 # - $BRANCH_NAME: the branch name specified by RepoSource.
1792 # - $TAG_NAME: the tag name specified by RepoSource.
1793 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
1794 # resolved from the specified branch or tag.
1795 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim65020912020-05-20 12:08:20 -07001796 &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 -07001797 # steps.
1798 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001799 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001800 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001801 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001802 # results field.
1803 #
1804 # If any of the images fail to be pushed, the build status is marked
1805 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001806 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001807 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001808 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1809 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1810 &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 -07001811 # than this value, the build will expire and the build status will be
1812 # `EXPIRED`.
1813 #
1814 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001815 &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 -07001816 #
1817 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07001818 # build&#x27;s execution.
1819 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1820 &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.
1821 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
1822 # omitted, the latest generation will be used.
1823 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
1824 # [Bucket Name
1825 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1826 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001827 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001828 # This object must be a gzipped archive file (`.tar.gz`) containing source to
1829 # build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001830 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001831 &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
1832 # Repository.
1833 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1834 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
1835 # Should only be used with RunBuildTrigger
1836 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001837 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001838 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
1839 # regex.
1840 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001841 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001842 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
1843 # absolute path, this value is ignored for that step&#x27;s execution.
1844 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001845 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001846 # The syntax of the regular expressions accepted is the syntax accepted by
1847 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1848 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001849 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001850 # The syntax of the regular expressions accepted is the syntax accepted by
1851 # RE2 and described at https://github.com/google/re2/wiki/Syntax
1852 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
1853 # project ID requesting the build is assumed.
1854 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001855 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001856 },
1857 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1858 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
Dan O'Mearadd494642020-05-01 07:42:23 -07001859 # Format: projects/{project}/workerPools/{workerPool}
1860 #
1861 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07001862 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07001863 # build steps in this build. If a variable is defined in both globally and in
1864 # a build step, the variable will use the build step value.
1865 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001866 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
1867 # being given the value &quot;VALUE&quot;.
1868 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001869 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001870 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
1871 # stored.
1872 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1873 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
1874 # checks.
1875 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
1876 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07001877 # build utilities. Also note that this is the minimum disk size that will be
1878 # allocated for the build -- the build may run with a larger disk than
1879 # requested. At present, the maximum disk size is 1000GB; builds that request
1880 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001881 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1882 &quot;A String&quot;,
1883 ],
1884 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
1885 # Key Management Service crypto key. These values must be specified in the
1886 # build&#x27;s `Secret`. These variables will be available to all build steps
1887 # in this build.
1888 &quot;A String&quot;,
1889 ],
1890 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001891 #
1892 # Each volume is created as an empty volume prior to starting the build
1893 # process. Upon completion of the build, volumes and their contents are
1894 # discarded. Global volume names and paths cannot conflict with the volumes
1895 # defined a build step.
1896 #
1897 # Using a global volume in a build with only one step is not valid as
1898 # it is indicative of a build request with an incorrect configuration.
1899 { # Volume describes a Docker container volume which is mounted into build steps
1900 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07001901 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001902 #
1903 # Paths must be absolute and cannot conflict with other volume paths on the
1904 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07001905 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001906 #
1907 # Volume names must be unique per build step and must be valid names for
1908 # Docker volumes. Each named volume must be used by at least two build steps.
1909 },
1910 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001911 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1912 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
1913 # Storage.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001914 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001915 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
1916 # granularity. If this amount of time elapses, work on the build will cease
1917 # and the build status will be `TIMEOUT`.
1918 #
1919 # Default time is ten minutes.
1920 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1921 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1922 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
1923 # successful completion of all build steps.
1924 # successful completion of all build steps.
1925 &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
1926 # completion of all build steps.
1927 #
1928 # Files in the workspace matching specified paths globs will be uploaded to
1929 # the specified Cloud Storage location using the builder service account&#x27;s
1930 # credentials.
1931 #
1932 # The location and generation of the uploaded objects will be stored in the
1933 # Build resource&#x27;s results field.
1934 #
1935 # If any objects fail to be pushed, the build is marked FAILURE.
1936 # completion of all build steps.
1937 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1938 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1939 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1940 },
1941 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1942 &quot;A String&quot;,
1943 ],
1944 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
1945 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
1946 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1947 #
1948 # Files in the workspace matching any path pattern will be uploaded to
1949 # Cloud Storage with this location as a prefix.
1950 },
1951 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
1952 # steps.
1953 #
1954 # The images will be pushed using the builder service account&#x27;s credentials.
1955 #
1956 # The digests of the pushed images will be stored in the Build resource&#x27;s
1957 # results field.
1958 #
1959 # If any of the images fail to be pushed, the build is marked FAILURE.
1960 &quot;A String&quot;,
1961 ],
1962 },
1963 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1964 { # Pairs a set of secret environment variables containing encrypted
1965 # values with the Cloud KMS key to use to decrypt the value.
1966 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
1967 #
1968 # Secret environment variables must be unique across all of a build&#x27;s
1969 # secrets, and must be used by at least one build step. Values can be at most
1970 # 64 KB in size. There can be at most 100 secret values across all of a
1971 # build&#x27;s secrets.
1972 &quot;a_key&quot;: &quot;A String&quot;,
1973 },
1974 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1975 },
1976 ],
1977 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1978 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
1979 # indices.
1980 &quot;A String&quot;,
1981 ],
1982 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1983 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1984 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1985 },
1986 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
1987 # corresponding to build step indices.
1988 #
1989 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
1990 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
1991 # Only the first 4KB of data is stored.
1992 &quot;A String&quot;,
1993 ],
1994 &quot;images&quot;: [ # Container images that were built as a part of the build.
1995 { # An image built by the pipeline.
1996 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
1997 # presented to `docker push`.
1998 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1999 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
2000 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2001 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2002 },
2003 },
2004 ],
2005 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
2006 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
2007 },
2008 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
2009 # [Bucket Name
2010 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2011 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
2012 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
2013 { # A step in the build pipeline.
2014 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
2015 # If unset, the image&#x27;s default entrypoint is used.
2016 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
2017 #
2018 # Each volume is created as an empty volume prior to execution of the
2019 # build step. Upon completion of the build, volumes and their contents are
2020 # discarded.
2021 #
2022 # Using a named volume in only one step is not valid as it is indicative
2023 # of a build request with an incorrect configuration.
2024 { # Volume describes a Docker container volume which is mounted into build steps
2025 # in order to persist files across build step execution.
2026 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
2027 #
2028 # Paths must be absolute and cannot conflict with other volume paths on the
2029 # same build step or with certain reserved volume paths.
2030 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
2031 #
2032 # Volume names must be unique per build step and must be valid names for
2033 # Docker volumes. Each named volume must be used by at least two build steps.
2034 },
2035 ],
2036 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
2037 #
2038 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
2039 # are used as arguments to that entrypoint. If the image does not define
2040 # an entrypoint, the first element in args is used as the entrypoint,
2041 # and the remainder will be used as arguments.
2042 &quot;A String&quot;,
2043 ],
2044 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
2045 # only updated on build completion; step status is not updated in real-time
2046 # as the build progresses.
2047 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
2048 # time limit and will be allowed to continue to run until either it completes
2049 # or the build itself times out.
2050 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
2051 # builder image only.
2052 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2053 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2054 },
2055 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
2056 # build step.
2057 #
2058 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
2059 # will be run directly. If not, the host will attempt to pull the image
2060 # first, using the builder service account&#x27;s credentials if necessary.
2061 #
2062 # The Docker daemon&#x27;s cache will already have the latest versions of all of
2063 # the officially supported build steps
2064 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
2065 # The Docker daemon will also have cached many of the layers for some popular
2066 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
2067 # attempt to use them.
2068 #
2069 # If you built an image in a previous build step, it will be stored in the
2070 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
2071 # later build step.
2072 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
2073 # reference this build step as a dependency.
2074 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
2075 # Management Service crypto key. These values must be specified in the
2076 # build&#x27;s `Secret`.
2077 &quot;A String&quot;,
2078 ],
2079 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
2080 #
2081 # If this value is a relative path, it is relative to the build&#x27;s working
2082 # directory. If this value is absolute, it may be outside the build&#x27;s working
2083 # directory, in which case the contents of the path may not be persisted
2084 # across build step executions, unless a `volume` for that path is specified.
2085 #
2086 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
2087 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
2088 # the step&#x27;s execution.
2089 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
2090 #
2091 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
2092 # being given the value &quot;VALUE&quot;.
2093 &quot;A String&quot;,
2094 ],
2095 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
2096 # This build step will not start until all the build steps in `wait_for`
2097 # have completed successfully. If `wait_for` is empty, this build step will
2098 # start when all previous build steps in the `Build.Steps` list have
2099 # completed successfully.
2100 &quot;A String&quot;,
2101 ],
2102 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
2103 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2104 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2105 },
2106 },
2107 ],
2108 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
2109 # was triggered automatically.
2110 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
2111 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
2112 &quot;A String&quot;,
2113 ],
2114 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
2115 &quot;a_key&quot;: &quot;A String&quot;,
2116 },
2117 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
2118 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
2119 # are:
2120 #
2121 # * BUILD: time to execute all build steps
2122 # * PUSH: time to push all specified images.
2123 # * FETCHSOURCE: time to fetch source.
2124 #
2125 # If the build does not specify source or images,
2126 # these keys will not be included.
2127 &quot;a_key&quot;: { # Start and end times for a build execution phase.
2128 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2129 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2130 },
2131 },
2132 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
2133 # some source was used for this build.
2134 &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
2135 # revisions resolved.
2136 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2137 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2138 # Should only be used with RunBuildTrigger
2139 &quot;a_key&quot;: &quot;A String&quot;,
2140 },
2141 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2142 # regex.
2143 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2144 #
2145 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2146 # absolute path, this value is ignored for that step&#x27;s execution.
2147 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
2148 #
2149 # The syntax of the regular expressions accepted is the syntax accepted by
2150 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2151 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
2152 #
2153 # The syntax of the regular expressions accepted is the syntax accepted by
2154 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2155 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2156 # project ID requesting the build is assumed.
2157 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
2158 },
2159 &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
2160 # generations resolved.
2161 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
2162 # omitted, the latest generation will be used.
2163 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
2164 # [Bucket Name
2165 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2166 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
2167 #
2168 # This object must be a gzipped archive file (`.tar.gz`) containing source to
2169 # build.
2170 },
2171 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
2172 # the original source integrity was maintained in the build. Note that
2173 # `FileHashes` will only be populated if `BuildOptions` has requested a
2174 # `SourceProvenanceHash`.
2175 #
2176 # The keys to this map are file paths used as build source and the values
2177 # contain the hash values for those files.
2178 #
2179 # If the build source came in a single package such as a gzipped tarfile
2180 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
2181 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
2182 # SourceProvenance messages to verify integrity of source input to the build.
2183 &quot;fileHash&quot;: [ # Collection of file hashes.
2184 { # Container message for hash values.
2185 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2186 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2187 },
2188 ],
2189 },
2190 },
2191 },
2192 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002193 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002194 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
2195 # a build whenever a GitHub event is received.
2196 #
2197 # Mutually exclusive with `trigger_template`.
2198 # build whenever a GitHub event is received.
2199 #
2200 # This message is experimental.
2201 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
2202 # Requests.
2203 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
2204 #
2205 # The syntax of the regular expressions accepted is the syntax accepted by
2206 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2207 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2208 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
2209 # comments `/gcbrun`.
2210 },
2211 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
2212 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
2213 #
2214 # The syntax of the regular expressions accepted is the syntax accepted by
2215 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2216 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
2217 # git_ref regex.
2218 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
2219 #
2220 # The syntax of the regular expressions accepted is the syntax accepted by
2221 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2222 },
2223 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
2224 # https://github.com/googlecloudplatform/cloud-builders is
2225 # &quot;googlecloudplatform&quot;.
2226 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
2227 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
2228 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
2229 },
2230 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
2231 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
2232 #
2233 # If ignored_files and changed files are both empty, then they are
2234 # not used to determine whether or not to trigger a build.
2235 #
2236 # If ignored_files is not empty, then we ignore any files that match
2237 # any of the ignored_file globs. If the change has no files that are
2238 # outside of the ignored_files globs, then we do not trigger a build.
2239 &quot;A String&quot;,
2240 ],
2241 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
2242 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
2243 # keys in bindings.
2244 &quot;a_key&quot;: &quot;A String&quot;,
2245 },
2246 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002247 # filter and included_files is empty, then as far as this filter is
2248 # concerned, we should trigger the build.
2249 #
2250 # If any of the files altered in the commit pass the ignored_files
2251 # filter and included_files is not empty, then we make sure that at
2252 # least one of those files matches a included_files glob. If not,
2253 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002254 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002255 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002256 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
2257 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
2258 &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 -07002259 #
2260 # Branch and tag names in trigger templates are interpreted as regular
2261 # expressions. Any branch or tag change that matches that regular expression
2262 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002263 #
2264 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002265 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2266 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002267 # Should only be used with RunBuildTrigger
Bu Sun Kim65020912020-05-20 12:08:20 -07002268 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002269 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002270 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2271 # regex.
2272 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2273 #
2274 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2275 # absolute path, this value is ignored for that step&#x27;s execution.
2276 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002277 #
2278 # The syntax of the regular expressions accepted is the syntax accepted by
2279 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07002280 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002281 #
2282 # The syntax of the regular expressions accepted is the syntax accepted by
2283 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07002284 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2285 # project ID requesting the build is assumed.
2286 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002287 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002288 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002289 },
2290 ],
2291 }</pre>
2292</div>
2293
2294<div class="method">
2295 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2296 <pre>Retrieves the next page of results.
2297
2298Args:
2299 previous_request: The request for the previous page. (required)
2300 previous_response: The response from the request for the previous page. (required)
2301
2302Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002303 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002304 page. Returns None if there are no more items in the collection.
2305 </pre>
2306</div>
2307
2308<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002309 <code class="details" id="patch">patch(projectId, triggerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002310 <pre>Updates a `BuildTrigger` by its project ID and trigger ID.
2311
2312This API is experimental.
2313
2314Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002315 projectId: string, Required. ID of the project that owns the trigger. (required)
2316 triggerId: string, Required. ID of the `BuildTrigger` to update. (required)
2317 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002318 The object takes the form of:
2319
2320{ # Configuration for an automated build in response to source repository
2321 # changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07002322 &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 -07002323 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -07002324 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
2325 # Trigger names must meet the following requirements:
2326 #
2327 # + They must contain only alphanumeric characters and dashes.
2328 # + They can be 1-64 characters long.
2329 # + They must begin and end with an alphanumeric character.
2330 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
2331 &quot;A String&quot;,
2332 ],
2333 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
2334 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002335 #
2336 # At a high level, a `Build` describes where to find source code, how to build
2337 # it (for example, the builder image to run on the source), and where to store
2338 # the built artifacts.
2339 #
2340 # Fields can include the following variables, which will be expanded when the
2341 # build is created:
2342 #
2343 # - $PROJECT_ID: the project ID of the build.
2344 # - $BUILD_ID: the autogenerated ID of the build.
2345 # - $REPO_NAME: the source repository name specified by RepoSource.
2346 # - $BRANCH_NAME: the branch name specified by RepoSource.
2347 # - $TAG_NAME: the tag name specified by RepoSource.
2348 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
2349 # resolved from the specified branch or tag.
2350 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim65020912020-05-20 12:08:20 -07002351 &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 -07002352 # steps.
2353 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002354 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002355 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002356 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002357 # results field.
2358 #
2359 # If any of the images fail to be pushed, the build status is marked
2360 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002361 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002362 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002363 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
2364 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
2365 &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 -07002366 # than this value, the build will expire and the build status will be
2367 # `EXPIRED`.
2368 #
2369 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002370 &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 -07002371 #
2372 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07002373 # build&#x27;s execution.
2374 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
2375 &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.
2376 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
2377 # omitted, the latest generation will be used.
2378 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
2379 # [Bucket Name
2380 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2381 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002382 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002383 # This object must be a gzipped archive file (`.tar.gz`) containing source to
2384 # build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002385 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002386 &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
2387 # Repository.
2388 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2389 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2390 # Should only be used with RunBuildTrigger
2391 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002392 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002393 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2394 # regex.
2395 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002396 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002397 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2398 # absolute path, this value is ignored for that step&#x27;s execution.
2399 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002400 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002401 # The syntax of the regular expressions accepted is the syntax accepted by
2402 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2403 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002404 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002405 # 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;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2408 # project ID requesting the build is assumed.
2409 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002410 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002411 },
2412 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
2413 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002414 # Format: projects/{project}/workerPools/{workerPool}
2415 #
2416 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07002417 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07002418 # build steps in this build. If a variable is defined in both globally and in
2419 # a build step, the variable will use the build step value.
2420 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002421 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
2422 # being given the value &quot;VALUE&quot;.
2423 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002424 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002425 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
2426 # stored.
2427 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
2428 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
2429 # checks.
2430 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
2431 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07002432 # build utilities. Also note that this is the minimum disk size that will be
2433 # allocated for the build -- the build may run with a larger disk than
2434 # requested. At present, the maximum disk size is 1000GB; builds that request
2435 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07002436 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
2437 &quot;A String&quot;,
2438 ],
2439 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
2440 # Key Management Service crypto key. These values must be specified in the
2441 # build&#x27;s `Secret`. These variables will be available to all build steps
2442 # in this build.
2443 &quot;A String&quot;,
2444 ],
2445 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002446 #
2447 # Each volume is created as an empty volume prior to starting the build
2448 # process. Upon completion of the build, volumes and their contents are
2449 # discarded. Global volume names and paths cannot conflict with the volumes
2450 # defined a build step.
2451 #
2452 # Using a global volume in a build with only one step is not valid as
2453 # it is indicative of a build request with an incorrect configuration.
2454 { # Volume describes a Docker container volume which is mounted into build steps
2455 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002456 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002457 #
2458 # Paths must be absolute and cannot conflict with other volume paths on the
2459 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07002460 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002461 #
2462 # Volume names must be unique per build step and must be valid names for
2463 # Docker volumes. Each named volume must be used by at least two build steps.
2464 },
2465 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002466 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
2467 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
2468 # Storage.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002469 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002470 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
2471 # granularity. If this amount of time elapses, work on the build will cease
2472 # and the build status will be `TIMEOUT`.
2473 #
2474 # Default time is ten minutes.
2475 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
2476 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
2477 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
2478 # successful completion of all build steps.
2479 # successful completion of all build steps.
2480 &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
2481 # completion of all build steps.
2482 #
2483 # Files in the workspace matching specified paths globs will be uploaded to
2484 # the specified Cloud Storage location using the builder service account&#x27;s
2485 # credentials.
2486 #
2487 # The location and generation of the uploaded objects will be stored in the
2488 # Build resource&#x27;s results field.
2489 #
2490 # If any objects fail to be pushed, the build is marked FAILURE.
2491 # completion of all build steps.
2492 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
2493 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2494 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2495 },
2496 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
2497 &quot;A String&quot;,
2498 ],
2499 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
2500 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
2501 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2502 #
2503 # Files in the workspace matching any path pattern will be uploaded to
2504 # Cloud Storage with this location as a prefix.
2505 },
2506 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
2507 # steps.
2508 #
2509 # The images will be pushed using the builder service account&#x27;s credentials.
2510 #
2511 # The digests of the pushed images will be stored in the Build resource&#x27;s
2512 # results field.
2513 #
2514 # If any of the images fail to be pushed, the build is marked FAILURE.
2515 &quot;A String&quot;,
2516 ],
2517 },
2518 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
2519 { # Pairs a set of secret environment variables containing encrypted
2520 # values with the Cloud KMS key to use to decrypt the value.
2521 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
2522 #
2523 # Secret environment variables must be unique across all of a build&#x27;s
2524 # secrets, and must be used by at least one build step. Values can be at most
2525 # 64 KB in size. There can be at most 100 secret values across all of a
2526 # build&#x27;s secrets.
2527 &quot;a_key&quot;: &quot;A String&quot;,
2528 },
2529 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
2530 },
2531 ],
2532 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
2533 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
2534 # indices.
2535 &quot;A String&quot;,
2536 ],
2537 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
2538 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2539 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2540 },
2541 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
2542 # corresponding to build step indices.
2543 #
2544 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
2545 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
2546 # Only the first 4KB of data is stored.
2547 &quot;A String&quot;,
2548 ],
2549 &quot;images&quot;: [ # Container images that were built as a part of the build.
2550 { # An image built by the pipeline.
2551 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
2552 # presented to `docker push`.
2553 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
2554 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
2555 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2556 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2557 },
2558 },
2559 ],
2560 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
2561 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
2562 },
2563 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
2564 # [Bucket Name
2565 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2566 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
2567 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
2568 { # A step in the build pipeline.
2569 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
2570 # If unset, the image&#x27;s default entrypoint is used.
2571 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
2572 #
2573 # Each volume is created as an empty volume prior to execution of the
2574 # build step. Upon completion of the build, volumes and their contents are
2575 # discarded.
2576 #
2577 # Using a named volume in only one step is not valid as it is indicative
2578 # of a build request with an incorrect configuration.
2579 { # Volume describes a Docker container volume which is mounted into build steps
2580 # in order to persist files across build step execution.
2581 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
2582 #
2583 # Paths must be absolute and cannot conflict with other volume paths on the
2584 # same build step or with certain reserved volume paths.
2585 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
2586 #
2587 # Volume names must be unique per build step and must be valid names for
2588 # Docker volumes. Each named volume must be used by at least two build steps.
2589 },
2590 ],
2591 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
2592 #
2593 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
2594 # are used as arguments to that entrypoint. If the image does not define
2595 # an entrypoint, the first element in args is used as the entrypoint,
2596 # and the remainder will be used as arguments.
2597 &quot;A String&quot;,
2598 ],
2599 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
2600 # only updated on build completion; step status is not updated in real-time
2601 # as the build progresses.
2602 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
2603 # time limit and will be allowed to continue to run until either it completes
2604 # or the build itself times out.
2605 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
2606 # builder image only.
2607 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2608 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2609 },
2610 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
2611 # build step.
2612 #
2613 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
2614 # will be run directly. If not, the host will attempt to pull the image
2615 # first, using the builder service account&#x27;s credentials if necessary.
2616 #
2617 # The Docker daemon&#x27;s cache will already have the latest versions of all of
2618 # the officially supported build steps
2619 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
2620 # The Docker daemon will also have cached many of the layers for some popular
2621 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
2622 # attempt to use them.
2623 #
2624 # If you built an image in a previous build step, it will be stored in the
2625 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
2626 # later build step.
2627 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
2628 # reference this build step as a dependency.
2629 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
2630 # Management Service crypto key. These values must be specified in the
2631 # build&#x27;s `Secret`.
2632 &quot;A String&quot;,
2633 ],
2634 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
2635 #
2636 # If this value is a relative path, it is relative to the build&#x27;s working
2637 # directory. If this value is absolute, it may be outside the build&#x27;s working
2638 # directory, in which case the contents of the path may not be persisted
2639 # across build step executions, unless a `volume` for that path is specified.
2640 #
2641 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
2642 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
2643 # the step&#x27;s execution.
2644 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
2645 #
2646 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
2647 # being given the value &quot;VALUE&quot;.
2648 &quot;A String&quot;,
2649 ],
2650 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
2651 # This build step will not start until all the build steps in `wait_for`
2652 # have completed successfully. If `wait_for` is empty, this build step will
2653 # start when all previous build steps in the `Build.Steps` list have
2654 # completed successfully.
2655 &quot;A String&quot;,
2656 ],
2657 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
2658 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2659 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2660 },
2661 },
2662 ],
2663 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
2664 # was triggered automatically.
2665 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
2666 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
2667 &quot;A String&quot;,
2668 ],
2669 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
2670 &quot;a_key&quot;: &quot;A String&quot;,
2671 },
2672 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
2673 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
2674 # are:
2675 #
2676 # * BUILD: time to execute all build steps
2677 # * PUSH: time to push all specified images.
2678 # * FETCHSOURCE: time to fetch source.
2679 #
2680 # If the build does not specify source or images,
2681 # these keys will not be included.
2682 &quot;a_key&quot;: { # Start and end times for a build execution phase.
2683 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2684 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2685 },
2686 },
2687 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
2688 # some source was used for this build.
2689 &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
2690 # revisions resolved.
2691 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2692 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2693 # Should only be used with RunBuildTrigger
2694 &quot;a_key&quot;: &quot;A String&quot;,
2695 },
2696 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2697 # regex.
2698 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2699 #
2700 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2701 # absolute path, this value is ignored for that step&#x27;s execution.
2702 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
2703 #
2704 # The syntax of the regular expressions accepted is the syntax accepted by
2705 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2706 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
2707 #
2708 # The syntax of the regular expressions accepted is the syntax accepted by
2709 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2710 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2711 # project ID requesting the build is assumed.
2712 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
2713 },
2714 &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
2715 # generations resolved.
2716 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
2717 # omitted, the latest generation will be used.
2718 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
2719 # [Bucket Name
2720 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2721 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
2722 #
2723 # This object must be a gzipped archive file (`.tar.gz`) containing source to
2724 # build.
2725 },
2726 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
2727 # the original source integrity was maintained in the build. Note that
2728 # `FileHashes` will only be populated if `BuildOptions` has requested a
2729 # `SourceProvenanceHash`.
2730 #
2731 # The keys to this map are file paths used as build source and the values
2732 # contain the hash values for those files.
2733 #
2734 # If the build source came in a single package such as a gzipped tarfile
2735 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
2736 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
2737 # SourceProvenance messages to verify integrity of source input to the build.
2738 &quot;fileHash&quot;: [ # Collection of file hashes.
2739 { # Container message for hash values.
2740 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2741 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2742 },
2743 ],
2744 },
2745 },
2746 },
2747 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002748 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002749 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
2750 # a build whenever a GitHub event is received.
2751 #
2752 # Mutually exclusive with `trigger_template`.
2753 # build whenever a GitHub event is received.
2754 #
2755 # This message is experimental.
2756 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
2757 # Requests.
2758 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
2759 #
2760 # The syntax of the regular expressions accepted is the syntax accepted by
2761 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2762 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2763 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
2764 # comments `/gcbrun`.
2765 },
2766 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
2767 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
2768 #
2769 # The syntax of the regular expressions accepted is the syntax accepted by
2770 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2771 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
2772 # git_ref regex.
2773 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
2774 #
2775 # The syntax of the regular expressions accepted is the syntax accepted by
2776 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2777 },
2778 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
2779 # https://github.com/googlecloudplatform/cloud-builders is
2780 # &quot;googlecloudplatform&quot;.
2781 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
2782 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
2783 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
2784 },
2785 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
2786 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
2787 #
2788 # If ignored_files and changed files are both empty, then they are
2789 # not used to determine whether or not to trigger a build.
2790 #
2791 # If ignored_files is not empty, then we ignore any files that match
2792 # any of the ignored_file globs. If the change has no files that are
2793 # outside of the ignored_files globs, then we do not trigger a build.
2794 &quot;A String&quot;,
2795 ],
2796 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
2797 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
2798 # keys in bindings.
2799 &quot;a_key&quot;: &quot;A String&quot;,
2800 },
2801 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002802 # filter and included_files is empty, then as far as this filter is
2803 # concerned, we should trigger the build.
2804 #
2805 # If any of the files altered in the commit pass the ignored_files
2806 # filter and included_files is not empty, then we make sure that at
2807 # least one of those files matches a included_files glob. If not,
2808 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002809 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002810 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002811 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
2812 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
2813 &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 -07002814 #
2815 # Branch and tag names in trigger templates are interpreted as regular
2816 # expressions. Any branch or tag change that matches that regular expression
2817 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002818 #
2819 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002820 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2821 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002822 # Should only be used with RunBuildTrigger
Bu Sun Kim65020912020-05-20 12:08:20 -07002823 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002824 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002825 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2826 # regex.
2827 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
2828 #
2829 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2830 # absolute path, this value is ignored for that step&#x27;s execution.
2831 &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 Kim65020912020-05-20 12:08:20 -07002835 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002836 #
2837 # The syntax of the regular expressions accepted is the syntax accepted by
2838 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07002839 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2840 # project ID requesting the build is assumed.
2841 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002842 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002843 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002844}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002845
2846 x__xgafv: string, V1 error format.
2847 Allowed values
2848 1 - v1 error format
2849 2 - v2 error format
2850
2851Returns:
2852 An object of the form:
2853
2854 { # Configuration for an automated build in response to source repository
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002855 # changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07002856 &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 -07002857 # template.
Bu Sun Kim65020912020-05-20 12:08:20 -07002858 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project.
2859 # Trigger names must meet the following requirements:
2860 #
2861 # + They must contain only alphanumeric characters and dashes.
2862 # + They can be 1-64 characters long.
2863 # + They must begin and end with an alphanumeric character.
2864 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
2865 &quot;A String&quot;,
2866 ],
2867 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
2868 &quot;build&quot;: { # A build resource in the Cloud Build API. # Contents of the build template.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002869 #
2870 # At a high level, a `Build` describes where to find source code, how to build
2871 # it (for example, the builder image to run on the source), and where to store
2872 # the built artifacts.
2873 #
2874 # Fields can include the following variables, which will be expanded when the
2875 # build is created:
2876 #
2877 # - $PROJECT_ID: the project ID of the build.
2878 # - $BUILD_ID: the autogenerated ID of the build.
2879 # - $REPO_NAME: the source repository name specified by RepoSource.
2880 # - $BRANCH_NAME: the branch name specified by RepoSource.
2881 # - $TAG_NAME: the tag name specified by RepoSource.
2882 # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
2883 # resolved from the specified branch or tag.
2884 # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Bu Sun Kim65020912020-05-20 12:08:20 -07002885 &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 -07002886 # steps.
2887 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002888 # The images are pushed using the builder service account&#x27;s credentials.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002889 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002890 # The digests of the pushed images will be stored in the `Build` resource&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002891 # results field.
2892 #
2893 # If any of the images fail to be pushed, the build status is marked
2894 # `FAILURE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002895 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002896 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002897 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
2898 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
2899 &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 -07002900 # than this value, the build will expire and the build status will be
2901 # `EXPIRED`.
2902 #
2903 # The TTL starts ticking from create_time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002904 &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 -07002905 #
2906 # The difference between finish_time and start_time is the duration of the
Bu Sun Kim65020912020-05-20 12:08:20 -07002907 # build&#x27;s execution.
2908 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
2909 &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.
2910 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
2911 # omitted, the latest generation will be used.
2912 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
2913 # [Bucket Name
2914 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2915 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002916 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002917 # This object must be a gzipped archive file (`.tar.gz`) containing source to
2918 # build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002919 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002920 &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
2921 # Repository.
2922 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2923 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
2924 # Should only be used with RunBuildTrigger
2925 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002926 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002927 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
2928 # regex.
2929 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002930 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002931 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
2932 # absolute path, this value is ignored for that step&#x27;s execution.
2933 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002934 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002935 # The syntax of the regular expressions accepted is the syntax accepted by
2936 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2937 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002938 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002939 # The syntax of the regular expressions accepted is the syntax accepted by
2940 # RE2 and described at https://github.com/google/re2/wiki/Syntax
2941 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
2942 # project ID requesting the build is assumed.
2943 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002944 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002945 },
2946 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
2947 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build.
Dan O'Mearadd494642020-05-01 07:42:23 -07002948 # Format: projects/{project}/workerPools/{workerPool}
2949 #
2950 # This field is experimental.
Bu Sun Kim65020912020-05-20 12:08:20 -07002951 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all
Dan O'Mearadd494642020-05-01 07:42:23 -07002952 # build steps in this build. If a variable is defined in both globally and in
2953 # a build step, the variable will use the build step value.
2954 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002955 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
2956 # being given the value &quot;VALUE&quot;.
2957 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002958 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002959 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines where the logs are
2960 # stored.
2961 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
2962 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution
2963 # checks.
2964 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT*
2965 # &quot;disk free&quot;; some of the space will be used by the operating system and
Dan O'Mearadd494642020-05-01 07:42:23 -07002966 # build utilities. Also note that this is the minimum disk size that will be
2967 # allocated for the build -- the build may run with a larger disk than
2968 # requested. At present, the maximum disk size is 1000GB; builds that request
2969 # more than the maximum are rejected with an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07002970 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
2971 &quot;A String&quot;,
2972 ],
2973 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud
2974 # Key Management Service crypto key. These values must be specified in the
2975 # build&#x27;s `Secret`. These variables will be available to all build steps
2976 # in this build.
2977 &quot;A String&quot;,
2978 ],
2979 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002980 #
2981 # Each volume is created as an empty volume prior to starting the build
2982 # process. Upon completion of the build, volumes and their contents are
2983 # discarded. Global volume names and paths cannot conflict with the volumes
2984 # defined a build step.
2985 #
2986 # Using a global volume in a build with only one step is not valid as
2987 # it is indicative of a build request with an incorrect configuration.
2988 { # Volume describes a Docker container volume which is mounted into build steps
2989 # in order to persist files across build step execution.
Bu Sun Kim65020912020-05-20 12:08:20 -07002990 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002991 #
2992 # Paths must be absolute and cannot conflict with other volume paths on the
2993 # same build step or with certain reserved volume paths.
Bu Sun Kim65020912020-05-20 12:08:20 -07002994 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002995 #
2996 # Volume names must be unique per build step and must be valid names for
2997 # Docker volumes. Each named volume must be used by at least two build steps.
2998 },
2999 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003000 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
3001 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud
3002 # Storage.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003003 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003004 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second
3005 # granularity. If this amount of time elapses, work on the build will cease
3006 # and the build status will be `TIMEOUT`.
3007 #
3008 # Default time is ten minutes.
3009 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
3010 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
3011 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon # Artifacts produced by the build that should be uploaded upon
3012 # successful completion of all build steps.
3013 # successful completion of all build steps.
3014 &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
3015 # completion of all build steps.
3016 #
3017 # Files in the workspace matching specified paths globs will be uploaded to
3018 # the specified Cloud Storage location using the builder service account&#x27;s
3019 # credentials.
3020 #
3021 # The location and generation of the uploaded objects will be stored in the
3022 # Build resource&#x27;s results field.
3023 #
3024 # If any objects fail to be pushed, the build is marked FAILURE.
3025 # completion of all build steps.
3026 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
3027 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3028 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3029 },
3030 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
3031 &quot;A String&quot;,
3032 ],
3033 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form
3034 # &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name
3035 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3036 #
3037 # Files in the workspace matching any path pattern will be uploaded to
3038 # Cloud Storage with this location as a prefix.
3039 },
3040 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build
3041 # steps.
3042 #
3043 # The images will be pushed using the builder service account&#x27;s credentials.
3044 #
3045 # The digests of the pushed images will be stored in the Build resource&#x27;s
3046 # results field.
3047 #
3048 # If any of the images fail to be pushed, the build is marked FAILURE.
3049 &quot;A String&quot;,
3050 ],
3051 },
3052 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
3053 { # Pairs a set of secret environment variables containing encrypted
3054 # values with the Cloud KMS key to use to decrypt the value.
3055 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value.
3056 #
3057 # Secret environment variables must be unique across all of a build&#x27;s
3058 # secrets, and must be used by at least one build step. Values can be at most
3059 # 64 KB in size. There can be at most 100 secret values across all of a
3060 # build&#x27;s secrets.
3061 &quot;a_key&quot;: &quot;A String&quot;,
3062 },
3063 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
3064 },
3065 ],
3066 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
3067 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step
3068 # indices.
3069 &quot;A String&quot;,
3070 ],
3071 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
3072 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3073 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3074 },
3075 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order
3076 # corresponding to build step indices.
3077 #
3078 # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
3079 # can produce this output by writing to `$BUILDER_OUTPUT/output`.
3080 # Only the first 4KB of data is stored.
3081 &quot;A String&quot;,
3082 ],
3083 &quot;images&quot;: [ # Container images that were built as a part of the build.
3084 { # An image built by the pipeline.
3085 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as
3086 # presented to `docker push`.
3087 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
3088 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
3089 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3090 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3091 },
3092 },
3093 ],
3094 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
3095 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
3096 },
3097 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see
3098 # [Bucket Name
3099 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3100 # Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
3101 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
3102 { # A step in the build pipeline.
3103 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint.
3104 # If unset, the image&#x27;s default entrypoint is used.
3105 &quot;volumes&quot;: [ # List of volumes to mount into the build step.
3106 #
3107 # Each volume is created as an empty volume prior to execution of the
3108 # build step. Upon completion of the build, volumes and their contents are
3109 # discarded.
3110 #
3111 # Using a named volume in only one step is not valid as it is indicative
3112 # of a build request with an incorrect configuration.
3113 { # Volume describes a Docker container volume which is mounted into build steps
3114 # in order to persist files across build step execution.
3115 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume.
3116 #
3117 # Paths must be absolute and cannot conflict with other volume paths on the
3118 # same build step or with certain reserved volume paths.
3119 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount.
3120 #
3121 # Volume names must be unique per build step and must be valid names for
3122 # Docker volumes. Each named volume must be used by at least two build steps.
3123 },
3124 ],
3125 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started.
3126 #
3127 # If the image used to run the step&#x27;s container has an entrypoint, the `args`
3128 # are used as arguments to that entrypoint. If the image does not define
3129 # an entrypoint, the first element in args is used as the entrypoint,
3130 # and the remainder will be used as arguments.
3131 &quot;A String&quot;,
3132 ],
3133 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is
3134 # only updated on build completion; step status is not updated in real-time
3135 # as the build progresses.
3136 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no
3137 # time limit and will be allowed to continue to run until either it completes
3138 # or the build itself times out.
3139 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s
3140 # builder image only.
3141 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3142 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3143 },
3144 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular
3145 # build step.
3146 #
3147 # If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it
3148 # will be run directly. If not, the host will attempt to pull the image
3149 # first, using the builder service account&#x27;s credentials if necessary.
3150 #
3151 # The Docker daemon&#x27;s cache will already have the latest versions of all of
3152 # the officially supported build steps
3153 # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
3154 # The Docker daemon will also have cached many of the layers for some popular
3155 # images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you
3156 # attempt to use them.
3157 #
3158 # If you built an image in a previous build step, it will be stored in the
3159 # host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a
3160 # later build step.
3161 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to
3162 # reference this build step as a dependency.
3163 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key
3164 # Management Service crypto key. These values must be specified in the
3165 # build&#x27;s `Secret`.
3166 &quot;A String&quot;,
3167 ],
3168 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container.
3169 #
3170 # If this value is a relative path, it is relative to the build&#x27;s working
3171 # directory. If this value is absolute, it may be outside the build&#x27;s working
3172 # directory, in which case the contents of the path may not be persisted
3173 # across build step executions, unless a `volume` for that path is specified.
3174 #
3175 # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
3176 # which specifies an absolute path, the `RepoSource` `dir` is ignored for
3177 # the step&#x27;s execution.
3178 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step.
3179 #
3180 # The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot;
3181 # being given the value &quot;VALUE&quot;.
3182 &quot;A String&quot;,
3183 ],
3184 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on.
3185 # This build step will not start until all the build steps in `wait_for`
3186 # have completed successfully. If `wait_for` is empty, this build step will
3187 # start when all previous build steps in the `Build.Steps` list have
3188 # completed successfully.
3189 &quot;A String&quot;,
3190 ],
3191 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
3192 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3193 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3194 },
3195 },
3196 ],
3197 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it
3198 # was triggered automatically.
3199 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
3200 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
3201 &quot;A String&quot;,
3202 ],
3203 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
3204 &quot;a_key&quot;: &quot;A String&quot;,
3205 },
3206 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
3207 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys
3208 # are:
3209 #
3210 # * BUILD: time to execute all build steps
3211 # * PUSH: time to push all specified images.
3212 # * FETCHSOURCE: time to fetch source.
3213 #
3214 # If the build does not specify source or images,
3215 # these keys will not be included.
3216 &quot;a_key&quot;: { # Start and end times for a build execution phase.
3217 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3218 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3219 },
3220 },
3221 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that # Output only. A permanent fixed identifier for source.
3222 # some source was used for this build.
3223 &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
3224 # revisions resolved.
3225 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3226 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
3227 # Should only be used with RunBuildTrigger
3228 &quot;a_key&quot;: &quot;A String&quot;,
3229 },
3230 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
3231 # regex.
3232 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
3233 #
3234 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
3235 # absolute path, this value is ignored for that step&#x27;s execution.
3236 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
3237 #
3238 # The syntax of the regular expressions accepted is the syntax accepted by
3239 # RE2 and described at https://github.com/google/re2/wiki/Syntax
3240 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
3241 #
3242 # The syntax of the regular expressions accepted is the syntax accepted by
3243 # RE2 and described at https://github.com/google/re2/wiki/Syntax
3244 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
3245 # project ID requesting the build is assumed.
3246 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
3247 },
3248 &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
3249 # generations resolved.
3250 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is
3251 # omitted, the latest generation will be used.
3252 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see
3253 # [Bucket Name
3254 # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3255 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source.
3256 #
3257 # This object must be a gzipped archive file (`.tar.gz`) containing source to
3258 # build.
3259 },
3260 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that
3261 # the original source integrity was maintained in the build. Note that
3262 # `FileHashes` will only be populated if `BuildOptions` has requested a
3263 # `SourceProvenanceHash`.
3264 #
3265 # The keys to this map are file paths used as build source and the values
3266 # contain the hash values for those files.
3267 #
3268 # If the build source came in a single package such as a gzipped tarfile
3269 # (`.tar.gz`), the `FileHash` will be for the single path to that file.
3270 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in
3271 # SourceProvenance messages to verify integrity of source input to the build.
3272 &quot;fileHash&quot;: [ # Collection of file hashes.
3273 { # Container message for hash values.
3274 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3275 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3276 },
3277 ],
3278 },
3279 },
3280 },
3281 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003282 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003283 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a # GitHubEventsConfig describes the configuration of a trigger that creates
3284 # a build whenever a GitHub event is received.
3285 #
3286 # Mutually exclusive with `trigger_template`.
3287 # build whenever a GitHub event is received.
3288 #
3289 # This message is experimental.
3290 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull # filter to match changes in pull requests.
3291 # Requests.
3292 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match.
3293 #
3294 # The syntax of the regular expressions accepted is the syntax accepted by
3295 # RE2 and described at https://github.com/google/re2/wiki/Syntax
3296 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
3297 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run only when a repository owner or collaborator
3298 # comments `/gcbrun`.
3299 },
3300 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
3301 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build.
3302 #
3303 # The syntax of the regular expressions accepted is the syntax accepted by
3304 # RE2 and described at https://github.com/google/re2/wiki/Syntax
3305 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the
3306 # git_ref regex.
3307 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build.
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 },
3312 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for
3313 # https://github.com/googlecloudplatform/cloud-builders is
3314 # &quot;googlecloudplatform&quot;.
3315 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
3316 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for
3317 # https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
3318 },
3319 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using
3320 # https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;.
3321 #
3322 # If ignored_files and changed files are both empty, then they are
3323 # not used to determine whether or not to trigger a build.
3324 #
3325 # If ignored_files is not empty, then we ignore any files that match
3326 # any of the ignored_file globs. If the change has no files that are
3327 # outside of the ignored_files globs, then we do not trigger a build.
3328 &quot;A String&quot;,
3329 ],
3330 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following
3331 # regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
3332 # keys in bindings.
3333 &quot;a_key&quot;: &quot;A String&quot;,
3334 },
3335 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003336 # filter and included_files is empty, then as far as this filter is
3337 # concerned, we should trigger the build.
3338 #
3339 # If any of the files altered in the commit pass the ignored_files
3340 # filter and included_files is not empty, then we make sure that at
3341 # least one of those files matches a included_files glob. If not,
3342 # then we do not trigger a build.
Bu Sun Kim65020912020-05-20 12:08:20 -07003343 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003344 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003345 &quot;disabled&quot;: True or False, # If true, the trigger will never result in a build.
3346 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
3347 &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 -07003348 #
3349 # Branch and tag names in trigger templates are interpreted as regular
3350 # expressions. Any branch or tag change that matches that regular expression
3351 # will trigger a build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003352 #
3353 # Mutually exclusive with `github`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003354 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3355 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003356 # Should only be used with RunBuildTrigger
Bu Sun Kim65020912020-05-20 12:08:20 -07003357 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003358 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003359 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
3360 # regex.
3361 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
3362 #
3363 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
3364 # absolute path, this value is ignored for that step&#x27;s execution.
3365 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003366 #
3367 # The syntax of the regular expressions accepted is the syntax accepted by
3368 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07003369 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003370 #
3371 # The syntax of the regular expressions accepted is the syntax accepted by
3372 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07003373 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
3374 # project ID requesting the build is assumed.
3375 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003376 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003377 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003378 }</pre>
3379</div>
3380
3381<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003382 <code class="details" id="run">run(projectId, triggerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003383 <pre>Runs a `BuildTrigger` at a particular source revision.
3384
3385Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07003386 projectId: string, Required. ID of the project. (required)
3387 triggerId: string, Required. ID of the trigger. (required)
3388 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003389 The object takes the form of:
3390
3391{ # Location of the source in a Google Cloud Source Repository.
Bu Sun Kim65020912020-05-20 12:08:20 -07003392 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3393 &quot;substitutions&quot;: { # Substitutions to use in a triggered build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003394 # Should only be used with RunBuildTrigger
Bu Sun Kim65020912020-05-20 12:08:20 -07003395 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003396 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003397 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision
3398 # regex.
3399 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build.
3400 #
3401 # This must be a relative path. If a step&#x27;s `dir` is specified and is an
3402 # absolute path, this value is ignored for that step&#x27;s execution.
3403 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003404 #
3405 # The syntax of the regular expressions accepted is the syntax accepted by
3406 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07003407 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build.
Dan O'Mearadd494642020-05-01 07:42:23 -07003408 #
3409 # The syntax of the regular expressions accepted is the syntax accepted by
3410 # RE2 and described at https://github.com/google/re2/wiki/Syntax
Bu Sun Kim65020912020-05-20 12:08:20 -07003411 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the
3412 # project ID requesting the build is assumed.
3413 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003414}
3415
3416 x__xgafv: string, V1 error format.
3417 Allowed values
3418 1 - v1 error format
3419 2 - v2 error format
3420
3421Returns:
3422 An object of the form:
3423
3424 { # This resource represents a long-running operation that is the result of a
3425 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07003426 &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 -07003427 # If `true`, the operation is completed, and either `error` or `response` is
3428 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003429 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003430 # method returns no data on success, such as `Delete`, the response is
3431 # `google.protobuf.Empty`. If the original method is standard
3432 # `Get`/`Create`/`Update`, the response should be the resource. For other
3433 # methods, the response should have the type `XxxResponse`, where `Xxx`
3434 # is the original method name. For example, if the original method name
3435 # is `TakeSnapshot()`, the inferred response type is
3436 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003437 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003438 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003439 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003440 # originally returns it. If you use the default HTTP mapping, the
3441 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003442 &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.
3443 # different programming environments, including REST APIs and RPC APIs. It is
3444 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3445 # three pieces of data: error code, error message, and error details.
3446 #
3447 # You can find out more about this error model and how to work with it in the
3448 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3449 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3450 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3451 # user-facing error message should be localized and sent in the
3452 # google.rpc.Status.details field, or localized by the client.
3453 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3454 # message types for APIs to use.
3455 {
3456 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3457 },
3458 ],
3459 },
3460 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
3461 # contains progress information and common metadata such as create time.
3462 # Some services might not provide such metadata. Any method that returns a
3463 # long-running operation should document the metadata type, if any.
3464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3465 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003466 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003467</div>
3468
3469</body></html>