blob: 337f2ae12c4d1b2580b900454c037de1e8e96ccd [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="containeranalysis_v1alpha1.html">Container Analysis API</a> . <a href="containeranalysis_v1alpha1.projects.html">projects</a> . <a href="containeranalysis_v1alpha1.projects.occurrences.html">occurrences</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, name=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Returns the requested `Occurrence`.</p>
89<p class="toc_element">
90 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Gets the access control policy for a note or an `Occurrence` resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Gets the `Note` attached to the given `Occurrence`.</p>
95<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
98<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080099 <code><a href="#list">list(parent, filter=None, kind=None, name=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Lists active `Occurrences` for a given project matching the filters.</p>
101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates an existing occurrence.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117</div>
118
119<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code class="details" id="create">create(parent, body=None, name=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 <pre>Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122
123Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 parent: string, This field contains the project Id for example: &quot;projects/{project_id}&quot; (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 The object takes the form of:
127
128{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800129 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
130 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
131 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
132 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
133 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
134 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800135 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800136 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700137 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
138 &quot;builderConfig&quot;: { # required
139 &quot;id&quot;: &quot;A String&quot;,
140 },
141 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
142 &quot;A String&quot;,
143 ],
144 &quot;metadata&quot;: { # Other properties of the build.
145 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
146 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
147 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
148 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
149 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
150 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
151 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
152 },
153 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
154 },
155 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
156 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700157 {
158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700160 ],
161 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
162 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700163 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
164 {
165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
166 },
167 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700168 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
169 },
170 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800171 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800172 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
173 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800174 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800175 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800176 &quot;builtArtifacts&quot;: [ # Output of the build.
177 { # Artifact describes a build product.
178 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800179 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800180 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800181 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
182 &quot;A String&quot;,
183 ],
184 },
185 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800186 &quot;commands&quot;: [ # Commands requested by the build.
187 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800188 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
189 &quot;A String&quot;,
190 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800192 &quot;env&quot;: [ # Environment variables set before running this Command.
193 &quot;A String&quot;,
194 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800195 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
196 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
197 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
198 &quot;A String&quot;,
199 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800200 },
201 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800202 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800203 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
204 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
205 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
206 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
207 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
208 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
209 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
210 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
211 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
212 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
213 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
214 &quot;name&quot;: &quot;A String&quot;, # The alias name.
215 },
216 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
217 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
218 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
219 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
220 },
221 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
222 },
223 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
224 },
225 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
226 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
227 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
228 &quot;name&quot;: &quot;A String&quot;, # The alias name.
229 },
230 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
231 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
232 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
233 },
234 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
235 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
236 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
237 },
238 &quot;labels&quot;: { # Labels with user defined metadata.
239 &quot;a_key&quot;: &quot;A String&quot;,
240 },
241 },
242 ],
243 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
244 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
245 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
246 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
247 },
248 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
249 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
250 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
251 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
252 &quot;name&quot;: &quot;A String&quot;, # The alias name.
253 },
254 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
255 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
256 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
257 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
258 },
259 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
260 },
261 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
262 },
263 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
264 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
265 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
266 &quot;name&quot;: &quot;A String&quot;, # The alias name.
267 },
268 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
269 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
270 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
271 },
272 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
273 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
274 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
275 },
276 &quot;labels&quot;: { # Labels with user defined metadata.
277 &quot;a_key&quot;: &quot;A String&quot;,
278 },
279 },
280 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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.
281 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
282 &quot;fileHash&quot;: [ # Collection of file hashes.
283 { # Container message for hash values.
284 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
285 &quot;value&quot;: &quot;A String&quot;, # The hash value.
286 },
287 ],
288 },
289 },
290 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
291 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
292 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
293 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
294 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
295 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
296 },
297 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
298 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
299 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
300 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
301 },
302 },
303 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
304 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800305 },
306 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
307 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700308 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
309 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
310 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
311 { # Details about files that caused a compliance check to fail.
312 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
313 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
314 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
315 },
316 ],
317 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800318 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800319 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800320 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
321 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
322 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
323 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800324 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
325 &quot;A String&quot;,
326 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800327 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800328 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800329 },
330 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
331 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
332 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
333 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800334 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800335 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
336 &quot;A String&quot;,
337 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800338 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800339 },
340 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
341 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800342 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800343 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800344 },
345 ],
346 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800347 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800348 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800349 &quot;analysisStatusError&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). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
350 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
351 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
352 {
353 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
354 },
355 ],
356 &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.
357 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800358 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800359 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
360 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
361 &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.
362 &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.
363 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
364 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
365 {
366 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
367 },
368 ],
369 &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.
370 },
371 &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.
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374 &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}`.
375 &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`.
376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
377 },
378 },
379 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700380 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
381 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
382 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
383 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
384 &quot;signatures&quot;: [ # The signatures over the payload
385 { # A DSSE signature
386 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
387 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
388 },
389 ],
390 },
391 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
392 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
393 &quot;provenance&quot;: {
394 &quot;builderConfig&quot;: { # required
395 &quot;id&quot;: &quot;A String&quot;,
396 },
397 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
398 &quot;A String&quot;,
399 ],
400 &quot;metadata&quot;: { # Other properties of the build.
401 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
402 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
403 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
404 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
405 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
406 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
407 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
408 },
409 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
410 },
411 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
412 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700413 {
414 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
415 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700416 ],
417 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
418 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700419 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
420 {
421 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
422 },
423 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700424 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
425 },
426 },
427 &quot;subject&quot;: [
428 {
429 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
430 &quot;a_key&quot;: &quot;A String&quot;,
431 },
432 &quot;name&quot;: &quot;A String&quot;,
433 },
434 ],
435 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
436 },
437 },
438 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
439 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
440 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
441 &quot;signatures&quot;: [ # The signatures over the payload
442 { # A DSSE signature
443 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
444 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
445 },
446 ],
447 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800448 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
449 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
450 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
451 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
452 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
453 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
454 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800455 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800456 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
457 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
458 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
459 },
460 },
461 ],
462 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
463 },
464 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
465 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
466 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
467 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
468 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
469 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
470 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
471 &quot;value&quot;: &quot;A String&quot;, # The hash value.
472 },
473 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
474 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
475 },
476 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700477 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
478 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
479 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
480 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
481 &quot;A String&quot;,
482 ],
483 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
484 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
485 &quot;A String&quot;,
486 ],
487 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
488 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
489 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
490 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
491 },
492 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
493 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
494 &quot;A String&quot;,
495 ],
496 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
497 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
498 &quot;A String&quot;,
499 ],
500 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
501 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
502 &quot;A String&quot;,
503 ],
504 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
505 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
506 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
507 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
508 },
509 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
510 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
511 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
512 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
513 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
514 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
515 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
516 },
517 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
518 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
519 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
520 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
521 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
522 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800523 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
524 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
525 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
526 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
527 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
528 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
529 &quot;A String&quot;,
530 ],
531 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
532 },
533 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
534 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
535 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800536 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800537 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
538 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
539 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
540 },
541 },
542 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
543 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700544 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800545 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
546 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
547 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
548 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
549 &quot;package&quot;: &quot;A String&quot;, # The package being described.
550 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
551 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800552 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800553 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
554 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
555 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
556 },
557 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700558 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800559 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
560 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
561 &quot;package&quot;: &quot;A String&quot;, # The package being described.
562 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
563 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800564 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800565 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
566 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
567 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
568 },
569 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700570 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800571 &quot;severityName&quot;: &quot;A String&quot;,
572 },
573 ],
574 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700575 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800576 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577}
578
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700579 name: string, The name of the project. Should be of the form &quot;projects/{project_id}&quot;. @Deprecated
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580 x__xgafv: string, V1 error format.
581 Allowed values
582 1 - v1 error format
583 2 - v2 error format
584
585Returns:
586 An object of the form:
587
588 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800589 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
590 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
591 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
592 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
593 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
594 },
595 },
596 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700597 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
598 &quot;builderConfig&quot;: { # required
599 &quot;id&quot;: &quot;A String&quot;,
600 },
601 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
602 &quot;A String&quot;,
603 ],
604 &quot;metadata&quot;: { # Other properties of the build.
605 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
606 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
607 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
608 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
609 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
610 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
611 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
612 },
613 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
614 },
615 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
616 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700617 {
618 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
619 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700620 ],
621 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
622 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700623 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
624 {
625 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
626 },
627 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700628 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
629 },
630 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800631 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
632 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
633 &quot;a_key&quot;: &quot;A String&quot;,
634 },
635 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
636 &quot;builtArtifacts&quot;: [ # Output of the build.
637 { # Artifact describes a build product.
638 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
639 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
640 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
641 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
642 &quot;A String&quot;,
643 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800644 },
645 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800646 &quot;commands&quot;: [ # Commands requested by the build.
647 { # Command describes a step performed as part of the build pipeline.
648 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
649 &quot;A String&quot;,
650 ],
651 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
652 &quot;env&quot;: [ # Environment variables set before running this Command.
653 &quot;A String&quot;,
654 ],
655 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
656 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
657 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
658 &quot;A String&quot;,
659 ],
660 },
661 ],
662 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
663 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
664 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
665 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
666 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
667 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
668 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
669 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
670 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800671 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800672 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
673 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
674 &quot;name&quot;: &quot;A String&quot;, # The alias name.
675 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800676 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800677 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
678 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
679 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
680 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800681 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800682 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800683 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800684 },
685 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800686 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
687 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
688 &quot;name&quot;: &quot;A String&quot;, # The alias name.
689 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800690 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800691 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
692 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
693 },
694 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
695 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
696 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800697 },
698 &quot;labels&quot;: { # Labels with user defined metadata.
699 &quot;a_key&quot;: &quot;A String&quot;,
700 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800701 },
702 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800703 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
704 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
705 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
706 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800707 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800708 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
709 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
710 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
711 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
712 &quot;name&quot;: &quot;A String&quot;, # The alias name.
713 },
714 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
715 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
716 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
717 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
718 },
719 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
720 },
721 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
722 },
723 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
724 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
725 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
726 &quot;name&quot;: &quot;A String&quot;, # The alias name.
727 },
728 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
729 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
730 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
731 },
732 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
733 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
734 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
735 },
736 &quot;labels&quot;: { # Labels with user defined metadata.
737 &quot;a_key&quot;: &quot;A String&quot;,
738 },
739 },
740 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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.
741 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
742 &quot;fileHash&quot;: [ # Collection of file hashes.
743 { # Container message for hash values.
744 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
745 &quot;value&quot;: &quot;A String&quot;, # The hash value.
746 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800747 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800748 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800749 },
750 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
751 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
752 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
753 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
754 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
755 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
756 },
757 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
758 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
759 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
760 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
761 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800762 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800763 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
764 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800765 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800766 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
767 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700768 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
769 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
770 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
771 { # Details about files that caused a compliance check to fail.
772 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
773 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
774 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
775 },
776 ],
777 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800778 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
779 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
780 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
781 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
782 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
783 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
784 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
785 &quot;A String&quot;,
786 ],
787 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
788 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
789 },
790 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
791 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
792 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
793 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
794 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
795 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800796 &quot;A String&quot;,
797 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800798 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800799 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800800 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
801 { # Layer holds metadata specific to a layer of a Docker image.
802 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
803 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800804 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800805 ],
806 },
807 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
808 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
809 &quot;analysisStatusError&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). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
810 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
811 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
812 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800813 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
814 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800815 ],
816 &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.
817 },
818 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
819 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
820 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
821 &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.
822 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800823 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
824 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
825 {
826 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
827 },
828 ],
829 &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.
830 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800831 &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.
832 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
833 },
834 &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}`.
835 &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`.
836 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
837 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800838 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800839 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700840 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
841 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
842 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
843 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
844 &quot;signatures&quot;: [ # The signatures over the payload
845 { # A DSSE signature
846 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
847 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
848 },
849 ],
850 },
851 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
852 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
853 &quot;provenance&quot;: {
854 &quot;builderConfig&quot;: { # required
855 &quot;id&quot;: &quot;A String&quot;,
856 },
857 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
858 &quot;A String&quot;,
859 ],
860 &quot;metadata&quot;: { # Other properties of the build.
861 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
862 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
863 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
864 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
865 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
866 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
867 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
868 },
869 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
870 },
871 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
872 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700873 {
874 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
875 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700876 ],
877 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
878 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700879 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
880 {
881 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
882 },
883 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700884 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
885 },
886 },
887 &quot;subject&quot;: [
888 {
889 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
890 &quot;a_key&quot;: &quot;A String&quot;,
891 },
892 &quot;name&quot;: &quot;A String&quot;,
893 },
894 ],
895 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
896 },
897 },
898 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
899 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
900 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
901 &quot;signatures&quot;: [ # The signatures over the payload
902 { # A DSSE signature
903 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
904 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
905 },
906 ],
907 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800908 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
909 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
910 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
911 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
912 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
913 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
914 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800915 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800916 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
917 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
918 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
919 },
920 },
921 ],
922 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
923 },
924 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
925 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
926 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
927 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
928 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
929 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
930 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
931 &quot;value&quot;: &quot;A String&quot;, # The hash value.
932 },
933 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
934 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
935 },
936 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700937 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
938 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
939 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
940 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
941 &quot;A String&quot;,
942 ],
943 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
944 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
945 &quot;A String&quot;,
946 ],
947 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
948 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
949 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
950 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
951 },
952 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
953 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
954 &quot;A String&quot;,
955 ],
956 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
957 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
958 &quot;A String&quot;,
959 ],
960 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
961 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
962 &quot;A String&quot;,
963 ],
964 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
965 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
966 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
967 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
968 },
969 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
970 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
971 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
972 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
973 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
974 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
975 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
976 },
977 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
978 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
979 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
980 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
981 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
982 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800983 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
984 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
985 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
986 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
987 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
988 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
989 &quot;A String&quot;,
990 ],
991 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
992 },
993 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
994 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
995 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800996 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800997 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
998 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
999 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1000 },
1001 },
1002 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1003 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001004 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001005 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1006 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1007 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1008 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1009 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1010 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1011 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001012 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001013 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1014 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1015 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1016 },
1017 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001018 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001019 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1020 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1021 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1022 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1023 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001024 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001025 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1026 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1027 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1028 },
1029 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001030 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001031 &quot;severityName&quot;: &quot;A String&quot;,
1032 },
1033 ],
1034 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001035 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001036 },
1037}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001038</div>
1039
1040<div class="method">
1041 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001042 <pre>Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001043
1044Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001045 name: string, The name of the occurrence in the form of &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001046 x__xgafv: string, V1 error format.
1047 Allowed values
1048 1 - v1 error format
1049 2 - v2 error format
1050
1051Returns:
1052 An object of the form:
1053
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001054 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001055}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001056</div>
1057
1058<div class="method">
1059 <code class="details" id="get">get(name, x__xgafv=None)</code>
1060 <pre>Returns the requested `Occurrence`.
1061
1062Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001063 name: string, The name of the occurrence of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001064 x__xgafv: string, V1 error format.
1065 Allowed values
1066 1 - v1 error format
1067 2 - v2 error format
1068
1069Returns:
1070 An object of the form:
1071
1072 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001073 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
1074 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
1075 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1076 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1077 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1078 },
1079 },
1080 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001081 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1082 &quot;builderConfig&quot;: { # required
1083 &quot;id&quot;: &quot;A String&quot;,
1084 },
1085 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
1086 &quot;A String&quot;,
1087 ],
1088 &quot;metadata&quot;: { # Other properties of the build.
1089 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1090 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
1091 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1092 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
1093 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
1094 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1095 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
1096 },
1097 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1098 },
1099 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
1100 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001101 {
1102 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1103 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001104 ],
1105 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
1106 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001107 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
1108 {
1109 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1110 },
1111 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001112 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
1113 },
1114 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001115 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
1116 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1117 &quot;a_key&quot;: &quot;A String&quot;,
1118 },
1119 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1120 &quot;builtArtifacts&quot;: [ # Output of the build.
1121 { # Artifact describes a build product.
1122 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1123 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
1124 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
1125 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
1126 &quot;A String&quot;,
1127 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001128 },
1129 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001130 &quot;commands&quot;: [ # Commands requested by the build.
1131 { # Command describes a step performed as part of the build pipeline.
1132 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1133 &quot;A String&quot;,
1134 ],
1135 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1136 &quot;env&quot;: [ # Environment variables set before running this Command.
1137 &quot;A String&quot;,
1138 ],
1139 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1140 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
1141 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1142 &quot;A String&quot;,
1143 ],
1144 },
1145 ],
1146 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1147 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
1148 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1149 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1150 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1151 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1152 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1153 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
1154 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001155 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001156 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1157 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1158 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1159 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001160 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001161 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1162 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1163 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1164 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001165 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001166 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001167 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001168 },
1169 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001170 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1171 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1172 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1173 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001174 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001175 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1176 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1177 },
1178 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1179 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1180 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001181 },
1182 &quot;labels&quot;: { # Labels with user defined metadata.
1183 &quot;a_key&quot;: &quot;A String&quot;,
1184 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001185 },
1186 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001187 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
1188 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1189 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1190 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001191 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001192 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
1193 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
1194 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1195 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1196 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1197 },
1198 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1199 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1200 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1201 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1202 },
1203 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1204 },
1205 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1206 },
1207 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1208 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1209 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1210 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1211 },
1212 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
1213 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1214 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1215 },
1216 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1217 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1218 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1219 },
1220 &quot;labels&quot;: { # Labels with user defined metadata.
1221 &quot;a_key&quot;: &quot;A String&quot;,
1222 },
1223 },
1224 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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.
1225 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
1226 &quot;fileHash&quot;: [ # Collection of file hashes.
1227 { # Container message for hash values.
1228 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1229 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1230 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001231 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001232 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001233 },
1234 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
1235 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1236 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1237 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1238 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1239 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1240 },
1241 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
1242 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1243 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1244 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1245 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001246 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001247 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1248 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001249 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001250 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
1251 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001252 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
1253 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1254 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1255 { # Details about files that caused a compliance check to fail.
1256 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1257 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
1258 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1259 },
1260 ],
1261 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001262 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1263 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1264 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1265 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1266 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1267 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1268 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1269 &quot;A String&quot;,
1270 ],
1271 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1272 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1273 },
1274 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
1275 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1276 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1277 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1278 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1279 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001280 &quot;A String&quot;,
1281 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001282 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001283 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001284 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
1285 { # Layer holds metadata specific to a layer of a Docker image.
1286 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1287 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001288 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001289 ],
1290 },
1291 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1292 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1293 &quot;analysisStatusError&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). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
1294 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1295 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1296 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001297 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1298 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001299 ],
1300 &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.
1301 },
1302 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1303 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1304 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
1305 &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.
1306 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001307 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1308 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1309 {
1310 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1311 },
1312 ],
1313 &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.
1314 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001315 &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.
1316 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1317 },
1318 &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}`.
1319 &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`.
1320 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1321 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001322 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001323 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001324 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
1325 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
1326 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1327 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1328 &quot;signatures&quot;: [ # The signatures over the payload
1329 { # A DSSE signature
1330 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1331 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1332 },
1333 ],
1334 },
1335 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
1336 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
1337 &quot;provenance&quot;: {
1338 &quot;builderConfig&quot;: { # required
1339 &quot;id&quot;: &quot;A String&quot;,
1340 },
1341 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
1342 &quot;A String&quot;,
1343 ],
1344 &quot;metadata&quot;: { # Other properties of the build.
1345 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1346 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
1347 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1348 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
1349 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
1350 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1351 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
1352 },
1353 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1354 },
1355 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
1356 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001357 {
1358 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1359 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001360 ],
1361 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
1362 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001363 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
1364 {
1365 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1366 },
1367 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001368 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
1369 },
1370 },
1371 &quot;subject&quot;: [
1372 {
1373 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
1374 &quot;a_key&quot;: &quot;A String&quot;,
1375 },
1376 &quot;name&quot;: &quot;A String&quot;,
1377 },
1378 ],
1379 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1380 },
1381 },
1382 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
1383 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1384 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1385 &quot;signatures&quot;: [ # The signatures over the payload
1386 { # A DSSE signature
1387 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1388 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1389 },
1390 ],
1391 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001392 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
1393 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1394 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1395 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1396 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1397 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
1398 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001399 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001400 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1401 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1402 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1403 },
1404 },
1405 ],
1406 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1407 },
1408 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
1409 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
1410 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
1411 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1412 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1413 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1414 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1415 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1416 },
1417 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1418 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
1419 },
1420 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001421 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
1422 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
1423 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
1424 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
1425 &quot;A String&quot;,
1426 ],
1427 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
1428 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1429 &quot;A String&quot;,
1430 ],
1431 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
1432 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
1433 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
1434 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1435 },
1436 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1437 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
1438 &quot;A String&quot;,
1439 ],
1440 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
1441 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1442 &quot;A String&quot;,
1443 ],
1444 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1445 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1446 &quot;A String&quot;,
1447 ],
1448 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1449 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
1450 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1451 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
1452 },
1453 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1454 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1455 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
1456 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1457 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
1458 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
1459 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
1460 },
1461 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
1462 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1463 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1464 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
1465 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
1466 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001467 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1468 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
1469 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
1470 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1471 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1472 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1473 &quot;A String&quot;,
1474 ],
1475 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1476 },
1477 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1478 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
1479 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001480 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001481 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1482 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1483 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1484 },
1485 },
1486 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1487 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001488 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001489 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1490 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1491 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1492 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1493 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1494 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1495 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001496 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001497 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1498 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1499 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1500 },
1501 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001502 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001503 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1504 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1505 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1506 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1507 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001508 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001509 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1510 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1511 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1512 },
1513 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001514 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001515 &quot;severityName&quot;: &quot;A String&quot;,
1516 },
1517 ],
1518 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001519 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001520 },
1521}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001522</div>
1523
1524<div class="method">
1525 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001526 <pre>Gets the access control policy for a note or an `Occurrence` resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001527
1528Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001529 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001530 body: object, The request body.
1531 The object takes the form of:
1532
1533{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001534 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1535 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1536 },
1537}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001538
1539 x__xgafv: string, V1 error format.
1540 Allowed values
1541 1 - v1 error format
1542 2 - v2 error format
1543
1544Returns:
1545 An object of the form:
1546
yoshi-code-bot96afc042021-08-24 00:22:31 -07001547 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001548 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1549 { # Associates `members` with a `role`.
1550 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1551 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1552 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1553 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1554 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001555 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001556 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1557 &quot;A String&quot;,
1558 ],
1559 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1560 },
1561 ],
1562 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1563 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1564}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001565</div>
1566
1567<div class="method">
1568 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1569 <pre>Gets the `Note` attached to the given `Occurrence`.
1570
1571Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001572 name: string, The name of the occurrence in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001573 x__xgafv: string, V1 error format.
1574 Allowed values
1575 1 - v1 error format
1576 2 - v2 error format
1577
1578Returns:
1579 An object of the form:
1580
1581 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001582 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and one for &quot;build&quot;. This Note is intended to act strictly as a grouping mechanism for the attached Occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an Occurrence to a given Note. It also provides a single point of lookup to find all attached Attestation Occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
1583 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the AttestationAuthority. Because the name of a Note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should NOT be used to look up AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
1584 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1585 },
1586 },
1587 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
1588 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1589 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1590 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1591 &quot;A String&quot;,
1592 ],
1593 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
1594 },
1595 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
1596 },
1597 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
1598 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1599 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1600 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key stored in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
1601 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1602 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
1603 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1604 },
1605 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001606 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
1607 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark. # Right now we only have one compliance type, but we may add additional types in the future.
1608 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
1609 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
1610 },
1611 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
1612 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
1613 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
1614 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
1615 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
1616 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
1617 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
1618 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
1619 &quot;version&quot;: &quot;A String&quot;, # The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
1620 },
1621 ],
1622 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001623 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
1624 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1625 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1626 &quot;A String&quot;,
1627 ],
1628 },
1629 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
1630 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
1631 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001632 &quot;dsseAttestation&quot;: { # A note describing an attestation # A note describing a dsse attestation note.
1633 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # DSSEHint hints at the purpose of the attestation authority.
1634 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;cloudbuild-prod&quot;.
1635 },
1636 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001637 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1638 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
1639 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1640 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1641 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. e.g. glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
1642 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1643 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
1644 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1645 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1646 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1647 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001648 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001649 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001650 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001651 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001652 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1653 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001654 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1655 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001656 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001657 ],
1658 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1659 },
1660 &quot;relatedUrl&quot;: [ # URLs associated with this note
1661 { # Metadata for any related URL information
1662 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1663 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1664 },
1665 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001666 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
1667 &quot;dataLicence&quot;: &quot;A String&quot;, # Compliance with the SPDX specification includes populating the SPDX fields therein with data related to such fields (&quot;SPDX-Metadata&quot;)
1668 &quot;spdxVersion&quot;: &quot;A String&quot;, # Provide a reference number that can be used to understand how to parse and interpret the rest of the file
1669 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001670 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001671 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
1672 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1673 &quot;A String&quot;,
1674 ],
1675 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1676 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1677 },
1678 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
1679 &quot;analyzed&quot;: True or False, # Indicates whether the file content of this package has been available for or subjected to analysis when creating the SPDX document
1680 &quot;attribution&quot;: &quot;A String&quot;, # A place for the SPDX data creator to record, at the package level, acknowledgements that may be needed to be communicated in some contexts
1681 &quot;checksum&quot;: &quot;A String&quot;, # Provide an independently reproducible mechanism that permits unique identification of a specific package that correlates to the data in this SPDX file
1682 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1683 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1684 &quot;downloadLocation&quot;: &quot;A String&quot;, # This section identifies the download Universal Resource Locator (URL), or a specific location within a version control system (VCS) for the package at the time that the SPDX file was created
1685 &quot;externalRefs&quot;: [ # ExternalRef
1686 { # An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package
1687 &quot;category&quot;: &quot;A String&quot;, # An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package
1688 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1689 &quot;locator&quot;: &quot;A String&quot;, # The unique string with no spaces necessary to access the package-specific information, metadata, or content within the target location
1690 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1691 },
1692 ],
1693 &quot;filesLicenseInfo&quot;: [ # Contain the license the SPDX file creator has concluded as governing the This field is to contain a list of all licenses found in the package. The relationship between licenses (i.e., conjunctive, disjunctive) is not specified in this field – it is simply a listing of all licenses found
1694 &quot;A String&quot;,
1695 ],
1696 &quot;homePage&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
1697 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1698 &quot;originator&quot;: &quot;A String&quot;, # If the package identified in the SPDX file originated from a different person or organization than identified as Package Supplier, this field identifies from where or whom the package originally came
1699 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1700 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1701 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1702 &quot;verificationCode&quot;: &quot;A String&quot;, # This field provides an independently reproducible mechanism identifying specific contents of a package based on the actual files (except the SPDX file itself, if it is included in the package) that make up each package and that correlates to the data in this SPDX file
1703 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1704 },
1705 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing a relationship between SPDX elements.
1706 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001707 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
1708 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
1709 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1710 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
1711 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1712 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1713 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001714 &quot;A String&quot;,
1715 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001716 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001717 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001718 ],
1719 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1720 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
1721 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001722 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001723 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1724 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1725 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1726 },
1727 },
1728 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1729 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1730 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
1731 { # Identifies all occurrences of this vulnerability in the package for a specific distro/location For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1732 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1733 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1734 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1735 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1736 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1737 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1738 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001739 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001740 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1741 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1742 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001743 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001744 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001745 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
1746 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
1747 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001748 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001749 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1750 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1751 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1752 },
1753 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
1754 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001755 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001756 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1757 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1758 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1759 },
1760 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
1761 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1762 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001763 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
yoshi-code-bot3dd15272021-04-21 15:07:48 -07001764 &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001765 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001766 ],
1767 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1768 },
1769}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001770</div>
1771
1772<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001773 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001774 <pre>Gets a summary of the number and severity of occurrences.
1775
1776Args:
1777 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001778 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001779 x__xgafv: string, V1 error format.
1780 Allowed values
1781 1 - v1 error format
1782 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001783
1784Returns:
1785 An object of the form:
1786
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001787 { # A summary of how many vulnz occurrences there are per severity type. counts by groups, or if we should have different summary messages like this.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001788 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
1789 { # The number of occurrences created for a specific severity.
1790 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
1791 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
1792 },
1793 ],
1794}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001795</div>
1796
1797<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001798 <code class="details" id="list">list(parent, filter=None, kind=None, name=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001799 <pre>Lists active `Occurrences` for a given project matching the filters.
1800
1801Args:
1802 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001803 filter: string, The filter expression.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001804 kind: string, The kind of occurrences to filter on.
1805 Allowed values
1806 KIND_UNSPECIFIED - Unknown
1807 PACKAGE_VULNERABILITY - The note and occurrence represent a package vulnerability.
1808 BUILD_DETAILS - The note and occurrence assert build provenance.
1809 IMAGE_BASIS - This represents an image basis relationship.
1810 PACKAGE_MANAGER - This represents a package installed via a package manager.
1811 DEPLOYABLE - The note and occurrence track deployment events.
1812 DISCOVERY - The note and occurrence track the initial discovery status of a resource.
1813 ATTESTATION_AUTHORITY - This represents a logical &quot;role&quot; that can attest to artifacts.
1814 UPGRADE - This represents an available software upgrade.
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001815 COMPLIANCE - This represents a compliance check that can be applied to a resource.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001816 SBOM - This represents a software bill of materials.
1817 SPDX_PACKAGE - This represents an SPDX Package.
1818 SPDX_FILE - This represents an SPDX File.
1819 SPDX_RELATIONSHIP - This represents an SPDX Relationship.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001820 DSSE_ATTESTATION - This represents a DSSE attestation Note
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001821 name: string, The name field contains the project Id. For example: &quot;projects/{project_id} @Deprecated
1822 pageSize: integer, Number of occurrences to return in the list.
1823 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001824 x__xgafv: string, V1 error format.
1825 Allowed values
1826 1 - v1 error format
1827 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001828
1829Returns:
1830 An object of the form:
1831
1832 { # Response including listed active occurrences.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001833 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results.
1834 &quot;occurrences&quot;: [ # The occurrences requested.
1835 { # `Occurrence` includes information about analysis occurrences for an image.
1836 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
1837 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
1838 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1839 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1840 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1841 },
1842 },
1843 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001844 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1845 &quot;builderConfig&quot;: { # required
1846 &quot;id&quot;: &quot;A String&quot;,
1847 },
1848 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
1849 &quot;A String&quot;,
1850 ],
1851 &quot;metadata&quot;: { # Other properties of the build.
1852 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1853 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
1854 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1855 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
1856 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
1857 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1858 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
1859 },
1860 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1861 },
1862 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
1863 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001864 {
1865 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1866 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001867 ],
1868 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
1869 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001870 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
1871 {
1872 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1873 },
1874 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001875 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
1876 },
1877 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001878 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
1879 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1880 &quot;a_key&quot;: &quot;A String&quot;,
1881 },
1882 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1883 &quot;builtArtifacts&quot;: [ # Output of the build.
1884 { # Artifact describes a build product.
1885 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1886 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
1887 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
1888 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
1889 &quot;A String&quot;,
1890 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001891 },
1892 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001893 &quot;commands&quot;: [ # Commands requested by the build.
1894 { # Command describes a step performed as part of the build pipeline.
1895 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1896 &quot;A String&quot;,
1897 ],
1898 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1899 &quot;env&quot;: [ # Environment variables set before running this Command.
1900 &quot;A String&quot;,
1901 ],
1902 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1903 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
1904 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1905 &quot;A String&quot;,
1906 ],
1907 },
1908 ],
1909 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1910 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
1911 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1912 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1913 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1914 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1915 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1916 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
1917 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001918 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001919 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1920 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1921 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1922 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001923 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001924 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1925 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1926 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1927 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001928 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001929 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001930 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001931 },
1932 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001933 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1934 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1935 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1936 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001937 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001938 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1939 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1940 },
1941 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1942 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1943 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001944 },
1945 &quot;labels&quot;: { # Labels with user defined metadata.
1946 &quot;a_key&quot;: &quot;A String&quot;,
1947 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001948 },
1949 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001950 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
1951 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1952 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1953 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001954 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001955 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
1956 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
1957 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1958 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1959 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1960 },
1961 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1962 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1963 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1964 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1965 },
1966 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1967 },
1968 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1969 },
1970 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1971 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1972 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1973 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1974 },
1975 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
1976 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1977 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1978 },
1979 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1980 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1981 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1982 },
1983 &quot;labels&quot;: { # Labels with user defined metadata.
1984 &quot;a_key&quot;: &quot;A String&quot;,
1985 },
1986 },
1987 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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.
1988 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
1989 &quot;fileHash&quot;: [ # Collection of file hashes.
1990 { # Container message for hash values.
1991 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1992 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1993 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001994 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001995 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001996 },
1997 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
1998 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1999 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2000 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2001 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2002 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2003 },
2004 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
2005 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2006 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2007 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2008 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002009 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002010 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2011 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002012 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002013 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
2014 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002015 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
2016 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2017 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2018 { # Details about files that caused a compliance check to fail.
2019 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2020 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
2021 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2022 },
2023 ],
2024 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002025 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
2026 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2027 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2028 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2029 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2030 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2031 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2032 &quot;A String&quot;,
2033 ],
2034 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2035 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2036 },
2037 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
2038 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2039 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2040 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2041 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
2042 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002043 &quot;A String&quot;,
2044 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002045 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002046 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002047 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
2048 { # Layer holds metadata specific to a layer of a Docker image.
2049 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2050 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002051 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002052 ],
2053 },
2054 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2055 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2056 &quot;analysisStatusError&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). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
2057 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2058 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2059 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002060 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2061 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002062 ],
2063 &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.
2064 },
2065 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2066 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2067 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
2068 &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.
2069 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002070 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2071 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2072 {
2073 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2074 },
2075 ],
2076 &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.
2077 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002078 &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.
2079 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2080 },
2081 &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}`.
2082 &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`.
2083 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2084 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002085 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002086 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002087 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2088 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
2089 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2090 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2091 &quot;signatures&quot;: [ # The signatures over the payload
2092 { # A DSSE signature
2093 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2094 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2095 },
2096 ],
2097 },
2098 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
2099 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2100 &quot;provenance&quot;: {
2101 &quot;builderConfig&quot;: { # required
2102 &quot;id&quot;: &quot;A String&quot;,
2103 },
2104 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2105 &quot;A String&quot;,
2106 ],
2107 &quot;metadata&quot;: { # Other properties of the build.
2108 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2109 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2110 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2111 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2112 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2113 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2114 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2115 },
2116 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2117 },
2118 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
2119 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002120 {
2121 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2122 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002123 ],
2124 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
2125 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002126 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
2127 {
2128 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2129 },
2130 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002131 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2132 },
2133 },
2134 &quot;subject&quot;: [
2135 {
2136 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2137 &quot;a_key&quot;: &quot;A String&quot;,
2138 },
2139 &quot;name&quot;: &quot;A String&quot;,
2140 },
2141 ],
2142 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2143 },
2144 },
2145 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
2146 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2147 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2148 &quot;signatures&quot;: [ # The signatures over the payload
2149 { # A DSSE signature
2150 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2151 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2152 },
2153 ],
2154 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002155 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
2156 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2157 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2158 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2159 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2160 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
2161 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002162 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002163 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2164 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2165 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2166 },
2167 },
2168 ],
2169 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2170 },
2171 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
2172 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
2173 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
2174 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2175 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2176 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2177 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2178 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2179 },
2180 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2181 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
2182 },
2183 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002184 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
2185 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
2186 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
2187 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
2188 &quot;A String&quot;,
2189 ],
2190 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
2191 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2192 &quot;A String&quot;,
2193 ],
2194 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
2195 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
2196 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
2197 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2198 },
2199 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2200 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
2201 &quot;A String&quot;,
2202 ],
2203 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
2204 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2205 &quot;A String&quot;,
2206 ],
2207 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2208 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2209 &quot;A String&quot;,
2210 ],
2211 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2212 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
2213 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2214 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
2215 },
2216 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2217 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2218 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
2219 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2220 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
2221 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2222 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
2223 },
2224 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
2225 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2226 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2227 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
2228 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2229 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002230 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2231 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
2232 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
2233 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2234 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2235 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2236 &quot;A String&quot;,
2237 ],
2238 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2239 },
2240 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2241 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
2242 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002243 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002244 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2245 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2246 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2247 },
2248 },
2249 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2250 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002251 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002252 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2253 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2254 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2255 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
2256 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2257 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
2258 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002259 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002260 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2261 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2262 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2263 },
2264 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002265 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002266 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2267 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
2268 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2269 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
2270 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002271 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002272 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2273 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2274 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2275 },
2276 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002277 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002278 &quot;severityName&quot;: &quot;A String&quot;,
2279 },
2280 ],
2281 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002282 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002283 },
2284 },
2285 ],
2286}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002287</div>
2288
2289<div class="method">
2290 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2291 <pre>Retrieves the next page of results.
2292
2293Args:
2294 previous_request: The request for the previous page. (required)
2295 previous_response: The response from the request for the previous page. (required)
2296
2297Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002298 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002299 page. Returns None if there are no more items in the collection.
2300 </pre>
2301</div>
2302
2303<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002304 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002305 <pre>Updates an existing occurrence.
2306
2307Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002308 name: string, The name of the occurrence. Should be of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002309 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002310 The object takes the form of:
2311
2312{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002313 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
2314 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
2315 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
2316 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
2317 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
2318 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002319 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002320 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002321 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2322 &quot;builderConfig&quot;: { # required
2323 &quot;id&quot;: &quot;A String&quot;,
2324 },
2325 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2326 &quot;A String&quot;,
2327 ],
2328 &quot;metadata&quot;: { # Other properties of the build.
2329 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2330 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2331 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2332 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2333 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2334 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2335 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2336 },
2337 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2338 },
2339 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
2340 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002341 {
2342 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2343 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002344 ],
2345 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
2346 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002347 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
2348 {
2349 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2350 },
2351 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002352 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2353 },
2354 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002355 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002356 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2357 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002358 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002359 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002360 &quot;builtArtifacts&quot;: [ # Output of the build.
2361 { # Artifact describes a build product.
2362 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002363 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002364 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002365 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
2366 &quot;A String&quot;,
2367 ],
2368 },
2369 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002370 &quot;commands&quot;: [ # Commands requested by the build.
2371 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002372 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2373 &quot;A String&quot;,
2374 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002375 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002376 &quot;env&quot;: [ # Environment variables set before running this Command.
2377 &quot;A String&quot;,
2378 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002379 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2380 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
2381 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2382 &quot;A String&quot;,
2383 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002384 },
2385 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002386 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002387 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
2388 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2389 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2390 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2391 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2392 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2393 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
2394 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
2395 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
2396 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2397 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2398 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2399 },
2400 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2401 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
2402 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2403 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2404 },
2405 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2406 },
2407 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2408 },
2409 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2410 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2411 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2412 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2413 },
2414 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
2415 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2416 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2417 },
2418 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
2419 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2420 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2421 },
2422 &quot;labels&quot;: { # Labels with user defined metadata.
2423 &quot;a_key&quot;: &quot;A String&quot;,
2424 },
2425 },
2426 ],
2427 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
2428 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2429 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2430 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2431 },
2432 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
2433 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
2434 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2435 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2436 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2437 },
2438 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2439 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
2440 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2441 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2442 },
2443 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2444 },
2445 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2446 },
2447 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2448 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2449 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2450 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2451 },
2452 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
2453 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2454 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2455 },
2456 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
2457 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2458 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2459 },
2460 &quot;labels&quot;: { # Labels with user defined metadata.
2461 &quot;a_key&quot;: &quot;A String&quot;,
2462 },
2463 },
2464 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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.
2465 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
2466 &quot;fileHash&quot;: [ # Collection of file hashes.
2467 { # Container message for hash values.
2468 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2469 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2470 },
2471 ],
2472 },
2473 },
2474 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
2475 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2476 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2477 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2478 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2479 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2480 },
2481 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
2482 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2483 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2484 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2485 },
2486 },
2487 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2488 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002489 },
2490 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
2491 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002492 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
2493 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2494 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2495 { # Details about files that caused a compliance check to fail.
2496 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2497 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
2498 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2499 },
2500 ],
2501 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002502 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002503 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002504 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2505 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2506 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2507 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002508 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2509 &quot;A String&quot;,
2510 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002511 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002512 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002513 },
2514 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
2515 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2516 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2517 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002518 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002519 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2520 &quot;A String&quot;,
2521 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002522 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002523 },
2524 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
2525 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002526 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002527 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002528 },
2529 ],
2530 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002531 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002532 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002533 &quot;analysisStatusError&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). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
2534 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2535 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2536 {
2537 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2538 },
2539 ],
2540 &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.
2541 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002542 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002543 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2544 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
2545 &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.
2546 &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.
2547 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2548 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2549 {
2550 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2551 },
2552 ],
2553 &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.
2554 },
2555 &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.
2556 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2557 },
2558 &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}`.
2559 &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`.
2560 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2561 },
2562 },
2563 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002564 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2565 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
2566 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2567 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2568 &quot;signatures&quot;: [ # The signatures over the payload
2569 { # A DSSE signature
2570 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2571 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2572 },
2573 ],
2574 },
2575 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
2576 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2577 &quot;provenance&quot;: {
2578 &quot;builderConfig&quot;: { # required
2579 &quot;id&quot;: &quot;A String&quot;,
2580 },
2581 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2582 &quot;A String&quot;,
2583 ],
2584 &quot;metadata&quot;: { # Other properties of the build.
2585 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2586 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2587 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2588 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2589 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2590 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2591 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2592 },
2593 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2594 },
2595 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
2596 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002597 {
2598 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2599 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002600 ],
2601 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
2602 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002603 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
2604 {
2605 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2606 },
2607 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002608 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2609 },
2610 },
2611 &quot;subject&quot;: [
2612 {
2613 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2614 &quot;a_key&quot;: &quot;A String&quot;,
2615 },
2616 &quot;name&quot;: &quot;A String&quot;,
2617 },
2618 ],
2619 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2620 },
2621 },
2622 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
2623 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2624 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2625 &quot;signatures&quot;: [ # The signatures over the payload
2626 { # A DSSE signature
2627 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2628 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2629 },
2630 ],
2631 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002632 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
2633 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2634 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2635 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2636 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2637 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
2638 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002639 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002640 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2641 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2642 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2643 },
2644 },
2645 ],
2646 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2647 },
2648 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
2649 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
2650 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
2651 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2652 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2653 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2654 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2655 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2656 },
2657 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2658 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
2659 },
2660 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002661 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
2662 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
2663 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
2664 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
2665 &quot;A String&quot;,
2666 ],
2667 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
2668 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2669 &quot;A String&quot;,
2670 ],
2671 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
2672 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
2673 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
2674 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2675 },
2676 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2677 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
2678 &quot;A String&quot;,
2679 ],
2680 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
2681 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2682 &quot;A String&quot;,
2683 ],
2684 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2685 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2686 &quot;A String&quot;,
2687 ],
2688 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2689 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
2690 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2691 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
2692 },
2693 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2694 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2695 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
2696 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2697 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
2698 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2699 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
2700 },
2701 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
2702 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2703 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2704 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
2705 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2706 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002707 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2708 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
2709 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
2710 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2711 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2712 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2713 &quot;A String&quot;,
2714 ],
2715 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2716 },
2717 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2718 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
2719 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002720 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002721 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2722 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2723 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2724 },
2725 },
2726 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2727 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002728 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002729 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2730 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2731 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2732 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
2733 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2734 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
2735 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002736 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002737 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2738 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2739 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2740 },
2741 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002742 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002743 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2744 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
2745 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2746 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
2747 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002748 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002749 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2750 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2751 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2752 },
2753 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002754 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002755 &quot;severityName&quot;: &quot;A String&quot;,
2756 },
2757 ],
2758 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002759 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002760 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002761}
2762
2763 updateMask: string, The fields to update.
2764 x__xgafv: string, V1 error format.
2765 Allowed values
2766 1 - v1 error format
2767 2 - v2 error format
2768
2769Returns:
2770 An object of the form:
2771
2772 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002773 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
2774 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
2775 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
2776 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
2777 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
2778 },
2779 },
2780 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002781 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2782 &quot;builderConfig&quot;: { # required
2783 &quot;id&quot;: &quot;A String&quot;,
2784 },
2785 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2786 &quot;A String&quot;,
2787 ],
2788 &quot;metadata&quot;: { # Other properties of the build.
2789 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2790 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2791 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2792 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2793 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2794 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2795 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2796 },
2797 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2798 },
2799 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
2800 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002801 {
2802 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2803 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002804 ],
2805 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
2806 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002807 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
2808 {
2809 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2810 },
2811 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002812 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2813 },
2814 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002815 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
2816 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2817 &quot;a_key&quot;: &quot;A String&quot;,
2818 },
2819 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2820 &quot;builtArtifacts&quot;: [ # Output of the build.
2821 { # Artifact describes a build product.
2822 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2823 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
2824 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
2825 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
2826 &quot;A String&quot;,
2827 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002828 },
2829 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002830 &quot;commands&quot;: [ # Commands requested by the build.
2831 { # Command describes a step performed as part of the build pipeline.
2832 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2833 &quot;A String&quot;,
2834 ],
2835 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
2836 &quot;env&quot;: [ # Environment variables set before running this Command.
2837 &quot;A String&quot;,
2838 ],
2839 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2840 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
2841 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2842 &quot;A String&quot;,
2843 ],
2844 },
2845 ],
2846 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2847 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
2848 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2849 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2850 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2851 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2852 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2853 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
2854 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002855 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002856 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2857 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2858 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2859 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002860 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002861 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
2862 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2863 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2864 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002865 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002866 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002867 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002868 },
2869 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002870 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2871 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2872 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2873 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002874 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002875 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2876 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2877 },
2878 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
2879 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2880 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002881 },
2882 &quot;labels&quot;: { # Labels with user defined metadata.
2883 &quot;a_key&quot;: &quot;A String&quot;,
2884 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002885 },
2886 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002887 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
2888 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2889 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2890 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002891 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002892 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
2893 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
2894 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2895 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2896 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2897 },
2898 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2899 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
2900 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2901 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2902 },
2903 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2904 },
2905 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2906 },
2907 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2908 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2909 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2910 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2911 },
2912 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
2913 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2914 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2915 },
2916 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
2917 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2918 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2919 },
2920 &quot;labels&quot;: { # Labels with user defined metadata.
2921 &quot;a_key&quot;: &quot;A String&quot;,
2922 },
2923 },
2924 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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.
2925 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
2926 &quot;fileHash&quot;: [ # Collection of file hashes.
2927 { # Container message for hash values.
2928 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2929 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2930 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002931 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002932 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002933 },
2934 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
2935 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2936 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2937 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2938 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2939 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2940 },
2941 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
2942 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2943 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2944 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2945 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002946 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002947 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2948 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002949 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002950 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
2951 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002952 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
2953 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2954 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2955 { # Details about files that caused a compliance check to fail.
2956 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2957 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
2958 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2959 },
2960 ],
2961 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002962 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
2963 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2964 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2965 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2966 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2967 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2968 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2969 &quot;A String&quot;,
2970 ],
2971 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2972 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2973 },
2974 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
2975 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2976 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2977 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2978 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
2979 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002980 &quot;A String&quot;,
2981 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002982 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002983 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002984 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
2985 { # Layer holds metadata specific to a layer of a Docker image.
2986 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2987 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002988 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002989 ],
2990 },
2991 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2992 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2993 &quot;analysisStatusError&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). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
2994 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2995 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2996 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002997 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2998 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002999 ],
3000 &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.
3001 },
3002 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3003 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3004 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
3005 &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.
3006 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003007 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3008 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3009 {
3010 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3011 },
3012 ],
3013 &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.
3014 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003015 &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.
3016 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3017 },
3018 &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}`.
3019 &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`.
3020 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3021 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003022 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003023 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003024 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
3025 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
3026 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3027 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3028 &quot;signatures&quot;: [ # The signatures over the payload
3029 { # A DSSE signature
3030 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3031 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3032 },
3033 ],
3034 },
3035 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
3036 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
3037 &quot;provenance&quot;: {
3038 &quot;builderConfig&quot;: { # required
3039 &quot;id&quot;: &quot;A String&quot;,
3040 },
3041 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
3042 &quot;A String&quot;,
3043 ],
3044 &quot;metadata&quot;: { # Other properties of the build.
3045 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3046 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
3047 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3048 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
3049 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
3050 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3051 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
3052 },
3053 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3054 },
3055 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
3056 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07003057 {
3058 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3059 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003060 ],
3061 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
3062 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07003063 &quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
3064 {
3065 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3066 },
3067 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003068 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
3069 },
3070 },
3071 &quot;subject&quot;: [
3072 {
3073 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
3074 &quot;a_key&quot;: &quot;A String&quot;,
3075 },
3076 &quot;name&quot;: &quot;A String&quot;,
3077 },
3078 ],
3079 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3080 },
3081 },
3082 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
3083 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3084 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3085 &quot;signatures&quot;: [ # The signatures over the payload
3086 { # A DSSE signature
3087 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3088 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3089 },
3090 ],
3091 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003092 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
3093 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
3094 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
3095 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
3096 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3097 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
3098 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003099 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003100 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
3101 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3102 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3103 },
3104 },
3105 ],
3106 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3107 },
3108 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
3109 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
3110 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
3111 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3112 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
3113 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
3114 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3115 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3116 },
3117 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
3118 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
3119 },
3120 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -07003121 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
3122 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
3123 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
3124 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
3125 &quot;A String&quot;,
3126 ],
3127 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
3128 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
3129 &quot;A String&quot;,
3130 ],
3131 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
3132 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
3133 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
3134 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
3135 },
3136 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
3137 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
3138 &quot;A String&quot;,
3139 ],
3140 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
3141 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
3142 &quot;A String&quot;,
3143 ],
3144 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
3145 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
3146 &quot;A String&quot;,
3147 ],
3148 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3149 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
3150 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
3151 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
3152 },
3153 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
3154 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3155 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
3156 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3157 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
3158 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
3159 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
3160 },
3161 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
3162 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3163 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3164 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
3165 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
3166 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003167 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3168 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
3169 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
3170 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
3171 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
3172 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3173 &quot;A String&quot;,
3174 ],
3175 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3176 },
3177 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3178 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
3179 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003180 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003181 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
3182 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3183 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3184 },
3185 },
3186 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
3187 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003188 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003189 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
3190 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3191 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
3192 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
3193 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3194 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
3195 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003196 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003197 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
3198 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3199 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3200 },
3201 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003202 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003203 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
3204 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
3205 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3206 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
3207 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003208 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003209 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
3210 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3211 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3212 },
3213 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003214 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003215 &quot;severityName&quot;: &quot;A String&quot;,
3216 },
3217 ],
3218 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003219 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003220 },
3221}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003222</div>
3223
3224<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003225 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003226 <pre>Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003227
3228Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003229 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003230 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003231 The object takes the form of:
3232
3233{ # Request message for `SetIamPolicy` method.
yoshi-code-bot96afc042021-08-24 00:22:31 -07003234 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003235 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
3236 { # Associates `members` with a `role`.
3237 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3238 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
3239 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3240 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
3241 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003242 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003243 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
3244 &quot;A String&quot;,
3245 ],
3246 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3247 },
3248 ],
3249 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
3250 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3251 },
3252}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003253
3254 x__xgafv: string, V1 error format.
3255 Allowed values
3256 1 - v1 error format
3257 2 - v2 error format
3258
3259Returns:
3260 An object of the form:
3261
yoshi-code-bot96afc042021-08-24 00:22:31 -07003262 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003263 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
3264 { # Associates `members` with a `role`.
3265 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3266 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
3267 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3268 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
3269 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003270 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003271 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
3272 &quot;A String&quot;,
3273 ],
3274 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3275 },
3276 ],
3277 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
3278 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3279}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003280</div>
3281
3282<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003283 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003284 <pre>Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, &quot;storage.objects.list&quot; on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003285
3286Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003287 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003288 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003289 The object takes the form of:
3290
3291{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003292 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
3293 &quot;A String&quot;,
3294 ],
3295}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003296
3297 x__xgafv: string, V1 error format.
3298 Allowed values
3299 1 - v1 error format
3300 2 - v2 error format
3301
3302Returns:
3303 An object of the form:
3304
3305 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003306 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
3307 &quot;A String&quot;,
3308 ],
3309}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003310</div>
3311
3312</body></html>