• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="cloudbuild_v1.html">Cloud Build API</a> . <a href="cloudbuild_v1.projects.html">projects</a> . <a href="cloudbuild_v1.projects.locations.html">locations</a> . <a href="cloudbuild_v1.projects.locations.builds.html">builds</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#approve">approve(name, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.</p>
80<p class="toc_element">
81  <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Cancels a build in progress.</p>
83<p class="toc_element">
84  <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
86<p class="toc_element">
87  <code><a href="#create">create(parent, body=None, projectId=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).</p>
89<p class="toc_element">
90  <code><a href="#get">get(name, id=None, projectId=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information.</p>
92<p class="toc_element">
93  <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, projectId=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.</p>
95<p class="toc_element">
96  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99  <code><a href="#retry">retry(name, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket's lifecycle management settings.</p>
101<h3>Method Details</h3>
102<div class="method">
103    <code class="details" id="approve">approve(name, body=None, x__xgafv=None)</code>
104  <pre>Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.
105
106Args:
107  name: string, Required. Name of the target build. For example: &quot;projects/{$project_id}/builds/{$build_id}&quot; (required)
108  body: object, The request body.
109    The object takes the form of:
110
111{ # Request to approve or reject a pending build.
112  &quot;approvalResult&quot;: { # ApprovalResult describes the decision and associated metadata of a manual approval of a build. # Approval decision and metadata.
113    &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
114    &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.
115    &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
116    &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
117    &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.
118  },
119}
120
121  x__xgafv: string, V1 error format.
122    Allowed values
123      1 - v1 error format
124      2 - v2 error format
125
126Returns:
127  An object of the form:
128
129    { # This resource represents a long-running operation that is the result of a network API call.
130  &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.
131  &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.
132    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
133    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
134      {
135        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
136      },
137    ],
138    &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.
139  },
140  &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.
141    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
142  },
143  &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}`.
144  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
145    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
146  },
147}</pre>
148</div>
149
150<div class="method">
151    <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
152  <pre>Cancels a build in progress.
153
154Args:
155  name: string, The name of the `Build` to cancel. Format: `projects/{project}/locations/{location}/builds/{build}` (required)
156  body: object, The request body.
157    The object takes the form of:
158
159{ # Request to cancel an ongoing build.
160  &quot;id&quot;: &quot;A String&quot;, # Required. ID of the build.
161  &quot;name&quot;: &quot;A String&quot;, # The name of the `Build` to cancel. Format: `projects/{project}/locations/{location}/builds/{build}`
162  &quot;projectId&quot;: &quot;A String&quot;, # Required. ID of the project.
163}
164
165  x__xgafv: string, V1 error format.
166    Allowed values
167      1 - v1 error format
168      2 - v2 error format
169
170Returns:
171  An object of the form:
172
173    { # 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.
174  &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.
175    &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
176      &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.
177    },
178    &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.
179      &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
180      &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.
181      &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
182      &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
183      &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.
184    },
185    &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
186  },
187  &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.
188    &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.
189      &quot;A String&quot;,
190    ],
191    &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.
192      &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.
193      &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
194        &quot;A String&quot;,
195      ],
196      &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
197        &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
198        &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
199      },
200    },
201  },
202  &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
203    &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
204      { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
205        &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.
206          &quot;a_key&quot;: &quot;A String&quot;,
207        },
208        &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/*
209      },
210    ],
211    &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
212      { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
213        &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.
214        &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
215      },
216    ],
217  },
218  &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
219  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
220  &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
221    &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
222    &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
223  },
224  &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.
225  &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
226  &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`.
227    &quot;A String&quot;,
228  ],
229  &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
230  &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
231  &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.
232  &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
233    &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
234    &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.
235    &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;.
236      &quot;A String&quot;,
237    ],
238    &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
239    &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
240    &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
241    &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.
242      &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}
243    },
244    &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
245    &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.
246      &quot;A String&quot;,
247    ],
248    &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
249      &quot;A String&quot;,
250    ],
251    &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.
252    &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.
253      { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
254        &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.
255        &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.
256      },
257    ],
258    &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
259  },
260  &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
261  &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.
262  &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
263    &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
264    &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
265      &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
266      &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
267    },
268    &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
269      &quot;A String&quot;,
270    ],
271    &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
272      &quot;A String&quot;,
273    ],
274    &quot;images&quot;: [ # Container images that were built as a part of the build.
275      { # An image built by the pipeline.
276        &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
277        &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
278        &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
279          &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
280          &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
281        },
282      },
283    ],
284    &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
285  },
286  &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
287    { # 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.
288      &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
289      &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.
290        &quot;a_key&quot;: &quot;A String&quot;,
291      },
292    },
293  ],
294  &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.
295  &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
296    &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.
297      &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
298      &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
299      &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
300      &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
301      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
302      &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
303      &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
304        &quot;a_key&quot;: &quot;A String&quot;,
305      },
306      &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
307    },
308    &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
309      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
310      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
311      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
312    },
313    &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google 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 Google Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
314      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
315      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
316      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
317    },
318  },
319  &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.
320    &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.
321      &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.
322        &quot;fileHash&quot;: [ # Collection of file hashes.
323          { # Container message for hash values.
324            &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
325            &quot;value&quot;: &quot;A String&quot;, # The hash value.
326          },
327        ],
328      },
329    },
330    &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.
331      &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
332      &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
333      &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
334      &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
335      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
336      &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
337      &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
338        &quot;a_key&quot;: &quot;A String&quot;,
339      },
340      &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
341    },
342    &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
343      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
344      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
345      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
346    },
347    &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google 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.
348      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
349      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
350      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
351    },
352  },
353  &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
354  &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
355  &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
356  &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
357    { # A step in the build pipeline.
358      &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.
359        &quot;A String&quot;,
360      ],
361      &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.
362      &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.
363      &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;.
364        &quot;A String&quot;,
365      ],
366      &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.
367      &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.
368      &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.
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;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.
373      &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`.
374        &quot;A String&quot;,
375      ],
376      &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.
377      &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.
378      &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
379        &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
380        &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
381      },
382      &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.
383        { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
384          &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.
385          &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.
386        },
387      ],
388      &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.
389        &quot;A String&quot;,
390      ],
391    },
392  ],
393  &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
394    &quot;a_key&quot;: &quot;A String&quot;,
395  },
396  &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
397    &quot;A String&quot;,
398  ],
399  &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
400  &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
401    &quot;a_key&quot;: { # Start and end times for a build execution phase.
402      &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
403      &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
404    },
405  },
406  &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
407    { # A non-fatal problem encountered during the execution of the build.
408      &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
409      &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
410    },
411  ],
412}</pre>
413</div>
414
415<div class="method">
416    <code class="details" id="close">close()</code>
417  <pre>Close httplib2 connections.</pre>
418</div>
419
420<div class="method">
421    <code class="details" id="create">create(parent, body=None, projectId=None, x__xgafv=None)</code>
422  <pre>Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).
423
424Args:
425  parent: string, The parent resource where this build will be created. Format: `projects/{project}/locations/{location}` (required)
426  body: object, The request body.
427    The object takes the form of:
428
429{ # 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.
430  &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.
431    &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
432      &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.
433    },
434    &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.
435      &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
436      &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.
437      &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
438      &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
439      &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.
440    },
441    &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
442  },
443  &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.
444    &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.
445      &quot;A String&quot;,
446    ],
447    &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.
448      &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.
449      &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
450        &quot;A String&quot;,
451      ],
452      &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
453        &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
454        &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
455      },
456    },
457  },
458  &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
459    &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
460      { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
461        &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.
462          &quot;a_key&quot;: &quot;A String&quot;,
463        },
464        &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/*
465      },
466    ],
467    &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
468      { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
469        &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.
470        &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
471      },
472    ],
473  },
474  &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
475  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
476  &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
477    &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
478    &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
479  },
480  &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.
481  &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
482  &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`.
483    &quot;A String&quot;,
484  ],
485  &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
486  &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
487  &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.
488  &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
489    &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
490    &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.
491    &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;.
492      &quot;A String&quot;,
493    ],
494    &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
495    &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
496    &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
497    &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.
498      &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}
499    },
500    &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
501    &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.
502      &quot;A String&quot;,
503    ],
504    &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
505      &quot;A String&quot;,
506    ],
507    &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.
508    &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.
509      { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
510        &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.
511        &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.
512      },
513    ],
514    &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
515  },
516  &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
517  &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.
518  &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
519    &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
520    &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
521      &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
522      &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
523    },
524    &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
525      &quot;A String&quot;,
526    ],
527    &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
528      &quot;A String&quot;,
529    ],
530    &quot;images&quot;: [ # Container images that were built as a part of the build.
531      { # An image built by the pipeline.
532        &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
533        &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
534        &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
535          &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
536          &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
537        },
538      },
539    ],
540    &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
541  },
542  &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
543    { # 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.
544      &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
545      &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.
546        &quot;a_key&quot;: &quot;A String&quot;,
547      },
548    },
549  ],
550  &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.
551  &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
552    &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.
553      &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
554      &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
555      &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
556      &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
557      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
558      &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
559      &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
560        &quot;a_key&quot;: &quot;A String&quot;,
561      },
562      &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
563    },
564    &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
565      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
566      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
567      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
568    },
569    &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google 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 Google Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
570      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
571      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
572      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
573    },
574  },
575  &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.
576    &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.
577      &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.
578        &quot;fileHash&quot;: [ # Collection of file hashes.
579          { # Container message for hash values.
580            &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
581            &quot;value&quot;: &quot;A String&quot;, # The hash value.
582          },
583        ],
584      },
585    },
586    &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.
587      &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
588      &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
589      &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
590      &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
591      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
592      &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
593      &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
594        &quot;a_key&quot;: &quot;A String&quot;,
595      },
596      &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
597    },
598    &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
599      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
600      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
601      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
602    },
603    &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google 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.
604      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
605      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
606      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
607    },
608  },
609  &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
610  &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
611  &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
612  &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
613    { # A step in the build pipeline.
614      &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.
615        &quot;A String&quot;,
616      ],
617      &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.
618      &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.
619      &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;.
620        &quot;A String&quot;,
621      ],
622      &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.
623      &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.
624      &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.
625        &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
626        &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
627      },
628      &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.
629      &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`.
630        &quot;A String&quot;,
631      ],
632      &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.
633      &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.
634      &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
635        &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
636        &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
637      },
638      &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.
639        { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
640          &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.
641          &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.
642        },
643      ],
644      &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.
645        &quot;A String&quot;,
646      ],
647    },
648  ],
649  &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
650    &quot;a_key&quot;: &quot;A String&quot;,
651  },
652  &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
653    &quot;A String&quot;,
654  ],
655  &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
656  &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
657    &quot;a_key&quot;: { # Start and end times for a build execution phase.
658      &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
659      &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
660    },
661  },
662  &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
663    { # A non-fatal problem encountered during the execution of the build.
664      &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
665      &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
666    },
667  ],
668}
669
670  projectId: string, Required. ID of the project.
671  x__xgafv: string, V1 error format.
672    Allowed values
673      1 - v1 error format
674      2 - v2 error format
675
676Returns:
677  An object of the form:
678
679    { # This resource represents a long-running operation that is the result of a network API call.
680  &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.
681  &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.
682    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
683    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
684      {
685        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
686      },
687    ],
688    &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.
689  },
690  &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.
691    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
692  },
693  &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}`.
694  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
695    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
696  },
697}</pre>
698</div>
699
700<div class="method">
701    <code class="details" id="get">get(name, id=None, projectId=None, x__xgafv=None)</code>
702  <pre>Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information.
703
704Args:
705  name: string, The name of the `Build` to retrieve. Format: `projects/{project}/locations/{location}/builds/{build}` (required)
706  id: string, Required. ID of the build.
707  projectId: string, Required. ID of the project.
708  x__xgafv: string, V1 error format.
709    Allowed values
710      1 - v1 error format
711      2 - v2 error format
712
713Returns:
714  An object of the form:
715
716    { # 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.
717  &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.
718    &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
719      &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.
720    },
721    &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.
722      &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
723      &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.
724      &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
725      &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
726      &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.
727    },
728    &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
729  },
730  &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.
731    &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.
732      &quot;A String&quot;,
733    ],
734    &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.
735      &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.
736      &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
737        &quot;A String&quot;,
738      ],
739      &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
740        &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
741        &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
742      },
743    },
744  },
745  &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
746    &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
747      { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
748        &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.
749          &quot;a_key&quot;: &quot;A String&quot;,
750        },
751        &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/*
752      },
753    ],
754    &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
755      { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
756        &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.
757        &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
758      },
759    ],
760  },
761  &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
762  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
763  &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
764    &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
765    &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
766  },
767  &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.
768  &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
769  &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`.
770    &quot;A String&quot;,
771  ],
772  &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
773  &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
774  &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.
775  &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
776    &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
777    &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.
778    &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;.
779      &quot;A String&quot;,
780    ],
781    &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
782    &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
783    &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
784    &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.
785      &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}
786    },
787    &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
788    &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.
789      &quot;A String&quot;,
790    ],
791    &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
792      &quot;A String&quot;,
793    ],
794    &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.
795    &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.
796      { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
797        &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.
798        &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.
799      },
800    ],
801    &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
802  },
803  &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
804  &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.
805  &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
806    &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
807    &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
808      &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
809      &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
810    },
811    &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
812      &quot;A String&quot;,
813    ],
814    &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
815      &quot;A String&quot;,
816    ],
817    &quot;images&quot;: [ # Container images that were built as a part of the build.
818      { # An image built by the pipeline.
819        &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
820        &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
821        &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
822          &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
823          &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
824        },
825      },
826    ],
827    &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
828  },
829  &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
830    { # 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.
831      &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
832      &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.
833        &quot;a_key&quot;: &quot;A String&quot;,
834      },
835    },
836  ],
837  &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.
838  &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
839    &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.
840      &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
841      &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
842      &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
843      &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
844      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
845      &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
846      &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
847        &quot;a_key&quot;: &quot;A String&quot;,
848      },
849      &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
850    },
851    &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
852      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
853      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
854      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
855    },
856    &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google 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 Google Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
857      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
858      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
859      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
860    },
861  },
862  &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.
863    &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.
864      &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.
865        &quot;fileHash&quot;: [ # Collection of file hashes.
866          { # Container message for hash values.
867            &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
868            &quot;value&quot;: &quot;A String&quot;, # The hash value.
869          },
870        ],
871      },
872    },
873    &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.
874      &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
875      &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
876      &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
877      &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
878      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
879      &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
880      &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
881        &quot;a_key&quot;: &quot;A String&quot;,
882      },
883      &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
884    },
885    &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
886      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
887      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
888      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
889    },
890    &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google 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.
891      &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
892      &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
893      &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
894    },
895  },
896  &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
897  &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
898  &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
899  &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
900    { # A step in the build pipeline.
901      &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.
902        &quot;A String&quot;,
903      ],
904      &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.
905      &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.
906      &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;.
907        &quot;A String&quot;,
908      ],
909      &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.
910      &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.
911      &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.
912        &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
913        &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
914      },
915      &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.
916      &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`.
917        &quot;A String&quot;,
918      ],
919      &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.
920      &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.
921      &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
922        &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
923        &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
924      },
925      &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.
926        { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
927          &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.
928          &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.
929        },
930      ],
931      &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.
932        &quot;A String&quot;,
933      ],
934    },
935  ],
936  &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
937    &quot;a_key&quot;: &quot;A String&quot;,
938  },
939  &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
940    &quot;A String&quot;,
941  ],
942  &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
943  &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
944    &quot;a_key&quot;: { # Start and end times for a build execution phase.
945      &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
946      &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
947    },
948  },
949  &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
950    { # A non-fatal problem encountered during the execution of the build.
951      &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
952      &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
953    },
954  ],
955}</pre>
956</div>
957
958<div class="method">
959    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, projectId=None, x__xgafv=None)</code>
960  <pre>Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.
961
962Args:
963  parent: string, The parent of the collection of `Builds`. Format: `projects/{project}/locations/location` (required)
964  filter: string, The raw filter text to constrain the results.
965  pageSize: integer, Number of results to return in the list.
966  pageToken: string, The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more.
967  projectId: string, Required. ID of the project.
968  x__xgafv: string, V1 error format.
969    Allowed values
970      1 - v1 error format
971      2 - v2 error format
972
973Returns:
974  An object of the form:
975
976    { # Response including listed builds.
977  &quot;builds&quot;: [ # Builds will be sorted by `create_time`, descending.
978    { # 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.
979      &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.
980        &quot;config&quot;: { # ApprovalConfig describes configuration for manual approval of a build. # Output only. Configuration for manual approval of this build.
981          &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.
982        },
983        &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.
984          &quot;approvalTime&quot;: &quot;A String&quot;, # Output only. The time when the approval decision was made.
985          &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.
986          &quot;comment&quot;: &quot;A String&quot;, # Optional. An optional comment for this manual approval result.
987          &quot;decision&quot;: &quot;A String&quot;, # Required. The decision of this manual approval.
988          &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.
989        },
990        &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this build&#x27;s approval.
991      },
992      &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.
993        &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.
994          &quot;A String&quot;,
995        ],
996        &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.
997          &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.
998          &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
999            &quot;A String&quot;,
1000          ],
1001          &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1002            &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1003            &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1004          },
1005        },
1006      },
1007      &quot;availableSecrets&quot;: { # Secrets and secret environment variables. # Secrets and secret environment variables.
1008        &quot;inline&quot;: [ # Secrets encrypted with KMS key and the associated secret environment variable.
1009          { # Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.
1010            &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.
1011              &quot;a_key&quot;: &quot;A String&quot;,
1012            },
1013            &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/*
1014          },
1015        ],
1016        &quot;secretManager&quot;: [ # Secrets in Secret Manager and associated secret environment variable.
1017          { # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1018            &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.
1019            &quot;versionName&quot;: &quot;A String&quot;, # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1020          },
1021        ],
1022      },
1023      &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1024      &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1025      &quot;failureInfo&quot;: { # A fatal problem encountered during the execution of the build. # Output only. Contains information about the build when status=FAILURE.
1026        &quot;detail&quot;: &quot;A String&quot;, # Explains the failure issue in more detail using hard-coded text.
1027        &quot;type&quot;: &quot;A String&quot;, # The name of the failure.
1028      },
1029      &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.
1030      &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1031      &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`.
1032        &quot;A String&quot;,
1033      ],
1034      &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1035      &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1036      &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.
1037      &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1038        &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
1039        &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.
1040        &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;.
1041          &quot;A String&quot;,
1042        ],
1043        &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1044        &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1045        &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1046        &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.
1047          &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}
1048        },
1049        &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1050        &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.
1051          &quot;A String&quot;,
1052        ],
1053        &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1054          &quot;A String&quot;,
1055        ],
1056        &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.
1057        &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.
1058          { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1059            &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.
1060            &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.
1061          },
1062        ],
1063        &quot;workerPool&quot;: &quot;A String&quot;, # This field deprecated; please use `pool.name` instead.
1064      },
1065      &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1066      &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.
1067      &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1068        &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1069        &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1070          &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1071          &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1072        },
1073        &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1074          &quot;A String&quot;,
1075        ],
1076        &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
1077          &quot;A String&quot;,
1078        ],
1079        &quot;images&quot;: [ # Container images that were built as a part of the build.
1080          { # An image built by the pipeline.
1081            &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1082            &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1083            &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1084              &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1085              &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1086            },
1087          },
1088        ],
1089        &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1090      },
1091      &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
1092        { # 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.
1093          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1094          &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.
1095            &quot;a_key&quot;: &quot;A String&quot;,
1096          },
1097        },
1098      ],
1099      &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.
1100      &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1101        &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.
1102          &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
1103          &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1104          &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1105          &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1106          &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1107          &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1108          &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1109            &quot;a_key&quot;: &quot;A String&quot;,
1110          },
1111          &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
1112        },
1113        &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1114          &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1115          &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1116          &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
1117        },
1118        &quot;storageSourceManifest&quot;: { # Location of the source manifest in Google 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 Google Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
1119          &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1120          &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1121          &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1122        },
1123      },
1124      &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.
1125        &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.
1126          &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.
1127            &quot;fileHash&quot;: [ # Collection of file hashes.
1128              { # Container message for hash values.
1129                &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1130                &quot;value&quot;: &quot;A String&quot;, # The hash value.
1131              },
1132            ],
1133          },
1134        },
1135        &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.
1136          &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
1137          &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1138          &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1139          &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1140          &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1141          &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1142          &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1143            &quot;a_key&quot;: &quot;A String&quot;,
1144          },
1145          &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
1146        },
1147        &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1148          &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1149          &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1150          &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
1151        },
1152        &quot;resolvedStorageSourceManifest&quot;: { # Location of the source manifest in Google 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.
1153          &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1154          &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1155          &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source manifest. This object must be a JSON file.
1156        },
1157      },
1158      &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1159      &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1160      &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1161      &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1162        { # A step in the build pipeline.
1163          &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.
1164            &quot;A String&quot;,
1165          ],
1166          &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.
1167          &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.
1168          &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;.
1169            &quot;A String&quot;,
1170          ],
1171          &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.
1172          &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.
1173          &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.
1174            &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1175            &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1176          },
1177          &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.
1178          &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`.
1179            &quot;A String&quot;,
1180          ],
1181          &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.
1182          &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.
1183          &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1184            &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1185            &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1186          },
1187          &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.
1188            { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1189              &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.
1190              &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.
1191            },
1192          ],
1193          &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.
1194            &quot;A String&quot;,
1195          ],
1196        },
1197      ],
1198      &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1199        &quot;a_key&quot;: &quot;A String&quot;,
1200      },
1201      &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1202        &quot;A String&quot;,
1203      ],
1204      &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
1205      &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
1206        &quot;a_key&quot;: { # Start and end times for a build execution phase.
1207          &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1208          &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1209        },
1210      },
1211      &quot;warnings&quot;: [ # Output only. Non-fatal problems encountered during the execution of the build.
1212        { # A non-fatal problem encountered during the execution of the build.
1213          &quot;priority&quot;: &quot;A String&quot;, # The priority for this warning.
1214          &quot;text&quot;: &quot;A String&quot;, # Explanation of the warning generated.
1215        },
1216      ],
1217    },
1218  ],
1219  &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results. This will be absent if the end of the response list has been reached.
1220}</pre>
1221</div>
1222
1223<div class="method">
1224    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1225  <pre>Retrieves the next page of results.
1226
1227Args:
1228  previous_request: The request for the previous page. (required)
1229  previous_response: The response from the request for the previous page. (required)
1230
1231Returns:
1232  A request object that you can call &#x27;execute()&#x27; on to request the next
1233  page. Returns None if there are no more items in the collection.
1234    </pre>
1235</div>
1236
1237<div class="method">
1238    <code class="details" id="retry">retry(name, body=None, x__xgafv=None)</code>
1239  <pre>Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket&#x27;s lifecycle management settings.
1240
1241Args:
1242  name: string, The name of the `Build` to retry. Format: `projects/{project}/locations/{location}/builds/{build}` (required)
1243  body: object, The request body.
1244    The object takes the form of:
1245
1246{ # Specifies a build to retry.
1247  &quot;id&quot;: &quot;A String&quot;, # Required. Build ID of the original build.
1248  &quot;name&quot;: &quot;A String&quot;, # The name of the `Build` to retry. Format: `projects/{project}/locations/{location}/builds/{build}`
1249  &quot;projectId&quot;: &quot;A String&quot;, # Required. ID of the project.
1250}
1251
1252  x__xgafv: string, V1 error format.
1253    Allowed values
1254      1 - v1 error format
1255      2 - v2 error format
1256
1257Returns:
1258  An object of the form:
1259
1260    { # This resource represents a long-running operation that is the result of a network API call.
1261  &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.
1262  &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.
1263    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1264    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1265      {
1266        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1267      },
1268    ],
1269    &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.
1270  },
1271  &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.
1272    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1273  },
1274  &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}`.
1275  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1276    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1277  },
1278}</pre>
1279</div>
1280
1281</body></html>