blob: de23dd4cd841ec57d9ab46b0ad0cb4cfbea42f2b [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 Automation Bot0bf565c2020-12-09 08:56:03 -0800332 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800333 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
334 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
335 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800336 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800337 &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 -0800338 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800339 &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 -0800340 &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;.
341 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
342 &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
343 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
344 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
345 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800346 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
347 &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
348 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
349 &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
350 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800351 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800352 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
353 &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.
354 &quot;A String&quot;,
355 ],
356 &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.
357 &quot;A String&quot;,
358 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800359 &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 Automation Botcc94ec82021-01-15 07:10:04 -0800360 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
361 &quot;a_key&quot;: &quot;A String&quot;,
362 },
363 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
364 &quot;A String&quot;,
365 ],
366 &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`.
367 &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
368 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
369 &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.
370 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
371 &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 -0800372 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800373 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
374 &quot;a_key&quot;: &quot;A String&quot;,
375 },
376 &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
377 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800378}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700379
380 x__xgafv: string, V1 error format.
381 Allowed values
382 1 - v1 error format
383 2 - v2 error format
384
385Returns:
386 An object of the form:
387
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700388 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800389 &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 -0800390 &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.
391 &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.
392 &quot;A String&quot;,
393 ],
394 &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.
395 &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.
396 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
397 &quot;A String&quot;,
398 ],
399 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
400 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
401 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
402 },
403 },
404 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800405 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
406 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
407 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
408 &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.
409 &quot;a_key&quot;: &quot;A String&quot;,
410 },
411 &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/*
412 },
413 ],
414 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
415 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
416 &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.
417 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
418 },
419 ],
420 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800421 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
422 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
423 &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.
424 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
425 &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 -0800426 &quot;A String&quot;,
427 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800428 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
429 &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`.
430 &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.
431 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
432 &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.
433 &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.
434 &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;.
435 &quot;A String&quot;,
436 ],
437 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
438 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
439 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
440 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
441 &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.
442 &quot;A String&quot;,
443 ],
444 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
445 &quot;A String&quot;,
446 ],
447 &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.
448 &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.
449 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
450 &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.
451 &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.
452 },
453 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800454 &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 -0800455 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800456 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
457 &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.
458 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
459 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
460 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
461 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
462 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
463 },
464 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
465 &quot;A String&quot;,
466 ],
467 &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.
468 &quot;A String&quot;,
469 ],
470 &quot;images&quot;: [ # Container images that were built as a part of the build.
471 { # An image built by the pipeline.
472 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
473 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
474 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
475 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
476 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
477 },
478 },
479 ],
480 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
481 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800482 &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
483 { # 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 -0800484 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
485 &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.
486 &quot;a_key&quot;: &quot;A String&quot;,
487 },
488 },
489 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400490 &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 -0800491 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
492 &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.
493 &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
494 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
495 &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.
496 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
497 &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 -0800498 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800499 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
500 &quot;a_key&quot;: &quot;A String&quot;,
501 },
502 &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
503 },
504 &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.
505 &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)).
506 &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.
507 &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.
508 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700509 &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.
510 &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)).
511 &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.
512 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
513 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800514 },
515 &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.
516 &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.
517 &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.
518 &quot;fileHash&quot;: [ # Collection of file hashes.
519 { # Container message for hash values.
520 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
521 &quot;value&quot;: &quot;A String&quot;, # The hash value.
522 },
523 ],
524 },
525 },
526 &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.
527 &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
528 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
529 &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.
530 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
531 &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 -0800532 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800533 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
534 &quot;a_key&quot;: &quot;A String&quot;,
535 },
536 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
537 },
538 &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.
539 &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)).
540 &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.
541 &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.
542 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700543 &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.
544 &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)).
545 &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.
546 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
547 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800548 },
549 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
550 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
551 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
552 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
553 { # A step in the build pipeline.
554 &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.
555 &quot;A String&quot;,
556 ],
557 &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.
558 &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.
559 &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;.
560 &quot;A String&quot;,
561 ],
562 &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.
563 &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.
564 &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.
565 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
566 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
567 },
568 &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`.
569 &quot;A String&quot;,
570 ],
571 &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.
572 &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.
573 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
574 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
575 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
576 },
577 &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.
578 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
579 &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.
580 &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.
581 },
582 ],
583 &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.
584 &quot;A String&quot;,
585 ],
586 },
587 ],
588 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800589 &quot;a_key&quot;: &quot;A String&quot;,
590 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800591 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800592 &quot;A String&quot;,
593 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800594 &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.
595 &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.
596 &quot;a_key&quot;: { # Start and end times for a build execution phase.
597 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
598 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800599 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800600 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800601 },
602 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
603 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
604 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800605 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800606 &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`.
607 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
608 &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;.
609 &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;.
610 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
611 &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
612 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
613 &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 -0800614 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800615 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
616 &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
617 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
618 &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
619 },
620 },
621 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
622 &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.
623 &quot;A String&quot;,
624 ],
625 &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.
626 &quot;A String&quot;,
627 ],
628 &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.
629 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
630 &quot;a_key&quot;: &quot;A String&quot;,
631 },
632 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
633 &quot;A String&quot;,
634 ],
635 &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`.
636 &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
637 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
638 &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.
639 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
640 &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 -0800641 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800642 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
643 &quot;a_key&quot;: &quot;A String&quot;,
644 },
645 &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
646 },
647}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700648</div>
649
650<div class="method">
651 <code class="details" id="delete">delete(projectId, triggerId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700652 <pre>Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700653
654Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700655 projectId: string, Required. ID of the project that owns the trigger. (required)
656 triggerId: string, Required. ID of the `BuildTrigger` to delete. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700657 x__xgafv: string, V1 error format.
658 Allowed values
659 1 - v1 error format
660 2 - v2 error format
661
662Returns:
663 An object of the form:
664
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700665 { # 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 -0800666}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700667</div>
668
669<div class="method">
670 <code class="details" id="get">get(projectId, triggerId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700671 <pre>Returns information about a `BuildTrigger`. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700672
673Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700674 projectId: string, Required. ID of the project that owns the trigger. (required)
675 triggerId: string, Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700676 x__xgafv: string, V1 error format.
677 Allowed values
678 1 - v1 error format
679 2 - v2 error format
680
681Returns:
682 An object of the form:
683
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700684 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800685 &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 -0800686 &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.
687 &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.
688 &quot;A String&quot;,
689 ],
690 &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.
691 &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.
692 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
693 &quot;A String&quot;,
694 ],
695 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
696 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
697 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
698 },
699 },
700 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800701 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
702 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
703 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
704 &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.
705 &quot;a_key&quot;: &quot;A String&quot;,
706 },
707 &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/*
708 },
709 ],
710 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
711 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
712 &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.
713 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
714 },
715 ],
716 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800717 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
718 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
719 &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.
720 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
721 &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 -0800722 &quot;A String&quot;,
723 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800724 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
725 &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`.
726 &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.
727 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
728 &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.
729 &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.
730 &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;.
731 &quot;A String&quot;,
732 ],
733 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
734 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
735 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
736 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
737 &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.
738 &quot;A String&quot;,
739 ],
740 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
741 &quot;A String&quot;,
742 ],
743 &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.
744 &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.
745 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
746 &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.
747 &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.
748 },
749 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800750 &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 -0800751 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800752 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
753 &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.
754 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
755 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
756 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
757 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
758 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
759 },
760 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
761 &quot;A String&quot;,
762 ],
763 &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.
764 &quot;A String&quot;,
765 ],
766 &quot;images&quot;: [ # Container images that were built as a part of the build.
767 { # An image built by the pipeline.
768 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
769 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
770 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
771 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
772 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
773 },
774 },
775 ],
776 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
777 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800778 &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
779 { # 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 -0800780 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
781 &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.
782 &quot;a_key&quot;: &quot;A String&quot;,
783 },
784 },
785 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400786 &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 -0800787 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
788 &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.
789 &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
790 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
791 &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.
792 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
793 &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 -0800794 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800795 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
796 &quot;a_key&quot;: &quot;A String&quot;,
797 },
798 &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
799 },
800 &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.
801 &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)).
802 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
803 &quot;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.
804 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700805 &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.
806 &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)).
807 &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.
808 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
809 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800810 },
811 &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.
812 &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.
813 &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.
814 &quot;fileHash&quot;: [ # Collection of file hashes.
815 { # Container message for hash values.
816 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
817 &quot;value&quot;: &quot;A String&quot;, # The hash value.
818 },
819 ],
820 },
821 },
822 &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.
823 &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
824 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
825 &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.
826 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
827 &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 -0800828 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800829 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
830 &quot;a_key&quot;: &quot;A String&quot;,
831 },
832 &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
833 },
834 &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.
835 &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)).
836 &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.
837 &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.
838 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700839 &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.
840 &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)).
841 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
842 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
843 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800844 },
845 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
846 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
847 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
848 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
849 { # A step in the build pipeline.
850 &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.
851 &quot;A String&quot;,
852 ],
853 &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.
854 &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.
855 &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;.
856 &quot;A String&quot;,
857 ],
858 &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.
859 &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.
860 &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.
861 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
862 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
863 },
864 &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`.
865 &quot;A String&quot;,
866 ],
867 &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.
868 &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.
869 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
870 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
871 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
872 },
873 &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.
874 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
875 &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.
876 &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.
877 },
878 ],
879 &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.
880 &quot;A String&quot;,
881 ],
882 },
883 ],
884 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800885 &quot;a_key&quot;: &quot;A String&quot;,
886 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800887 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800888 &quot;A String&quot;,
889 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800890 &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.
891 &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.
892 &quot;a_key&quot;: { # Start and end times for a build execution phase.
893 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
894 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800895 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800896 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800897 },
898 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
899 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
900 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800901 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800902 &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`.
903 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
904 &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;.
905 &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;.
906 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
907 &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
908 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
909 &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 -0800910 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800911 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
912 &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
913 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
914 &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
915 },
916 },
917 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
918 &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.
919 &quot;A String&quot;,
920 ],
921 &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.
922 &quot;A String&quot;,
923 ],
924 &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.
925 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
926 &quot;a_key&quot;: &quot;A String&quot;,
927 },
928 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
929 &quot;A String&quot;,
930 ],
931 &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`.
932 &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
933 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
934 &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.
935 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
936 &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 -0800937 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800938 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
939 &quot;a_key&quot;: &quot;A String&quot;,
940 },
941 &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
942 },
943}</pre>
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800944</div>
945
946<div class="method">
947 <code class="details" id="list">list(projectId, pageSize=None, pageToken=None, x__xgafv=None)</code>
948 <pre>Lists existing `BuildTrigger`s. This API is experimental.
949
950Args:
951 projectId: string, Required. ID of the project for which to list BuildTriggers. (required)
952 pageSize: integer, Number of results to return in the list.
953 pageToken: string, Token to provide to skip to a particular spot in the list.
954 x__xgafv: string, V1 error format.
955 Allowed values
956 1 - v1 error format
957 2 - v2 error format
958
959Returns:
960 An object of the form:
961
962 { # Response containing existing `BuildTriggers`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800963 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
964 &quot;triggers&quot;: [ # `BuildTriggers` for the project, sorted by `create_time` descending.
965 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800966 &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 -0800967 &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.
968 &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.
969 &quot;A String&quot;,
970 ],
971 &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.
972 &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.
973 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
974 &quot;A String&quot;,
975 ],
976 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
977 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
978 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
979 },
980 },
981 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800982 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
983 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
984 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
985 &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.
986 &quot;a_key&quot;: &quot;A String&quot;,
987 },
988 &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/*
989 },
990 ],
991 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
992 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
993 &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.
994 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
995 },
996 ],
997 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800998 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
999 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1000 &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.
1001 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1002 &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 -08001003 &quot;A String&quot;,
1004 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001005 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1006 &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`.
1007 &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.
1008 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1009 &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.
1010 &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.
1011 &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;.
1012 &quot;A String&quot;,
1013 ],
1014 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1015 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1016 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1017 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1018 &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.
1019 &quot;A String&quot;,
1020 ],
1021 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1022 &quot;A String&quot;,
1023 ],
1024 &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.
1025 &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.
1026 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1027 &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.
1028 &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.
1029 },
1030 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001031 &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 -08001032 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001033 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1034 &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.
1035 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1036 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1037 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1038 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1039 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1040 },
1041 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1042 &quot;A String&quot;,
1043 ],
1044 &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.
1045 &quot;A String&quot;,
1046 ],
1047 &quot;images&quot;: [ # Container images that were built as a part of the build.
1048 { # An image built by the pipeline.
1049 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1050 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1051 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1052 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1053 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1054 },
1055 },
1056 ],
1057 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1058 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001059 &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
1060 { # 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 -08001061 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1062 &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.
1063 &quot;a_key&quot;: &quot;A String&quot;,
1064 },
1065 },
1066 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001067 &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 -08001068 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1069 &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.
1070 &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
1071 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1072 &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.
1073 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1074 &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 -08001075 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001076 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1077 &quot;a_key&quot;: &quot;A String&quot;,
1078 },
1079 &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
1080 },
1081 &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.
1082 &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)).
1083 &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.
1084 &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.
1085 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001086 &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.
1087 &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)).
1088 &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.
1089 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1090 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001091 },
1092 &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.
1093 &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.
1094 &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.
1095 &quot;fileHash&quot;: [ # Collection of file hashes.
1096 { # Container message for hash values.
1097 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1098 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1099 },
1100 ],
1101 },
1102 },
1103 &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.
1104 &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
1105 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1106 &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.
1107 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1108 &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 -08001109 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001110 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1111 &quot;a_key&quot;: &quot;A String&quot;,
1112 },
1113 &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
1114 },
1115 &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.
1116 &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)).
1117 &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.
1118 &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.
1119 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001120 &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.
1121 &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)).
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 manifest. This object must be a JSON file.
1124 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001125 },
1126 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1127 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1128 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1129 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1130 { # A step in the build pipeline.
1131 &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.
1132 &quot;A String&quot;,
1133 ],
1134 &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.
1135 &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.
1136 &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;.
1137 &quot;A String&quot;,
1138 ],
1139 &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.
1140 &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.
1141 &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.
1142 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1143 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1144 },
1145 &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`.
1146 &quot;A String&quot;,
1147 ],
1148 &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.
1149 &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.
1150 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1151 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1152 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1153 },
1154 &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.
1155 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1156 &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.
1157 &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.
1158 },
1159 ],
1160 &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.
1161 &quot;A String&quot;,
1162 ],
1163 },
1164 ],
1165 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001166 &quot;a_key&quot;: &quot;A String&quot;,
1167 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001168 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001169 &quot;A String&quot;,
1170 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001171 &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.
1172 &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.
1173 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1174 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1175 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001176 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001177 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001178 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001179 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1180 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1181 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001182 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001183 &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`.
1184 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1185 &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;.
1186 &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;.
1187 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1188 &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
1189 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1190 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1191 },
1192 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1193 &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
1194 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1195 &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
1196 },
1197 },
1198 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1199 &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.
1200 &quot;A String&quot;,
1201 ],
1202 &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.
1203 &quot;A String&quot;,
1204 ],
1205 &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.
1206 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1207 &quot;a_key&quot;: &quot;A String&quot;,
1208 },
1209 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1210 &quot;A String&quot;,
1211 ],
1212 &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`.
1213 &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
1214 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1215 &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.
1216 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1217 &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 -08001218 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001219 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1220 &quot;a_key&quot;: &quot;A String&quot;,
1221 },
1222 &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
1223 },
1224 },
1225 ],
1226}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001227</div>
1228
1229<div class="method">
1230 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1231 <pre>Retrieves the next page of results.
1232
1233Args:
1234 previous_request: The request for the previous page. (required)
1235 previous_response: The response from the request for the previous page. (required)
1236
1237Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001238 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001239 page. Returns None if there are no more items in the collection.
1240 </pre>
1241</div>
1242
1243<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001244 <code class="details" id="patch">patch(projectId, triggerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001245 <pre>Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001246
1247Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001248 projectId: string, Required. ID of the project that owns the trigger. (required)
1249 triggerId: string, Required. ID of the `BuildTrigger` to update. (required)
1250 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001251 The object takes the form of:
1252
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001253{ # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001254 &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 -08001255 &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.
1256 &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.
1257 &quot;A String&quot;,
1258 ],
1259 &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 -08001260 &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 -08001261 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1262 &quot;A String&quot;,
1263 ],
1264 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1265 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1266 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001267 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001268 },
1269 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001270 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1271 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1272 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1273 &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.
1274 &quot;a_key&quot;: &quot;A String&quot;,
1275 },
1276 &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/*
1277 },
1278 ],
1279 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1280 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1281 &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.
1282 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1283 },
1284 ],
1285 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001286 &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 -08001287 &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 -08001288 &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.
1289 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1290 &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`.
1291 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001292 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001293 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1294 &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`.
1295 &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 -08001296 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001297 &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 -08001298 &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 -08001299 &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;.
1300 &quot;A String&quot;,
1301 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001302 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1303 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1304 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1305 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1306 &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.
1307 &quot;A String&quot;,
1308 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001309 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1310 &quot;A String&quot;,
1311 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001312 &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 -08001313 &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.
1314 { # 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 -08001315 &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 -08001316 &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 -08001317 },
1318 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001319 &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 -08001320 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001321 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1322 &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.
1323 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1324 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1325 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1326 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1327 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1328 },
1329 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1330 &quot;A String&quot;,
1331 ],
1332 &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.
1333 &quot;A String&quot;,
1334 ],
1335 &quot;images&quot;: [ # Container images that were built as a part of the build.
1336 { # An image built by the pipeline.
1337 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1338 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1339 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1340 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1341 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1342 },
1343 },
1344 ],
1345 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1346 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001347 &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
1348 { # 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 -08001349 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1350 &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.
1351 &quot;a_key&quot;: &quot;A String&quot;,
1352 },
1353 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001354 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001355 &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 -08001356 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1357 &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.
1358 &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
1359 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1360 &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.
1361 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1362 &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 -08001363 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001364 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1365 &quot;a_key&quot;: &quot;A String&quot;,
1366 },
1367 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1368 },
1369 &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.
1370 &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 -08001371 &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.
1372 &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 -08001373 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001374 &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.
1375 &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)).
1376 &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.
1377 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1378 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001379 },
1380 &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 -08001381 &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.
1382 &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.
1383 &quot;fileHash&quot;: [ # Collection of file hashes.
1384 { # Container message for hash values.
1385 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1386 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1387 },
1388 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001389 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001390 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001391 &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 -08001392 &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 -08001393 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1394 &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.
1395 &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 -08001396 &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 -08001397 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001398 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1399 &quot;a_key&quot;: &quot;A String&quot;,
1400 },
1401 &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
1402 },
1403 &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.
1404 &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)).
1405 &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.
1406 &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 -08001407 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001408 &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.
1409 &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)).
1410 &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.
1411 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1412 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001413 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001414 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1415 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1416 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1417 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1418 { # A step in the build pipeline.
1419 &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.
1420 &quot;A String&quot;,
1421 ],
1422 &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.
1423 &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.
1424 &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;.
1425 &quot;A String&quot;,
1426 ],
1427 &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.
1428 &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.
1429 &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.
1430 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1431 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001432 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001433 &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`.
1434 &quot;A String&quot;,
1435 ],
1436 &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.
1437 &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.
1438 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1439 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1440 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1441 },
1442 &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.
1443 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1444 &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.
1445 &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.
1446 },
1447 ],
1448 &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.
1449 &quot;A String&quot;,
1450 ],
1451 },
1452 ],
1453 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1454 &quot;a_key&quot;: &quot;A String&quot;,
1455 },
1456 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1457 &quot;A String&quot;,
1458 ],
1459 &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.
1460 &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.
1461 &quot;a_key&quot;: { # Start and end times for a build execution phase.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001462 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1463 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1464 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001465 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001466 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001467 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1468 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1469 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001470 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001471 &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 -08001472 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001473 &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 -08001474 &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;.
1475 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1476 &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
1477 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1478 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1479 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001480 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1481 &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
1482 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1483 &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
1484 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001485 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001486 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1487 &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.
1488 &quot;A String&quot;,
1489 ],
1490 &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.
1491 &quot;A String&quot;,
1492 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001493 &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 Automation Botcc94ec82021-01-15 07:10:04 -08001494 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1495 &quot;a_key&quot;: &quot;A String&quot;,
1496 },
1497 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1498 &quot;A String&quot;,
1499 ],
1500 &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`.
1501 &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
1502 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1503 &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.
1504 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1505 &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 -08001506 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001507 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1508 &quot;a_key&quot;: &quot;A String&quot;,
1509 },
1510 &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
1511 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001512}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001513
1514 x__xgafv: string, V1 error format.
1515 Allowed values
1516 1 - v1 error format
1517 2 - v2 error format
1518
1519Returns:
1520 An object of the form:
1521
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001522 { # Configuration for an automated build in response to source repository changes.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001523 &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 -08001524 &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.
1525 &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.
1526 &quot;A String&quot;,
1527 ],
1528 &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.
1529 &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.
1530 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1531 &quot;A String&quot;,
1532 ],
1533 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1534 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1535 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1536 },
1537 },
1538 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001539 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1540 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1541 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1542 &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.
1543 &quot;a_key&quot;: &quot;A String&quot;,
1544 },
1545 &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/*
1546 },
1547 ],
1548 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1549 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1550 &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.
1551 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1552 },
1553 ],
1554 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001555 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1556 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1557 &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.
1558 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1559 &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 -08001560 &quot;A String&quot;,
1561 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001562 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1563 &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`.
1564 &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.
1565 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1566 &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.
1567 &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.
1568 &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;.
1569 &quot;A String&quot;,
1570 ],
1571 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1572 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1573 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1574 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1575 &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.
1576 &quot;A String&quot;,
1577 ],
1578 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1579 &quot;A String&quot;,
1580 ],
1581 &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.
1582 &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.
1583 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1584 &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.
1585 &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.
1586 },
1587 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001588 &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 -08001589 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001590 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1591 &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.
1592 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1593 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1594 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1595 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1596 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1597 },
1598 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1599 &quot;A String&quot;,
1600 ],
1601 &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.
1602 &quot;A String&quot;,
1603 ],
1604 &quot;images&quot;: [ # Container images that were built as a part of the build.
1605 { # An image built by the pipeline.
1606 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1607 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1608 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1609 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1610 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1611 },
1612 },
1613 ],
1614 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1615 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001616 &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
1617 { # 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 -08001618 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1619 &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.
1620 &quot;a_key&quot;: &quot;A String&quot;,
1621 },
1622 },
1623 ],
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001624 &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 -08001625 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1626 &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.
1627 &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
1628 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1629 &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.
1630 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1631 &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 -08001632 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001633 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1634 &quot;a_key&quot;: &quot;A String&quot;,
1635 },
1636 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1637 },
1638 &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.
1639 &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)).
1640 &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.
1641 &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.
1642 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001643 &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.
1644 &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)).
1645 &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.
1646 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1647 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001648 },
1649 &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.
1650 &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.
1651 &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.
1652 &quot;fileHash&quot;: [ # Collection of file hashes.
1653 { # Container message for hash values.
1654 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1655 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1656 },
1657 ],
1658 },
1659 },
1660 &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.
1661 &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
1662 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1663 &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.
1664 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1665 &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 -08001666 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001667 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1668 &quot;a_key&quot;: &quot;A String&quot;,
1669 },
1670 &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
1671 },
1672 &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.
1673 &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)).
1674 &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.
1675 &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.
1676 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001677 &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.
1678 &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)).
1679 &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.
1680 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1681 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001682 },
1683 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1684 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1685 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1686 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1687 { # A step in the build pipeline.
1688 &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.
1689 &quot;A String&quot;,
1690 ],
1691 &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.
1692 &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.
1693 &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;.
1694 &quot;A String&quot;,
1695 ],
1696 &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.
1697 &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.
1698 &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.
1699 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1700 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1701 },
1702 &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`.
1703 &quot;A String&quot;,
1704 ],
1705 &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.
1706 &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.
1707 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1708 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1709 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1710 },
1711 &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.
1712 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1713 &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.
1714 &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.
1715 },
1716 ],
1717 &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.
1718 &quot;A String&quot;,
1719 ],
1720 },
1721 ],
1722 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001723 &quot;a_key&quot;: &quot;A String&quot;,
1724 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001725 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001726 &quot;A String&quot;,
1727 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001728 &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.
1729 &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.
1730 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1731 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1732 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001733 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001734 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001735 },
1736 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1737 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1738 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001739 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001740 &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`.
1741 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1742 &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;.
1743 &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;.
1744 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1745 &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
1746 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1747 &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 -08001748 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001749 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1750 &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
1751 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1752 &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
1753 },
1754 },
1755 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1756 &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.
1757 &quot;A String&quot;,
1758 ],
1759 &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.
1760 &quot;A String&quot;,
1761 ],
1762 &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.
1763 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1764 &quot;a_key&quot;: &quot;A String&quot;,
1765 },
1766 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1767 &quot;A String&quot;,
1768 ],
1769 &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`.
1770 &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
1771 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1772 &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.
1773 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1774 &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 -08001775 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001776 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1777 &quot;a_key&quot;: &quot;A String&quot;,
1778 },
1779 &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
1780 },
1781}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001782</div>
1783
1784<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001785 <code class="details" id="run">run(projectId, triggerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001786 <pre>Runs a `BuildTrigger` at a particular source revision.
1787
1788Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001789 projectId: string, Required. ID of the project. (required)
1790 triggerId: string, Required. ID of the trigger. (required)
1791 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001792 The object takes the form of:
1793
1794{ # Location of the source in a Google Cloud Source Repository.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001795 &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 -08001796 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1797 &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.
1798 &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 -08001799 &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 -08001800 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001801 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1802 &quot;a_key&quot;: &quot;A String&quot;,
1803 },
1804 &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 -07001805}
1806
1807 x__xgafv: string, V1 error format.
1808 Allowed values
1809 1 - v1 error format
1810 2 - v2 error format
1811
1812Returns:
1813 An object of the form:
1814
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001815 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001816 &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.
1817 &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.
1818 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1819 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1820 {
1821 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1822 },
1823 ],
1824 &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.
1825 },
1826 &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.
1827 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1828 },
1829 &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}`.
1830 &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`.
1831 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1832 },
1833}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001834</div>
1835
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001836<div class="method">
1837 <code class="details" id="webhook">webhook(projectId, trigger, body=None, secret=None, x__xgafv=None)</code>
1838 <pre>ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.
1839
1840Args:
1841 projectId: string, Project in which the specified trigger lives (required)
1842 trigger: string, Name of the trigger to run the payload against (required)
1843 body: object, The request body.
1844 The object takes the form of:
1845
1846{ # 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.
1847 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
1848 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
1849 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
1850 {
1851 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1852 },
1853 ],
1854}
1855
1856 secret: string, Secret token used for authorization if an OAuth token isn&#x27;t provided.
1857 x__xgafv: string, V1 error format.
1858 Allowed values
1859 1 - v1 error format
1860 2 - v2 error format
1861
1862Returns:
1863 An object of the form:
1864
1865 { # ReceiveTriggerWebhookResponse [Experimental] is the response object for the ReceiveTriggerWebhook method.
1866}</pre>
1867</div>
1868
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001869</body></html>