blob: 2ec94dc6d79b6a16a8607a79ac65e5cca8507722 [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">
yoshi-code-bot04bafe12021-06-29 00:20:25 -070081 <code><a href="#create">create(projectId, body=None, parent=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">
yoshi-code-bot04bafe12021-06-29 00:20:25 -070084 <code><a href="#delete">delete(projectId, triggerId, name=None, 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">
yoshi-code-bot04bafe12021-06-29 00:20:25 -070087 <code><a href="#get">get(projectId, triggerId, name=None, 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">
yoshi-code-bot04bafe12021-06-29 00:20:25 -070090 <code><a href="#list">list(projectId, pageSize=None, pageToken=None, parent=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<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">
yoshi-code-bot04bafe12021-06-29 00:20:25 -070099 <code><a href="#run">run(projectId, triggerId, body=None, name=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>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800101<p class="toc_element">
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700102 <code><a href="#webhook">webhook(projectId, trigger, body=None, name=None, secret=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800103<p class="firstline">ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700104<h3>Method Details</h3>
105<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108</div>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700109
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110<div class="method">
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700111 <code class="details" id="create">create(projectId, body=None, parent=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112 <pre>Creates a new `BuildTrigger`. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700113
114Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 projectId: string, Required. ID of the project for which to configure automatic builds. (required)
116 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700117 The object takes the form of:
118
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700119{ # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800120 &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. - $PROJECT_NUMBER: the project number 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800121 &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.
122 &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.
123 &quot;A String&quot;,
124 ],
125 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800126 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800127 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
128 &quot;A String&quot;,
129 ],
130 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
131 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
132 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800133 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800134 },
135 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800136 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
137 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
138 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
139 &quot;envMap&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.
140 &quot;a_key&quot;: &quot;A String&quot;,
141 },
142 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
143 },
144 ],
145 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
146 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
147 &quot;env&quot;: &quot;A String&quot;, # Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step.
148 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
149 },
150 ],
151 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800152 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800153 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800154 &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.
155 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
156 &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`.
157 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800158 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800159 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
160 &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`.
161 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800162 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800163 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800164 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800165 &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;.
166 &quot;A String&quot;,
167 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800168 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
169 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
170 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
171 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
172 &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.
173 &quot;A String&quot;,
174 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800175 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
176 &quot;A String&quot;,
177 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800178 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800179 &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.
180 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800181 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800182 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800183 },
184 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800185 &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 in beta and is available only to restricted users.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800186 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800187 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
188 &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.
189 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
190 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
191 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
192 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
193 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
194 },
195 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
196 &quot;A String&quot;,
197 ],
198 &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.
199 &quot;A String&quot;,
200 ],
201 &quot;images&quot;: [ # Container images that were built as a part of the build.
202 { # An image built by the pipeline.
203 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
204 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
205 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
206 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
207 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
208 },
209 },
210 ],
211 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
212 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800213 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
214 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800215 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
216 &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.
217 &quot;a_key&quot;: &quot;A String&quot;,
218 },
219 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800220 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400221 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800222 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
223 &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.
224 &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
225 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
226 &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.
227 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
228 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800229 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800230 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
231 &quot;a_key&quot;: &quot;A String&quot;,
232 },
233 &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
234 },
235 &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.
236 &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)).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800237 &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.
238 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800239 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700240 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview.
241 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
242 &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.
243 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
244 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800245 },
246 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800247 &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.
248 &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.
249 &quot;fileHash&quot;: [ # Collection of file hashes.
250 { # Container message for hash values.
251 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
252 &quot;value&quot;: &quot;A String&quot;, # The hash value.
253 },
254 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800255 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800256 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800257 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800258 &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
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800259 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
260 &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.
261 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800262 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800263 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800264 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
265 &quot;a_key&quot;: &quot;A String&quot;,
266 },
267 &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
268 },
269 &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.
270 &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)).
271 &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.
272 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800273 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700274 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
275 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
276 &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.
277 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
278 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800279 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800280 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
281 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
282 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
283 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
284 { # A step in the build pipeline.
285 &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.
286 &quot;A String&quot;,
287 ],
288 &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.
289 &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.
290 &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;.
291 &quot;A String&quot;,
292 ],
293 &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.
294 &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.
295 &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.
296 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
297 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800298 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800299 &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`.
300 &quot;A String&quot;,
301 ],
302 &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.
303 &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.
304 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
305 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
306 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
307 },
308 &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.
309 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
310 &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.
311 &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.
312 },
313 ],
314 &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.
315 &quot;A String&quot;,
316 ],
317 },
318 ],
319 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
320 &quot;a_key&quot;: &quot;A String&quot;,
321 },
322 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
323 &quot;A String&quot;,
324 ],
325 &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.
326 &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.
327 &quot;a_key&quot;: { # Start and end times for a build execution phase.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800328 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
329 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
330 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800331 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700332 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
333 { # A non-fatal problem encountered during the execution of the build.
334 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
335 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
336 },
337 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800338 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800339 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
340 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
341 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800342 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
yoshi-code-bot807277b2021-04-22 04:38:02 -0700343 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800344 &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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800345 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800346 &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;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800347 &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;.
348 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
349 &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
350 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
351 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
352 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800353 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
354 &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
355 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
356 &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
357 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800358 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800359 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
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 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800366 &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.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700367 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
yoshi-code-bot807277b2021-04-22 04:38:02 -0700368 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
369 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
370 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
371 &quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
372 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700373 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800374 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
375 &quot;a_key&quot;: &quot;A String&quot;,
376 },
377 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
378 &quot;A String&quot;,
379 ],
380 &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`.
381 &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
382 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
383 &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.
384 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
385 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800386 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800387 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
388 &quot;a_key&quot;: &quot;A String&quot;,
389 },
390 &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
391 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700392 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
393 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
394 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
395 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800396}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700397
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700398 parent: string, The parent resource where this trigger will be created. Format: `projects/{project}/locations/{location}`
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700399 x__xgafv: string, V1 error format.
400 Allowed values
401 1 - v1 error format
402 2 - v2 error format
403
404Returns:
405 An object of the form:
406
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700407 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800408 &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. - $PROJECT_NUMBER: the project number 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800409 &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.
410 &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.
411 &quot;A String&quot;,
412 ],
413 &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.
414 &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.
415 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
416 &quot;A String&quot;,
417 ],
418 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
419 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
420 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
421 },
422 },
423 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800424 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
425 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
426 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
427 &quot;envMap&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.
428 &quot;a_key&quot;: &quot;A String&quot;,
429 },
430 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
431 },
432 ],
433 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
434 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
435 &quot;env&quot;: &quot;A String&quot;, # Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step.
436 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
437 },
438 ],
439 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800440 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
441 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
442 &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.
443 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
444 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800445 &quot;A String&quot;,
446 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800447 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
448 &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`.
449 &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.
450 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
451 &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.
452 &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.
453 &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;.
454 &quot;A String&quot;,
455 ],
456 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
457 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
458 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
459 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
460 &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.
461 &quot;A String&quot;,
462 ],
463 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
464 &quot;A String&quot;,
465 ],
466 &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.
467 &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.
468 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
469 &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.
470 &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.
471 },
472 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800473 &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 in beta and is available only to restricted users.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800474 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800475 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
476 &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.
477 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
478 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
479 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
480 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
481 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
482 },
483 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
484 &quot;A String&quot;,
485 ],
486 &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.
487 &quot;A String&quot;,
488 ],
489 &quot;images&quot;: [ # Container images that were built as a part of the build.
490 { # An image built by the pipeline.
491 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
492 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
493 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
494 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
495 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
496 },
497 },
498 ],
499 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
500 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800501 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
502 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800503 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
504 &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.
505 &quot;a_key&quot;: &quot;A String&quot;,
506 },
507 },
508 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400509 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800510 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
511 &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.
512 &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
513 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
514 &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.
515 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
516 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800517 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800518 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
519 &quot;a_key&quot;: &quot;A String&quot;,
520 },
521 &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
522 },
523 &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.
524 &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)).
525 &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.
526 &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.
527 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700528 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview.
529 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
530 &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.
531 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
532 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800533 },
534 &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.
535 &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.
536 &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.
537 &quot;fileHash&quot;: [ # Collection of file hashes.
538 { # Container message for hash values.
539 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
540 &quot;value&quot;: &quot;A String&quot;, # The hash value.
541 },
542 ],
543 },
544 },
545 &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.
546 &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
547 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
548 &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.
549 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
550 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800551 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800552 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
553 &quot;a_key&quot;: &quot;A String&quot;,
554 },
555 &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
556 },
557 &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.
558 &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)).
559 &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.
560 &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.
561 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700562 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
563 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
564 &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.
565 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
566 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800567 },
568 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
569 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
570 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
571 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
572 { # A step in the build pipeline.
573 &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.
574 &quot;A String&quot;,
575 ],
576 &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.
577 &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.
578 &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;.
579 &quot;A String&quot;,
580 ],
581 &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.
582 &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.
583 &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.
584 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
585 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
586 },
587 &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`.
588 &quot;A String&quot;,
589 ],
590 &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.
591 &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.
592 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
593 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
594 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
595 },
596 &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.
597 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
598 &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.
599 &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.
600 },
601 ],
602 &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.
603 &quot;A String&quot;,
604 ],
605 },
606 ],
607 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800608 &quot;a_key&quot;: &quot;A String&quot;,
609 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800610 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800611 &quot;A String&quot;,
612 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800613 &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.
614 &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.
615 &quot;a_key&quot;: { # Start and end times for a build execution phase.
616 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
617 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800618 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800619 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700620 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
621 { # A non-fatal problem encountered during the execution of the build.
622 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
623 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
624 },
625 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800626 },
627 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
628 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
629 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800630 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
yoshi-code-bot807277b2021-04-22 04:38:02 -0700631 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800632 &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`.
633 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
634 &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;.
635 &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;.
636 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
637 &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
638 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
639 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800640 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800641 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
642 &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
643 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
644 &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
645 },
646 },
647 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
648 &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.
649 &quot;A String&quot;,
650 ],
651 &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.
652 &quot;A String&quot;,
653 ],
654 &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.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700655 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
yoshi-code-bot807277b2021-04-22 04:38:02 -0700656 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
657 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
658 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
659 &quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
660 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700661 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800662 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
663 &quot;a_key&quot;: &quot;A String&quot;,
664 },
665 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
666 &quot;A String&quot;,
667 ],
668 &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`.
669 &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
670 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
671 &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.
672 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
673 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800674 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800675 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
676 &quot;a_key&quot;: &quot;A String&quot;,
677 },
678 &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
679 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700680 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
681 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
682 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
683 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800684}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700685</div>
686
687<div class="method">
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700688 <code class="details" id="delete">delete(projectId, triggerId, name=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700689 <pre>Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700690
691Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700692 projectId: string, Required. ID of the project that owns the trigger. (required)
693 triggerId: string, Required. ID of the `BuildTrigger` to delete. (required)
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700694 name: string, The name of the `Trigger` to delete. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700695 x__xgafv: string, V1 error format.
696 Allowed values
697 1 - v1 error format
698 2 - v2 error format
699
700Returns:
701 An object of the form:
702
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700703 { # 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 `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800704}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700705</div>
706
707<div class="method">
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700708 <code class="details" id="get">get(projectId, triggerId, name=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700709 <pre>Returns information about a `BuildTrigger`. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700710
711Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700712 projectId: string, Required. ID of the project that owns the trigger. (required)
713 triggerId: string, Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. (required)
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700714 name: string, The name of the `Trigger` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700715 x__xgafv: string, V1 error format.
716 Allowed values
717 1 - v1 error format
718 2 - v2 error format
719
720Returns:
721 An object of the form:
722
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700723 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800724 &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. - $PROJECT_NUMBER: the project number 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800725 &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.
726 &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.
727 &quot;A String&quot;,
728 ],
729 &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.
730 &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.
731 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
732 &quot;A String&quot;,
733 ],
734 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
735 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
736 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
737 },
738 },
739 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800740 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
741 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
742 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
743 &quot;envMap&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.
744 &quot;a_key&quot;: &quot;A String&quot;,
745 },
746 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
747 },
748 ],
749 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
750 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
751 &quot;env&quot;: &quot;A String&quot;, # Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step.
752 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
753 },
754 ],
755 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800756 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
757 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
758 &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.
759 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
760 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800761 &quot;A String&quot;,
762 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800763 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
764 &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`.
765 &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.
766 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
767 &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.
768 &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.
769 &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;.
770 &quot;A String&quot;,
771 ],
772 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
773 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
774 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
775 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
776 &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.
777 &quot;A String&quot;,
778 ],
779 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
780 &quot;A String&quot;,
781 ],
782 &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.
783 &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.
784 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
785 &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.
786 &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.
787 },
788 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800789 &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 in beta and is available only to restricted users.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800790 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800791 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
792 &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.
793 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
794 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
795 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
796 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
797 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
798 },
799 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
800 &quot;A String&quot;,
801 ],
802 &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.
803 &quot;A String&quot;,
804 ],
805 &quot;images&quot;: [ # Container images that were built as a part of the build.
806 { # An image built by the pipeline.
807 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
808 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
809 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
810 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
811 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
812 },
813 },
814 ],
815 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
816 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800817 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
818 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800819 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
820 &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.
821 &quot;a_key&quot;: &quot;A String&quot;,
822 },
823 },
824 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400825 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800826 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
827 &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.
828 &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
829 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
830 &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.
831 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
832 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800833 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800834 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
835 &quot;a_key&quot;: &quot;A String&quot;,
836 },
837 &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
838 },
839 &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.
840 &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)).
841 &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.
842 &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.
843 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700844 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview.
845 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
846 &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.
847 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
848 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800849 },
850 &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.
851 &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.
852 &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.
853 &quot;fileHash&quot;: [ # Collection of file hashes.
854 { # Container message for hash values.
855 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
856 &quot;value&quot;: &quot;A String&quot;, # The hash value.
857 },
858 ],
859 },
860 },
861 &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.
862 &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
863 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
864 &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.
865 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
866 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800867 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800868 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
869 &quot;a_key&quot;: &quot;A String&quot;,
870 },
871 &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
872 },
873 &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.
874 &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)).
875 &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.
876 &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.
877 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700878 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
879 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
880 &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.
881 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
882 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800883 },
884 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
885 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
886 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
887 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
888 { # A step in the build pipeline.
889 &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.
890 &quot;A String&quot;,
891 ],
892 &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.
893 &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.
894 &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;.
895 &quot;A String&quot;,
896 ],
897 &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.
898 &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.
899 &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.
900 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
901 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
902 },
903 &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`.
904 &quot;A String&quot;,
905 ],
906 &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.
907 &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.
908 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
909 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
910 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
911 },
912 &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.
913 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
914 &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.
915 &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.
916 },
917 ],
918 &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.
919 &quot;A String&quot;,
920 ],
921 },
922 ],
923 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800924 &quot;a_key&quot;: &quot;A String&quot;,
925 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800926 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800927 &quot;A String&quot;,
928 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800929 &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.
930 &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.
931 &quot;a_key&quot;: { # Start and end times for a build execution phase.
932 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
933 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800934 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800935 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700936 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
937 { # A non-fatal problem encountered during the execution of the build.
938 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
939 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
940 },
941 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800942 },
943 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
944 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
945 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800946 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
yoshi-code-bot807277b2021-04-22 04:38:02 -0700947 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800948 &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`.
949 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
950 &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;.
951 &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;.
952 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
953 &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
954 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
955 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800956 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800957 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
958 &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
959 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
960 &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
961 },
962 },
963 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
964 &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.
965 &quot;A String&quot;,
966 ],
967 &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.
968 &quot;A String&quot;,
969 ],
970 &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.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700971 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
yoshi-code-bot807277b2021-04-22 04:38:02 -0700972 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
973 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
974 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
975 &quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
976 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700977 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800978 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
979 &quot;a_key&quot;: &quot;A String&quot;,
980 },
981 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
982 &quot;A String&quot;,
983 ],
984 &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`.
985 &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
986 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
987 &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.
988 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
989 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800990 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800991 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
992 &quot;a_key&quot;: &quot;A String&quot;,
993 },
994 &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
995 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700996 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
997 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
998 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
999 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001000}</pre>
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001001</div>
1002
1003<div class="method">
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001004 <code class="details" id="list">list(projectId, pageSize=None, pageToken=None, parent=None, x__xgafv=None)</code>
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001005 <pre>Lists existing `BuildTrigger`s. This API is experimental.
1006
1007Args:
1008 projectId: string, Required. ID of the project for which to list BuildTriggers. (required)
1009 pageSize: integer, Number of results to return in the list.
1010 pageToken: string, Token to provide to skip to a particular spot in the list.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001011 parent: string, The parent of the collection of `Triggers`. Format: `projects/{project}/locations/{location}`
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001012 x__xgafv: string, V1 error format.
1013 Allowed values
1014 1 - v1 error format
1015 2 - v2 error format
1016
1017Returns:
1018 An object of the form:
1019
1020 { # Response containing existing `BuildTriggers`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001021 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
1022 &quot;triggers&quot;: [ # `BuildTriggers` for the project, sorted by `create_time` descending.
1023 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001024 &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. - $PROJECT_NUMBER: the project number 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001025 &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.
1026 &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.
1027 &quot;A String&quot;,
1028 ],
1029 &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.
1030 &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.
1031 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1032 &quot;A String&quot;,
1033 ],
1034 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1035 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1036 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1037 },
1038 },
1039 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001040 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1041 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1042 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1043 &quot;envMap&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.
1044 &quot;a_key&quot;: &quot;A String&quot;,
1045 },
1046 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
1047 },
1048 ],
1049 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1050 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1051 &quot;env&quot;: &quot;A String&quot;, # Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step.
1052 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1053 },
1054 ],
1055 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001056 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1057 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1058 &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.
1059 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1060 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001061 &quot;A String&quot;,
1062 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001063 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1064 &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`.
1065 &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.
1066 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1067 &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.
1068 &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.
1069 &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;.
1070 &quot;A String&quot;,
1071 ],
1072 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1073 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1074 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1075 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1076 &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.
1077 &quot;A String&quot;,
1078 ],
1079 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1080 &quot;A String&quot;,
1081 ],
1082 &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.
1083 &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.
1084 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1085 &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.
1086 &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.
1087 },
1088 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001089 &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 in beta and is available only to restricted users.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001090 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001091 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1092 &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.
1093 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1094 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1095 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1096 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1097 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1098 },
1099 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1100 &quot;A String&quot;,
1101 ],
1102 &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.
1103 &quot;A String&quot;,
1104 ],
1105 &quot;images&quot;: [ # Container images that were built as a part of the build.
1106 { # An image built by the pipeline.
1107 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1108 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1109 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1110 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1111 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1112 },
1113 },
1114 ],
1115 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1116 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001117 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
1118 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001119 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1120 &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.
1121 &quot;a_key&quot;: &quot;A String&quot;,
1122 },
1123 },
1124 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001125 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001126 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1127 &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.
1128 &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
1129 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1130 &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.
1131 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1132 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001133 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001134 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1135 &quot;a_key&quot;: &quot;A String&quot;,
1136 },
1137 &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
1138 },
1139 &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.
1140 &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)).
1141 &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.
1142 &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.
1143 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001144 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview.
1145 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1146 &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.
1147 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1148 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001149 },
1150 &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.
1151 &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.
1152 &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.
1153 &quot;fileHash&quot;: [ # Collection of file hashes.
1154 { # Container message for hash values.
1155 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1156 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1157 },
1158 ],
1159 },
1160 },
1161 &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.
1162 &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
1163 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1164 &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.
1165 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1166 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001167 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001168 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1169 &quot;a_key&quot;: &quot;A String&quot;,
1170 },
1171 &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
1172 },
1173 &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.
1174 &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)).
1175 &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.
1176 &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.
1177 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001178 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
1179 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1180 &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.
1181 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1182 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001183 },
1184 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1185 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1186 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1187 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1188 { # A step in the build pipeline.
1189 &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.
1190 &quot;A String&quot;,
1191 ],
1192 &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.
1193 &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.
1194 &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;.
1195 &quot;A String&quot;,
1196 ],
1197 &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.
1198 &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.
1199 &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.
1200 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1201 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1202 },
1203 &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`.
1204 &quot;A String&quot;,
1205 ],
1206 &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.
1207 &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.
1208 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1209 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1210 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1211 },
1212 &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.
1213 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1214 &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.
1215 &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.
1216 },
1217 ],
1218 &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.
1219 &quot;A String&quot;,
1220 ],
1221 },
1222 ],
1223 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001224 &quot;a_key&quot;: &quot;A String&quot;,
1225 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001226 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001227 &quot;A String&quot;,
1228 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001229 &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.
1230 &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.
1231 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1232 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1233 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001234 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001235 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001236 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1237 { # A non-fatal problem encountered during the execution of the build.
1238 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1239 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1240 },
1241 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001242 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001243 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1244 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1245 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001246 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
yoshi-code-bot807277b2021-04-22 04:38:02 -07001247 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001248 &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`.
1249 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1250 &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;.
1251 &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;.
1252 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1253 &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
1254 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1255 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1256 },
1257 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1258 &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
1259 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1260 &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
1261 },
1262 },
1263 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1264 &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.
1265 &quot;A String&quot;,
1266 ],
1267 &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.
1268 &quot;A String&quot;,
1269 ],
1270 &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.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001271 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
yoshi-code-bot807277b2021-04-22 04:38:02 -07001272 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1273 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1274 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1275 &quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
1276 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001277 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001278 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1279 &quot;a_key&quot;: &quot;A String&quot;,
1280 },
1281 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1282 &quot;A String&quot;,
1283 ],
1284 &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`.
1285 &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
1286 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1287 &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.
1288 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1289 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001290 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001291 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1292 &quot;a_key&quot;: &quot;A String&quot;,
1293 },
1294 &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
1295 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001296 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
1297 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
1298 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1299 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001300 },
1301 ],
1302}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001303</div>
1304
1305<div class="method">
1306 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1307 <pre>Retrieves the next page of results.
1308
1309Args:
1310 previous_request: The request for the previous page. (required)
1311 previous_response: The response from the request for the previous page. (required)
1312
1313Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001315 page. Returns None if there are no more items in the collection.
1316 </pre>
1317</div>
1318
1319<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001320 <code class="details" id="patch">patch(projectId, triggerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001321 <pre>Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001322
1323Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001324 projectId: string, Required. ID of the project that owns the trigger. (required)
1325 triggerId: string, Required. ID of the `BuildTrigger` to update. (required)
1326 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001327 The object takes the form of:
1328
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001329{ # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001330 &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. - $PROJECT_NUMBER: the project number 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001331 &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.
1332 &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.
1333 &quot;A String&quot;,
1334 ],
1335 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001336 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001337 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1338 &quot;A String&quot;,
1339 ],
1340 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1341 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1342 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001343 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001344 },
1345 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001346 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1347 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1348 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1349 &quot;envMap&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.
1350 &quot;a_key&quot;: &quot;A String&quot;,
1351 },
1352 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
1353 },
1354 ],
1355 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1356 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1357 &quot;env&quot;: &quot;A String&quot;, # Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step.
1358 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1359 },
1360 ],
1361 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001362 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001363 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001364 &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.
1365 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1366 &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`.
1367 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001368 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001369 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1370 &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`.
1371 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001372 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001373 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001374 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001375 &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;.
1376 &quot;A String&quot;,
1377 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001378 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1379 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1380 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1381 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1382 &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.
1383 &quot;A String&quot;,
1384 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001385 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1386 &quot;A String&quot;,
1387 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001388 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001389 &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.
1390 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001391 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001392 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001393 },
1394 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001395 &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 in beta and is available only to restricted users.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001396 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001397 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1398 &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.
1399 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1400 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1401 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1402 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1403 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1404 },
1405 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1406 &quot;A String&quot;,
1407 ],
1408 &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.
1409 &quot;A String&quot;,
1410 ],
1411 &quot;images&quot;: [ # Container images that were built as a part of the build.
1412 { # An image built by the pipeline.
1413 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1414 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1415 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1416 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1417 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1418 },
1419 },
1420 ],
1421 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1422 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001423 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
1424 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001425 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1426 &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.
1427 &quot;a_key&quot;: &quot;A String&quot;,
1428 },
1429 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001430 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001431 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001432 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1433 &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.
1434 &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
1435 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1436 &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.
1437 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1438 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001439 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001440 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1441 &quot;a_key&quot;: &quot;A String&quot;,
1442 },
1443 &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
1444 },
1445 &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.
1446 &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)).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001447 &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.
1448 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001449 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001450 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview.
1451 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1452 &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.
1453 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1454 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001455 },
1456 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001457 &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.
1458 &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.
1459 &quot;fileHash&quot;: [ # Collection of file hashes.
1460 { # Container message for hash values.
1461 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1462 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1463 },
1464 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001465 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001466 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001467 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001468 &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
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001469 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1470 &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.
1471 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001472 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001473 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001474 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1475 &quot;a_key&quot;: &quot;A String&quot;,
1476 },
1477 &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
1478 },
1479 &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.
1480 &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)).
1481 &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.
1482 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001483 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001484 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
1485 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1486 &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.
1487 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1488 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001489 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001490 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1491 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1492 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1493 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1494 { # A step in the build pipeline.
1495 &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.
1496 &quot;A String&quot;,
1497 ],
1498 &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.
1499 &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.
1500 &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;.
1501 &quot;A String&quot;,
1502 ],
1503 &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.
1504 &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.
1505 &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.
1506 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1507 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001508 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001509 &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`.
1510 &quot;A String&quot;,
1511 ],
1512 &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.
1513 &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.
1514 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1515 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1516 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1517 },
1518 &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.
1519 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1520 &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.
1521 &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.
1522 },
1523 ],
1524 &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.
1525 &quot;A String&quot;,
1526 ],
1527 },
1528 ],
1529 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1530 &quot;a_key&quot;: &quot;A String&quot;,
1531 },
1532 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1533 &quot;A String&quot;,
1534 ],
1535 &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.
1536 &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.
1537 &quot;a_key&quot;: { # Start and end times for a build execution phase.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001538 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1539 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1540 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001541 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001542 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1543 { # A non-fatal problem encountered during the execution of the build.
1544 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1545 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1546 },
1547 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001548 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001549 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1550 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1551 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001552 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
yoshi-code-bot807277b2021-04-22 04:38:02 -07001553 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001554 &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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001555 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001556 &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;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001557 &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;.
1558 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1559 &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
1560 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1561 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1562 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001563 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1564 &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
1565 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1566 &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
1567 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001568 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001569 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1570 &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.
1571 &quot;A String&quot;,
1572 ],
1573 &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.
1574 &quot;A String&quot;,
1575 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001576 &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.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001577 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
yoshi-code-bot807277b2021-04-22 04:38:02 -07001578 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1579 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1580 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1581 &quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
1582 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001583 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001584 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1585 &quot;a_key&quot;: &quot;A String&quot;,
1586 },
1587 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1588 &quot;A String&quot;,
1589 ],
1590 &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`.
1591 &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
1592 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1593 &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.
1594 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1595 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001596 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001597 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1598 &quot;a_key&quot;: &quot;A String&quot;,
1599 },
1600 &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
1601 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001602 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
1603 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
1604 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1605 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001606}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001607
1608 x__xgafv: string, V1 error format.
1609 Allowed values
1610 1 - v1 error format
1611 2 - v2 error format
1612
1613Returns:
1614 An object of the form:
1615
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001616 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001617 &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. - $PROJECT_NUMBER: the project number 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001618 &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.
1619 &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.
1620 &quot;A String&quot;,
1621 ],
1622 &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.
1623 &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.
1624 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1625 &quot;A String&quot;,
1626 ],
1627 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1628 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1629 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1630 },
1631 },
1632 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001633 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1634 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1635 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1636 &quot;envMap&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.
1637 &quot;a_key&quot;: &quot;A String&quot;,
1638 },
1639 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
1640 },
1641 ],
1642 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1643 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1644 &quot;env&quot;: &quot;A String&quot;, # Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step.
1645 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1646 },
1647 ],
1648 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001649 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1650 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1651 &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.
1652 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1653 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001654 &quot;A String&quot;,
1655 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001656 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1657 &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`.
1658 &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.
1659 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1660 &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.
1661 &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.
1662 &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;.
1663 &quot;A String&quot;,
1664 ],
1665 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1666 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1667 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1668 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1669 &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.
1670 &quot;A String&quot;,
1671 ],
1672 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1673 &quot;A String&quot;,
1674 ],
1675 &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.
1676 &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.
1677 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1678 &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.
1679 &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.
1680 },
1681 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001682 &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 in beta and is available only to restricted users.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001683 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001684 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1685 &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.
1686 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1687 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1688 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1689 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1690 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1691 },
1692 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1693 &quot;A String&quot;,
1694 ],
1695 &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.
1696 &quot;A String&quot;,
1697 ],
1698 &quot;images&quot;: [ # Container images that were built as a part of the build.
1699 { # An image built by the pipeline.
1700 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1701 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1702 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1703 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1704 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1705 },
1706 },
1707 ],
1708 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1709 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001710 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
1711 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001712 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1713 &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.
1714 &quot;a_key&quot;: &quot;A String&quot;,
1715 },
1716 },
1717 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001718 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001719 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1720 &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.
1721 &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
1722 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1723 &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.
1724 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1725 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001726 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001727 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1728 &quot;a_key&quot;: &quot;A String&quot;,
1729 },
1730 &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
1731 },
1732 &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.
1733 &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)).
1734 &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.
1735 &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.
1736 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001737 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview.
1738 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1739 &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.
1740 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1741 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001742 },
1743 &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.
1744 &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.
1745 &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.
1746 &quot;fileHash&quot;: [ # Collection of file hashes.
1747 { # Container message for hash values.
1748 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1749 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1750 },
1751 ],
1752 },
1753 },
1754 &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.
1755 &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
1756 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1757 &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.
1758 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1759 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001760 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001761 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1762 &quot;a_key&quot;: &quot;A String&quot;,
1763 },
1764 &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
1765 },
1766 &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.
1767 &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)).
1768 &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.
1769 &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.
1770 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001771 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google Cloud Storage. This feature is in Preview. # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
1772 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1773 &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.
1774 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1775 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001776 },
1777 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1778 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1779 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1780 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1781 { # A step in the build pipeline.
1782 &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.
1783 &quot;A String&quot;,
1784 ],
1785 &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.
1786 &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.
1787 &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;.
1788 &quot;A String&quot;,
1789 ],
1790 &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.
1791 &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.
1792 &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.
1793 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1794 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1795 },
1796 &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`.
1797 &quot;A String&quot;,
1798 ],
1799 &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.
1800 &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.
1801 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1802 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1803 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1804 },
1805 &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.
1806 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1807 &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.
1808 &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.
1809 },
1810 ],
1811 &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.
1812 &quot;A String&quot;,
1813 ],
1814 },
1815 ],
1816 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001817 &quot;a_key&quot;: &quot;A String&quot;,
1818 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001819 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001820 &quot;A String&quot;,
1821 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001822 &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.
1823 &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.
1824 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1825 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1826 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001827 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001828 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001829 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1830 { # A non-fatal problem encountered during the execution of the build.
1831 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1832 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1833 },
1834 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001835 },
1836 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1837 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1838 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001839 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
yoshi-code-bot807277b2021-04-22 04:38:02 -07001840 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001841 &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`.
1842 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1843 &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;.
1844 &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;.
1845 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1846 &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
1847 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1848 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001849 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001850 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1851 &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
1852 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1853 &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
1854 },
1855 },
1856 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1857 &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.
1858 &quot;A String&quot;,
1859 ],
1860 &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.
1861 &quot;A String&quot;,
1862 ],
1863 &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.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001864 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
yoshi-code-bot807277b2021-04-22 04:38:02 -07001865 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1866 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1867 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1868 &quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
1869 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001870 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001871 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1872 &quot;a_key&quot;: &quot;A String&quot;,
1873 },
1874 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1875 &quot;A String&quot;,
1876 ],
1877 &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`.
1878 &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
1879 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1880 &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.
1881 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1882 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001883 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001884 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1885 &quot;a_key&quot;: &quot;A String&quot;,
1886 },
1887 &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
1888 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001889 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
1890 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
1891 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1892 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001893}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001894</div>
1895
1896<div class="method">
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001897 <code class="details" id="run">run(projectId, triggerId, body=None, name=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001898 <pre>Runs a `BuildTrigger` at a particular source revision.
1899
1900Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001901 projectId: string, Required. ID of the project. (required)
1902 triggerId: string, Required. ID of the trigger. (required)
1903 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001904 The object takes the form of:
1905
1906{ # Location of the source in a Google Cloud Source Repository.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001907 &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
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001908 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1909 &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.
1910 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001911 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001912 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001913 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1914 &quot;a_key&quot;: &quot;A String&quot;,
1915 },
1916 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001917}
1918
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001919 name: string, The name of the `Trigger` to run. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001920 x__xgafv: string, V1 error format.
1921 Allowed values
1922 1 - v1 error format
1923 2 - v2 error format
1924
1925Returns:
1926 An object of the form:
1927
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001928 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001929 &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.
1930 &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.
1931 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1932 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1933 {
1934 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1935 },
1936 ],
1937 &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.
1938 },
1939 &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.
1940 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1941 },
1942 &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}`.
1943 &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`.
1944 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1945 },
1946}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001947</div>
1948
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001949<div class="method">
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001950 <code class="details" id="webhook">webhook(projectId, trigger, body=None, name=None, secret=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001951 <pre>ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.
1952
1953Args:
1954 projectId: string, Project in which the specified trigger lives (required)
1955 trigger: string, Name of the trigger to run the payload against (required)
1956 body: object, The request body.
1957 The object takes the form of:
1958
1959{ # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
1960 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
1961 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
1962 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
1963 {
1964 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1965 },
1966 ],
1967}
1968
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001969 name: string, The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001970 secret: string, Secret token used for authorization if an OAuth token isn&#x27;t provided.
1971 x__xgafv: string, V1 error format.
1972 Allowed values
1973 1 - v1 error format
1974 2 - v2 error format
1975
1976Returns:
1977 An object of the form:
1978
1979 { # ReceiveTriggerWebhookResponse [Experimental] is the response object for the ReceiveTriggerWebhook method.
1980}</pre>
1981</div>
1982
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001983</body></html>