blob: 7cbee58279c6f4efd1658e449257ed33c63460e9 [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(projectId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a new `BuildTrigger`. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070083<p class="toc_element">
84 <code><a href="#delete">delete(projectId, triggerId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070086<p class="toc_element">
87 <code><a href="#get">get(projectId, triggerId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Returns information about a `BuildTrigger`. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070089<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#list">list(projectId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Lists existing `BuildTrigger`s. This API is experimental.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(projectId, triggerId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#run">run(projectId, triggerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Runs a `BuildTrigger` at a particular source revision.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700106
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107<div class="method">
108 <code class="details" id="create">create(projectId, body=None, x__xgafv=None)</code>
109 <pre>Creates a new `BuildTrigger`. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700110
111Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 projectId: string, Required. ID of the project for which to configure automatic builds. (required)
113 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700114 The object takes the form of:
115
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700116{ # Configuration for an automated build in response to source repository changes.
117 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
118 &quot;A String&quot;,
119 ],
120 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
121 &quot;A String&quot;,
122 ],
123 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
124 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
125 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
126 &quot;a_key&quot;: &quot;A String&quot;,
127 },
128 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
129 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
130 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
131 &quot;a_key&quot;: { # Start and end times for a build execution phase.
132 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
133 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700134 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700135 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700136 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
137 &quot;A String&quot;,
138 ],
139 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
140 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
141 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
142 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
143 &quot;A String&quot;,
144 ],
145 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
146 &quot;A String&quot;,
147 ],
148 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
149 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
150 &quot;A String&quot;,
151 ],
152 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
153 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
154 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
155 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700156 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700157 ],
158 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
159 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
160 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
161 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
162 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
163 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
164 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
165 },
166 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
167 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
168 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
169 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700170 &quot;a_key&quot;: &quot;A String&quot;,
171 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700172 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700173 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700174 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
175 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
176 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
177 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
178 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
179 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700181 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
182 &quot;A String&quot;,
183 ],
184 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
185 &quot;A String&quot;,
186 ],
187 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
188 &quot;images&quot;: [ # Container images that were built as a part of the build.
189 { # An image built by the pipeline.
190 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
191 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
192 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
193 },
194 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
195 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
196 },
197 ],
198 },
199 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
200 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
201 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
202 &quot;a_key&quot;: &quot;A String&quot;,
203 },
204 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
205 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
206 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
207 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
208 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
209 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
210 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
211 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
212 &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 Repository.
213 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
214 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
215 &quot;a_key&quot;: &quot;A String&quot;,
216 },
217 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
218 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
219 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
220 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
221 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
222 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
223 },
224 &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.
225 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
226 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
227 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700230 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
231 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
232 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
233 { # A step in the build pipeline.
234 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
235 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
236 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
237 },
238 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
239 &quot;A String&quot;,
240 ],
241 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
242 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
243 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
244 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
245 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
246 },
247 ],
248 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
249 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
250 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
251 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
252 },
253 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
254 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
255 &quot;A String&quot;,
256 ],
257 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
258 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
259 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
260 &quot;A String&quot;,
261 ],
262 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
263 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
264 &quot;A String&quot;,
265 ],
266 },
267 ],
268 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700271 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
272 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
273 &quot;A String&quot;,
274 ],
275 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
276 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
277 &quot;A String&quot;,
278 ],
279 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
280 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
281 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
282 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
283 },
284 },
285 },
286 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
287 &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 generations resolved.
288 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
289 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
290 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
291 },
292 &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 revisions resolved.
293 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
294 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
295 &quot;a_key&quot;: &quot;A String&quot;,
296 },
297 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
298 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
299 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
300 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
301 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
302 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
303 },
304 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
305 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
306 &quot;fileHash&quot;: [ # Collection of file hashes.
307 { # Container message for hash values.
308 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
309 &quot;value&quot;: &quot;A String&quot;, # The hash value.
310 },
311 ],
312 },
313 },
314 },
315 },
316 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
317 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
318 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
319 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
320 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
321 },
322 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
323 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
324 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
325 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
326 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
327 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
328 },
329 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
330 },
331 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
332 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
333 &quot;A String&quot;,
334 ],
335 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
336 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`.
337 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
338 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
339 &quot;a_key&quot;: &quot;A String&quot;,
340 },
341 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
342 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
343 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
344 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
345 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
346 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
347 },
348 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
349}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700350
351 x__xgafv: string, V1 error format.
352 Allowed values
353 1 - v1 error format
354 2 - v2 error format
355
356Returns:
357 An object of the form:
358
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700359 { # Configuration for an automated build in response to source repository changes.
360 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
361 &quot;A String&quot;,
362 ],
363 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
364 &quot;A String&quot;,
365 ],
366 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
367 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
368 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
369 &quot;a_key&quot;: &quot;A String&quot;,
370 },
371 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
372 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
373 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
374 &quot;a_key&quot;: { # Start and end times for a build execution phase.
375 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
376 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700377 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700378 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700379 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
380 &quot;A String&quot;,
381 ],
382 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
383 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
384 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
385 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
386 &quot;A String&quot;,
387 ],
388 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
389 &quot;A String&quot;,
390 ],
391 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
392 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
393 &quot;A String&quot;,
394 ],
395 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
396 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
397 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
398 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700399 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700400 ],
401 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
402 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
403 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
404 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
405 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
406 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
407 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
408 },
409 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
410 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
411 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
412 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700413 &quot;a_key&quot;: &quot;A String&quot;,
414 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700415 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700416 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700417 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
418 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
419 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
420 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
421 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
422 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700423 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700424 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
425 &quot;A String&quot;,
426 ],
427 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
428 &quot;A String&quot;,
429 ],
430 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
431 &quot;images&quot;: [ # Container images that were built as a part of the build.
432 { # An image built by the pipeline.
433 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
434 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
435 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
436 },
437 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
438 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
439 },
440 ],
441 },
442 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
443 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
444 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
445 &quot;a_key&quot;: &quot;A String&quot;,
446 },
447 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
448 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
449 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
450 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
451 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
452 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
453 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
454 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
455 &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 Repository.
456 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
457 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
458 &quot;a_key&quot;: &quot;A String&quot;,
459 },
460 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
461 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
462 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
463 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
464 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
465 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
466 },
467 &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.
468 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
469 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
470 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700471 },
472 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700473 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
474 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
475 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
476 { # A step in the build pipeline.
477 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
478 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
479 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
480 },
481 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
482 &quot;A String&quot;,
483 ],
484 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
485 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
486 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
487 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
488 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
489 },
490 ],
491 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
492 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
493 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
494 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
495 },
496 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
497 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
498 &quot;A String&quot;,
499 ],
500 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
501 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
502 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
503 &quot;A String&quot;,
504 ],
505 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
506 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
507 &quot;A String&quot;,
508 ],
509 },
510 ],
511 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700512 &quot;A String&quot;,
513 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700514 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
515 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
516 &quot;A String&quot;,
517 ],
518 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
519 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
520 &quot;A String&quot;,
521 ],
522 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
523 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
524 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
525 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
526 },
527 },
528 },
529 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
530 &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 generations resolved.
531 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
532 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
533 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
534 },
535 &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 revisions resolved.
536 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
537 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
538 &quot;a_key&quot;: &quot;A String&quot;,
539 },
540 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
541 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
542 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
543 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
544 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
545 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
546 },
547 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
548 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
549 &quot;fileHash&quot;: [ # Collection of file hashes.
550 { # Container message for hash values.
551 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
552 &quot;value&quot;: &quot;A String&quot;, # The hash value.
553 },
554 ],
555 },
556 },
557 },
558 },
559 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
560 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
561 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
562 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
563 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
564 },
565 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
566 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
567 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
568 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
569 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
570 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
571 },
572 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
573 },
574 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
575 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
576 &quot;A String&quot;,
577 ],
578 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
579 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`.
580 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
581 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
582 &quot;a_key&quot;: &quot;A String&quot;,
583 },
584 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
585 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
586 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
587 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
588 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
589 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
590 },
591 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
592 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700593</div>
594
595<div class="method">
596 <code class="details" id="delete">delete(projectId, triggerId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700597 <pre>Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700598
599Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700600 projectId: string, Required. ID of the project that owns the trigger. (required)
601 triggerId: string, Required. ID of the `BuildTrigger` to delete. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700602 x__xgafv: string, V1 error format.
603 Allowed values
604 1 - v1 error format
605 2 - v2 error format
606
607Returns:
608 An object of the form:
609
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700610 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700611 }</pre>
612</div>
613
614<div class="method">
615 <code class="details" id="get">get(projectId, triggerId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700616 <pre>Returns information about a `BuildTrigger`. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700617
618Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700619 projectId: string, Required. ID of the project that owns the trigger. (required)
620 triggerId: string, Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700621 x__xgafv: string, V1 error format.
622 Allowed values
623 1 - v1 error format
624 2 - v2 error format
625
626Returns:
627 An object of the form:
628
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700629 { # Configuration for an automated build in response to source repository changes.
630 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
631 &quot;A String&quot;,
632 ],
633 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
634 &quot;A String&quot;,
635 ],
636 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
637 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
638 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
639 &quot;a_key&quot;: &quot;A String&quot;,
640 },
641 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
642 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
643 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
644 &quot;a_key&quot;: { # Start and end times for a build execution phase.
645 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
646 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700647 },
648 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700649 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
650 &quot;A String&quot;,
651 ],
652 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
653 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
654 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
655 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
656 &quot;A String&quot;,
657 ],
658 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
659 &quot;A String&quot;,
660 ],
661 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
662 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
663 &quot;A String&quot;,
664 ],
665 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
666 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
667 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
668 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700669 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700670 ],
671 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
672 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
673 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
674 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
675 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
676 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
677 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
678 },
679 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
680 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
681 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
682 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700683 &quot;a_key&quot;: &quot;A String&quot;,
684 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700685 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700686 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700687 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
688 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
689 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
690 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
691 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
692 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700693 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700694 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
695 &quot;A String&quot;,
696 ],
697 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
698 &quot;A String&quot;,
699 ],
700 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
701 &quot;images&quot;: [ # Container images that were built as a part of the build.
702 { # An image built by the pipeline.
703 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
704 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
705 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
706 },
707 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
708 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
709 },
710 ],
711 },
712 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
713 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
714 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
715 &quot;a_key&quot;: &quot;A String&quot;,
716 },
717 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
718 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
719 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
720 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
721 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
722 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
723 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
724 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
725 &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 Repository.
726 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
727 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
728 &quot;a_key&quot;: &quot;A String&quot;,
729 },
730 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
731 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
732 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
733 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
734 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
735 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
736 },
737 &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.
738 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
739 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
740 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700741 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700742 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700743 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
744 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
745 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
746 { # A step in the build pipeline.
747 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
748 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
749 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
750 },
751 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
752 &quot;A String&quot;,
753 ],
754 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
755 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
756 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
757 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
758 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
759 },
760 ],
761 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
762 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
763 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
764 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
765 },
766 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
767 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
768 &quot;A String&quot;,
769 ],
770 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
771 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
772 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
773 &quot;A String&quot;,
774 ],
775 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
776 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
777 &quot;A String&quot;,
778 ],
779 },
780 ],
781 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700782 &quot;A String&quot;,
783 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700784 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
785 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
786 &quot;A String&quot;,
787 ],
788 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
789 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
790 &quot;A String&quot;,
791 ],
792 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
793 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
794 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
795 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
796 },
797 },
798 },
799 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
800 &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 generations resolved.
801 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
802 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
803 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
804 },
805 &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 revisions resolved.
806 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
807 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
808 &quot;a_key&quot;: &quot;A String&quot;,
809 },
810 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
811 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
812 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
813 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
814 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
815 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
816 },
817 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
818 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
819 &quot;fileHash&quot;: [ # Collection of file hashes.
820 { # Container message for hash values.
821 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
822 &quot;value&quot;: &quot;A String&quot;, # The hash value.
823 },
824 ],
825 },
826 },
827 },
828 },
829 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
830 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
831 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
832 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
833 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
834 },
835 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
836 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
837 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
838 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
839 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
840 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
841 },
842 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
843 },
844 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
845 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
846 &quot;A String&quot;,
847 ],
848 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
849 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`.
850 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
851 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
852 &quot;a_key&quot;: &quot;A String&quot;,
853 },
854 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
855 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
856 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
857 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
858 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
859 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
860 },
861 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
862 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700863</div>
864
865<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700866 <code class="details" id="list">list(projectId, pageSize=None, pageToken=None, x__xgafv=None)</code>
867 <pre>Lists existing `BuildTrigger`s. This API is experimental.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700868
869Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700870 projectId: string, Required. ID of the project for which to list BuildTriggers. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700871 pageSize: integer, Number of results to return in the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700872 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700873 x__xgafv: string, V1 error format.
874 Allowed values
875 1 - v1 error format
876 2 - v2 error format
877
878Returns:
879 An object of the form:
880
881 { # Response containing existing `BuildTriggers`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700882 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700883 &quot;triggers&quot;: [ # `BuildTriggers` for the project, sorted by `create_time` descending.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700884 { # Configuration for an automated build in response to source repository changes.
885 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
886 &quot;A String&quot;,
887 ],
888 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
889 &quot;A String&quot;,
890 ],
891 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
892 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
893 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
894 &quot;a_key&quot;: &quot;A String&quot;,
895 },
896 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
897 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
898 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
899 &quot;a_key&quot;: { # Start and end times for a build execution phase.
900 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
901 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700902 },
903 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700904 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
905 &quot;A String&quot;,
906 ],
907 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
908 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
909 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
910 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
911 &quot;A String&quot;,
912 ],
913 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
914 &quot;A String&quot;,
915 ],
916 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
917 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
918 &quot;A String&quot;,
919 ],
920 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
921 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
922 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
923 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700924 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700925 ],
926 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
927 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
928 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
929 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
930 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
931 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
932 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
933 },
934 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
935 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
936 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
937 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700938 &quot;a_key&quot;: &quot;A String&quot;,
939 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700940 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700942 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
943 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
944 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
945 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
946 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
947 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700948 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700949 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
950 &quot;A String&quot;,
951 ],
952 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
953 &quot;A String&quot;,
954 ],
955 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
956 &quot;images&quot;: [ # Container images that were built as a part of the build.
957 { # An image built by the pipeline.
958 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
959 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
960 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
961 },
962 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
963 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
964 },
965 ],
966 },
967 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
968 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
969 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
970 &quot;a_key&quot;: &quot;A String&quot;,
971 },
972 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
973 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
974 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
975 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
976 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
977 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
978 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
979 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
980 &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 Repository.
981 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
982 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
983 &quot;a_key&quot;: &quot;A String&quot;,
984 },
985 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
986 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
987 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
988 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
989 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
990 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
991 },
992 &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.
993 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
994 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
995 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700996 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700997 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700998 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
999 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1000 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1001 { # A step in the build pipeline.
1002 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1003 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1004 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1005 },
1006 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
1007 &quot;A String&quot;,
1008 ],
1009 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
1010 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
1011 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1012 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1013 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
1014 },
1015 ],
1016 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
1017 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
1018 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1019 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1020 },
1021 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
1022 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1023 &quot;A String&quot;,
1024 ],
1025 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
1026 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
1027 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
1028 &quot;A String&quot;,
1029 ],
1030 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
1031 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
1032 &quot;A String&quot;,
1033 ],
1034 },
1035 ],
1036 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001037 &quot;A String&quot;,
1038 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001039 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
1040 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
1041 &quot;A String&quot;,
1042 ],
1043 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
1044 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1045 &quot;A String&quot;,
1046 ],
1047 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
1048 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1049 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1050 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1051 },
1052 },
1053 },
1054 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1055 &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 generations resolved.
1056 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1057 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1058 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1059 },
1060 &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 revisions resolved.
1061 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1062 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1063 &quot;a_key&quot;: &quot;A String&quot;,
1064 },
1065 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1066 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1067 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1068 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1069 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1070 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1071 },
1072 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
1073 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
1074 &quot;fileHash&quot;: [ # Collection of file hashes.
1075 { # Container message for hash values.
1076 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1077 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1078 },
1079 ],
1080 },
1081 },
1082 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001083 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001084 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
1085 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1086 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1087 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1088 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1089 },
1090 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1091 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
1092 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1093 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1094 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1095 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1096 },
1097 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1098 },
1099 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1100 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1101 &quot;A String&quot;,
1102 ],
1103 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
1104 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`.
1105 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1106 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1107 &quot;a_key&quot;: &quot;A String&quot;,
1108 },
1109 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1110 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1111 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1112 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1113 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1114 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1115 },
1116 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
1117 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001118 ],
1119 }</pre>
1120</div>
1121
1122<div class="method">
1123 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1124 <pre>Retrieves the next page of results.
1125
1126Args:
1127 previous_request: The request for the previous page. (required)
1128 previous_response: The response from the request for the previous page. (required)
1129
1130Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001131 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001132 page. Returns None if there are no more items in the collection.
1133 </pre>
1134</div>
1135
1136<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001137 <code class="details" id="patch">patch(projectId, triggerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001138 <pre>Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001139
1140Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001141 projectId: string, Required. ID of the project that owns the trigger. (required)
1142 triggerId: string, Required. ID of the `BuildTrigger` to update. (required)
1143 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001144 The object takes the form of:
1145
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001146{ # Configuration for an automated build in response to source repository changes.
1147 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
1148 &quot;A String&quot;,
1149 ],
1150 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
1151 &quot;A String&quot;,
1152 ],
1153 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1154 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
1155 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1156 &quot;a_key&quot;: &quot;A String&quot;,
1157 },
1158 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1159 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
1160 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
1161 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1162 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1163 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001164 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001165 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001166 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
1167 &quot;A String&quot;,
1168 ],
1169 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
1170 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
1171 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1172 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1173 &quot;A String&quot;,
1174 ],
1175 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1176 &quot;A String&quot;,
1177 ],
1178 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
1179 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
1180 &quot;A String&quot;,
1181 ],
1182 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
1183 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1184 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1185 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001186 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001187 ],
1188 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1189 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1190 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1191 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
1192 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
1193 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
1194 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1195 },
1196 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1197 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
1198 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1199 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001200 &quot;a_key&quot;: &quot;A String&quot;,
1201 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001202 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001203 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001204 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
1205 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1206 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1207 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1208 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1209 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kim65020912020-05-20 12:08:20 -07001210 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001211 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1212 &quot;A String&quot;,
1213 ],
1214 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
1215 &quot;A String&quot;,
1216 ],
1217 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1218 &quot;images&quot;: [ # Container images that were built as a part of the build.
1219 { # An image built by the pipeline.
1220 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1221 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1222 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1223 },
1224 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1225 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1226 },
1227 ],
1228 },
1229 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
1230 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1231 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1232 &quot;a_key&quot;: &quot;A String&quot;,
1233 },
1234 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1235 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1236 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1237 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1238 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1239 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
1240 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1241 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1242 &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 Repository.
1243 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1244 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1245 &quot;a_key&quot;: &quot;A String&quot;,
1246 },
1247 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1248 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1249 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1250 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1251 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1252 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1253 },
1254 &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.
1255 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1256 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1257 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kim65020912020-05-20 12:08:20 -07001258 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001259 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001260 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1261 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1262 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1263 { # A step in the build pipeline.
1264 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1265 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1266 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1267 },
1268 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
1269 &quot;A String&quot;,
1270 ],
1271 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
1272 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
1273 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1274 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1275 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
1276 },
1277 ],
1278 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
1279 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
1280 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1281 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1282 },
1283 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
1284 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1285 &quot;A String&quot;,
1286 ],
1287 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
1288 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
1289 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
1290 &quot;A String&quot;,
1291 ],
1292 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
1293 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
1294 &quot;A String&quot;,
1295 ],
1296 },
1297 ],
1298 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001300 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001301 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
1302 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
1303 &quot;A String&quot;,
1304 ],
1305 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
1306 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1307 &quot;A String&quot;,
1308 ],
1309 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
1310 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1311 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1312 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1313 },
1314 },
1315 },
1316 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1317 &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 generations resolved.
1318 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1319 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1320 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1321 },
1322 &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 revisions resolved.
1323 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1324 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1325 &quot;a_key&quot;: &quot;A String&quot;,
1326 },
1327 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1328 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1329 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1330 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1331 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1332 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1333 },
1334 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
1335 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
1336 &quot;fileHash&quot;: [ # Collection of file hashes.
1337 { # Container message for hash values.
1338 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1339 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1340 },
1341 ],
1342 },
1343 },
1344 },
1345 },
1346 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
1347 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1348 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1349 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1350 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1351 },
1352 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1353 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
1354 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1355 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1356 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1357 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1358 },
1359 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1360 },
1361 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1362 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1363 &quot;A String&quot;,
1364 ],
1365 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
1366 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`.
1367 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1368 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1369 &quot;a_key&quot;: &quot;A String&quot;,
1370 },
1371 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1372 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1373 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1374 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1375 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1376 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1377 },
1378 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
1379}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001380
1381 x__xgafv: string, V1 error format.
1382 Allowed values
1383 1 - v1 error format
1384 2 - v2 error format
1385
1386Returns:
1387 An object of the form:
1388
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001389 { # Configuration for an automated build in response to source repository changes.
1390 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
1391 &quot;A String&quot;,
1392 ],
1393 &quot;includedFiles&quot;: [ # If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
1394 &quot;A String&quot;,
1395 ],
1396 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1397 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
1398 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1399 &quot;a_key&quot;: &quot;A String&quot;,
1400 },
1401 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1402 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
1403 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
1404 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1405 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1406 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001407 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001408 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001409 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
1410 &quot;A String&quot;,
1411 ],
1412 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
1413 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
1414 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1415 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1416 &quot;A String&quot;,
1417 ],
1418 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1419 &quot;A String&quot;,
1420 ],
1421 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
1422 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
1423 &quot;A String&quot;,
1424 ],
1425 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
1426 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1427 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1428 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001429 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001430 ],
1431 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1432 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1433 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1434 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
1435 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
1436 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
1437 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1438 },
1439 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1440 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
1441 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1442 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001443 &quot;a_key&quot;: &quot;A String&quot;,
1444 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001445 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001446 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001447 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
1448 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1449 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1450 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1451 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1452 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001453 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001454 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1455 &quot;A String&quot;,
1456 ],
1457 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
1458 &quot;A String&quot;,
1459 ],
1460 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1461 &quot;images&quot;: [ # Container images that were built as a part of the build.
1462 { # An image built by the pipeline.
1463 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1464 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1465 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1466 },
1467 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1468 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1469 },
1470 ],
1471 },
1472 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
1473 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1474 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1475 &quot;a_key&quot;: &quot;A String&quot;,
1476 },
1477 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1478 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1479 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1480 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1481 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1482 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
1483 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1484 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1485 &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 Repository.
1486 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1487 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1488 &quot;a_key&quot;: &quot;A String&quot;,
1489 },
1490 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1491 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1492 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1493 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1494 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1495 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1496 },
1497 &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.
1498 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1499 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1500 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001501 },
1502 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001503 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1504 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1505 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1506 { # A step in the build pipeline.
1507 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1508 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1509 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1510 },
1511 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
1512 &quot;A String&quot;,
1513 ],
1514 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
1515 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
1516 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1517 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1518 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
1519 },
1520 ],
1521 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
1522 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
1523 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1524 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1525 },
1526 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
1527 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1528 &quot;A String&quot;,
1529 ],
1530 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
1531 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
1532 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
1533 &quot;A String&quot;,
1534 ],
1535 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
1536 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
1537 &quot;A String&quot;,
1538 ],
1539 },
1540 ],
1541 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001542 &quot;A String&quot;,
1543 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001544 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
1545 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
1546 &quot;A String&quot;,
1547 ],
1548 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
1549 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1550 &quot;A String&quot;,
1551 ],
1552 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
1553 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1554 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1555 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1556 },
1557 },
1558 },
1559 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1560 &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 generations resolved.
1561 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1562 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1563 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1564 },
1565 &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 revisions resolved.
1566 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1567 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1568 &quot;a_key&quot;: &quot;A String&quot;,
1569 },
1570 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1571 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1572 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1573 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1574 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1575 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1576 },
1577 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
1578 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
1579 &quot;fileHash&quot;: [ # Collection of file hashes.
1580 { # Container message for hash values.
1581 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1582 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1583 },
1584 ],
1585 },
1586 },
1587 },
1588 },
1589 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
1590 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1591 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1592 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1593 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1594 },
1595 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1596 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
1597 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1598 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1599 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1600 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1601 },
1602 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1603 },
1604 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1605 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1606 &quot;A String&quot;,
1607 ],
1608 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
1609 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`.
1610 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1611 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1612 &quot;a_key&quot;: &quot;A String&quot;,
1613 },
1614 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1615 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1616 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1617 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1618 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1619 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1620 },
1621 &quot;name&quot;: &quot;A String&quot;, # User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
1622 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623</div>
1624
1625<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001626 <code class="details" id="run">run(projectId, triggerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001627 <pre>Runs a `BuildTrigger` at a particular source revision.
1628
1629Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001630 projectId: string, Required. ID of the project. (required)
1631 triggerId: string, Required. ID of the trigger. (required)
1632 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001633 The object takes the form of:
1634
1635{ # Location of the source in a Google Cloud Source Repository.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001636 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1637 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001638 &quot;a_key&quot;: &quot;A String&quot;,
1639 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001640 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001641 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1642 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1643 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1644 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1645 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001646}
1647
1648 x__xgafv: string, V1 error format.
1649 Allowed values
1650 1 - v1 error format
1651 2 - v2 error format
1652
1653Returns:
1654 An object of the form:
1655
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001656 { # This resource represents a long-running operation that is the result of a network API call.
1657 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1658 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1659 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1660 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1661 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001662 {
1663 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1664 },
1665 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001666 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001667 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001668 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1669 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1670 },
1671 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1672 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1673 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001674 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001675</div>
1676
1677</body></html>