Debian Codegraph @

docs/dyn/cloudbuild_v1.projects.triggers.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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
75 <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>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(projectId, body, parent=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new `BuildTrigger`.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(projectId, triggerId, name=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a `BuildTrigger` by its project ID and trigger ID.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(projectId, triggerId, name=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Returns information about a `BuildTrigger`.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(projectId, pageSize=None, pageToken=None, parent=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists existing `BuildTrigger`s.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(projectId, triggerId, body, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a `BuildTrigger` by its project ID and trigger ID.</p>
98 <p class="toc_element">
99 <code><a href="#run">run(projectId, triggerId, body=None, name=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex. v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global triggers.</p>
101 <p class="toc_element">
102 <code><a href="#webhook">webhook(projectId, trigger, body=None, name=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>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="create">create(projectId, body, parent=None, x__xgafv=None)</code>
112 <pre>Creates a new `BuildTrigger`.
113
114 Args:
115 projectId: string, Required. ID of the project for which to configure automatic builds. (required)
116 body: object, The request body.
117 The object takes the form of:
118
119 { # Configuration for an automated build in response to source repository changes.
120 &quot;approvalConfig&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Configuration for manual approval to start a build invocation of this BuildTrigger.
121 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
122 },
123 &quot;autodetect&quot;: True or False, # Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
124 &quot;bitbucketServerTriggerConfig&quot;: { # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received. # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.
125 &quot;bitbucketServerConfig&quot;: { # BitbucketServerConfig represents the configuration for a Bitbucket Server. # Output only. The BitbucketServerConfig specified in the bitbucket_server_config_resource field.
126 &quot;apiKey&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
127 &quot;connectedRepositories&quot;: [ # Output only. Connected Bitbucket Server repositories for this config.
128 { # BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.
129 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Identifier for the project storing the repository.
130 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Identifier for the repository.
131 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
132 },
133 ],
134 &quot;createTime&quot;: &quot;A String&quot;, # Time when the config was created.
135 &quot;hostUri&quot;: &quot;A String&quot;, # Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
136 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
137 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
138 &quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # Immutable. IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a 29 bit prefix size. `/16` would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of `/24` will be used. The field only has an effect if peered_network is set.
139 &quot;secrets&quot;: { # BitbucketServerSecrets represents the secrets in Secret Manager for a Bitbucket Server. # Required. Secret Manager secrets needed by the config.
140 &quot;adminAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the admin access token&#x27;s secret version.
141 &quot;readAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the read access token&#x27;s secret version.
142 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret&#x27;s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
143 },
144 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.
145 &quot;username&quot;: &quot;A String&quot;, # Username of the account Cloud Build will use on Bitbucket Server.
146 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
147 },
148 &quot;bitbucketServerConfigResource&quot;: &quot;A String&quot;, # Required. The Bitbucket server config resource that this trigger config maps to.
149 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is &quot;TEST&quot;.
150 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
151 &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
152 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
153 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
154 },
155 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
156 &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
157 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
158 &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
159 },
160 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if the repository name is &#x27;test repo&#x27;, in the URL it would become &#x27;test-repo&#x27; as in https://mybitbucket.server/projects/TEST/repos/test-repo.
161 },
162 &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. - $LOCATION: the location/region 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.
163 &quot;approval&quot;: { # BuildApproval describes a build&#x27;s approval configuration, state, and result. # Output only. Describes this build&#x27;s approval configuration, status, and result.
164 &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
165 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
166 },
167 &quot;result&quot;: { # ApprovalResult describes the decision and associated metadata of a manual approval of a build. # Output only. Result of manual approval for this Build.
168 &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
169 &quot;approverAccount&quot;: &quot;A String&quot;, # Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
170 &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
171 &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
172 &quot;url&quot;: &quot;A String&quot;, # Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
173 },
174 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
175 },
176 &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.
177 &quot;genericArtifacts&quot;: [ # Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE.
178 { # Generic artifact to upload to Artifact Registry upon successful completion of all build steps.
179 &quot;folder&quot;: &quot;A String&quot;, # Required. Path to the generic artifact in the build&#x27;s workspace to be uploaded to Artifact Registry.
180 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION
181 },
182 ],
183 &quot;goModules&quot;: [ # Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.
184 { # Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.
185 &quot;modulePath&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s &quot;module path&quot;. e.g. example.com/foo/v2
186 &quot;moduleVersion&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
187 &quot;repositoryLocation&quot;: &quot;A String&quot;, # Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.
188 &quot;repositoryName&quot;: &quot;A String&quot;, # Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo
189 &quot;repositoryProjectId&quot;: &quot;A String&quot;, # Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
190 &quot;sourcePath&quot;: &quot;A String&quot;, # Optional. Source path of the go.mod file in the build&#x27;s workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage
191 },
192 ],
193 &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.
194 &quot;A String&quot;,
195 ],
196 &quot;mavenArtifacts&quot;: [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
197 { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
198 &quot;artifactId&quot;: &quot;A String&quot;, # Maven `artifactId` value used when uploading the artifact to Artifact Registry.
199 &quot;deployFolder&quot;: &quot;A String&quot;, # Optional. Path to a folder containing the files to upload to Artifact Registry. This can be either an absolute path, e.g. `/workspace/my-app/target/`, or a relative path from /workspace, e.g. `my-app/target/`. This field is mutually exclusive with the `path` field.
200 &quot;groupId&quot;: &quot;A String&quot;, # Maven `groupId` value used when uploading the artifact to Artifact Registry.
201 &quot;path&quot;: &quot;A String&quot;, # Optional. Path to an artifact in the build&#x27;s workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
202 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY&quot; Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
203 &quot;version&quot;: &quot;A String&quot;, # Maven `version` value used when uploading the artifact to Artifact Registry.
204 },
205 ],
206 &quot;npmPackages&quot;: [ # A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any packages fail to be pushed, the build is marked FAILURE.
207 { # Npm package to upload to Artifact Registry upon successful completion of all build steps.
208 &quot;packagePath&quot;: &quot;A String&quot;, # Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.
209 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY&quot; Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
210 },
211 ],
212 &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.
213 &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.
214 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
215 &quot;A String&quot;,
216 ],
217 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
218 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
219 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
220 },
221 },
222 &quot;oci&quot;: [ # Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion of all build steps. OCI images in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any images fail to be pushed, the build is marked FAILURE.
223 { # OCI image to upload to Artifact Registry upon successful completion of all build steps.
224 &quot;file&quot;: &quot;A String&quot;, # Required. Path on the local file system where to find the container to upload. e.g. /workspace/my-image.tar
225 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the container to. e.g. us-east1-docker.pkg.dev/my-project/my-repo/my-image
226 &quot;tags&quot;: [ # Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
227 &quot;A String&quot;,
228 ],
229 },
230 ],
231 &quot;pythonPackages&quot;: [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.
232 { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
233 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
234 &quot;A String&quot;,
235 ],
236 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY&quot; Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
237 },
238 ],
239 },
240 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
241 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
242 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
243 &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.
244 &quot;a_key&quot;: &quot;A String&quot;,
245 },
246 &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/*
247 },
248 ],
249 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
250 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
251 &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.
252 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
253 },
254 ],
255 },
256 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
257 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
258 &quot;dependencies&quot;: [ # Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
259 { # A dependency that the Cloud Build worker will fetch before executing user steps.
260 &quot;empty&quot;: True or False, # If set to true disable all dependency fetching (ignoring the default source as well).
261 &quot;genericArtifact&quot;: { # Represents a generic artifact as a build dependency. # Represents a generic artifact as a build dependency.
262 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where the artifact files should be placed on the worker.
263 &quot;resource&quot;: &quot;A String&quot;, # Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
264 },
265 &quot;gitSource&quot;: { # Represents a git repository as a build dependency. # Represents a git repository as a build dependency.
266 &quot;depth&quot;: &quot;A String&quot;, # Optional. How much history should be fetched for the build (default 1, -1 for all history).
267 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where should the files be placed on the worker.
268 &quot;recurseSubmodules&quot;: True or False, # Optional. True if submodules should be fetched too (default false).
269 &quot;repository&quot;: { # A repository for a git source. # Required. The kind of repo (url or dev connect).
270 &quot;developerConnect&quot;: &quot;A String&quot;, # The Developer Connect Git repository link formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`
271 &quot;url&quot;: &quot;A String&quot;, # Location of the Git repository.
272 },
273 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision that we will fetch the repo at.
274 },
275 },
276 ],
277 &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
278 &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
279 &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
280 },
281 &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.
282 &quot;gitConfig&quot;: { # GitConfig is a configuration for git operations. # Optional. Configuration for git operations.
283 &quot;http&quot;: { # HttpConfig is a configuration for HTTP related git operations. # Configuration for HTTP related git operations.
284 &quot;proxySecretVersionName&quot;: &quot;A String&quot;, # SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.
285 },
286 },
287 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
288 &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`.
289 &quot;A String&quot;,
290 ],
291 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
292 &quot;logsBucket&quot;: &quot;A String&quot;, # 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`.
293 &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.
294 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
295 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for all build steps.
296 &quot;defaultLogsBucketBehavior&quot;: &quot;A String&quot;, # Optional. Option to specify how default logs buckets are setup.
297 &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 4000GB; builds that request more than the maximum are rejected with an error.
298 &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.
299 &quot;enableStructuredLogging&quot;: True or False, # Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.
300 &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;.
301 &quot;A String&quot;,
302 ],
303 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Cloud Storage.
304 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
305 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
306 &quot;pool&quot;: { # Details about how a build should be executed on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. # Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
307 &quot;name&quot;: &quot;A String&quot;, # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}
308 },
309 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. Option to specify the Pub/Sub topic to receive build status updates.
310 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
311 &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.
312 &quot;A String&quot;,
313 ],
314 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
315 &quot;A String&quot;,
316 ],
317 &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.
318 &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.
319 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
320 &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.
321 &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.
322 },
323 ],
324 &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
325 },
326 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
327 &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.
328 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
329 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
330 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts to Cloud Storage.
331 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
332 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
333 },
334 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
335 &quot;A String&quot;,
336 ],
337 &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 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can&#x27;t be substituted.
338 &quot;A String&quot;,
339 ],
340 &quot;buildStepResults&quot;: { # Results for build steps. step_id -&gt;
341 &quot;a_key&quot;: { # Results for a build step.
342 &quot;results&quot;: { # Results for a build step.
343 &quot;a_key&quot;: &quot;A String&quot;,
344 },
345 },
346 },
347 &quot;genericArtifacts&quot;: [ # Output only. Generic artifacts uploaded to Artifact Registry at the end of the build.
348 { # A generic artifact uploaded to Artifact Registry using the GenericArtifact directive.
349 &quot;artifactFingerprint&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Output only. The hash of the whole artifact.
350 &quot;fileHash&quot;: [ # Collection of file hashes.
351 { # Container message for hash values.
352 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
353 &quot;value&quot;: &quot;A String&quot;, # The hash value.
354 },
355 ],
356 },
357 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
358 &quot;fileHashes&quot;: { # Output only. The file hashes that make up the generic artifact.
359 &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.
360 &quot;fileHash&quot;: [ # Collection of file hashes.
361 { # Container message for hash values.
362 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
363 &quot;value&quot;: &quot;A String&quot;, # The hash value.
364 },
365 ],
366 },
367 },
368 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
369 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
370 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
371 },
372 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
373 },
374 ],
375 &quot;goModules&quot;: [ # Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.
376 { # A Go module artifact uploaded to Artifact Registry using the GoModule directive.
377 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
378 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Go Module Artifact.
379 &quot;fileHash&quot;: [ # Collection of file hashes.
380 { # Container message for hash values.
381 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
382 &quot;value&quot;: &quot;A String&quot;, # The hash value.
383 },
384 ],
385 },
386 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
387 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
388 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
389 },
390 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
391 },
392 ],
393 &quot;images&quot;: [ # Container images that were built as a part of the build.
394 { # An image built by the pipeline.
395 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
396 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
397 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
398 &quot;ociMediaType&quot;: &quot;A String&quot;, # Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value.
399 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
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 ],
405 &quot;mavenArtifacts&quot;: [ # Maven artifacts uploaded to Artifact Registry at the end of the build.
406 { # A Maven artifact uploaded using the MavenArtifact directive.
407 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
408 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact.
409 &quot;fileHash&quot;: [ # Collection of file hashes.
410 { # Container message for hash values.
411 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
412 &quot;value&quot;: &quot;A String&quot;, # The hash value.
413 },
414 ],
415 },
416 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
417 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
418 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
419 },
420 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
421 },
422 ],
423 &quot;npmPackages&quot;: [ # Npm packages uploaded to Artifact Registry at the end of the build.
424 { # An npm package uploaded to Artifact Registry using the NpmPackage directive.
425 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
426 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the npm package.
427 &quot;fileHash&quot;: [ # Collection of file hashes.
428 { # Container message for hash values.
429 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
430 &quot;value&quot;: &quot;A String&quot;, # The hash value.
431 },
432 ],
433 },
434 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
435 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
436 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
437 },
438 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded npm package.
439 },
440 ],
441 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
442 &quot;pythonPackages&quot;: [ # Python artifacts uploaded to Artifact Registry at the end of the build.
443 { # Artifact uploaded using the PythonPackage directive.
444 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
445 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact.
446 &quot;fileHash&quot;: [ # Collection of file hashes.
447 { # Container message for hash values.
448 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
449 &quot;value&quot;: &quot;A String&quot;, # The hash value.
450 },
451 ],
452 },
453 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
454 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
455 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
456 },
457 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
458 },
459 ],
460 },
461 &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
462 { # 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.
463 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
464 &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.
465 &quot;a_key&quot;: &quot;A String&quot;,
466 },
467 },
468 ],
469 &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.
470 &quot;source&quot;: { # Location of the source in a supported storage service. # Optional. The location of the source files to build.
471 &quot;connectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource.
472 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
473 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
474 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
475 },
476 &quot;developerConnectConfig&quot;: { # This config defines the location of a source through Developer Connect. # If provided, get the source from this Developer Connect config.
477 &quot;dir&quot;: &quot;A String&quot;, # Required. Directory, relative to the source root, in which to run the build.
478 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
479 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
480 },
481 &quot;gitSource&quot;: { # Location of the source in any accessible Git repository. # If provided, get the source from this Git repository.
482 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
483 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
484 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
485 },
486 &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.
487 &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
488 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
489 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
490 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
491 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
492 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
493 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
494 &quot;a_key&quot;: &quot;A String&quot;,
495 },
496 &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
497 },
498 &quot;storageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # If provided, get the source from this location in Cloud Storage.
499 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
500 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
501 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
502 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
503 },
504 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
505 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
506 &quot;generation&quot;: &quot;A String&quot;, # 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;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
508 },
509 },
510 &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.
511 &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.
512 &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.
513 &quot;fileHash&quot;: [ # Collection of file hashes.
514 { # Container message for hash values.
515 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
516 &quot;value&quot;: &quot;A String&quot;, # The hash value.
517 },
518 ],
519 },
520 },
521 &quot;resolvedConnectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Output only. A copy of the build&#x27;s `source.connected_repository`, if exists, with any revisions resolved.
522 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
523 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
524 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
525 },
526 &quot;resolvedGitSource&quot;: { # Location of the source in any accessible Git repository. # Output only. A copy of the build&#x27;s `source.git_source`, if exists, with any revisions resolved.
527 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
528 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
529 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
530 },
531 &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.
532 &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
533 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
534 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
535 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
536 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
537 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
538 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
539 &quot;a_key&quot;: &quot;A String&quot;,
540 },
541 &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
542 },
543 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
544 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
545 &quot;generation&quot;: &quot;A String&quot;, # Optional. 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;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
547 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
548 },
549 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
550 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
551 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
552 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
553 },
554 },
555 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
556 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
557 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
558 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
559 { # A step in the build pipeline.
560 &quot;allowExitCodes&quot;: [ # Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
561 42,
562 ],
563 &quot;allowFailure&quot;: True or False, # Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
564 &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.
565 &quot;A String&quot;,
566 ],
567 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
568 &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.
569 &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.
570 &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;.
571 &quot;A String&quot;,
572 ],
573 &quot;exitCode&quot;: 42, # Output only. Return code from running the step.
574 &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.
575 &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.
576 &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.
577 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
578 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
579 },
580 &quot;results&quot;: [ # Declaration of results for this build step.
581 { # StepResult is the declaration of a result for a build step.
582 &quot;attestationContent&quot;: &quot;A String&quot;, # Optional. The content of the attestation to be generated.
583 &quot;attestationType&quot;: &quot;A String&quot;, # Optional. The type of attestation to be generated.
584 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the result.
585 },
586 ],
587 &quot;script&quot;: &quot;A String&quot;, # A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
588 &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`.
589 &quot;A String&quot;,
590 ],
591 &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.
592 &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.
593 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
594 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
595 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
596 },
597 &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.
598 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
599 &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.
600 &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.
601 },
602 ],
603 &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.
604 &quot;A String&quot;,
605 ],
606 },
607 ],
608 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
609 &quot;a_key&quot;: &quot;A String&quot;,
610 },
611 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
612 &quot;A String&quot;,
613 ],
614 &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 60 minutes.
615 &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 artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
616 &quot;a_key&quot;: { # Start and end times for a build execution phase.
617 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
618 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
619 },
620 },
621 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
622 { # A non-fatal problem encountered during the execution of the build.
623 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
624 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
625 },
626 ],
627 },
628 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
629 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
630 &quot;developerConnectEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received. # Optional. The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received.
631 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
632 &quot;gitRepositoryLinkType&quot;: &quot;A String&quot;, # Output only. The type of DeveloperConnect GitRepositoryLink.
633 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
634 &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
635 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
636 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
637 },
638 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches and tags.
639 &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
640 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
641 &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
642 },
643 },
644 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
645 &quot;eventType&quot;: &quot;A String&quot;, # EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set.
646 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
647 &quot;filter&quot;: &quot;A String&quot;, # A Common Expression Language string.
648 &quot;gitFileSource&quot;: { # GitFileSource describes a file within a (possibly remote) code repository. # The file source describing the local or remote Build template.
649 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
650 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
651 &quot;path&quot;: &quot;A String&quot;, # The path of the file, with the repo root as the root of the path.
652 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType above.
653 &quot;repository&quot;: &quot;A String&quot;, # The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
654 &quot;revision&quot;: &quot;A String&quot;, # The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
655 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
656 },
657 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
658 &quot;enterpriseConfigResourceName&quot;: &quot;A String&quot;, # The resource name of the github enterprise config that should be applied to this installation. For example: &quot;projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}&quot;
659 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
660 &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;.
661 &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;.
662 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
663 &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
664 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
665 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
666 },
667 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
668 &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
669 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
670 &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
671 },
672 },
673 &quot;gitlabEnterpriseEventsConfig&quot;: { # GitLabEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab event is received. # GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.
674 &quot;gitlabConfig&quot;: { # GitLabConfig represents the configuration for a GitLab integration. # Output only. The GitLabConfig specified in the gitlab_config_resource field.
675 &quot;connectedRepositories&quot;: [ # Connected GitLab.com or GitLabEnterprise repositories for this config.
676 { # GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise
677 &quot;id&quot;: &quot;A String&quot;, # Required. Identifier for the repository. example: &quot;namespace/project-slug&quot;, namespace is usually the username or group ID
678 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
679 },
680 ],
681 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the config was created.
682 &quot;enterpriseConfig&quot;: { # GitLabEnterpriseConfig represents the configuration for a GitLabEnterprise integration. # Optional. GitLabEnterprise config.
683 &quot;hostUri&quot;: &quot;A String&quot;, # Immutable. The URI of the GitlabEnterprise host.
684 &quot;serviceDirectoryConfig&quot;: { # ServiceDirectoryConfig represents Service Directory configuration for a SCM host connection. # The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
685 &quot;service&quot;: &quot;A String&quot;, # The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
686 },
687 &quot;sslCa&quot;: &quot;A String&quot;, # The SSL certificate to use in requests to GitLab Enterprise instances.
688 },
689 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
690 &quot;secrets&quot;: { # GitLabSecrets represents the secrets in Secret Manager for a GitLab integration. # Required. Secret Manager secrets needed by the config.
691 &quot;apiAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the api access token’s secret version
692 &quot;apiKeyVersion&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
693 &quot;readAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the read access token’s secret version
694 &quot;webhookSecretVersion&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
695 },
696 &quot;username&quot;: &quot;A String&quot;, # Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
697 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
698 },
699 &quot;gitlabConfigResource&quot;: &quot;A String&quot;, # The GitLab config resource that this trigger config maps to.
700 &quot;projectNamespace&quot;: &quot;A String&quot;, # Namespace of the GitLab project.
701 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
702 &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
703 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
704 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
705 },
706 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
707 &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
708 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
709 &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
710 },
711 },
712 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
713 &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.
714 &quot;A String&quot;,
715 ],
716 &quot;includeBuildLogs&quot;: &quot;A String&quot;, # If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error.
717 &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.
718 &quot;A String&quot;,
719 ],
720 &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.
721 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
722 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
723 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
724 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
725 &quot;topic&quot;: &quot;A String&quot;, # Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
726 },
727 &quot;repositoryEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from Repo API is received. # The configuration of a trigger that creates a build whenever an event from Repo API is received.
728 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
729 &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
730 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
731 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
732 },
733 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
734 &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
735 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
736 &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
737 },
738 &quot;repository&quot;: &quot;A String&quot;, # The resource name of the Repo API resource.
739 &quot;repositoryType&quot;: &quot;A String&quot;, # Output only. The type of the SCM vendor the repository points to.
740 },
741 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
742 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account ([PROJECT_NUM]@cloudbuild.gserviceaccount.com) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
743 &quot;sourceToBuild&quot;: { # GitRepoSource describes a repo and ref of a code repository. # The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
744 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
745 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
746 &quot;ref&quot;: &quot;A String&quot;, # The branch or tag to use. Must start with &quot;refs/&quot; (required).
747 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType below.
748 &quot;repository&quot;: &quot;A String&quot;, # The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
749 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
750 },
751 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
752 &quot;a_key&quot;: &quot;A String&quot;,
753 },
754 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
755 &quot;A String&quot;,
756 ],
757 &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`.
758 &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
759 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
760 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
761 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
762 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
763 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
764 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
765 &quot;a_key&quot;: &quot;A String&quot;,
766 },
767 &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
768 },
769 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
770 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
771 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
772 },
773 }
774
775 parent: string, The parent resource where this trigger will be created. Format: `projects/{project}/locations/{location}`
776 x__xgafv: string, V1 error format.
777 Allowed values
778 1 - v1 error format
779 2 - v2 error format
780
781 Returns:
782 An object of the form:
783
784 { # Configuration for an automated build in response to source repository changes.
785 &quot;approvalConfig&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Configuration for manual approval to start a build invocation of this BuildTrigger.
786 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
787 },
788 &quot;autodetect&quot;: True or False, # Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
789 &quot;bitbucketServerTriggerConfig&quot;: { # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received. # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.
790 &quot;bitbucketServerConfig&quot;: { # BitbucketServerConfig represents the configuration for a Bitbucket Server. # Output only. The BitbucketServerConfig specified in the bitbucket_server_config_resource field.
791 &quot;apiKey&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
792 &quot;connectedRepositories&quot;: [ # Output only. Connected Bitbucket Server repositories for this config.
793 { # BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.
794 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Identifier for the project storing the repository.
795 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Identifier for the repository.
796 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
797 },
798 ],
799 &quot;createTime&quot;: &quot;A String&quot;, # Time when the config was created.
800 &quot;hostUri&quot;: &quot;A String&quot;, # Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
801 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
802 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
803 &quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # Immutable. IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a 29 bit prefix size. `/16` would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of `/24` will be used. The field only has an effect if peered_network is set.
804 &quot;secrets&quot;: { # BitbucketServerSecrets represents the secrets in Secret Manager for a Bitbucket Server. # Required. Secret Manager secrets needed by the config.
805 &quot;adminAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the admin access token&#x27;s secret version.
806 &quot;readAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the read access token&#x27;s secret version.
807 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret&#x27;s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
808 },
809 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.
810 &quot;username&quot;: &quot;A String&quot;, # Username of the account Cloud Build will use on Bitbucket Server.
811 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
812 },
813 &quot;bitbucketServerConfigResource&quot;: &quot;A String&quot;, # Required. The Bitbucket server config resource that this trigger config maps to.
814 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is &quot;TEST&quot;.
815 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
816 &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
817 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
818 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
819 },
820 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
821 &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
822 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
823 &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
824 },
825 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if the repository name is &#x27;test repo&#x27;, in the URL it would become &#x27;test-repo&#x27; as in https://mybitbucket.server/projects/TEST/repos/test-repo.
826 },
827 &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. - $LOCATION: the location/region 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.
828 &quot;approval&quot;: { # BuildApproval describes a build&#x27;s approval configuration, state, and result. # Output only. Describes this build&#x27;s approval configuration, status, and result.
829 &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
830 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
831 },
832 &quot;result&quot;: { # ApprovalResult describes the decision and associated metadata of a manual approval of a build. # Output only. Result of manual approval for this Build.
833 &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
834 &quot;approverAccount&quot;: &quot;A String&quot;, # Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
835 &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
836 &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
837 &quot;url&quot;: &quot;A String&quot;, # Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
838 },
839 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
840 },
841 &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.
842 &quot;genericArtifacts&quot;: [ # Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE.
843 { # Generic artifact to upload to Artifact Registry upon successful completion of all build steps.
844 &quot;folder&quot;: &quot;A String&quot;, # Required. Path to the generic artifact in the build&#x27;s workspace to be uploaded to Artifact Registry.
845 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION
846 },
847 ],
848 &quot;goModules&quot;: [ # Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.
849 { # Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.
850 &quot;modulePath&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s &quot;module path&quot;. e.g. example.com/foo/v2
851 &quot;moduleVersion&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
852 &quot;repositoryLocation&quot;: &quot;A String&quot;, # Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.
853 &quot;repositoryName&quot;: &quot;A String&quot;, # Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo
854 &quot;repositoryProjectId&quot;: &quot;A String&quot;, # Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
855 &quot;sourcePath&quot;: &quot;A String&quot;, # Optional. Source path of the go.mod file in the build&#x27;s workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage
856 },
857 ],
858 &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.
859 &quot;A String&quot;,
860 ],
861 &quot;mavenArtifacts&quot;: [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
862 { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
863 &quot;artifactId&quot;: &quot;A String&quot;, # Maven `artifactId` value used when uploading the artifact to Artifact Registry.
864 &quot;deployFolder&quot;: &quot;A String&quot;, # Optional. Path to a folder containing the files to upload to Artifact Registry. This can be either an absolute path, e.g. `/workspace/my-app/target/`, or a relative path from /workspace, e.g. `my-app/target/`. This field is mutually exclusive with the `path` field.
865 &quot;groupId&quot;: &quot;A String&quot;, # Maven `groupId` value used when uploading the artifact to Artifact Registry.
866 &quot;path&quot;: &quot;A String&quot;, # Optional. Path to an artifact in the build&#x27;s workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
867 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY&quot; Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
868 &quot;version&quot;: &quot;A String&quot;, # Maven `version` value used when uploading the artifact to Artifact Registry.
869 },
870 ],
871 &quot;npmPackages&quot;: [ # A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any packages fail to be pushed, the build is marked FAILURE.
872 { # Npm package to upload to Artifact Registry upon successful completion of all build steps.
873 &quot;packagePath&quot;: &quot;A String&quot;, # Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.
874 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY&quot; Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
875 },
876 ],
877 &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.
878 &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.
879 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
880 &quot;A String&quot;,
881 ],
882 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
883 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
884 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
885 },
886 },
887 &quot;oci&quot;: [ # Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion of all build steps. OCI images in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any images fail to be pushed, the build is marked FAILURE.
888 { # OCI image to upload to Artifact Registry upon successful completion of all build steps.
889 &quot;file&quot;: &quot;A String&quot;, # Required. Path on the local file system where to find the container to upload. e.g. /workspace/my-image.tar
890 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the container to. e.g. us-east1-docker.pkg.dev/my-project/my-repo/my-image
891 &quot;tags&quot;: [ # Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
892 &quot;A String&quot;,
893 ],
894 },
895 ],
896 &quot;pythonPackages&quot;: [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.
897 { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
898 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
899 &quot;A String&quot;,
900 ],
901 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY&quot; Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
902 },
903 ],
904 },
905 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
906 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
907 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
908 &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.
909 &quot;a_key&quot;: &quot;A String&quot;,
910 },
911 &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/*
912 },
913 ],
914 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
915 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
916 &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.
917 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
918 },
919 ],
920 },
921 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
922 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
923 &quot;dependencies&quot;: [ # Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
924 { # A dependency that the Cloud Build worker will fetch before executing user steps.
925 &quot;empty&quot;: True or False, # If set to true disable all dependency fetching (ignoring the default source as well).
926 &quot;genericArtifact&quot;: { # Represents a generic artifact as a build dependency. # Represents a generic artifact as a build dependency.
927 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where the artifact files should be placed on the worker.
928 &quot;resource&quot;: &quot;A String&quot;, # Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
929 },
930 &quot;gitSource&quot;: { # Represents a git repository as a build dependency. # Represents a git repository as a build dependency.
931 &quot;depth&quot;: &quot;A String&quot;, # Optional. How much history should be fetched for the build (default 1, -1 for all history).
932 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where should the files be placed on the worker.
933 &quot;recurseSubmodules&quot;: True or False, # Optional. True if submodules should be fetched too (default false).
934 &quot;repository&quot;: { # A repository for a git source. # Required. The kind of repo (url or dev connect).
935 &quot;developerConnect&quot;: &quot;A String&quot;, # The Developer Connect Git repository link formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`
936 &quot;url&quot;: &quot;A String&quot;, # Location of the Git repository.
937 },
938 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision that we will fetch the repo at.
939 },
940 },
941 ],
942 &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
943 &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
944 &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
945 },
946 &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.
947 &quot;gitConfig&quot;: { # GitConfig is a configuration for git operations. # Optional. Configuration for git operations.
948 &quot;http&quot;: { # HttpConfig is a configuration for HTTP related git operations. # Configuration for HTTP related git operations.
949 &quot;proxySecretVersionName&quot;: &quot;A String&quot;, # SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.
950 },
951 },
952 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
953 &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`.
954 &quot;A String&quot;,
955 ],
956 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
957 &quot;logsBucket&quot;: &quot;A String&quot;, # 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`.
958 &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.
959 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
960 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for all build steps.
961 &quot;defaultLogsBucketBehavior&quot;: &quot;A String&quot;, # Optional. Option to specify how default logs buckets are setup.
962 &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 4000GB; builds that request more than the maximum are rejected with an error.
963 &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.
964 &quot;enableStructuredLogging&quot;: True or False, # Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.
965 &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;.
966 &quot;A String&quot;,
967 ],
968 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Cloud Storage.
969 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
970 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
971 &quot;pool&quot;: { # Details about how a build should be executed on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. # Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
972 &quot;name&quot;: &quot;A String&quot;, # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}
973 },
974 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. Option to specify the Pub/Sub topic to receive build status updates.
975 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
976 &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.
977 &quot;A String&quot;,
978 ],
979 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
980 &quot;A String&quot;,
981 ],
982 &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.
983 &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.
984 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
985 &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.
986 &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.
987 },
988 ],
989 &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
990 },
991 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
992 &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.
993 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
994 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
995 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts to Cloud Storage.
996 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
997 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
998 },
999 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1000 &quot;A String&quot;,
1001 ],
1002 &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 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can&#x27;t be substituted.
1003 &quot;A String&quot;,
1004 ],
1005 &quot;buildStepResults&quot;: { # Results for build steps. step_id -&gt;
1006 &quot;a_key&quot;: { # Results for a build step.
1007 &quot;results&quot;: { # Results for a build step.
1008 &quot;a_key&quot;: &quot;A String&quot;,
1009 },
1010 },
1011 },
1012 &quot;genericArtifacts&quot;: [ # Output only. Generic artifacts uploaded to Artifact Registry at the end of the build.
1013 { # A generic artifact uploaded to Artifact Registry using the GenericArtifact directive.
1014 &quot;artifactFingerprint&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Output only. The hash of the whole artifact.
1015 &quot;fileHash&quot;: [ # Collection of file hashes.
1016 { # Container message for hash values.
1017 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1018 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1019 },
1020 ],
1021 },
1022 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1023 &quot;fileHashes&quot;: { # Output only. The file hashes that make up the generic artifact.
1024 &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.
1025 &quot;fileHash&quot;: [ # Collection of file hashes.
1026 { # Container message for hash values.
1027 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1028 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1029 },
1030 ],
1031 },
1032 },
1033 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1034 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1035 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1036 },
1037 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
1038 },
1039 ],
1040 &quot;goModules&quot;: [ # Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.
1041 { # A Go module artifact uploaded to Artifact Registry using the GoModule directive.
1042 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1043 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Go Module Artifact.
1044 &quot;fileHash&quot;: [ # Collection of file hashes.
1045 { # Container message for hash values.
1046 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1047 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1048 },
1049 ],
1050 },
1051 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
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 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
1056 },
1057 ],
1058 &quot;images&quot;: [ # Container images that were built as a part of the build.
1059 { # An image built by the pipeline.
1060 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1061 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1062 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1063 &quot;ociMediaType&quot;: &quot;A String&quot;, # Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value.
1064 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1065 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1066 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1067 },
1068 },
1069 ],
1070 &quot;mavenArtifacts&quot;: [ # Maven artifacts uploaded to Artifact Registry at the end of the build.
1071 { # A Maven artifact uploaded using the MavenArtifact directive.
1072 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1073 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact.
1074 &quot;fileHash&quot;: [ # Collection of file hashes.
1075 { # Container message for hash values.
1076 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1077 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1078 },
1079 ],
1080 },
1081 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1082 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1083 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1084 },
1085 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
1086 },
1087 ],
1088 &quot;npmPackages&quot;: [ # Npm packages uploaded to Artifact Registry at the end of the build.
1089 { # An npm package uploaded to Artifact Registry using the NpmPackage directive.
1090 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1091 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the npm package.
1092 &quot;fileHash&quot;: [ # Collection of file hashes.
1093 { # Container message for hash values.
1094 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1095 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1096 },
1097 ],
1098 },
1099 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1100 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1101 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1102 },
1103 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded npm package.
1104 },
1105 ],
1106 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
1107 &quot;pythonPackages&quot;: [ # Python artifacts uploaded to Artifact Registry at the end of the build.
1108 { # Artifact uploaded using the PythonPackage directive.
1109 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1110 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact.
1111 &quot;fileHash&quot;: [ # Collection of file hashes.
1112 { # Container message for hash values.
1113 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1114 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1115 },
1116 ],
1117 },
1118 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1119 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1120 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1121 },
1122 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
1123 },
1124 ],
1125 },
1126 &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
1127 { # 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.
1128 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1129 &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.
1130 &quot;a_key&quot;: &quot;A String&quot;,
1131 },
1132 },
1133 ],
1134 &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.
1135 &quot;source&quot;: { # Location of the source in a supported storage service. # Optional. The location of the source files to build.
1136 &quot;connectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource.
1137 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
1138 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
1139 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
1140 },
1141 &quot;developerConnectConfig&quot;: { # This config defines the location of a source through Developer Connect. # If provided, get the source from this Developer Connect config.
1142 &quot;dir&quot;: &quot;A String&quot;, # Required. Directory, relative to the source root, in which to run the build.
1143 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
1144 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
1145 },
1146 &quot;gitSource&quot;: { # Location of the source in any accessible Git repository. # If provided, get the source from this Git repository.
1147 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1148 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
1149 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
1150 },
1151 &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.
1152 &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
1153 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1154 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1155 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
1156 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1157 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1158 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1159 &quot;a_key&quot;: &quot;A String&quot;,
1160 },
1161 &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
1162 },
1163 &quot;storageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # If provided, get the source from this location in Cloud Storage.
1164 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1165 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1166 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
1167 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
1168 },
1169 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
1170 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1171 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1172 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
1173 },
1174 },
1175 &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.
1176 &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.
1177 &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.
1178 &quot;fileHash&quot;: [ # Collection of file hashes.
1179 { # Container message for hash values.
1180 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1181 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1182 },
1183 ],
1184 },
1185 },
1186 &quot;resolvedConnectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Output only. A copy of the build&#x27;s `source.connected_repository`, if exists, with any revisions resolved.
1187 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
1188 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
1189 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
1190 },
1191 &quot;resolvedGitSource&quot;: { # Location of the source in any accessible Git repository. # Output only. A copy of the build&#x27;s `source.git_source`, if exists, with any revisions resolved.
1192 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1193 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
1194 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
1195 },
1196 &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.
1197 &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
1198 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1199 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1200 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
1201 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1202 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1203 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1204 &quot;a_key&quot;: &quot;A String&quot;,
1205 },
1206 &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
1207 },
1208 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1209 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1210 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1211 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
1212 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
1213 },
1214 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
1215 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1216 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1217 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
1218 },
1219 },
1220 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1221 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1222 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1223 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1224 { # A step in the build pipeline.
1225 &quot;allowExitCodes&quot;: [ # Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
1226 42,
1227 ],
1228 &quot;allowFailure&quot;: True or False, # Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
1229 &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.
1230 &quot;A String&quot;,
1231 ],
1232 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
1233 &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.
1234 &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.
1235 &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;.
1236 &quot;A String&quot;,
1237 ],
1238 &quot;exitCode&quot;: 42, # Output only. Return code from running the step.
1239 &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.
1240 &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.
1241 &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.
1242 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1243 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1244 },
1245 &quot;results&quot;: [ # Declaration of results for this build step.
1246 { # StepResult is the declaration of a result for a build step.
1247 &quot;attestationContent&quot;: &quot;A String&quot;, # Optional. The content of the attestation to be generated.
1248 &quot;attestationType&quot;: &quot;A String&quot;, # Optional. The type of attestation to be generated.
1249 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the result.
1250 },
1251 ],
1252 &quot;script&quot;: &quot;A String&quot;, # A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
1253 &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`.
1254 &quot;A String&quot;,
1255 ],
1256 &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.
1257 &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.
1258 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1259 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1260 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1261 },
1262 &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.
1263 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1264 &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.
1265 &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.
1266 },
1267 ],
1268 &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.
1269 &quot;A String&quot;,
1270 ],
1271 },
1272 ],
1273 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1274 &quot;a_key&quot;: &quot;A String&quot;,
1275 },
1276 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1277 &quot;A String&quot;,
1278 ],
1279 &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 60 minutes.
1280 &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 artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
1281 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1282 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1283 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1284 },
1285 },
1286 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1287 { # A non-fatal problem encountered during the execution of the build.
1288 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1289 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1290 },
1291 ],
1292 },
1293 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1294 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1295 &quot;developerConnectEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received. # Optional. The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received.
1296 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
1297 &quot;gitRepositoryLinkType&quot;: &quot;A String&quot;, # Output only. The type of DeveloperConnect GitRepositoryLink.
1298 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
1299 &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
1300 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
1301 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1302 },
1303 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches and tags.
1304 &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
1305 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1306 &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
1307 },
1308 },
1309 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
1310 &quot;eventType&quot;: &quot;A String&quot;, # EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set.
1311 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
1312 &quot;filter&quot;: &quot;A String&quot;, # A Common Expression Language string.
1313 &quot;gitFileSource&quot;: { # GitFileSource describes a file within a (possibly remote) code repository. # The file source describing the local or remote Build template.
1314 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
1315 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
1316 &quot;path&quot;: &quot;A String&quot;, # The path of the file, with the repo root as the root of the path.
1317 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType above.
1318 &quot;repository&quot;: &quot;A String&quot;, # The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
1319 &quot;revision&quot;: &quot;A String&quot;, # The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
1320 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
1321 },
1322 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
1323 &quot;enterpriseConfigResourceName&quot;: &quot;A String&quot;, # The resource name of the github enterprise config that should be applied to this installation. For example: &quot;projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}&quot;
1324 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1325 &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;.
1326 &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;.
1327 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1328 &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
1329 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
1330 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1331 },
1332 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1333 &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
1334 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1335 &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
1336 },
1337 },
1338 &quot;gitlabEnterpriseEventsConfig&quot;: { # GitLabEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab event is received. # GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.
1339 &quot;gitlabConfig&quot;: { # GitLabConfig represents the configuration for a GitLab integration. # Output only. The GitLabConfig specified in the gitlab_config_resource field.
1340 &quot;connectedRepositories&quot;: [ # Connected GitLab.com or GitLabEnterprise repositories for this config.
1341 { # GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise
1342 &quot;id&quot;: &quot;A String&quot;, # Required. Identifier for the repository. example: &quot;namespace/project-slug&quot;, namespace is usually the username or group ID
1343 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
1344 },
1345 ],
1346 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the config was created.
1347 &quot;enterpriseConfig&quot;: { # GitLabEnterpriseConfig represents the configuration for a GitLabEnterprise integration. # Optional. GitLabEnterprise config.
1348 &quot;hostUri&quot;: &quot;A String&quot;, # Immutable. The URI of the GitlabEnterprise host.
1349 &quot;serviceDirectoryConfig&quot;: { # ServiceDirectoryConfig represents Service Directory configuration for a SCM host connection. # The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
1350 &quot;service&quot;: &quot;A String&quot;, # The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
1351 },
1352 &quot;sslCa&quot;: &quot;A String&quot;, # The SSL certificate to use in requests to GitLab Enterprise instances.
1353 },
1354 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
1355 &quot;secrets&quot;: { # GitLabSecrets represents the secrets in Secret Manager for a GitLab integration. # Required. Secret Manager secrets needed by the config.
1356 &quot;apiAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the api access token’s secret version
1357 &quot;apiKeyVersion&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
1358 &quot;readAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the read access token’s secret version
1359 &quot;webhookSecretVersion&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
1360 },
1361 &quot;username&quot;: &quot;A String&quot;, # Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
1362 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
1363 },
1364 &quot;gitlabConfigResource&quot;: &quot;A String&quot;, # The GitLab config resource that this trigger config maps to.
1365 &quot;projectNamespace&quot;: &quot;A String&quot;, # Namespace of the GitLab project.
1366 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
1367 &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
1368 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
1369 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1370 },
1371 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
1372 &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
1373 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1374 &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
1375 },
1376 },
1377 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1378 &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.
1379 &quot;A String&quot;,
1380 ],
1381 &quot;includeBuildLogs&quot;: &quot;A String&quot;, # If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error.
1382 &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.
1383 &quot;A String&quot;,
1384 ],
1385 &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.
1386 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
1387 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1388 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1389 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1390 &quot;topic&quot;: &quot;A String&quot;, # Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
1391 },
1392 &quot;repositoryEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from Repo API is received. # The configuration of a trigger that creates a build whenever an event from Repo API is received.
1393 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
1394 &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
1395 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
1396 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1397 },
1398 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
1399 &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
1400 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1401 &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
1402 },
1403 &quot;repository&quot;: &quot;A String&quot;, # The resource name of the Repo API resource.
1404 &quot;repositoryType&quot;: &quot;A String&quot;, # Output only. The type of the SCM vendor the repository points to.
1405 },
1406 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
1407 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account ([PROJECT_NUM]@cloudbuild.gserviceaccount.com) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
1408 &quot;sourceToBuild&quot;: { # GitRepoSource describes a repo and ref of a code repository. # The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
1409 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
1410 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
1411 &quot;ref&quot;: &quot;A String&quot;, # The branch or tag to use. Must start with &quot;refs/&quot; (required).
1412 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType below.
1413 &quot;repository&quot;: &quot;A String&quot;, # The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
1414 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
1415 },
1416 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1417 &quot;a_key&quot;: &quot;A String&quot;,
1418 },
1419 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1420 &quot;A String&quot;,
1421 ],
1422 &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`.
1423 &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
1424 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1425 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1426 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
1427 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1428 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1429 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1430 &quot;a_key&quot;: &quot;A String&quot;,
1431 },
1432 &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
1433 },
1434 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
1435 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
1436 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1437 },
1438 }</pre>
1439 </div>
1440
1441 <div class="method">
1442 <code class="details" id="delete">delete(projectId, triggerId, name=None, x__xgafv=None)</code>
1443 <pre>Deletes a `BuildTrigger` by its project ID and trigger ID.
1444
1445 Args:
1446 projectId: string, Required. ID of the project that owns the trigger. (required)
1447 triggerId: string, Required. ID of the `BuildTrigger` to delete. (required)
1448 name: string, The name of the `Trigger` to delete. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
1449 x__xgafv: string, V1 error format.
1450 Allowed values
1451 1 - v1 error format
1452 2 - v2 error format
1453
1454 Returns:
1455 An object of the form:
1456
1457 { # 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); }
1458 }</pre>
1459 </div>
1460
1461 <div class="method">
1462 <code class="details" id="get">get(projectId, triggerId, name=None, x__xgafv=None)</code>
1463 <pre>Returns information about a `BuildTrigger`.
1464
1465 Args:
1466 projectId: string, Required. ID of the project that owns the trigger. (required)
1467 triggerId: string, Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. (required)
1468 name: string, The name of the `Trigger` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
1469 x__xgafv: string, V1 error format.
1470 Allowed values
1471 1 - v1 error format
1472 2 - v2 error format
1473
1474 Returns:
1475 An object of the form:
1476
1477 { # Configuration for an automated build in response to source repository changes.
1478 &quot;approvalConfig&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Configuration for manual approval to start a build invocation of this BuildTrigger.
1479 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
1480 },
1481 &quot;autodetect&quot;: True or False, # Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
1482 &quot;bitbucketServerTriggerConfig&quot;: { # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received. # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.
1483 &quot;bitbucketServerConfig&quot;: { # BitbucketServerConfig represents the configuration for a Bitbucket Server. # Output only. The BitbucketServerConfig specified in the bitbucket_server_config_resource field.
1484 &quot;apiKey&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
1485 &quot;connectedRepositories&quot;: [ # Output only. Connected Bitbucket Server repositories for this config.
1486 { # BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.
1487 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Identifier for the project storing the repository.
1488 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Identifier for the repository.
1489 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
1490 },
1491 ],
1492 &quot;createTime&quot;: &quot;A String&quot;, # Time when the config was created.
1493 &quot;hostUri&quot;: &quot;A String&quot;, # Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
1494 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
1495 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
1496 &quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # Immutable. IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a 29 bit prefix size. `/16` would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of `/24` will be used. The field only has an effect if peered_network is set.
1497 &quot;secrets&quot;: { # BitbucketServerSecrets represents the secrets in Secret Manager for a Bitbucket Server. # Required. Secret Manager secrets needed by the config.
1498 &quot;adminAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the admin access token&#x27;s secret version.
1499 &quot;readAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the read access token&#x27;s secret version.
1500 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret&#x27;s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
1501 },
1502 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.
1503 &quot;username&quot;: &quot;A String&quot;, # Username of the account Cloud Build will use on Bitbucket Server.
1504 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
1505 },
1506 &quot;bitbucketServerConfigResource&quot;: &quot;A String&quot;, # Required. The Bitbucket server config resource that this trigger config maps to.
1507 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is &quot;TEST&quot;.
1508 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
1509 &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
1510 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
1511 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1512 },
1513 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
1514 &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
1515 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1516 &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
1517 },
1518 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if the repository name is &#x27;test repo&#x27;, in the URL it would become &#x27;test-repo&#x27; as in https://mybitbucket.server/projects/TEST/repos/test-repo.
1519 },
1520 &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. - $LOCATION: the location/region 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.
1521 &quot;approval&quot;: { # BuildApproval describes a build&#x27;s approval configuration, state, and result. # Output only. Describes this build&#x27;s approval configuration, status, and result.
1522 &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
1523 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
1524 },
1525 &quot;result&quot;: { # ApprovalResult describes the decision and associated metadata of a manual approval of a build. # Output only. Result of manual approval for this Build.
1526 &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
1527 &quot;approverAccount&quot;: &quot;A String&quot;, # Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
1528 &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
1529 &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
1530 &quot;url&quot;: &quot;A String&quot;, # Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
1531 },
1532 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
1533 },
1534 &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.
1535 &quot;genericArtifacts&quot;: [ # Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE.
1536 { # Generic artifact to upload to Artifact Registry upon successful completion of all build steps.
1537 &quot;folder&quot;: &quot;A String&quot;, # Required. Path to the generic artifact in the build&#x27;s workspace to be uploaded to Artifact Registry.
1538 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION
1539 },
1540 ],
1541 &quot;goModules&quot;: [ # Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.
1542 { # Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.
1543 &quot;modulePath&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s &quot;module path&quot;. e.g. example.com/foo/v2
1544 &quot;moduleVersion&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
1545 &quot;repositoryLocation&quot;: &quot;A String&quot;, # Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.
1546 &quot;repositoryName&quot;: &quot;A String&quot;, # Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo
1547 &quot;repositoryProjectId&quot;: &quot;A String&quot;, # Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
1548 &quot;sourcePath&quot;: &quot;A String&quot;, # Optional. Source path of the go.mod file in the build&#x27;s workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage
1549 },
1550 ],
1551 &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.
1552 &quot;A String&quot;,
1553 ],
1554 &quot;mavenArtifacts&quot;: [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
1555 { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
1556 &quot;artifactId&quot;: &quot;A String&quot;, # Maven `artifactId` value used when uploading the artifact to Artifact Registry.
1557 &quot;deployFolder&quot;: &quot;A String&quot;, # Optional. Path to a folder containing the files to upload to Artifact Registry. This can be either an absolute path, e.g. `/workspace/my-app/target/`, or a relative path from /workspace, e.g. `my-app/target/`. This field is mutually exclusive with the `path` field.
1558 &quot;groupId&quot;: &quot;A String&quot;, # Maven `groupId` value used when uploading the artifact to Artifact Registry.
1559 &quot;path&quot;: &quot;A String&quot;, # Optional. Path to an artifact in the build&#x27;s workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
1560 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY&quot; Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
1561 &quot;version&quot;: &quot;A String&quot;, # Maven `version` value used when uploading the artifact to Artifact Registry.
1562 },
1563 ],
1564 &quot;npmPackages&quot;: [ # A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any packages fail to be pushed, the build is marked FAILURE.
1565 { # Npm package to upload to Artifact Registry upon successful completion of all build steps.
1566 &quot;packagePath&quot;: &quot;A String&quot;, # Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.
1567 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY&quot; Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
1568 },
1569 ],
1570 &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.
1571 &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.
1572 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1573 &quot;A String&quot;,
1574 ],
1575 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1576 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1577 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1578 },
1579 },
1580 &quot;oci&quot;: [ # Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion of all build steps. OCI images in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any images fail to be pushed, the build is marked FAILURE.
1581 { # OCI image to upload to Artifact Registry upon successful completion of all build steps.
1582 &quot;file&quot;: &quot;A String&quot;, # Required. Path on the local file system where to find the container to upload. e.g. /workspace/my-image.tar
1583 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the container to. e.g. us-east1-docker.pkg.dev/my-project/my-repo/my-image
1584 &quot;tags&quot;: [ # Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
1585 &quot;A String&quot;,
1586 ],
1587 },
1588 ],
1589 &quot;pythonPackages&quot;: [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.
1590 { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
1591 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
1592 &quot;A String&quot;,
1593 ],
1594 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY&quot; Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
1595 },
1596 ],
1597 },
1598 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1599 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1600 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1601 &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.
1602 &quot;a_key&quot;: &quot;A String&quot;,
1603 },
1604 &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/*
1605 },
1606 ],
1607 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1608 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1609 &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.
1610 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1611 },
1612 ],
1613 },
1614 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1615 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1616 &quot;dependencies&quot;: [ # Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
1617 { # A dependency that the Cloud Build worker will fetch before executing user steps.
1618 &quot;empty&quot;: True or False, # If set to true disable all dependency fetching (ignoring the default source as well).
1619 &quot;genericArtifact&quot;: { # Represents a generic artifact as a build dependency. # Represents a generic artifact as a build dependency.
1620 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where the artifact files should be placed on the worker.
1621 &quot;resource&quot;: &quot;A String&quot;, # Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
1622 },
1623 &quot;gitSource&quot;: { # Represents a git repository as a build dependency. # Represents a git repository as a build dependency.
1624 &quot;depth&quot;: &quot;A String&quot;, # Optional. How much history should be fetched for the build (default 1, -1 for all history).
1625 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where should the files be placed on the worker.
1626 &quot;recurseSubmodules&quot;: True or False, # Optional. True if submodules should be fetched too (default false).
1627 &quot;repository&quot;: { # A repository for a git source. # Required. The kind of repo (url or dev connect).
1628 &quot;developerConnect&quot;: &quot;A String&quot;, # The Developer Connect Git repository link formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`
1629 &quot;url&quot;: &quot;A String&quot;, # Location of the Git repository.
1630 },
1631 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision that we will fetch the repo at.
1632 },
1633 },
1634 ],
1635 &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
1636 &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
1637 &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
1638 },
1639 &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.
1640 &quot;gitConfig&quot;: { # GitConfig is a configuration for git operations. # Optional. Configuration for git operations.
1641 &quot;http&quot;: { # HttpConfig is a configuration for HTTP related git operations. # Configuration for HTTP related git operations.
1642 &quot;proxySecretVersionName&quot;: &quot;A String&quot;, # SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.
1643 },
1644 },
1645 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1646 &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`.
1647 &quot;A String&quot;,
1648 ],
1649 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1650 &quot;logsBucket&quot;: &quot;A String&quot;, # 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`.
1651 &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.
1652 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1653 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for all build steps.
1654 &quot;defaultLogsBucketBehavior&quot;: &quot;A String&quot;, # Optional. Option to specify how default logs buckets are setup.
1655 &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 4000GB; builds that request more than the maximum are rejected with an error.
1656 &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.
1657 &quot;enableStructuredLogging&quot;: True or False, # Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.
1658 &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;.
1659 &quot;A String&quot;,
1660 ],
1661 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Cloud Storage.
1662 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1663 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1664 &quot;pool&quot;: { # Details about how a build should be executed on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. # Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
1665 &quot;name&quot;: &quot;A String&quot;, # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}
1666 },
1667 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. Option to specify the Pub/Sub topic to receive build status updates.
1668 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1669 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
1670 &quot;A String&quot;,
1671 ],
1672 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1673 &quot;A String&quot;,
1674 ],
1675 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
1676 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
1677 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1678 &quot;name&quot;: &quot;A String&quot;, # Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
1679 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1680 },
1681 ],
1682 &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
1683 },
1684 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1685 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
1686 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1687 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
1688 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts to Cloud Storage.
1689 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1690 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1691 },
1692 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1693 &quot;A String&quot;,
1694 ],
1695 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can&#x27;t be substituted.
1696 &quot;A String&quot;,
1697 ],
1698 &quot;buildStepResults&quot;: { # Results for build steps. step_id -&gt;
1699 &quot;a_key&quot;: { # Results for a build step.
1700 &quot;results&quot;: { # Results for a build step.
1701 &quot;a_key&quot;: &quot;A String&quot;,
1702 },
1703 },
1704 },
1705 &quot;genericArtifacts&quot;: [ # Output only. Generic artifacts uploaded to Artifact Registry at the end of the build.
1706 { # A generic artifact uploaded to Artifact Registry using the GenericArtifact directive.
1707 &quot;artifactFingerprint&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Output only. The hash of the whole artifact.
1708 &quot;fileHash&quot;: [ # Collection of file hashes.
1709 { # Container message for hash values.
1710 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1711 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1712 },
1713 ],
1714 },
1715 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1716 &quot;fileHashes&quot;: { # Output only. The file hashes that make up the generic artifact.
1717 &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.
1718 &quot;fileHash&quot;: [ # Collection of file hashes.
1719 { # Container message for hash values.
1720 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1721 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1722 },
1723 ],
1724 },
1725 },
1726 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1727 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1728 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1729 },
1730 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
1731 },
1732 ],
1733 &quot;goModules&quot;: [ # Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.
1734 { # A Go module artifact uploaded to Artifact Registry using the GoModule directive.
1735 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1736 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Go Module Artifact.
1737 &quot;fileHash&quot;: [ # Collection of file hashes.
1738 { # Container message for hash values.
1739 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1740 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1741 },
1742 ],
1743 },
1744 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1745 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1746 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1747 },
1748 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
1749 },
1750 ],
1751 &quot;images&quot;: [ # Container images that were built as a part of the build.
1752 { # An image built by the pipeline.
1753 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1754 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1755 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1756 &quot;ociMediaType&quot;: &quot;A String&quot;, # Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value.
1757 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1758 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1759 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1760 },
1761 },
1762 ],
1763 &quot;mavenArtifacts&quot;: [ # Maven artifacts uploaded to Artifact Registry at the end of the build.
1764 { # A Maven artifact uploaded using the MavenArtifact directive.
1765 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1766 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact.
1767 &quot;fileHash&quot;: [ # Collection of file hashes.
1768 { # Container message for hash values.
1769 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1770 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1771 },
1772 ],
1773 },
1774 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1775 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1776 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1777 },
1778 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
1779 },
1780 ],
1781 &quot;npmPackages&quot;: [ # Npm packages uploaded to Artifact Registry at the end of the build.
1782 { # An npm package uploaded to Artifact Registry using the NpmPackage directive.
1783 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1784 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the npm package.
1785 &quot;fileHash&quot;: [ # Collection of file hashes.
1786 { # Container message for hash values.
1787 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1788 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1789 },
1790 ],
1791 },
1792 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1793 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1794 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1795 },
1796 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded npm package.
1797 },
1798 ],
1799 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
1800 &quot;pythonPackages&quot;: [ # Python artifacts uploaded to Artifact Registry at the end of the build.
1801 { # Artifact uploaded using the PythonPackage directive.
1802 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
1803 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact.
1804 &quot;fileHash&quot;: [ # Collection of file hashes.
1805 { # Container message for hash values.
1806 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1807 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1808 },
1809 ],
1810 },
1811 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
1812 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1813 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1814 },
1815 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
1816 },
1817 ],
1818 },
1819 &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
1820 { # 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.
1821 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1822 &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.
1823 &quot;a_key&quot;: &quot;A String&quot;,
1824 },
1825 },
1826 ],
1827 &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.
1828 &quot;source&quot;: { # Location of the source in a supported storage service. # Optional. The location of the source files to build.
1829 &quot;connectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource.
1830 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
1831 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
1832 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
1833 },
1834 &quot;developerConnectConfig&quot;: { # This config defines the location of a source through Developer Connect. # If provided, get the source from this Developer Connect config.
1835 &quot;dir&quot;: &quot;A String&quot;, # Required. Directory, relative to the source root, in which to run the build.
1836 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
1837 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
1838 },
1839 &quot;gitSource&quot;: { # Location of the source in any accessible Git repository. # If provided, get the source from this Git repository.
1840 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1841 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
1842 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
1843 },
1844 &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.
1845 &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
1846 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1847 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1848 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
1849 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1850 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1851 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1852 &quot;a_key&quot;: &quot;A String&quot;,
1853 },
1854 &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
1855 },
1856 &quot;storageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # If provided, get the source from this location in Cloud Storage.
1857 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1858 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1859 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
1860 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
1861 },
1862 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
1863 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1864 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1865 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
1866 },
1867 },
1868 &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.
1869 &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.
1870 &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.
1871 &quot;fileHash&quot;: [ # Collection of file hashes.
1872 { # Container message for hash values.
1873 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1874 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1875 },
1876 ],
1877 },
1878 },
1879 &quot;resolvedConnectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Output only. A copy of the build&#x27;s `source.connected_repository`, if exists, with any revisions resolved.
1880 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
1881 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
1882 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
1883 },
1884 &quot;resolvedGitSource&quot;: { # Location of the source in any accessible Git repository. # Output only. A copy of the build&#x27;s `source.git_source`, if exists, with any revisions resolved.
1885 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1886 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
1887 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
1888 },
1889 &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.
1890 &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
1891 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1892 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
1893 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
1894 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1895 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1896 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1897 &quot;a_key&quot;: &quot;A String&quot;,
1898 },
1899 &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
1900 },
1901 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1902 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1903 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1904 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
1905 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
1906 },
1907 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
1908 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1909 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1910 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
1911 },
1912 },
1913 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1914 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1915 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1916 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1917 { # A step in the build pipeline.
1918 &quot;allowExitCodes&quot;: [ # Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
1919 42,
1920 ],
1921 &quot;allowFailure&quot;: True or False, # Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
1922 &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.
1923 &quot;A String&quot;,
1924 ],
1925 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
1926 &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.
1927 &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.
1928 &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;.
1929 &quot;A String&quot;,
1930 ],
1931 &quot;exitCode&quot;: 42, # Output only. Return code from running the step.
1932 &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.
1933 &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.
1934 &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.
1935 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1936 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1937 },
1938 &quot;results&quot;: [ # Declaration of results for this build step.
1939 { # StepResult is the declaration of a result for a build step.
1940 &quot;attestationContent&quot;: &quot;A String&quot;, # Optional. The content of the attestation to be generated.
1941 &quot;attestationType&quot;: &quot;A String&quot;, # Optional. The type of attestation to be generated.
1942 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the result.
1943 },
1944 ],
1945 &quot;script&quot;: &quot;A String&quot;, # A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
1946 &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`.
1947 &quot;A String&quot;,
1948 ],
1949 &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.
1950 &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.
1951 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1952 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1953 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1954 },
1955 &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.
1956 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1957 &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.
1958 &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.
1959 },
1960 ],
1961 &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.
1962 &quot;A String&quot;,
1963 ],
1964 },
1965 ],
1966 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1967 &quot;a_key&quot;: &quot;A String&quot;,
1968 },
1969 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1970 &quot;A String&quot;,
1971 ],
1972 &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 60 minutes.
1973 &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 artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
1974 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1975 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1976 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1977 },
1978 },
1979 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1980 { # A non-fatal problem encountered during the execution of the build.
1981 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1982 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1983 },
1984 ],
1985 },
1986 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1987 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1988 &quot;developerConnectEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received. # Optional. The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received.
1989 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
1990 &quot;gitRepositoryLinkType&quot;: &quot;A String&quot;, # Output only. The type of DeveloperConnect GitRepositoryLink.
1991 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
1992 &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
1993 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
1994 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1995 },
1996 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches and tags.
1997 &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
1998 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1999 &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
2000 },
2001 },
2002 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
2003 &quot;eventType&quot;: &quot;A String&quot;, # EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set.
2004 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
2005 &quot;filter&quot;: &quot;A String&quot;, # A Common Expression Language string.
2006 &quot;gitFileSource&quot;: { # GitFileSource describes a file within a (possibly remote) code repository. # The file source describing the local or remote Build template.
2007 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
2008 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
2009 &quot;path&quot;: &quot;A String&quot;, # The path of the file, with the repo root as the root of the path.
2010 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType above.
2011 &quot;repository&quot;: &quot;A String&quot;, # The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
2012 &quot;revision&quot;: &quot;A String&quot;, # The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
2013 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
2014 },
2015 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
2016 &quot;enterpriseConfigResourceName&quot;: &quot;A String&quot;, # The resource name of the github enterprise config that should be applied to this installation. For example: &quot;projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}&quot;
2017 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
2018 &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;.
2019 &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;.
2020 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
2021 &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
2022 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2023 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2024 },
2025 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
2026 &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
2027 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2028 &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
2029 },
2030 },
2031 &quot;gitlabEnterpriseEventsConfig&quot;: { # GitLabEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab event is received. # GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.
2032 &quot;gitlabConfig&quot;: { # GitLabConfig represents the configuration for a GitLab integration. # Output only. The GitLabConfig specified in the gitlab_config_resource field.
2033 &quot;connectedRepositories&quot;: [ # Connected GitLab.com or GitLabEnterprise repositories for this config.
2034 { # GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise
2035 &quot;id&quot;: &quot;A String&quot;, # Required. Identifier for the repository. example: &quot;namespace/project-slug&quot;, namespace is usually the username or group ID
2036 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
2037 },
2038 ],
2039 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the config was created.
2040 &quot;enterpriseConfig&quot;: { # GitLabEnterpriseConfig represents the configuration for a GitLabEnterprise integration. # Optional. GitLabEnterprise config.
2041 &quot;hostUri&quot;: &quot;A String&quot;, # Immutable. The URI of the GitlabEnterprise host.
2042 &quot;serviceDirectoryConfig&quot;: { # ServiceDirectoryConfig represents Service Directory configuration for a SCM host connection. # The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
2043 &quot;service&quot;: &quot;A String&quot;, # The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
2044 },
2045 &quot;sslCa&quot;: &quot;A String&quot;, # The SSL certificate to use in requests to GitLab Enterprise instances.
2046 },
2047 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
2048 &quot;secrets&quot;: { # GitLabSecrets represents the secrets in Secret Manager for a GitLab integration. # Required. Secret Manager secrets needed by the config.
2049 &quot;apiAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the api access token’s secret version
2050 &quot;apiKeyVersion&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
2051 &quot;readAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the read access token’s secret version
2052 &quot;webhookSecretVersion&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
2053 },
2054 &quot;username&quot;: &quot;A String&quot;, # Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
2055 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
2056 },
2057 &quot;gitlabConfigResource&quot;: &quot;A String&quot;, # The GitLab config resource that this trigger config maps to.
2058 &quot;projectNamespace&quot;: &quot;A String&quot;, # Namespace of the GitLab project.
2059 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
2060 &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
2061 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2062 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2063 },
2064 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
2065 &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
2066 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2067 &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
2068 },
2069 },
2070 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
2071 &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.
2072 &quot;A String&quot;,
2073 ],
2074 &quot;includeBuildLogs&quot;: &quot;A String&quot;, # If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error.
2075 &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.
2076 &quot;A String&quot;,
2077 ],
2078 &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.
2079 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
2080 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
2081 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
2082 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
2083 &quot;topic&quot;: &quot;A String&quot;, # Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
2084 },
2085 &quot;repositoryEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from Repo API is received. # The configuration of a trigger that creates a build whenever an event from Repo API is received.
2086 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
2087 &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
2088 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2089 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2090 },
2091 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
2092 &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
2093 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2094 &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
2095 },
2096 &quot;repository&quot;: &quot;A String&quot;, # The resource name of the Repo API resource.
2097 &quot;repositoryType&quot;: &quot;A String&quot;, # Output only. The type of the SCM vendor the repository points to.
2098 },
2099 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
2100 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account ([PROJECT_NUM]@cloudbuild.gserviceaccount.com) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
2101 &quot;sourceToBuild&quot;: { # GitRepoSource describes a repo and ref of a code repository. # The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
2102 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
2103 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
2104 &quot;ref&quot;: &quot;A String&quot;, # The branch or tag to use. Must start with &quot;refs/&quot; (required).
2105 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType below.
2106 &quot;repository&quot;: &quot;A String&quot;, # The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
2107 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
2108 },
2109 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
2110 &quot;a_key&quot;: &quot;A String&quot;,
2111 },
2112 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
2113 &quot;A String&quot;,
2114 ],
2115 &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`.
2116 &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
2117 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2118 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
2119 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
2120 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
2121 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
2122 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
2123 &quot;a_key&quot;: &quot;A String&quot;,
2124 },
2125 &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
2126 },
2127 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
2128 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
2129 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
2130 },
2131 }</pre>
2132 </div>
2133
2134 <div class="method">
2135 <code class="details" id="list">list(projectId, pageSize=None, pageToken=None, parent=None, x__xgafv=None)</code>
2136 <pre>Lists existing `BuildTrigger`s.
2137
2138 Args:
2139 projectId: string, Required. ID of the project for which to list BuildTriggers. (required)
2140 pageSize: integer, Number of results to return in the list.
2141 pageToken: string, Token to provide to skip to a particular spot in the list.
2142 parent: string, The parent of the collection of `Triggers`. Format: `projects/{project}/locations/{location}`
2143 x__xgafv: string, V1 error format.
2144 Allowed values
2145 1 - v1 error format
2146 2 - v2 error format
2147
2148 Returns:
2149 An object of the form:
2150
2151 { # Response containing existing `BuildTriggers`.
2152 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
2153 &quot;triggers&quot;: [ # `BuildTriggers` for the project, sorted by `create_time` descending.
2154 { # Configuration for an automated build in response to source repository changes.
2155 &quot;approvalConfig&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Configuration for manual approval to start a build invocation of this BuildTrigger.
2156 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
2157 },
2158 &quot;autodetect&quot;: True or False, # Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
2159 &quot;bitbucketServerTriggerConfig&quot;: { # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received. # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.
2160 &quot;bitbucketServerConfig&quot;: { # BitbucketServerConfig represents the configuration for a Bitbucket Server. # Output only. The BitbucketServerConfig specified in the bitbucket_server_config_resource field.
2161 &quot;apiKey&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
2162 &quot;connectedRepositories&quot;: [ # Output only. Connected Bitbucket Server repositories for this config.
2163 { # BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.
2164 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Identifier for the project storing the repository.
2165 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Identifier for the repository.
2166 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
2167 },
2168 ],
2169 &quot;createTime&quot;: &quot;A String&quot;, # Time when the config was created.
2170 &quot;hostUri&quot;: &quot;A String&quot;, # Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
2171 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
2172 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
2173 &quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # Immutable. IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a 29 bit prefix size. `/16` would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of `/24` will be used. The field only has an effect if peered_network is set.
2174 &quot;secrets&quot;: { # BitbucketServerSecrets represents the secrets in Secret Manager for a Bitbucket Server. # Required. Secret Manager secrets needed by the config.
2175 &quot;adminAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the admin access token&#x27;s secret version.
2176 &quot;readAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the read access token&#x27;s secret version.
2177 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret&#x27;s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
2178 },
2179 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.
2180 &quot;username&quot;: &quot;A String&quot;, # Username of the account Cloud Build will use on Bitbucket Server.
2181 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
2182 },
2183 &quot;bitbucketServerConfigResource&quot;: &quot;A String&quot;, # Required. The Bitbucket server config resource that this trigger config maps to.
2184 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is &quot;TEST&quot;.
2185 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
2186 &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
2187 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2188 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2189 },
2190 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
2191 &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
2192 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2193 &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
2194 },
2195 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if the repository name is &#x27;test repo&#x27;, in the URL it would become &#x27;test-repo&#x27; as in https://mybitbucket.server/projects/TEST/repos/test-repo.
2196 },
2197 &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. - $LOCATION: the location/region 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.
2198 &quot;approval&quot;: { # BuildApproval describes a build&#x27;s approval configuration, state, and result. # Output only. Describes this build&#x27;s approval configuration, status, and result.
2199 &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
2200 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
2201 },
2202 &quot;result&quot;: { # ApprovalResult describes the decision and associated metadata of a manual approval of a build. # Output only. Result of manual approval for this Build.
2203 &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
2204 &quot;approverAccount&quot;: &quot;A String&quot;, # Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
2205 &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
2206 &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
2207 &quot;url&quot;: &quot;A String&quot;, # Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
2208 },
2209 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
2210 },
2211 &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.
2212 &quot;genericArtifacts&quot;: [ # Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE.
2213 { # Generic artifact to upload to Artifact Registry upon successful completion of all build steps.
2214 &quot;folder&quot;: &quot;A String&quot;, # Required. Path to the generic artifact in the build&#x27;s workspace to be uploaded to Artifact Registry.
2215 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION
2216 },
2217 ],
2218 &quot;goModules&quot;: [ # Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.
2219 { # Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.
2220 &quot;modulePath&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s &quot;module path&quot;. e.g. example.com/foo/v2
2221 &quot;moduleVersion&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
2222 &quot;repositoryLocation&quot;: &quot;A String&quot;, # Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.
2223 &quot;repositoryName&quot;: &quot;A String&quot;, # Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo
2224 &quot;repositoryProjectId&quot;: &quot;A String&quot;, # Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
2225 &quot;sourcePath&quot;: &quot;A String&quot;, # Optional. Source path of the go.mod file in the build&#x27;s workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage
2226 },
2227 ],
2228 &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.
2229 &quot;A String&quot;,
2230 ],
2231 &quot;mavenArtifacts&quot;: [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
2232 { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
2233 &quot;artifactId&quot;: &quot;A String&quot;, # Maven `artifactId` value used when uploading the artifact to Artifact Registry.
2234 &quot;deployFolder&quot;: &quot;A String&quot;, # Optional. Path to a folder containing the files to upload to Artifact Registry. This can be either an absolute path, e.g. `/workspace/my-app/target/`, or a relative path from /workspace, e.g. `my-app/target/`. This field is mutually exclusive with the `path` field.
2235 &quot;groupId&quot;: &quot;A String&quot;, # Maven `groupId` value used when uploading the artifact to Artifact Registry.
2236 &quot;path&quot;: &quot;A String&quot;, # Optional. Path to an artifact in the build&#x27;s workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
2237 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY&quot; Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
2238 &quot;version&quot;: &quot;A String&quot;, # Maven `version` value used when uploading the artifact to Artifact Registry.
2239 },
2240 ],
2241 &quot;npmPackages&quot;: [ # A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any packages fail to be pushed, the build is marked FAILURE.
2242 { # Npm package to upload to Artifact Registry upon successful completion of all build steps.
2243 &quot;packagePath&quot;: &quot;A String&quot;, # Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.
2244 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY&quot; Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
2245 },
2246 ],
2247 &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.
2248 &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.
2249 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
2250 &quot;A String&quot;,
2251 ],
2252 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
2253 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2254 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2255 },
2256 },
2257 &quot;oci&quot;: [ # Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion of all build steps. OCI images in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any images fail to be pushed, the build is marked FAILURE.
2258 { # OCI image to upload to Artifact Registry upon successful completion of all build steps.
2259 &quot;file&quot;: &quot;A String&quot;, # Required. Path on the local file system where to find the container to upload. e.g. /workspace/my-image.tar
2260 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the container to. e.g. us-east1-docker.pkg.dev/my-project/my-repo/my-image
2261 &quot;tags&quot;: [ # Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
2262 &quot;A String&quot;,
2263 ],
2264 },
2265 ],
2266 &quot;pythonPackages&quot;: [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.
2267 { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
2268 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
2269 &quot;A String&quot;,
2270 ],
2271 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY&quot; Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
2272 },
2273 ],
2274 },
2275 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
2276 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
2277 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
2278 &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.
2279 &quot;a_key&quot;: &quot;A String&quot;,
2280 },
2281 &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/*
2282 },
2283 ],
2284 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
2285 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
2286 &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.
2287 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
2288 },
2289 ],
2290 },
2291 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
2292 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
2293 &quot;dependencies&quot;: [ # Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
2294 { # A dependency that the Cloud Build worker will fetch before executing user steps.
2295 &quot;empty&quot;: True or False, # If set to true disable all dependency fetching (ignoring the default source as well).
2296 &quot;genericArtifact&quot;: { # Represents a generic artifact as a build dependency. # Represents a generic artifact as a build dependency.
2297 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where the artifact files should be placed on the worker.
2298 &quot;resource&quot;: &quot;A String&quot;, # Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
2299 },
2300 &quot;gitSource&quot;: { # Represents a git repository as a build dependency. # Represents a git repository as a build dependency.
2301 &quot;depth&quot;: &quot;A String&quot;, # Optional. How much history should be fetched for the build (default 1, -1 for all history).
2302 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where should the files be placed on the worker.
2303 &quot;recurseSubmodules&quot;: True or False, # Optional. True if submodules should be fetched too (default false).
2304 &quot;repository&quot;: { # A repository for a git source. # Required. The kind of repo (url or dev connect).
2305 &quot;developerConnect&quot;: &quot;A String&quot;, # The Developer Connect Git repository link formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`
2306 &quot;url&quot;: &quot;A String&quot;, # Location of the Git repository.
2307 },
2308 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision that we will fetch the repo at.
2309 },
2310 },
2311 ],
2312 &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
2313 &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
2314 &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
2315 },
2316 &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.
2317 &quot;gitConfig&quot;: { # GitConfig is a configuration for git operations. # Optional. Configuration for git operations.
2318 &quot;http&quot;: { # HttpConfig is a configuration for HTTP related git operations. # Configuration for HTTP related git operations.
2319 &quot;proxySecretVersionName&quot;: &quot;A String&quot;, # SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.
2320 },
2321 },
2322 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
2323 &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`.
2324 &quot;A String&quot;,
2325 ],
2326 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
2327 &quot;logsBucket&quot;: &quot;A String&quot;, # 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`.
2328 &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.
2329 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
2330 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for all build steps.
2331 &quot;defaultLogsBucketBehavior&quot;: &quot;A String&quot;, # Optional. Option to specify how default logs buckets are setup.
2332 &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 4000GB; builds that request more than the maximum are rejected with an error.
2333 &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.
2334 &quot;enableStructuredLogging&quot;: True or False, # Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.
2335 &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;.
2336 &quot;A String&quot;,
2337 ],
2338 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Cloud Storage.
2339 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
2340 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
2341 &quot;pool&quot;: { # Details about how a build should be executed on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. # Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
2342 &quot;name&quot;: &quot;A String&quot;, # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}
2343 },
2344 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. Option to specify the Pub/Sub topic to receive build status updates.
2345 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
2346 &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.
2347 &quot;A String&quot;,
2348 ],
2349 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
2350 &quot;A String&quot;,
2351 ],
2352 &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.
2353 &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.
2354 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
2355 &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.
2356 &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.
2357 },
2358 ],
2359 &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
2360 },
2361 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
2362 &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.
2363 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
2364 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
2365 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts to Cloud Storage.
2366 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2367 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2368 },
2369 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
2370 &quot;A String&quot;,
2371 ],
2372 &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 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can&#x27;t be substituted.
2373 &quot;A String&quot;,
2374 ],
2375 &quot;buildStepResults&quot;: { # Results for build steps. step_id -&gt;
2376 &quot;a_key&quot;: { # Results for a build step.
2377 &quot;results&quot;: { # Results for a build step.
2378 &quot;a_key&quot;: &quot;A String&quot;,
2379 },
2380 },
2381 },
2382 &quot;genericArtifacts&quot;: [ # Output only. Generic artifacts uploaded to Artifact Registry at the end of the build.
2383 { # A generic artifact uploaded to Artifact Registry using the GenericArtifact directive.
2384 &quot;artifactFingerprint&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Output only. The hash of the whole artifact.
2385 &quot;fileHash&quot;: [ # Collection of file hashes.
2386 { # Container message for hash values.
2387 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2388 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2389 },
2390 ],
2391 },
2392 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
2393 &quot;fileHashes&quot;: { # Output only. The file hashes that make up the generic artifact.
2394 &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.
2395 &quot;fileHash&quot;: [ # Collection of file hashes.
2396 { # Container message for hash values.
2397 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2398 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2399 },
2400 ],
2401 },
2402 },
2403 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
2404 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2405 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2406 },
2407 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
2408 },
2409 ],
2410 &quot;goModules&quot;: [ # Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.
2411 { # A Go module artifact uploaded to Artifact Registry using the GoModule directive.
2412 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
2413 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Go Module Artifact.
2414 &quot;fileHash&quot;: [ # Collection of file hashes.
2415 { # Container message for hash values.
2416 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2417 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2418 },
2419 ],
2420 },
2421 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
2422 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2423 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2424 },
2425 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
2426 },
2427 ],
2428 &quot;images&quot;: [ # Container images that were built as a part of the build.
2429 { # An image built by the pipeline.
2430 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
2431 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
2432 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
2433 &quot;ociMediaType&quot;: &quot;A String&quot;, # Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value.
2434 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
2435 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2436 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2437 },
2438 },
2439 ],
2440 &quot;mavenArtifacts&quot;: [ # Maven artifacts uploaded to Artifact Registry at the end of the build.
2441 { # A Maven artifact uploaded using the MavenArtifact directive.
2442 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
2443 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact.
2444 &quot;fileHash&quot;: [ # Collection of file hashes.
2445 { # Container message for hash values.
2446 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2447 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2448 },
2449 ],
2450 },
2451 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
2452 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2453 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2454 },
2455 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
2456 },
2457 ],
2458 &quot;npmPackages&quot;: [ # Npm packages uploaded to Artifact Registry at the end of the build.
2459 { # An npm package uploaded to Artifact Registry using the NpmPackage directive.
2460 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
2461 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the npm package.
2462 &quot;fileHash&quot;: [ # Collection of file hashes.
2463 { # Container message for hash values.
2464 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2465 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2466 },
2467 ],
2468 },
2469 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
2470 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2471 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2472 },
2473 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded npm package.
2474 },
2475 ],
2476 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
2477 &quot;pythonPackages&quot;: [ # Python artifacts uploaded to Artifact Registry at the end of the build.
2478 { # Artifact uploaded using the PythonPackage directive.
2479 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
2480 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact.
2481 &quot;fileHash&quot;: [ # Collection of file hashes.
2482 { # Container message for hash values.
2483 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2484 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2485 },
2486 ],
2487 },
2488 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
2489 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2490 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2491 },
2492 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
2493 },
2494 ],
2495 },
2496 &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
2497 { # 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.
2498 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
2499 &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.
2500 &quot;a_key&quot;: &quot;A String&quot;,
2501 },
2502 },
2503 ],
2504 &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.
2505 &quot;source&quot;: { # Location of the source in a supported storage service. # Optional. The location of the source files to build.
2506 &quot;connectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource.
2507 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
2508 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
2509 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
2510 },
2511 &quot;developerConnectConfig&quot;: { # This config defines the location of a source through Developer Connect. # If provided, get the source from this Developer Connect config.
2512 &quot;dir&quot;: &quot;A String&quot;, # Required. Directory, relative to the source root, in which to run the build.
2513 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
2514 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
2515 },
2516 &quot;gitSource&quot;: { # Location of the source in any accessible Git repository. # If provided, get the source from this Git repository.
2517 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
2518 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
2519 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
2520 },
2521 &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.
2522 &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
2523 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2524 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
2525 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
2526 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
2527 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
2528 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
2529 &quot;a_key&quot;: &quot;A String&quot;,
2530 },
2531 &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
2532 },
2533 &quot;storageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # If provided, get the source from this location in Cloud Storage.
2534 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2535 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
2536 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
2537 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
2538 },
2539 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
2540 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2541 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
2542 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
2543 },
2544 },
2545 &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.
2546 &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.
2547 &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.
2548 &quot;fileHash&quot;: [ # Collection of file hashes.
2549 { # Container message for hash values.
2550 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2551 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2552 },
2553 ],
2554 },
2555 },
2556 &quot;resolvedConnectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Output only. A copy of the build&#x27;s `source.connected_repository`, if exists, with any revisions resolved.
2557 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
2558 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
2559 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
2560 },
2561 &quot;resolvedGitSource&quot;: { # Location of the source in any accessible Git repository. # Output only. A copy of the build&#x27;s `source.git_source`, if exists, with any revisions resolved.
2562 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
2563 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
2564 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
2565 },
2566 &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.
2567 &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
2568 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2569 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
2570 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
2571 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
2572 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
2573 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
2574 &quot;a_key&quot;: &quot;A String&quot;,
2575 },
2576 &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
2577 },
2578 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
2579 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2580 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
2581 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
2582 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
2583 },
2584 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
2585 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2586 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
2587 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
2588 },
2589 },
2590 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
2591 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
2592 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
2593 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
2594 { # A step in the build pipeline.
2595 &quot;allowExitCodes&quot;: [ # Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
2596 42,
2597 ],
2598 &quot;allowFailure&quot;: True or False, # Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
2599 &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.
2600 &quot;A String&quot;,
2601 ],
2602 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
2603 &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.
2604 &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.
2605 &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;.
2606 &quot;A String&quot;,
2607 ],
2608 &quot;exitCode&quot;: 42, # Output only. Return code from running the step.
2609 &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.
2610 &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.
2611 &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.
2612 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2613 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2614 },
2615 &quot;results&quot;: [ # Declaration of results for this build step.
2616 { # StepResult is the declaration of a result for a build step.
2617 &quot;attestationContent&quot;: &quot;A String&quot;, # Optional. The content of the attestation to be generated.
2618 &quot;attestationType&quot;: &quot;A String&quot;, # Optional. The type of attestation to be generated.
2619 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the result.
2620 },
2621 ],
2622 &quot;script&quot;: &quot;A String&quot;, # A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
2623 &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`.
2624 &quot;A String&quot;,
2625 ],
2626 &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.
2627 &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.
2628 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
2629 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2630 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2631 },
2632 &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.
2633 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
2634 &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.
2635 &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.
2636 },
2637 ],
2638 &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.
2639 &quot;A String&quot;,
2640 ],
2641 },
2642 ],
2643 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
2644 &quot;a_key&quot;: &quot;A String&quot;,
2645 },
2646 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
2647 &quot;A String&quot;,
2648 ],
2649 &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 60 minutes.
2650 &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 artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
2651 &quot;a_key&quot;: { # Start and end times for a build execution phase.
2652 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2653 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2654 },
2655 },
2656 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
2657 { # A non-fatal problem encountered during the execution of the build.
2658 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
2659 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
2660 },
2661 ],
2662 },
2663 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
2664 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
2665 &quot;developerConnectEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received. # Optional. The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received.
2666 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
2667 &quot;gitRepositoryLinkType&quot;: &quot;A String&quot;, # Output only. The type of DeveloperConnect GitRepositoryLink.
2668 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
2669 &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
2670 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2671 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2672 },
2673 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches and tags.
2674 &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
2675 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2676 &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
2677 },
2678 },
2679 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
2680 &quot;eventType&quot;: &quot;A String&quot;, # EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set.
2681 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
2682 &quot;filter&quot;: &quot;A String&quot;, # A Common Expression Language string.
2683 &quot;gitFileSource&quot;: { # GitFileSource describes a file within a (possibly remote) code repository. # The file source describing the local or remote Build template.
2684 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
2685 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
2686 &quot;path&quot;: &quot;A String&quot;, # The path of the file, with the repo root as the root of the path.
2687 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType above.
2688 &quot;repository&quot;: &quot;A String&quot;, # The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
2689 &quot;revision&quot;: &quot;A String&quot;, # The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
2690 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
2691 },
2692 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
2693 &quot;enterpriseConfigResourceName&quot;: &quot;A String&quot;, # The resource name of the github enterprise config that should be applied to this installation. For example: &quot;projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}&quot;
2694 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
2695 &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;.
2696 &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;.
2697 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
2698 &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
2699 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2700 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2701 },
2702 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
2703 &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
2704 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2705 &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
2706 },
2707 },
2708 &quot;gitlabEnterpriseEventsConfig&quot;: { # GitLabEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab event is received. # GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.
2709 &quot;gitlabConfig&quot;: { # GitLabConfig represents the configuration for a GitLab integration. # Output only. The GitLabConfig specified in the gitlab_config_resource field.
2710 &quot;connectedRepositories&quot;: [ # Connected GitLab.com or GitLabEnterprise repositories for this config.
2711 { # GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise
2712 &quot;id&quot;: &quot;A String&quot;, # Required. Identifier for the repository. example: &quot;namespace/project-slug&quot;, namespace is usually the username or group ID
2713 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
2714 },
2715 ],
2716 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the config was created.
2717 &quot;enterpriseConfig&quot;: { # GitLabEnterpriseConfig represents the configuration for a GitLabEnterprise integration. # Optional. GitLabEnterprise config.
2718 &quot;hostUri&quot;: &quot;A String&quot;, # Immutable. The URI of the GitlabEnterprise host.
2719 &quot;serviceDirectoryConfig&quot;: { # ServiceDirectoryConfig represents Service Directory configuration for a SCM host connection. # The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
2720 &quot;service&quot;: &quot;A String&quot;, # The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
2721 },
2722 &quot;sslCa&quot;: &quot;A String&quot;, # The SSL certificate to use in requests to GitLab Enterprise instances.
2723 },
2724 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
2725 &quot;secrets&quot;: { # GitLabSecrets represents the secrets in Secret Manager for a GitLab integration. # Required. Secret Manager secrets needed by the config.
2726 &quot;apiAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the api access token’s secret version
2727 &quot;apiKeyVersion&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
2728 &quot;readAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the read access token’s secret version
2729 &quot;webhookSecretVersion&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
2730 },
2731 &quot;username&quot;: &quot;A String&quot;, # Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
2732 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
2733 },
2734 &quot;gitlabConfigResource&quot;: &quot;A String&quot;, # The GitLab config resource that this trigger config maps to.
2735 &quot;projectNamespace&quot;: &quot;A String&quot;, # Namespace of the GitLab project.
2736 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
2737 &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
2738 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2739 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2740 },
2741 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
2742 &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
2743 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2744 &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
2745 },
2746 },
2747 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
2748 &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.
2749 &quot;A String&quot;,
2750 ],
2751 &quot;includeBuildLogs&quot;: &quot;A String&quot;, # If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error.
2752 &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.
2753 &quot;A String&quot;,
2754 ],
2755 &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.
2756 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
2757 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
2758 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
2759 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
2760 &quot;topic&quot;: &quot;A String&quot;, # Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
2761 },
2762 &quot;repositoryEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from Repo API is received. # The configuration of a trigger that creates a build whenever an event from Repo API is received.
2763 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
2764 &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
2765 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2766 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2767 },
2768 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
2769 &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
2770 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2771 &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
2772 },
2773 &quot;repository&quot;: &quot;A String&quot;, # The resource name of the Repo API resource.
2774 &quot;repositoryType&quot;: &quot;A String&quot;, # Output only. The type of the SCM vendor the repository points to.
2775 },
2776 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
2777 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account ([PROJECT_NUM]@cloudbuild.gserviceaccount.com) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
2778 &quot;sourceToBuild&quot;: { # GitRepoSource describes a repo and ref of a code repository. # The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
2779 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
2780 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
2781 &quot;ref&quot;: &quot;A String&quot;, # The branch or tag to use. Must start with &quot;refs/&quot; (required).
2782 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType below.
2783 &quot;repository&quot;: &quot;A String&quot;, # The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
2784 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
2785 },
2786 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
2787 &quot;a_key&quot;: &quot;A String&quot;,
2788 },
2789 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
2790 &quot;A String&quot;,
2791 ],
2792 &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`.
2793 &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
2794 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2795 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
2796 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
2797 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
2798 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
2799 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
2800 &quot;a_key&quot;: &quot;A String&quot;,
2801 },
2802 &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
2803 },
2804 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
2805 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
2806 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
2807 },
2808 },
2809 ],
2810 }</pre>
2811 </div>
2812
2813 <div class="method">
2814 <code class="details" id="list_next">list_next()</code>
2815 <pre>Retrieves the next page of results.
2816
2817 Args:
2818 previous_request: The request for the previous page. (required)
2819 previous_response: The response from the request for the previous page. (required)
2820
2821 Returns:
2822 A request object that you can call &#x27;execute()&#x27; on to request the next
2823 page. Returns None if there are no more items in the collection.
2824 </pre>
2825 </div>
2826
2827 <div class="method">
2828 <code class="details" id="patch">patch(projectId, triggerId, body, updateMask=None, x__xgafv=None)</code>
2829 <pre>Updates a `BuildTrigger` by its project ID and trigger ID.
2830
2831 Args:
2832 projectId: string, Required. ID of the project that owns the trigger. (required)
2833 triggerId: string, Required. ID of the `BuildTrigger` to update. (required)
2834 body: object, The request body.
2835 The object takes the form of:
2836
2837 { # Configuration for an automated build in response to source repository changes.
2838 &quot;approvalConfig&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Configuration for manual approval to start a build invocation of this BuildTrigger.
2839 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
2840 },
2841 &quot;autodetect&quot;: True or False, # Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
2842 &quot;bitbucketServerTriggerConfig&quot;: { # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received. # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.
2843 &quot;bitbucketServerConfig&quot;: { # BitbucketServerConfig represents the configuration for a Bitbucket Server. # Output only. The BitbucketServerConfig specified in the bitbucket_server_config_resource field.
2844 &quot;apiKey&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
2845 &quot;connectedRepositories&quot;: [ # Output only. Connected Bitbucket Server repositories for this config.
2846 { # BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.
2847 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Identifier for the project storing the repository.
2848 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Identifier for the repository.
2849 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
2850 },
2851 ],
2852 &quot;createTime&quot;: &quot;A String&quot;, # Time when the config was created.
2853 &quot;hostUri&quot;: &quot;A String&quot;, # Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
2854 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
2855 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
2856 &quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # Immutable. IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a 29 bit prefix size. `/16` would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of `/24` will be used. The field only has an effect if peered_network is set.
2857 &quot;secrets&quot;: { # BitbucketServerSecrets represents the secrets in Secret Manager for a Bitbucket Server. # Required. Secret Manager secrets needed by the config.
2858 &quot;adminAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the admin access token&#x27;s secret version.
2859 &quot;readAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the read access token&#x27;s secret version.
2860 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret&#x27;s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
2861 },
2862 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.
2863 &quot;username&quot;: &quot;A String&quot;, # Username of the account Cloud Build will use on Bitbucket Server.
2864 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
2865 },
2866 &quot;bitbucketServerConfigResource&quot;: &quot;A String&quot;, # Required. The Bitbucket server config resource that this trigger config maps to.
2867 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is &quot;TEST&quot;.
2868 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
2869 &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
2870 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
2871 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
2872 },
2873 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
2874 &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
2875 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
2876 &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
2877 },
2878 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if the repository name is &#x27;test repo&#x27;, in the URL it would become &#x27;test-repo&#x27; as in https://mybitbucket.server/projects/TEST/repos/test-repo.
2879 },
2880 &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. - $LOCATION: the location/region 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.
2881 &quot;approval&quot;: { # BuildApproval describes a build&#x27;s approval configuration, state, and result. # Output only. Describes this build&#x27;s approval configuration, status, and result.
2882 &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
2883 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
2884 },
2885 &quot;result&quot;: { # ApprovalResult describes the decision and associated metadata of a manual approval of a build. # Output only. Result of manual approval for this Build.
2886 &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
2887 &quot;approverAccount&quot;: &quot;A String&quot;, # Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
2888 &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
2889 &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
2890 &quot;url&quot;: &quot;A String&quot;, # Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
2891 },
2892 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
2893 },
2894 &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.
2895 &quot;genericArtifacts&quot;: [ # Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE.
2896 { # Generic artifact to upload to Artifact Registry upon successful completion of all build steps.
2897 &quot;folder&quot;: &quot;A String&quot;, # Required. Path to the generic artifact in the build&#x27;s workspace to be uploaded to Artifact Registry.
2898 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION
2899 },
2900 ],
2901 &quot;goModules&quot;: [ # Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.
2902 { # Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.
2903 &quot;modulePath&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s &quot;module path&quot;. e.g. example.com/foo/v2
2904 &quot;moduleVersion&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
2905 &quot;repositoryLocation&quot;: &quot;A String&quot;, # Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.
2906 &quot;repositoryName&quot;: &quot;A String&quot;, # Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo
2907 &quot;repositoryProjectId&quot;: &quot;A String&quot;, # Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
2908 &quot;sourcePath&quot;: &quot;A String&quot;, # Optional. Source path of the go.mod file in the build&#x27;s workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage
2909 },
2910 ],
2911 &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.
2912 &quot;A String&quot;,
2913 ],
2914 &quot;mavenArtifacts&quot;: [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
2915 { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
2916 &quot;artifactId&quot;: &quot;A String&quot;, # Maven `artifactId` value used when uploading the artifact to Artifact Registry.
2917 &quot;deployFolder&quot;: &quot;A String&quot;, # Optional. Path to a folder containing the files to upload to Artifact Registry. This can be either an absolute path, e.g. `/workspace/my-app/target/`, or a relative path from /workspace, e.g. `my-app/target/`. This field is mutually exclusive with the `path` field.
2918 &quot;groupId&quot;: &quot;A String&quot;, # Maven `groupId` value used when uploading the artifact to Artifact Registry.
2919 &quot;path&quot;: &quot;A String&quot;, # Optional. Path to an artifact in the build&#x27;s workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
2920 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY&quot; Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
2921 &quot;version&quot;: &quot;A String&quot;, # Maven `version` value used when uploading the artifact to Artifact Registry.
2922 },
2923 ],
2924 &quot;npmPackages&quot;: [ # A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any packages fail to be pushed, the build is marked FAILURE.
2925 { # Npm package to upload to Artifact Registry upon successful completion of all build steps.
2926 &quot;packagePath&quot;: &quot;A String&quot;, # Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.
2927 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY&quot; Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
2928 },
2929 ],
2930 &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.
2931 &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.
2932 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
2933 &quot;A String&quot;,
2934 ],
2935 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
2936 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
2937 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
2938 },
2939 },
2940 &quot;oci&quot;: [ # Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion of all build steps. OCI images in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any images fail to be pushed, the build is marked FAILURE.
2941 { # OCI image to upload to Artifact Registry upon successful completion of all build steps.
2942 &quot;file&quot;: &quot;A String&quot;, # Required. Path on the local file system where to find the container to upload. e.g. /workspace/my-image.tar
2943 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the container to. e.g. us-east1-docker.pkg.dev/my-project/my-repo/my-image
2944 &quot;tags&quot;: [ # Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
2945 &quot;A String&quot;,
2946 ],
2947 },
2948 ],
2949 &quot;pythonPackages&quot;: [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.
2950 { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
2951 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
2952 &quot;A String&quot;,
2953 ],
2954 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY&quot; Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
2955 },
2956 ],
2957 },
2958 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
2959 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
2960 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
2961 &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.
2962 &quot;a_key&quot;: &quot;A String&quot;,
2963 },
2964 &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/*
2965 },
2966 ],
2967 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
2968 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
2969 &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.
2970 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
2971 },
2972 ],
2973 },
2974 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
2975 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
2976 &quot;dependencies&quot;: [ # Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
2977 { # A dependency that the Cloud Build worker will fetch before executing user steps.
2978 &quot;empty&quot;: True or False, # If set to true disable all dependency fetching (ignoring the default source as well).
2979 &quot;genericArtifact&quot;: { # Represents a generic artifact as a build dependency. # Represents a generic artifact as a build dependency.
2980 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where the artifact files should be placed on the worker.
2981 &quot;resource&quot;: &quot;A String&quot;, # Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
2982 },
2983 &quot;gitSource&quot;: { # Represents a git repository as a build dependency. # Represents a git repository as a build dependency.
2984 &quot;depth&quot;: &quot;A String&quot;, # Optional. How much history should be fetched for the build (default 1, -1 for all history).
2985 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where should the files be placed on the worker.
2986 &quot;recurseSubmodules&quot;: True or False, # Optional. True if submodules should be fetched too (default false).
2987 &quot;repository&quot;: { # A repository for a git source. # Required. The kind of repo (url or dev connect).
2988 &quot;developerConnect&quot;: &quot;A String&quot;, # The Developer Connect Git repository link formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`
2989 &quot;url&quot;: &quot;A String&quot;, # Location of the Git repository.
2990 },
2991 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision that we will fetch the repo at.
2992 },
2993 },
2994 ],
2995 &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
2996 &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
2997 &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
2998 },
2999 &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.
3000 &quot;gitConfig&quot;: { # GitConfig is a configuration for git operations. # Optional. Configuration for git operations.
3001 &quot;http&quot;: { # HttpConfig is a configuration for HTTP related git operations. # Configuration for HTTP related git operations.
3002 &quot;proxySecretVersionName&quot;: &quot;A String&quot;, # SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.
3003 },
3004 },
3005 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
3006 &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`.
3007 &quot;A String&quot;,
3008 ],
3009 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
3010 &quot;logsBucket&quot;: &quot;A String&quot;, # 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`.
3011 &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.
3012 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
3013 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for all build steps.
3014 &quot;defaultLogsBucketBehavior&quot;: &quot;A String&quot;, # Optional. Option to specify how default logs buckets are setup.
3015 &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 4000GB; builds that request more than the maximum are rejected with an error.
3016 &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.
3017 &quot;enableStructuredLogging&quot;: True or False, # Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.
3018 &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;.
3019 &quot;A String&quot;,
3020 ],
3021 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Cloud Storage.
3022 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
3023 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
3024 &quot;pool&quot;: { # Details about how a build should be executed on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. # Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
3025 &quot;name&quot;: &quot;A String&quot;, # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}
3026 },
3027 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. Option to specify the Pub/Sub topic to receive build status updates.
3028 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
3029 &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.
3030 &quot;A String&quot;,
3031 ],
3032 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
3033 &quot;A String&quot;,
3034 ],
3035 &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.
3036 &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.
3037 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
3038 &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.
3039 &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.
3040 },
3041 ],
3042 &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
3043 },
3044 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
3045 &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.
3046 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
3047 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
3048 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts to Cloud Storage.
3049 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3050 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3051 },
3052 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
3053 &quot;A String&quot;,
3054 ],
3055 &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 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can&#x27;t be substituted.
3056 &quot;A String&quot;,
3057 ],
3058 &quot;buildStepResults&quot;: { # Results for build steps. step_id -&gt;
3059 &quot;a_key&quot;: { # Results for a build step.
3060 &quot;results&quot;: { # Results for a build step.
3061 &quot;a_key&quot;: &quot;A String&quot;,
3062 },
3063 },
3064 },
3065 &quot;genericArtifacts&quot;: [ # Output only. Generic artifacts uploaded to Artifact Registry at the end of the build.
3066 { # A generic artifact uploaded to Artifact Registry using the GenericArtifact directive.
3067 &quot;artifactFingerprint&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Output only. The hash of the whole artifact.
3068 &quot;fileHash&quot;: [ # Collection of file hashes.
3069 { # Container message for hash values.
3070 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3071 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3072 },
3073 ],
3074 },
3075 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3076 &quot;fileHashes&quot;: { # Output only. The file hashes that make up the generic artifact.
3077 &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.
3078 &quot;fileHash&quot;: [ # Collection of file hashes.
3079 { # Container message for hash values.
3080 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3081 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3082 },
3083 ],
3084 },
3085 },
3086 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3087 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3088 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3089 },
3090 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
3091 },
3092 ],
3093 &quot;goModules&quot;: [ # Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.
3094 { # A Go module artifact uploaded to Artifact Registry using the GoModule directive.
3095 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3096 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Go Module Artifact.
3097 &quot;fileHash&quot;: [ # Collection of file hashes.
3098 { # Container message for hash values.
3099 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3100 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3101 },
3102 ],
3103 },
3104 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3105 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3106 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3107 },
3108 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
3109 },
3110 ],
3111 &quot;images&quot;: [ # Container images that were built as a part of the build.
3112 { # An image built by the pipeline.
3113 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3114 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
3115 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
3116 &quot;ociMediaType&quot;: &quot;A String&quot;, # Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value.
3117 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
3118 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3119 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3120 },
3121 },
3122 ],
3123 &quot;mavenArtifacts&quot;: [ # Maven artifacts uploaded to Artifact Registry at the end of the build.
3124 { # A Maven artifact uploaded using the MavenArtifact directive.
3125 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3126 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact.
3127 &quot;fileHash&quot;: [ # Collection of file hashes.
3128 { # Container message for hash values.
3129 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3130 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3131 },
3132 ],
3133 },
3134 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3135 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3136 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3137 },
3138 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
3139 },
3140 ],
3141 &quot;npmPackages&quot;: [ # Npm packages uploaded to Artifact Registry at the end of the build.
3142 { # An npm package uploaded to Artifact Registry using the NpmPackage directive.
3143 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3144 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the npm package.
3145 &quot;fileHash&quot;: [ # Collection of file hashes.
3146 { # Container message for hash values.
3147 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3148 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3149 },
3150 ],
3151 },
3152 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3153 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3154 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3155 },
3156 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded npm package.
3157 },
3158 ],
3159 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
3160 &quot;pythonPackages&quot;: [ # Python artifacts uploaded to Artifact Registry at the end of the build.
3161 { # Artifact uploaded using the PythonPackage directive.
3162 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3163 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact.
3164 &quot;fileHash&quot;: [ # Collection of file hashes.
3165 { # Container message for hash values.
3166 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3167 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3168 },
3169 ],
3170 },
3171 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3172 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3173 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3174 },
3175 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
3176 },
3177 ],
3178 },
3179 &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
3180 { # 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.
3181 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
3182 &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.
3183 &quot;a_key&quot;: &quot;A String&quot;,
3184 },
3185 },
3186 ],
3187 &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.
3188 &quot;source&quot;: { # Location of the source in a supported storage service. # Optional. The location of the source files to build.
3189 &quot;connectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource.
3190 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
3191 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
3192 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
3193 },
3194 &quot;developerConnectConfig&quot;: { # This config defines the location of a source through Developer Connect. # If provided, get the source from this Developer Connect config.
3195 &quot;dir&quot;: &quot;A String&quot;, # Required. Directory, relative to the source root, in which to run the build.
3196 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
3197 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
3198 },
3199 &quot;gitSource&quot;: { # Location of the source in any accessible Git repository. # If provided, get the source from this Git repository.
3200 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3201 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
3202 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
3203 },
3204 &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.
3205 &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
3206 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3207 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3208 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
3209 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
3210 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
3211 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
3212 &quot;a_key&quot;: &quot;A String&quot;,
3213 },
3214 &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
3215 },
3216 &quot;storageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # If provided, get the source from this location in Cloud Storage.
3217 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3218 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
3219 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
3220 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
3221 },
3222 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
3223 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3224 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
3225 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
3226 },
3227 },
3228 &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.
3229 &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.
3230 &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.
3231 &quot;fileHash&quot;: [ # Collection of file hashes.
3232 { # Container message for hash values.
3233 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3234 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3235 },
3236 ],
3237 },
3238 },
3239 &quot;resolvedConnectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Output only. A copy of the build&#x27;s `source.connected_repository`, if exists, with any revisions resolved.
3240 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
3241 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
3242 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
3243 },
3244 &quot;resolvedGitSource&quot;: { # Location of the source in any accessible Git repository. # Output only. A copy of the build&#x27;s `source.git_source`, if exists, with any revisions resolved.
3245 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3246 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
3247 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
3248 },
3249 &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.
3250 &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
3251 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3252 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3253 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
3254 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
3255 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
3256 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
3257 &quot;a_key&quot;: &quot;A String&quot;,
3258 },
3259 &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
3260 },
3261 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
3262 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3263 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
3264 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
3265 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
3266 },
3267 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
3268 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3269 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
3270 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
3271 },
3272 },
3273 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
3274 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
3275 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
3276 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
3277 { # A step in the build pipeline.
3278 &quot;allowExitCodes&quot;: [ # Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
3279 42,
3280 ],
3281 &quot;allowFailure&quot;: True or False, # Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
3282 &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.
3283 &quot;A String&quot;,
3284 ],
3285 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
3286 &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.
3287 &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.
3288 &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;.
3289 &quot;A String&quot;,
3290 ],
3291 &quot;exitCode&quot;: 42, # Output only. Return code from running the step.
3292 &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.
3293 &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.
3294 &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.
3295 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3296 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3297 },
3298 &quot;results&quot;: [ # Declaration of results for this build step.
3299 { # StepResult is the declaration of a result for a build step.
3300 &quot;attestationContent&quot;: &quot;A String&quot;, # Optional. The content of the attestation to be generated.
3301 &quot;attestationType&quot;: &quot;A String&quot;, # Optional. The type of attestation to be generated.
3302 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the result.
3303 },
3304 ],
3305 &quot;script&quot;: &quot;A String&quot;, # A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
3306 &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`.
3307 &quot;A String&quot;,
3308 ],
3309 &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.
3310 &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.
3311 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
3312 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3313 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3314 },
3315 &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.
3316 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
3317 &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.
3318 &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.
3319 },
3320 ],
3321 &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.
3322 &quot;A String&quot;,
3323 ],
3324 },
3325 ],
3326 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
3327 &quot;a_key&quot;: &quot;A String&quot;,
3328 },
3329 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
3330 &quot;A String&quot;,
3331 ],
3332 &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 60 minutes.
3333 &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 artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
3334 &quot;a_key&quot;: { # Start and end times for a build execution phase.
3335 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3336 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3337 },
3338 },
3339 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
3340 { # A non-fatal problem encountered during the execution of the build.
3341 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
3342 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
3343 },
3344 ],
3345 },
3346 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
3347 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
3348 &quot;developerConnectEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received. # Optional. The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received.
3349 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
3350 &quot;gitRepositoryLinkType&quot;: &quot;A String&quot;, # Output only. The type of DeveloperConnect GitRepositoryLink.
3351 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
3352 &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
3353 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
3354 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
3355 },
3356 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches and tags.
3357 &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
3358 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
3359 &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
3360 },
3361 },
3362 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
3363 &quot;eventType&quot;: &quot;A String&quot;, # EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set.
3364 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
3365 &quot;filter&quot;: &quot;A String&quot;, # A Common Expression Language string.
3366 &quot;gitFileSource&quot;: { # GitFileSource describes a file within a (possibly remote) code repository. # The file source describing the local or remote Build template.
3367 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
3368 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
3369 &quot;path&quot;: &quot;A String&quot;, # The path of the file, with the repo root as the root of the path.
3370 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType above.
3371 &quot;repository&quot;: &quot;A String&quot;, # The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
3372 &quot;revision&quot;: &quot;A String&quot;, # The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
3373 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
3374 },
3375 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
3376 &quot;enterpriseConfigResourceName&quot;: &quot;A String&quot;, # The resource name of the github enterprise config that should be applied to this installation. For example: &quot;projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}&quot;
3377 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
3378 &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;.
3379 &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;.
3380 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
3381 &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
3382 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
3383 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
3384 },
3385 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
3386 &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
3387 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
3388 &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
3389 },
3390 },
3391 &quot;gitlabEnterpriseEventsConfig&quot;: { # GitLabEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab event is received. # GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.
3392 &quot;gitlabConfig&quot;: { # GitLabConfig represents the configuration for a GitLab integration. # Output only. The GitLabConfig specified in the gitlab_config_resource field.
3393 &quot;connectedRepositories&quot;: [ # Connected GitLab.com or GitLabEnterprise repositories for this config.
3394 { # GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise
3395 &quot;id&quot;: &quot;A String&quot;, # Required. Identifier for the repository. example: &quot;namespace/project-slug&quot;, namespace is usually the username or group ID
3396 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
3397 },
3398 ],
3399 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the config was created.
3400 &quot;enterpriseConfig&quot;: { # GitLabEnterpriseConfig represents the configuration for a GitLabEnterprise integration. # Optional. GitLabEnterprise config.
3401 &quot;hostUri&quot;: &quot;A String&quot;, # Immutable. The URI of the GitlabEnterprise host.
3402 &quot;serviceDirectoryConfig&quot;: { # ServiceDirectoryConfig represents Service Directory configuration for a SCM host connection. # The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
3403 &quot;service&quot;: &quot;A String&quot;, # The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
3404 },
3405 &quot;sslCa&quot;: &quot;A String&quot;, # The SSL certificate to use in requests to GitLab Enterprise instances.
3406 },
3407 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
3408 &quot;secrets&quot;: { # GitLabSecrets represents the secrets in Secret Manager for a GitLab integration. # Required. Secret Manager secrets needed by the config.
3409 &quot;apiAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the api access token’s secret version
3410 &quot;apiKeyVersion&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
3411 &quot;readAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the read access token’s secret version
3412 &quot;webhookSecretVersion&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
3413 },
3414 &quot;username&quot;: &quot;A String&quot;, # Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
3415 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
3416 },
3417 &quot;gitlabConfigResource&quot;: &quot;A String&quot;, # The GitLab config resource that this trigger config maps to.
3418 &quot;projectNamespace&quot;: &quot;A String&quot;, # Namespace of the GitLab project.
3419 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
3420 &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
3421 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
3422 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
3423 },
3424 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
3425 &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
3426 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
3427 &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
3428 },
3429 },
3430 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
3431 &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.
3432 &quot;A String&quot;,
3433 ],
3434 &quot;includeBuildLogs&quot;: &quot;A String&quot;, # If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error.
3435 &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.
3436 &quot;A String&quot;,
3437 ],
3438 &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.
3439 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
3440 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
3441 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
3442 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
3443 &quot;topic&quot;: &quot;A String&quot;, # Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
3444 },
3445 &quot;repositoryEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from Repo API is received. # The configuration of a trigger that creates a build whenever an event from Repo API is received.
3446 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
3447 &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
3448 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
3449 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
3450 },
3451 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
3452 &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
3453 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
3454 &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
3455 },
3456 &quot;repository&quot;: &quot;A String&quot;, # The resource name of the Repo API resource.
3457 &quot;repositoryType&quot;: &quot;A String&quot;, # Output only. The type of the SCM vendor the repository points to.
3458 },
3459 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
3460 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account ([PROJECT_NUM]@cloudbuild.gserviceaccount.com) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
3461 &quot;sourceToBuild&quot;: { # GitRepoSource describes a repo and ref of a code repository. # The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
3462 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
3463 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
3464 &quot;ref&quot;: &quot;A String&quot;, # The branch or tag to use. Must start with &quot;refs/&quot; (required).
3465 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType below.
3466 &quot;repository&quot;: &quot;A String&quot;, # The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
3467 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
3468 },
3469 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
3470 &quot;a_key&quot;: &quot;A String&quot;,
3471 },
3472 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
3473 &quot;A String&quot;,
3474 ],
3475 &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`.
3476 &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
3477 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3478 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3479 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
3480 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
3481 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
3482 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
3483 &quot;a_key&quot;: &quot;A String&quot;,
3484 },
3485 &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
3486 },
3487 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
3488 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
3489 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
3490 },
3491 }
3492
3493 updateMask: string, Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.
3494 x__xgafv: string, V1 error format.
3495 Allowed values
3496 1 - v1 error format
3497 2 - v2 error format
3498
3499 Returns:
3500 An object of the form:
3501
3502 { # Configuration for an automated build in response to source repository changes.
3503 &quot;approvalConfig&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Configuration for manual approval to start a build invocation of this BuildTrigger.
3504 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
3505 },
3506 &quot;autodetect&quot;: True or False, # Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
3507 &quot;bitbucketServerTriggerConfig&quot;: { # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received. # BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.
3508 &quot;bitbucketServerConfig&quot;: { # BitbucketServerConfig represents the configuration for a Bitbucket Server. # Output only. The BitbucketServerConfig specified in the bitbucket_server_config_resource field.
3509 &quot;apiKey&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
3510 &quot;connectedRepositories&quot;: [ # Output only. Connected Bitbucket Server repositories for this config.
3511 { # BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.
3512 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Identifier for the project storing the repository.
3513 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Identifier for the repository.
3514 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
3515 },
3516 ],
3517 &quot;createTime&quot;: &quot;A String&quot;, # Time when the config was created.
3518 &quot;hostUri&quot;: &quot;A String&quot;, # Required. Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
3519 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
3520 &quot;peeredNetwork&quot;: &quot;A String&quot;, # Optional. The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.
3521 &quot;peeredNetworkIpRange&quot;: &quot;A String&quot;, # Immutable. IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a 29 bit prefix size. `/16` would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of `/24` will be used. The field only has an effect if peered_network is set.
3522 &quot;secrets&quot;: { # BitbucketServerSecrets represents the secrets in Secret Manager for a Bitbucket Server. # Required. Secret Manager secrets needed by the config.
3523 &quot;adminAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the admin access token&#x27;s secret version.
3524 &quot;readAccessTokenVersionName&quot;: &quot;A String&quot;, # Required. The resource name for the read access token&#x27;s secret version.
3525 &quot;webhookSecretVersionName&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret&#x27;s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.
3526 },
3527 &quot;sslCa&quot;: &quot;A String&quot;, # Optional. SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.
3528 &quot;username&quot;: &quot;A String&quot;, # Username of the account Cloud Build will use on Bitbucket Server.
3529 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
3530 },
3531 &quot;bitbucketServerConfigResource&quot;: &quot;A String&quot;, # Required. The Bitbucket server config resource that this trigger config maps to.
3532 &quot;projectKey&quot;: &quot;A String&quot;, # Required. Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is &quot;TEST&quot;.
3533 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
3534 &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
3535 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
3536 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
3537 },
3538 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
3539 &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
3540 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
3541 &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
3542 },
3543 &quot;repoSlug&quot;: &quot;A String&quot;, # Required. Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL. For example, if the repository name is &#x27;test repo&#x27;, in the URL it would become &#x27;test-repo&#x27; as in https://mybitbucket.server/projects/TEST/repos/test-repo.
3544 },
3545 &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. - $LOCATION: the location/region 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.
3546 &quot;approval&quot;: { # BuildApproval describes a build&#x27;s approval configuration, state, and result. # Output only. Describes this build&#x27;s approval configuration, status, and result.
3547 &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
3548 &quot;approvalRequired&quot;: True or False, # Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
3549 },
3550 &quot;result&quot;: { # ApprovalResult describes the decision and associated metadata of a manual approval of a build. # Output only. Result of manual approval for this Build.
3551 &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
3552 &quot;approverAccount&quot;: &quot;A String&quot;, # Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
3553 &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
3554 &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
3555 &quot;url&quot;: &quot;A String&quot;, # Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
3556 },
3557 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
3558 },
3559 &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.
3560 &quot;genericArtifacts&quot;: [ # Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE.
3561 { # Generic artifact to upload to Artifact Registry upon successful completion of all build steps.
3562 &quot;folder&quot;: &quot;A String&quot;, # Required. Path to the generic artifact in the build&#x27;s workspace to be uploaded to Artifact Registry.
3563 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION
3564 },
3565 ],
3566 &quot;goModules&quot;: [ # Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.
3567 { # Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.
3568 &quot;modulePath&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s &quot;module path&quot;. e.g. example.com/foo/v2
3569 &quot;moduleVersion&quot;: &quot;A String&quot;, # Optional. The Go module&#x27;s semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
3570 &quot;repositoryLocation&quot;: &quot;A String&quot;, # Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.
3571 &quot;repositoryName&quot;: &quot;A String&quot;, # Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo
3572 &quot;repositoryProjectId&quot;: &quot;A String&quot;, # Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
3573 &quot;sourcePath&quot;: &quot;A String&quot;, # Optional. Source path of the go.mod file in the build&#x27;s workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage
3574 },
3575 ],
3576 &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.
3577 &quot;A String&quot;,
3578 ],
3579 &quot;mavenArtifacts&quot;: [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
3580 { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
3581 &quot;artifactId&quot;: &quot;A String&quot;, # Maven `artifactId` value used when uploading the artifact to Artifact Registry.
3582 &quot;deployFolder&quot;: &quot;A String&quot;, # Optional. Path to a folder containing the files to upload to Artifact Registry. This can be either an absolute path, e.g. `/workspace/my-app/target/`, or a relative path from /workspace, e.g. `my-app/target/`. This field is mutually exclusive with the `path` field.
3583 &quot;groupId&quot;: &quot;A String&quot;, # Maven `groupId` value used when uploading the artifact to Artifact Registry.
3584 &quot;path&quot;: &quot;A String&quot;, # Optional. Path to an artifact in the build&#x27;s workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
3585 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY&quot; Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
3586 &quot;version&quot;: &quot;A String&quot;, # Maven `version` value used when uploading the artifact to Artifact Registry.
3587 },
3588 ],
3589 &quot;npmPackages&quot;: [ # A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any packages fail to be pushed, the build is marked FAILURE.
3590 { # Npm package to upload to Artifact Registry upon successful completion of all build steps.
3591 &quot;packagePath&quot;: &quot;A String&quot;, # Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.
3592 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY&quot; Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
3593 },
3594 ],
3595 &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.
3596 &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.
3597 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
3598 &quot;A String&quot;,
3599 ],
3600 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
3601 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3602 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3603 },
3604 },
3605 &quot;oci&quot;: [ # Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion of all build steps. OCI images in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account&#x27;s credentials. If any images fail to be pushed, the build is marked FAILURE.
3606 { # OCI image to upload to Artifact Registry upon successful completion of all build steps.
3607 &quot;file&quot;: &quot;A String&quot;, # Required. Path on the local file system where to find the container to upload. e.g. /workspace/my-image.tar
3608 &quot;registryPath&quot;: &quot;A String&quot;, # Required. Registry path to upload the container to. e.g. us-east1-docker.pkg.dev/my-project/my-repo/my-image
3609 &quot;tags&quot;: [ # Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
3610 &quot;A String&quot;,
3611 ],
3612 },
3613 ],
3614 &quot;pythonPackages&quot;: [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.
3615 { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
3616 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
3617 &quot;A String&quot;,
3618 ],
3619 &quot;repository&quot;: &quot;A String&quot;, # Artifact Registry repository, in the form &quot;https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY&quot; Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
3620 },
3621 ],
3622 },
3623 &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
3624 &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
3625 { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
3626 &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.
3627 &quot;a_key&quot;: &quot;A String&quot;,
3628 },
3629 &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/*
3630 },
3631 ],
3632 &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
3633 { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
3634 &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.
3635 &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
3636 },
3637 ],
3638 },
3639 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
3640 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
3641 &quot;dependencies&quot;: [ # Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
3642 { # A dependency that the Cloud Build worker will fetch before executing user steps.
3643 &quot;empty&quot;: True or False, # If set to true disable all dependency fetching (ignoring the default source as well).
3644 &quot;genericArtifact&quot;: { # Represents a generic artifact as a build dependency. # Represents a generic artifact as a build dependency.
3645 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where the artifact files should be placed on the worker.
3646 &quot;resource&quot;: &quot;A String&quot;, # Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
3647 },
3648 &quot;gitSource&quot;: { # Represents a git repository as a build dependency. # Represents a git repository as a build dependency.
3649 &quot;depth&quot;: &quot;A String&quot;, # Optional. How much history should be fetched for the build (default 1, -1 for all history).
3650 &quot;destPath&quot;: &quot;A String&quot;, # Required. Where should the files be placed on the worker.
3651 &quot;recurseSubmodules&quot;: True or False, # Optional. True if submodules should be fetched too (default false).
3652 &quot;repository&quot;: { # A repository for a git source. # Required. The kind of repo (url or dev connect).
3653 &quot;developerConnect&quot;: &quot;A String&quot;, # The Developer Connect Git repository link formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`
3654 &quot;url&quot;: &quot;A String&quot;, # Location of the Git repository.
3655 },
3656 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision that we will fetch the repo at.
3657 },
3658 },
3659 ],
3660 &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
3661 &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
3662 &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
3663 },
3664 &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.
3665 &quot;gitConfig&quot;: { # GitConfig is a configuration for git operations. # Optional. Configuration for git operations.
3666 &quot;http&quot;: { # HttpConfig is a configuration for HTTP related git operations. # Configuration for HTTP related git operations.
3667 &quot;proxySecretVersionName&quot;: &quot;A String&quot;, # SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.
3668 },
3669 },
3670 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
3671 &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`.
3672 &quot;A String&quot;,
3673 ],
3674 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
3675 &quot;logsBucket&quot;: &quot;A String&quot;, # 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`.
3676 &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.
3677 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
3678 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for all build steps.
3679 &quot;defaultLogsBucketBehavior&quot;: &quot;A String&quot;, # Optional. Option to specify how default logs buckets are setup.
3680 &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 4000GB; builds that request more than the maximum are rejected with an error.
3681 &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.
3682 &quot;enableStructuredLogging&quot;: True or False, # Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.
3683 &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;.
3684 &quot;A String&quot;,
3685 ],
3686 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Cloud Storage.
3687 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
3688 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
3689 &quot;pool&quot;: { # Details about how a build should be executed on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. # Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
3690 &quot;name&quot;: &quot;A String&quot;, # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}
3691 },
3692 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. Option to specify the Pub/Sub topic to receive build status updates.
3693 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
3694 &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.
3695 &quot;A String&quot;,
3696 ],
3697 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
3698 &quot;A String&quot;,
3699 ],
3700 &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.
3701 &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.
3702 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
3703 &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.
3704 &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.
3705 },
3706 ],
3707 &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
3708 },
3709 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
3710 &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.
3711 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
3712 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
3713 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts to Cloud Storage.
3714 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3715 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3716 },
3717 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
3718 &quot;A String&quot;,
3719 ],
3720 &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 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can&#x27;t be substituted.
3721 &quot;A String&quot;,
3722 ],
3723 &quot;buildStepResults&quot;: { # Results for build steps. step_id -&gt;
3724 &quot;a_key&quot;: { # Results for a build step.
3725 &quot;results&quot;: { # Results for a build step.
3726 &quot;a_key&quot;: &quot;A String&quot;,
3727 },
3728 },
3729 },
3730 &quot;genericArtifacts&quot;: [ # Output only. Generic artifacts uploaded to Artifact Registry at the end of the build.
3731 { # A generic artifact uploaded to Artifact Registry using the GenericArtifact directive.
3732 &quot;artifactFingerprint&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Output only. The hash of the whole artifact.
3733 &quot;fileHash&quot;: [ # Collection of file hashes.
3734 { # Container message for hash values.
3735 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3736 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3737 },
3738 ],
3739 },
3740 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3741 &quot;fileHashes&quot;: { # Output only. The file hashes that make up the generic artifact.
3742 &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.
3743 &quot;fileHash&quot;: [ # Collection of file hashes.
3744 { # Container message for hash values.
3745 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3746 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3747 },
3748 ],
3749 },
3750 },
3751 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3752 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3753 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3754 },
3755 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
3756 },
3757 ],
3758 &quot;goModules&quot;: [ # Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.
3759 { # A Go module artifact uploaded to Artifact Registry using the GoModule directive.
3760 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3761 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Go Module Artifact.
3762 &quot;fileHash&quot;: [ # Collection of file hashes.
3763 { # Container message for hash values.
3764 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3765 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3766 },
3767 ],
3768 },
3769 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3770 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3771 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3772 },
3773 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
3774 },
3775 ],
3776 &quot;images&quot;: [ # Container images that were built as a part of the build.
3777 { # An image built by the pipeline.
3778 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3779 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
3780 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
3781 &quot;ociMediaType&quot;: &quot;A String&quot;, # Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value.
3782 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
3783 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3784 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3785 },
3786 },
3787 ],
3788 &quot;mavenArtifacts&quot;: [ # Maven artifacts uploaded to Artifact Registry at the end of the build.
3789 { # A Maven artifact uploaded using the MavenArtifact directive.
3790 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3791 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact.
3792 &quot;fileHash&quot;: [ # Collection of file hashes.
3793 { # Container message for hash values.
3794 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3795 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3796 },
3797 ],
3798 },
3799 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3800 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3801 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3802 },
3803 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
3804 },
3805 ],
3806 &quot;npmPackages&quot;: [ # Npm packages uploaded to Artifact Registry at the end of the build.
3807 { # An npm package uploaded to Artifact Registry using the NpmPackage directive.
3808 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3809 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the npm package.
3810 &quot;fileHash&quot;: [ # Collection of file hashes.
3811 { # Container message for hash values.
3812 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3813 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3814 },
3815 ],
3816 },
3817 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3818 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3819 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3820 },
3821 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded npm package.
3822 },
3823 ],
3824 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.
3825 &quot;pythonPackages&quot;: [ # Python artifacts uploaded to Artifact Registry at the end of the build.
3826 { # Artifact uploaded using the PythonPackage directive.
3827 &quot;artifactRegistryPackage&quot;: &quot;A String&quot;, # Output only. Path to the artifact in Artifact Registry.
3828 &quot;fileHashes&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact.
3829 &quot;fileHash&quot;: [ # Collection of file hashes.
3830 { # Container message for hash values.
3831 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3832 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3833 },
3834 ],
3835 },
3836 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact.
3837 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3838 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3839 },
3840 &quot;uri&quot;: &quot;A String&quot;, # URI of the uploaded artifact.
3841 },
3842 ],
3843 },
3844 &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
3845 { # 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.
3846 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
3847 &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.
3848 &quot;a_key&quot;: &quot;A String&quot;,
3849 },
3850 },
3851 ],
3852 &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.
3853 &quot;source&quot;: { # Location of the source in a supported storage service. # Optional. The location of the source files to build.
3854 &quot;connectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource.
3855 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
3856 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
3857 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
3858 },
3859 &quot;developerConnectConfig&quot;: { # This config defines the location of a source through Developer Connect. # If provided, get the source from this Developer Connect config.
3860 &quot;dir&quot;: &quot;A String&quot;, # Required. Directory, relative to the source root, in which to run the build.
3861 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
3862 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
3863 },
3864 &quot;gitSource&quot;: { # Location of the source in any accessible Git repository. # If provided, get the source from this Git repository.
3865 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3866 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
3867 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
3868 },
3869 &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.
3870 &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
3871 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3872 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3873 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
3874 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
3875 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
3876 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
3877 &quot;a_key&quot;: &quot;A String&quot;,
3878 },
3879 &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
3880 },
3881 &quot;storageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # If provided, get the source from this location in Cloud Storage.
3882 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3883 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
3884 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
3885 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
3886 },
3887 &quot;storageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
3888 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3889 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
3890 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
3891 },
3892 },
3893 &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.
3894 &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.
3895 &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.
3896 &quot;fileHash&quot;: [ # Collection of file hashes.
3897 { # Container message for hash values.
3898 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3899 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3900 },
3901 ],
3902 },
3903 },
3904 &quot;resolvedConnectedRepository&quot;: { # Location of the source in a 2nd-gen Google Cloud Build repository resource. # Output only. A copy of the build&#x27;s `source.connected_repository`, if exists, with any revisions resolved.
3905 &quot;dir&quot;: &quot;A String&quot;, # Optional. Directory, relative to the source root, in which to run the build.
3906 &quot;repository&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.
3907 &quot;revision&quot;: &quot;A String&quot;, # Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
3908 },
3909 &quot;resolvedGitSource&quot;: { # Location of the source in any accessible Git repository. # Output only. A copy of the build&#x27;s `source.git_source`, if exists, with any revisions resolved.
3910 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3911 &quot;revision&quot;: &quot;A String&quot;, # Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
3912 &quot;url&quot;: &quot;A String&quot;, # Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.
3913 },
3914 &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.
3915 &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
3916 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3917 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
3918 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
3919 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
3920 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
3921 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
3922 &quot;a_key&quot;: &quot;A String&quot;,
3923 },
3924 &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
3925 },
3926 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
3927 &quot;bucket&quot;: &quot;A String&quot;, # Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3928 &quot;generation&quot;: &quot;A String&quot;, # Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
3929 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
3930 &quot;sourceFetcher&quot;: &quot;A String&quot;, # Optional. Option to specify the tool to fetch the source file for the build.
3931 },
3932 &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). # A copy of the build&#x27;s `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
3933 &quot;bucket&quot;: &quot;A String&quot;, # Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3934 &quot;generation&quot;: &quot;A String&quot;, # Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
3935 &quot;object&quot;: &quot;A String&quot;, # Required. Cloud Storage object containing the source manifest. This object must be a JSON file.
3936 },
3937 },
3938 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
3939 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
3940 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
3941 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
3942 { # A step in the build pipeline.
3943 &quot;allowExitCodes&quot;: [ # Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
3944 42,
3945 ],
3946 &quot;allowFailure&quot;: True or False, # Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
3947 &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.
3948 &quot;A String&quot;,
3949 ],
3950 &quot;automapSubstitutions&quot;: True or False, # Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
3951 &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.
3952 &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.
3953 &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;.
3954 &quot;A String&quot;,
3955 ],
3956 &quot;exitCode&quot;: 42, # Output only. Return code from running the step.
3957 &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.
3958 &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.
3959 &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.
3960 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3961 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3962 },
3963 &quot;results&quot;: [ # Declaration of results for this build step.
3964 { # StepResult is the declaration of a result for a build step.
3965 &quot;attestationContent&quot;: &quot;A String&quot;, # Optional. The content of the attestation to be generated.
3966 &quot;attestationType&quot;: &quot;A String&quot;, # Optional. The type of attestation to be generated.
3967 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the result.
3968 },
3969 ],
3970 &quot;script&quot;: &quot;A String&quot;, # A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
3971 &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`.
3972 &quot;A String&quot;,
3973 ],
3974 &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.
3975 &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.
3976 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
3977 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
3978 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
3979 },
3980 &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.
3981 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
3982 &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.
3983 &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.
3984 },
3985 ],
3986 &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.
3987 &quot;A String&quot;,
3988 ],
3989 },
3990 ],
3991 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
3992 &quot;a_key&quot;: &quot;A String&quot;,
3993 },
3994 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
3995 &quot;A String&quot;,
3996 ],
3997 &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 60 minutes.
3998 &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 artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
3999 &quot;a_key&quot;: { # Start and end times for a build execution phase.
4000 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
4001 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
4002 },
4003 },
4004 &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
4005 { # A non-fatal problem encountered during the execution of the build.
4006 &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
4007 &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
4008 },
4009 ],
4010 },
4011 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
4012 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
4013 &quot;developerConnectEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received. # Optional. The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received.
4014 &quot;gitRepositoryLink&quot;: &quot;A String&quot;, # Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
4015 &quot;gitRepositoryLinkType&quot;: &quot;A String&quot;, # Output only. The type of DeveloperConnect GitRepositoryLink.
4016 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
4017 &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
4018 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
4019 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
4020 },
4021 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches and tags.
4022 &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
4023 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
4024 &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
4025 },
4026 },
4027 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
4028 &quot;eventType&quot;: &quot;A String&quot;, # EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set.
4029 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
4030 &quot;filter&quot;: &quot;A String&quot;, # A Common Expression Language string.
4031 &quot;gitFileSource&quot;: { # GitFileSource describes a file within a (possibly remote) code repository. # The file source describing the local or remote Build template.
4032 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
4033 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
4034 &quot;path&quot;: &quot;A String&quot;, # The path of the file, with the repo root as the root of the path.
4035 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType above.
4036 &quot;repository&quot;: &quot;A String&quot;, # The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
4037 &quot;revision&quot;: &quot;A String&quot;, # The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
4038 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
4039 },
4040 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
4041 &quot;enterpriseConfigResourceName&quot;: &quot;A String&quot;, # The resource name of the github enterprise config that should be applied to this installation. For example: &quot;projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}&quot;
4042 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
4043 &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;.
4044 &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;.
4045 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
4046 &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
4047 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
4048 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
4049 },
4050 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
4051 &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
4052 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
4053 &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
4054 },
4055 },
4056 &quot;gitlabEnterpriseEventsConfig&quot;: { # GitLabEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab event is received. # GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.
4057 &quot;gitlabConfig&quot;: { # GitLabConfig represents the configuration for a GitLab integration. # Output only. The GitLabConfig specified in the gitlab_config_resource field.
4058 &quot;connectedRepositories&quot;: [ # Connected GitLab.com or GitLabEnterprise repositories for this config.
4059 { # GitLabRepositoryId identifies a specific repository hosted on GitLab.com or GitLabEnterprise
4060 &quot;id&quot;: &quot;A String&quot;, # Required. Identifier for the repository. example: &quot;namespace/project-slug&quot;, namespace is usually the username or group ID
4061 &quot;webhookId&quot;: 42, # Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo.
4062 },
4063 ],
4064 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the config was created.
4065 &quot;enterpriseConfig&quot;: { # GitLabEnterpriseConfig represents the configuration for a GitLabEnterprise integration. # Optional. GitLabEnterprise config.
4066 &quot;hostUri&quot;: &quot;A String&quot;, # Immutable. The URI of the GitlabEnterprise host.
4067 &quot;serviceDirectoryConfig&quot;: { # ServiceDirectoryConfig represents Service Directory configuration for a SCM host connection. # The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance.
4068 &quot;service&quot;: &quot;A String&quot;, # The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
4069 },
4070 &quot;sslCa&quot;: &quot;A String&quot;, # The SSL certificate to use in requests to GitLab Enterprise instances.
4071 },
4072 &quot;name&quot;: &quot;A String&quot;, # The resource name for the config.
4073 &quot;secrets&quot;: { # GitLabSecrets represents the secrets in Secret Manager for a GitLab integration. # Required. Secret Manager secrets needed by the config.
4074 &quot;apiAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the api access token’s secret version
4075 &quot;apiKeyVersion&quot;: &quot;A String&quot;, # Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build.
4076 &quot;readAccessTokenVersion&quot;: &quot;A String&quot;, # Required. The resource name for the read access token’s secret version
4077 &quot;webhookSecretVersion&quot;: &quot;A String&quot;, # Required. Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another GitLabConfig.
4078 },
4079 &quot;username&quot;: &quot;A String&quot;, # Username of the GitLab.com or GitLab Enterprise account Cloud Build will use.
4080 &quot;webhookKey&quot;: &quot;A String&quot;, # Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
4081 },
4082 &quot;gitlabConfigResource&quot;: &quot;A String&quot;, # The GitLab config resource that this trigger config maps to.
4083 &quot;projectNamespace&quot;: &quot;A String&quot;, # Namespace of the GitLab project.
4084 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
4085 &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
4086 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
4087 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
4088 },
4089 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
4090 &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
4091 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
4092 &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
4093 },
4094 },
4095 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
4096 &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.
4097 &quot;A String&quot;,
4098 ],
4099 &quot;includeBuildLogs&quot;: &quot;A String&quot;, # If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error.
4100 &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.
4101 &quot;A String&quot;,
4102 ],
4103 &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.
4104 &quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
4105 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
4106 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
4107 &quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
4108 &quot;topic&quot;: &quot;A String&quot;, # Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
4109 },
4110 &quot;repositoryEventConfig&quot;: { # The configuration of a trigger that creates a build whenever an event from Repo API is received. # The configuration of a trigger that creates a build whenever an event from Repo API is received.
4111 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # Filter to match changes in pull requests.
4112 &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
4113 &quot;commentControl&quot;: &quot;A String&quot;, # If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds. If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.
4114 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
4115 },
4116 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # Filter to match changes in refs like branches, tags.
4117 &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
4118 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
4119 &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
4120 },
4121 &quot;repository&quot;: &quot;A String&quot;, # The resource name of the Repo API resource.
4122 &quot;repositoryType&quot;: &quot;A String&quot;, # Output only. The type of the SCM vendor the repository points to.
4123 },
4124 &quot;resourceName&quot;: &quot;A String&quot;, # The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
4125 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account ([PROJECT_NUM]@cloudbuild.gserviceaccount.com) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
4126 &quot;sourceToBuild&quot;: { # GitRepoSource describes a repo and ref of a code repository. # The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
4127 &quot;bitbucketServerConfig&quot;: &quot;A String&quot;, # The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
4128 &quot;githubEnterpriseConfig&quot;: &quot;A String&quot;, # The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.
4129 &quot;ref&quot;: &quot;A String&quot;, # The branch or tag to use. Must start with &quot;refs/&quot; (required).
4130 &quot;repoType&quot;: &quot;A String&quot;, # See RepoType below.
4131 &quot;repository&quot;: &quot;A String&quot;, # The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.
4132 &quot;uri&quot;: &quot;A String&quot;, # The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.
4133 },
4134 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
4135 &quot;a_key&quot;: &quot;A String&quot;,
4136 },
4137 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
4138 &quot;A String&quot;,
4139 ],
4140 &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`.
4141 &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
4142 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
4143 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
4144 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
4145 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
4146 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
4147 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
4148 &quot;a_key&quot;: &quot;A String&quot;,
4149 },
4150 &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
4151 },
4152 &quot;webhookConfig&quot;: { # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL. # WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger&#x27;s webhook URL.
4153 &quot;secret&quot;: &quot;A String&quot;, # Required. Resource name for the secret required as a URL parameter.
4154 &quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
4155 },
4156 }</pre>
4157 </div>
4158
4159 <div class="method">
4160 <code class="details" id="run">run(projectId, triggerId, body=None, name=None, x__xgafv=None)</code>
4161 <pre>Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex. v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global triggers.
4162
4163 Args:
4164 projectId: string, Required. ID of the project. (required)
4165 triggerId: string, Required. ID of the trigger. (required)
4166 body: object, The request body.
4167 The object takes the form of:
4168
4169 { # Location of the source in a Google Cloud Source Repository.
4170 &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
4171 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
4172 &quot;dir&quot;: &quot;A String&quot;, # Optional. 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.
4173 &quot;invertRegex&quot;: True or False, # Optional. Only trigger a build if the revision regex does NOT match the revision regex.
4174 &quot;projectId&quot;: &quot;A String&quot;, # Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
4175 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
4176 &quot;substitutions&quot;: { # Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
4177 &quot;a_key&quot;: &quot;A String&quot;,
4178 },
4179 &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
4180 }
4181
4182 name: string, The name of the `Trigger` to run. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
4183 x__xgafv: string, V1 error format.
4184 Allowed values
4185 1 - v1 error format
4186 2 - v2 error format
4187
4188 Returns:
4189 An object of the form:
4190
4191 { # This resource represents a long-running operation that is the result of a network API call.
4192 &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.
4193 &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.
4194 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
4195 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
4196 {
4197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4198 },
4199 ],
4200 &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.
4201 },
4202 &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.
4203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4204 },
4205 &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}`.
4206 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
4207 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4208 },
4209 }</pre>
4210 </div>
4211
4212 <div class="method">
4213 <code class="details" id="webhook">webhook(projectId, trigger, body=None, name=None, secret=None, x__xgafv=None)</code>
4214 <pre>ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.
4215
4216 Args:
4217 projectId: string, Project in which the specified trigger lives (required)
4218 trigger: string, Name of the trigger to run the payload against (required)
4219 body: object, The request body.
4220 The object takes the form of:
4221
4222 { # 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.
4223 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
4224 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
4225 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
4226 {
4227 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4228 },
4229 ],
4230 }
4231
4232 name: string, The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
4233 secret: string, Secret token used for authorization if an OAuth token isn&#x27;t provided.
4234 x__xgafv: string, V1 error format.
4235 Allowed values
4236 1 - v1 error format
4237 2 - v2 error format
4238
4239 Returns:
4240 An object of the form:
4241
4242 { # ReceiveTriggerWebhookResponse [Experimental] is the response object for the ReceiveTriggerWebhook method.
4243 }</pre>
4244 </div>
4245
4246 </body></html>