blob: 296015f051bf3bc01554dee3009da1aa74ac6856 [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="cloudbuild_v1.html">Cloud Build API</a> . <a href="cloudbuild_v1.projects.html">projects</a> . <a href="cloudbuild_v1.projects.triggers.html">triggers</a></h1>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(projectId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a new `BuildTrigger`. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070083<p class="toc_element">
84 <code><a href="#delete">delete(projectId, triggerId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070086<p class="toc_element">
87 <code><a href="#get">get(projectId, triggerId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Returns information about a `BuildTrigger`. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070089<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080090 <code><a href="#list">list(projectId, pageSize=None, pageToken=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">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#run">run(projectId, triggerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Runs a `BuildTrigger` at a particular source revision.</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800101<p class="toc_element">
102 <code><a href="#webhook">webhook(projectId, trigger, body=None, secret=None, x__xgafv=None)</a></code></p>
103<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">
111 <code class="details" id="create">create(projectId, body=None, x__xgafv=None)</code>
112 <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-bot807277b2021-04-22 04:38:02 -0700367 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
368 &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 Automation Botcc94ec82021-01-15 07:10:04 -0800373 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
374 &quot;a_key&quot;: &quot;A String&quot;,
375 },
376 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
377 &quot;A String&quot;,
378 ],
379 &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`.
380 &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
381 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
382 &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.
383 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
384 &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 -0800385 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800386 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
387 &quot;a_key&quot;: &quot;A String&quot;,
388 },
389 &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
390 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800391}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700392
393 x__xgafv: string, V1 error format.
394 Allowed values
395 1 - v1 error format
396 2 - v2 error format
397
398Returns:
399 An object of the form:
400
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700401 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800402 &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 -0800403 &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.
404 &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.
405 &quot;A String&quot;,
406 ],
407 &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.
408 &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.
409 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
410 &quot;A String&quot;,
411 ],
412 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
413 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
414 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
415 },
416 },
417 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800418 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
419 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
420 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
421 &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.
422 &quot;a_key&quot;: &quot;A String&quot;,
423 },
424 &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/*
425 },
426 ],
427 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
428 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
429 &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.
430 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
431 },
432 ],
433 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800434 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
435 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
436 &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.
437 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
438 &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 -0800439 &quot;A String&quot;,
440 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800441 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
442 &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`.
443 &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.
444 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
445 &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.
446 &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.
447 &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;.
448 &quot;A String&quot;,
449 ],
450 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
451 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
452 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
453 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
454 &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.
455 &quot;A String&quot;,
456 ],
457 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
458 &quot;A String&quot;,
459 ],
460 &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.
461 &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.
462 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
463 &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.
464 &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.
465 },
466 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800467 &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 -0800468 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800469 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
470 &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.
471 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
472 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
473 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
474 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
475 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
476 },
477 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
478 &quot;A String&quot;,
479 ],
480 &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.
481 &quot;A String&quot;,
482 ],
483 &quot;images&quot;: [ # Container images that were built as a part of the build.
484 { # An image built by the pipeline.
485 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
486 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
487 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
488 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
489 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
490 },
491 },
492 ],
493 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
494 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800495 &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
496 { # 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 -0800497 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
498 &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.
499 &quot;a_key&quot;: &quot;A String&quot;,
500 },
501 },
502 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400503 &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 -0800504 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
505 &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.
506 &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
507 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
508 &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.
509 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
510 &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 -0800511 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800512 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
513 &quot;a_key&quot;: &quot;A String&quot;,
514 },
515 &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
516 },
517 &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.
518 &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)).
519 &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.
520 &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.
521 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700522 &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.
523 &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)).
524 &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.
525 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
526 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800527 },
528 &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.
529 &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.
530 &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.
531 &quot;fileHash&quot;: [ # Collection of file hashes.
532 { # Container message for hash values.
533 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
534 &quot;value&quot;: &quot;A String&quot;, # The hash value.
535 },
536 ],
537 },
538 },
539 &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.
540 &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
541 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
542 &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.
543 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
544 &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 -0800545 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800546 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
547 &quot;a_key&quot;: &quot;A String&quot;,
548 },
549 &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
550 },
551 &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.
552 &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)).
553 &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.
554 &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.
555 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700556 &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.
557 &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)).
558 &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.
559 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
560 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800561 },
562 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
563 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
564 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
565 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
566 { # A step in the build pipeline.
567 &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.
568 &quot;A String&quot;,
569 ],
570 &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.
571 &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.
572 &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;.
573 &quot;A String&quot;,
574 ],
575 &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.
576 &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.
577 &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.
578 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
579 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
580 },
581 &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`.
582 &quot;A String&quot;,
583 ],
584 &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.
585 &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.
586 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
587 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
588 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
589 },
590 &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.
591 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
592 &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.
593 &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.
594 },
595 ],
596 &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.
597 &quot;A String&quot;,
598 ],
599 },
600 ],
601 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800602 &quot;a_key&quot;: &quot;A String&quot;,
603 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800604 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800605 &quot;A String&quot;,
606 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800607 &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.
608 &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.
609 &quot;a_key&quot;: { # Start and end times for a build execution phase.
610 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
611 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800612 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800613 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700614 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
615 { # A non-fatal problem encountered during the execution of the build.
616 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
617 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
618 },
619 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800620 },
621 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
622 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
623 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800624 &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 -0700625 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800626 &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`.
627 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
628 &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;.
629 &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;.
630 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
631 &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
632 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
633 &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 -0800634 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800635 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
636 &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
637 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
638 &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
639 },
640 },
641 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
642 &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.
643 &quot;A String&quot;,
644 ],
645 &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.
646 &quot;A String&quot;,
647 ],
648 &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-bot807277b2021-04-22 04:38:02 -0700649 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
650 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
651 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
652 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
653 &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}`.
654 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800655 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
656 &quot;a_key&quot;: &quot;A String&quot;,
657 },
658 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
659 &quot;A String&quot;,
660 ],
661 &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`.
662 &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
663 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
664 &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.
665 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
666 &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 -0800667 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800668 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
669 &quot;a_key&quot;: &quot;A String&quot;,
670 },
671 &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
672 },
673}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700674</div>
675
676<div class="method">
677 <code class="details" id="delete">delete(projectId, triggerId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700678 <pre>Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700679
680Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700681 projectId: string, Required. ID of the project that owns the trigger. (required)
682 triggerId: string, Required. ID of the `BuildTrigger` to delete. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700683 x__xgafv: string, V1 error format.
684 Allowed values
685 1 - v1 error format
686 2 - v2 error format
687
688Returns:
689 An object of the form:
690
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700691 { # 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 -0800692}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700693</div>
694
695<div class="method">
696 <code class="details" id="get">get(projectId, triggerId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700697 <pre>Returns information about a `BuildTrigger`. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700698
699Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700700 projectId: string, Required. ID of the project that owns the trigger. (required)
701 triggerId: string, Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700702 x__xgafv: string, V1 error format.
703 Allowed values
704 1 - v1 error format
705 2 - v2 error format
706
707Returns:
708 An object of the form:
709
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700710 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800711 &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 -0800712 &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.
713 &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.
714 &quot;A String&quot;,
715 ],
716 &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.
717 &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.
718 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
719 &quot;A String&quot;,
720 ],
721 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
722 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
723 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
724 },
725 },
726 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800727 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
728 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
729 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
730 &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.
731 &quot;a_key&quot;: &quot;A String&quot;,
732 },
733 &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/*
734 },
735 ],
736 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
737 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
738 &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.
739 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
740 },
741 ],
742 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800743 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
744 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
745 &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.
746 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
747 &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 -0800748 &quot;A String&quot;,
749 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800750 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
751 &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`.
752 &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.
753 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
754 &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.
755 &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.
756 &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;.
757 &quot;A String&quot;,
758 ],
759 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
760 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
761 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
762 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
763 &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.
764 &quot;A String&quot;,
765 ],
766 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
767 &quot;A String&quot;,
768 ],
769 &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.
770 &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.
771 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
772 &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.
773 &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.
774 },
775 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800776 &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 -0800777 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800778 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
779 &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.
780 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
781 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
782 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
783 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
784 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
785 },
786 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
787 &quot;A String&quot;,
788 ],
789 &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.
790 &quot;A String&quot;,
791 ],
792 &quot;images&quot;: [ # Container images that were built as a part of the build.
793 { # An image built by the pipeline.
794 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
795 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
796 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
797 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
798 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
799 },
800 },
801 ],
802 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
803 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800804 &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
805 { # 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 -0800806 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
807 &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.
808 &quot;a_key&quot;: &quot;A String&quot;,
809 },
810 },
811 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400812 &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 -0800813 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
814 &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.
815 &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
816 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
817 &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.
818 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
819 &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 -0800820 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800821 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
822 &quot;a_key&quot;: &quot;A String&quot;,
823 },
824 &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
825 },
826 &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.
827 &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)).
828 &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.
829 &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.
830 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700831 &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.
832 &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)).
833 &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.
834 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
835 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800836 },
837 &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.
838 &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.
839 &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.
840 &quot;fileHash&quot;: [ # Collection of file hashes.
841 { # Container message for hash values.
842 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
843 &quot;value&quot;: &quot;A String&quot;, # The hash value.
844 },
845 ],
846 },
847 },
848 &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.
849 &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
850 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
851 &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.
852 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
853 &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 -0800854 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800855 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
856 &quot;a_key&quot;: &quot;A String&quot;,
857 },
858 &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
859 },
860 &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.
861 &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)).
862 &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.
863 &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.
864 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700865 &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.
866 &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)).
867 &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.
868 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
869 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800870 },
871 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
872 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
873 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
874 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
875 { # A step in the build pipeline.
876 &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.
877 &quot;A String&quot;,
878 ],
879 &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.
880 &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.
881 &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;.
882 &quot;A String&quot;,
883 ],
884 &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.
885 &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.
886 &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.
887 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
888 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
889 },
890 &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`.
891 &quot;A String&quot;,
892 ],
893 &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.
894 &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.
895 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
896 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
897 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
898 },
899 &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.
900 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
901 &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.
902 &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.
903 },
904 ],
905 &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.
906 &quot;A String&quot;,
907 ],
908 },
909 ],
910 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800911 &quot;a_key&quot;: &quot;A String&quot;,
912 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800913 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800914 &quot;A String&quot;,
915 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800916 &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.
917 &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.
918 &quot;a_key&quot;: { # Start and end times for a build execution phase.
919 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
920 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800921 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800922 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700923 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
924 { # A non-fatal problem encountered during the execution of the build.
925 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
926 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
927 },
928 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800929 },
930 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
931 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
932 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800933 &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 -0700934 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800935 &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`.
936 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
937 &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;.
938 &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;.
939 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
940 &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
941 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
942 &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 -0800943 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800944 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
945 &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
946 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
947 &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
948 },
949 },
950 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
951 &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.
952 &quot;A String&quot;,
953 ],
954 &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.
955 &quot;A String&quot;,
956 ],
957 &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-bot807277b2021-04-22 04:38:02 -0700958 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
959 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
960 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
961 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
962 &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}`.
963 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800964 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
965 &quot;a_key&quot;: &quot;A String&quot;,
966 },
967 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
968 &quot;A String&quot;,
969 ],
970 &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`.
971 &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
972 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
973 &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.
974 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
975 &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 -0800976 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800977 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
978 &quot;a_key&quot;: &quot;A String&quot;,
979 },
980 &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
981 },
982}</pre>
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800983</div>
984
985<div class="method">
986 <code class="details" id="list">list(projectId, pageSize=None, pageToken=None, x__xgafv=None)</code>
987 <pre>Lists existing `BuildTrigger`s. This API is experimental.
988
989Args:
990 projectId: string, Required. ID of the project for which to list BuildTriggers. (required)
991 pageSize: integer, Number of results to return in the list.
992 pageToken: string, Token to provide to skip to a particular spot in the list.
993 x__xgafv: string, V1 error format.
994 Allowed values
995 1 - v1 error format
996 2 - v2 error format
997
998Returns:
999 An object of the form:
1000
1001 { # Response containing existing `BuildTriggers`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001002 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
1003 &quot;triggers&quot;: [ # `BuildTriggers` for the project, sorted by `create_time` descending.
1004 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001005 &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 -08001006 &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.
1007 &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.
1008 &quot;A String&quot;,
1009 ],
1010 &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.
1011 &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.
1012 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1013 &quot;A String&quot;,
1014 ],
1015 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1016 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1017 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1018 },
1019 },
1020 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001021 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1022 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1023 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1024 &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.
1025 &quot;a_key&quot;: &quot;A String&quot;,
1026 },
1027 &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/*
1028 },
1029 ],
1030 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1031 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1032 &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.
1033 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1034 },
1035 ],
1036 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001037 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1038 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1039 &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.
1040 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1041 &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 -08001042 &quot;A String&quot;,
1043 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001044 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1045 &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`.
1046 &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.
1047 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1048 &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.
1049 &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.
1050 &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;.
1051 &quot;A String&quot;,
1052 ],
1053 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1054 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1055 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1056 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1057 &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.
1058 &quot;A String&quot;,
1059 ],
1060 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1061 &quot;A String&quot;,
1062 ],
1063 &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.
1064 &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.
1065 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1066 &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.
1067 &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.
1068 },
1069 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001070 &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 -08001071 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001072 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1073 &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.
1074 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1075 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1076 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1077 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1078 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1079 },
1080 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1081 &quot;A String&quot;,
1082 ],
1083 &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.
1084 &quot;A String&quot;,
1085 ],
1086 &quot;images&quot;: [ # Container images that were built as a part of the build.
1087 { # An image built by the pipeline.
1088 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1089 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1090 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1091 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1092 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1093 },
1094 },
1095 ],
1096 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1097 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001098 &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
1099 { # 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 -08001100 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1101 &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.
1102 &quot;a_key&quot;: &quot;A String&quot;,
1103 },
1104 },
1105 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001106 &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 -08001107 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1108 &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.
1109 &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
1110 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1111 &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.
1112 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1113 &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 -08001114 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001115 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1116 &quot;a_key&quot;: &quot;A String&quot;,
1117 },
1118 &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
1119 },
1120 &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.
1121 &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)).
1122 &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.
1123 &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.
1124 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001125 &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.
1126 &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)).
1127 &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.
1128 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1129 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001130 },
1131 &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.
1132 &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.
1133 &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.
1134 &quot;fileHash&quot;: [ # Collection of file hashes.
1135 { # Container message for hash values.
1136 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1137 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1138 },
1139 ],
1140 },
1141 },
1142 &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.
1143 &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
1144 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1145 &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.
1146 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1147 &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 -08001148 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001149 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1150 &quot;a_key&quot;: &quot;A String&quot;,
1151 },
1152 &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
1153 },
1154 &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.
1155 &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)).
1156 &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.
1157 &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.
1158 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001159 &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.
1160 &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)).
1161 &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.
1162 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1163 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001164 },
1165 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1166 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1167 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1168 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1169 { # A step in the build pipeline.
1170 &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.
1171 &quot;A String&quot;,
1172 ],
1173 &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.
1174 &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.
1175 &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;.
1176 &quot;A String&quot;,
1177 ],
1178 &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.
1179 &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.
1180 &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.
1181 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1182 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1183 },
1184 &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`.
1185 &quot;A String&quot;,
1186 ],
1187 &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.
1188 &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.
1189 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1190 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1191 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1192 },
1193 &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.
1194 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1195 &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.
1196 &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.
1197 },
1198 ],
1199 &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.
1200 &quot;A String&quot;,
1201 ],
1202 },
1203 ],
1204 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001205 &quot;a_key&quot;: &quot;A String&quot;,
1206 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001207 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001208 &quot;A String&quot;,
1209 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001210 &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.
1211 &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.
1212 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1213 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1214 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001215 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001216 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001217 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1218 { # A non-fatal problem encountered during the execution of the build.
1219 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1220 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1221 },
1222 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001223 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001224 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1225 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1226 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001227 &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 -07001228 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001229 &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`.
1230 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1231 &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;.
1232 &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;.
1233 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1234 &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
1235 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1236 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1237 },
1238 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1239 &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
1240 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1241 &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
1242 },
1243 },
1244 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1245 &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.
1246 &quot;A String&quot;,
1247 ],
1248 &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.
1249 &quot;A String&quot;,
1250 ],
1251 &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-bot807277b2021-04-22 04:38:02 -07001252 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
1253 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1254 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1255 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1256 &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}`.
1257 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001258 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1259 &quot;a_key&quot;: &quot;A String&quot;,
1260 },
1261 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1262 &quot;A String&quot;,
1263 ],
1264 &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`.
1265 &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
1266 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1267 &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.
1268 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1269 &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 -08001270 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001271 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1272 &quot;a_key&quot;: &quot;A String&quot;,
1273 },
1274 &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
1275 },
1276 },
1277 ],
1278}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001279</div>
1280
1281<div class="method">
1282 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1283 <pre>Retrieves the next page of results.
1284
1285Args:
1286 previous_request: The request for the previous page. (required)
1287 previous_response: The response from the request for the previous page. (required)
1288
1289Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001290 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291 page. Returns None if there are no more items in the collection.
1292 </pre>
1293</div>
1294
1295<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001296 <code class="details" id="patch">patch(projectId, triggerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001297 <pre>Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001298
1299Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001300 projectId: string, Required. ID of the project that owns the trigger. (required)
1301 triggerId: string, Required. ID of the `BuildTrigger` to update. (required)
1302 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001303 The object takes the form of:
1304
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001305{ # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001306 &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 -08001307 &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.
1308 &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.
1309 &quot;A String&quot;,
1310 ],
1311 &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 -08001312 &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 -08001313 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1314 &quot;A String&quot;,
1315 ],
1316 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1317 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1318 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001319 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001320 },
1321 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001322 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1323 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1324 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1325 &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.
1326 &quot;a_key&quot;: &quot;A String&quot;,
1327 },
1328 &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/*
1329 },
1330 ],
1331 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1332 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1333 &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.
1334 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1335 },
1336 ],
1337 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001338 &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 -08001339 &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 -08001340 &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.
1341 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1342 &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`.
1343 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001344 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001345 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1346 &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`.
1347 &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 -08001348 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001349 &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 -08001350 &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 -08001351 &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;.
1352 &quot;A String&quot;,
1353 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001354 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1355 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1356 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1357 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1358 &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.
1359 &quot;A String&quot;,
1360 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001361 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1362 &quot;A String&quot;,
1363 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001364 &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 -08001365 &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.
1366 { # 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 -08001367 &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 -08001368 &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 -08001369 },
1370 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001371 &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 -08001372 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001373 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1374 &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.
1375 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1376 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1377 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1378 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1379 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1380 },
1381 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1382 &quot;A String&quot;,
1383 ],
1384 &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.
1385 &quot;A String&quot;,
1386 ],
1387 &quot;images&quot;: [ # Container images that were built as a part of the build.
1388 { # An image built by the pipeline.
1389 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1390 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1391 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1392 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1393 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1394 },
1395 },
1396 ],
1397 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1398 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001399 &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
1400 { # 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 -08001401 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1402 &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.
1403 &quot;a_key&quot;: &quot;A String&quot;,
1404 },
1405 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001406 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001407 &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 -08001408 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1409 &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.
1410 &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
1411 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1412 &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.
1413 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1414 &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 -08001415 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001416 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1417 &quot;a_key&quot;: &quot;A String&quot;,
1418 },
1419 &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
1420 },
1421 &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.
1422 &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 -08001423 &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.
1424 &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 -08001425 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001426 &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.
1427 &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)).
1428 &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.
1429 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1430 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001431 },
1432 &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 -08001433 &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.
1434 &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.
1435 &quot;fileHash&quot;: [ # Collection of file hashes.
1436 { # Container message for hash values.
1437 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1438 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1439 },
1440 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001441 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001442 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001443 &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 -08001444 &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 -08001445 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1446 &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.
1447 &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 -08001448 &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 -08001449 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001450 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1451 &quot;a_key&quot;: &quot;A String&quot;,
1452 },
1453 &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
1454 },
1455 &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.
1456 &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)).
1457 &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.
1458 &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 -08001459 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001460 &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.
1461 &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)).
1462 &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.
1463 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1464 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001465 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001466 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1467 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1468 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1469 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1470 { # A step in the build pipeline.
1471 &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.
1472 &quot;A String&quot;,
1473 ],
1474 &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.
1475 &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.
1476 &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;.
1477 &quot;A String&quot;,
1478 ],
1479 &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.
1480 &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.
1481 &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.
1482 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1483 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001484 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001485 &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`.
1486 &quot;A String&quot;,
1487 ],
1488 &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.
1489 &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.
1490 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1491 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1492 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1493 },
1494 &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.
1495 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1496 &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.
1497 &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.
1498 },
1499 ],
1500 &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.
1501 &quot;A String&quot;,
1502 ],
1503 },
1504 ],
1505 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1506 &quot;a_key&quot;: &quot;A String&quot;,
1507 },
1508 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1509 &quot;A String&quot;,
1510 ],
1511 &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.
1512 &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.
1513 &quot;a_key&quot;: { # Start and end times for a build execution phase.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001514 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1515 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1516 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001517 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001518 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1519 { # A non-fatal problem encountered during the execution of the build.
1520 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1521 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1522 },
1523 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001524 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001525 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1526 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1527 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001528 &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 -07001529 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001530 &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 -08001531 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001532 &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 -08001533 &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;.
1534 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1535 &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
1536 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1537 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1538 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001539 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1540 &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
1541 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1542 &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
1543 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001544 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001545 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1546 &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.
1547 &quot;A String&quot;,
1548 ],
1549 &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.
1550 &quot;A String&quot;,
1551 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001552 &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-bot807277b2021-04-22 04:38:02 -07001553 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
1554 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1555 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1556 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1557 &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}`.
1558 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001559 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1560 &quot;a_key&quot;: &quot;A String&quot;,
1561 },
1562 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1563 &quot;A String&quot;,
1564 ],
1565 &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`.
1566 &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
1567 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1568 &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.
1569 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1570 &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 -08001571 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001572 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1573 &quot;a_key&quot;: &quot;A String&quot;,
1574 },
1575 &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
1576 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001577}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001578
1579 x__xgafv: string, V1 error format.
1580 Allowed values
1581 1 - v1 error format
1582 2 - v2 error format
1583
1584Returns:
1585 An object of the form:
1586
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001587 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001588 &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 -08001589 &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.
1590 &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.
1591 &quot;A String&quot;,
1592 ],
1593 &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.
1594 &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.
1595 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1596 &quot;A String&quot;,
1597 ],
1598 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1599 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1600 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1601 },
1602 },
1603 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001604 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1605 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1606 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1607 &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.
1608 &quot;a_key&quot;: &quot;A String&quot;,
1609 },
1610 &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/*
1611 },
1612 ],
1613 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1614 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1615 &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.
1616 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1617 },
1618 ],
1619 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001620 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1621 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1622 &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.
1623 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1624 &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 -08001625 &quot;A String&quot;,
1626 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001627 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1628 &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`.
1629 &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.
1630 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1631 &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.
1632 &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.
1633 &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;.
1634 &quot;A String&quot;,
1635 ],
1636 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1637 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1638 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1639 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1640 &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.
1641 &quot;A String&quot;,
1642 ],
1643 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1644 &quot;A String&quot;,
1645 ],
1646 &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.
1647 &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.
1648 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1649 &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.
1650 &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.
1651 },
1652 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001653 &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 -08001654 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001655 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1656 &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.
1657 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1658 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1659 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1660 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1661 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1662 },
1663 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1664 &quot;A String&quot;,
1665 ],
1666 &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.
1667 &quot;A String&quot;,
1668 ],
1669 &quot;images&quot;: [ # Container images that were built as a part of the build.
1670 { # An image built by the pipeline.
1671 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1672 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1673 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1674 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1675 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1676 },
1677 },
1678 ],
1679 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1680 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001681 &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
1682 { # 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 -08001683 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1684 &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.
1685 &quot;a_key&quot;: &quot;A String&quot;,
1686 },
1687 },
1688 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001689 &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 -08001690 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1691 &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.
1692 &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
1693 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1694 &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.
1695 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1696 &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 -08001697 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001698 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1699 &quot;a_key&quot;: &quot;A String&quot;,
1700 },
1701 &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
1702 },
1703 &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.
1704 &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)).
1705 &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.
1706 &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.
1707 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001708 &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.
1709 &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)).
1710 &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.
1711 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1712 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001713 },
1714 &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.
1715 &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.
1716 &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.
1717 &quot;fileHash&quot;: [ # Collection of file hashes.
1718 { # Container message for hash values.
1719 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1720 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1721 },
1722 ],
1723 },
1724 },
1725 &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.
1726 &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
1727 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1728 &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.
1729 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1730 &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 -08001731 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001732 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1733 &quot;a_key&quot;: &quot;A String&quot;,
1734 },
1735 &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
1736 },
1737 &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.
1738 &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)).
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. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1741 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001742 &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.
1743 &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)).
1744 &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.
1745 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1746 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001747 },
1748 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1749 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1750 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1751 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1752 { # A step in the build pipeline.
1753 &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.
1754 &quot;A String&quot;,
1755 ],
1756 &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.
1757 &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.
1758 &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;.
1759 &quot;A String&quot;,
1760 ],
1761 &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.
1762 &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.
1763 &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.
1764 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1765 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1766 },
1767 &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`.
1768 &quot;A String&quot;,
1769 ],
1770 &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.
1771 &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.
1772 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1773 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1774 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1775 },
1776 &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.
1777 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1778 &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.
1779 &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.
1780 },
1781 ],
1782 &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.
1783 &quot;A String&quot;,
1784 ],
1785 },
1786 ],
1787 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001788 &quot;a_key&quot;: &quot;A String&quot;,
1789 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001790 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001791 &quot;A String&quot;,
1792 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001793 &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.
1794 &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.
1795 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1796 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1797 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001798 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001799 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001800 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1801 { # A non-fatal problem encountered during the execution of the build.
1802 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1803 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1804 },
1805 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001806 },
1807 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1808 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1809 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001810 &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 -07001811 &quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001812 &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`.
1813 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1814 &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;.
1815 &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;.
1816 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1817 &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
1818 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1819 &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 -08001820 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001821 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1822 &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
1823 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1824 &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
1825 },
1826 },
1827 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1828 &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.
1829 &quot;A String&quot;,
1830 ],
1831 &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.
1832 &quot;A String&quot;,
1833 ],
1834 &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-bot807277b2021-04-22 04:38:02 -07001835 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
1836 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1837 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1838 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1839 &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}`.
1840 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001841 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1842 &quot;a_key&quot;: &quot;A String&quot;,
1843 },
1844 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1845 &quot;A String&quot;,
1846 ],
1847 &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`.
1848 &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
1849 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1850 &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.
1851 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1852 &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 -08001853 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001854 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1855 &quot;a_key&quot;: &quot;A String&quot;,
1856 },
1857 &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
1858 },
1859}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001860</div>
1861
1862<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001863 <code class="details" id="run">run(projectId, triggerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001864 <pre>Runs a `BuildTrigger` at a particular source revision.
1865
1866Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001867 projectId: string, Required. ID of the project. (required)
1868 triggerId: string, Required. ID of the trigger. (required)
1869 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001870 The object takes the form of:
1871
1872{ # Location of the source in a Google Cloud Source Repository.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001873 &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 -08001874 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1875 &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.
1876 &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 -08001877 &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 -08001878 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001879 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1880 &quot;a_key&quot;: &quot;A String&quot;,
1881 },
1882 &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 -07001883}
1884
1885 x__xgafv: string, V1 error format.
1886 Allowed values
1887 1 - v1 error format
1888 2 - v2 error format
1889
1890Returns:
1891 An object of the form:
1892
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001893 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001894 &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.
1895 &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.
1896 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1897 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1898 {
1899 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1900 },
1901 ],
1902 &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.
1903 },
1904 &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.
1905 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1906 },
1907 &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}`.
1908 &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`.
1909 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1910 },
1911}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001912</div>
1913
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001914<div class="method">
1915 <code class="details" id="webhook">webhook(projectId, trigger, body=None, secret=None, x__xgafv=None)</code>
1916 <pre>ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.
1917
1918Args:
1919 projectId: string, Project in which the specified trigger lives (required)
1920 trigger: string, Name of the trigger to run the payload against (required)
1921 body: object, The request body.
1922 The object takes the form of:
1923
1924{ # 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.
1925 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
1926 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
1927 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
1928 {
1929 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1930 },
1931 ],
1932}
1933
1934 secret: string, Secret token used for authorization if an OAuth token isn&#x27;t provided.
1935 x__xgafv: string, V1 error format.
1936 Allowed values
1937 1 - v1 error format
1938 2 - v2 error format
1939
1940Returns:
1941 An object of the form:
1942
1943 { # ReceiveTriggerWebhookResponse [Experimental] is the response object for the ReceiveTriggerWebhook method.
1944}</pre>
1945</div>
1946
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001947</body></html>