blob: 0c15db9ebfa773744fbcec396ef176d9d43f3ec7 [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-bot466c9a92021-11-22 23:24:31 -0800137 &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700138 &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-code-bot466c9a92021-11-22 23:24:31 -0800171 &quot;intotoStatement&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;. # In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence&#x27;s envelope.
172 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
173 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
174 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
175 &quot;builderConfig&quot;: { # required
176 &quot;id&quot;: &quot;A String&quot;,
177 },
178 &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.
179 &quot;A String&quot;,
180 ],
181 &quot;metadata&quot;: { # Other properties of the build.
182 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
183 &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.
184 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
185 &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.
186 &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.
187 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
188 &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;.
189 },
190 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
191 },
192 &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
193 &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.
194 {
195 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
196 },
197 ],
198 &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.
199 &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.
200 &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.
201 {
202 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
203 },
204 ],
205 &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.
206 },
207 },
208 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
209 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
210 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
211 },
212 &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.
213 { # Material is a material used in the generation of the provenance
214 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
215 &quot;a_key&quot;: &quot;A String&quot;,
216 },
217 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
218 },
219 ],
220 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
221 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
222 &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.
223 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
224 &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.
225 &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.
226 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
227 &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;.
228 },
229 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
230 },
231 &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).
232 &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. Depending on the recipe Type, the structure may be different.
233 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
234 },
235 &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.
236 &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.
237 &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. Depending on the recipe Type, the structure may be different.
238 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
239 },
240 &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.
241 },
242 },
243 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
244 { # Subject refers to the subject of the intoto statement
245 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
246 &quot;a_key&quot;: &quot;A String&quot;,
247 },
248 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
249 },
250 ],
251 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800252 &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 -0800253 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
254 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800255 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800256 &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 -0800257 &quot;builtArtifacts&quot;: [ # Output of the build.
258 { # Artifact describes a build product.
259 &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 -0800260 &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 -0800261 &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 -0800262 &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.
263 &quot;A String&quot;,
264 ],
265 },
266 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800267 &quot;commands&quot;: [ # Commands requested by the build.
268 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800269 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
270 &quot;A String&quot;,
271 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800272 &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 -0800273 &quot;env&quot;: [ # Environment variables set before running this Command.
274 &quot;A String&quot;,
275 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800276 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
277 &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`.
278 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
279 &quot;A String&quot;,
280 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800281 },
282 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800283 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800284 &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.
285 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
286 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
287 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
288 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
289 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
290 &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.
291 { # 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.
292 &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.
293 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
294 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
295 &quot;name&quot;: &quot;A String&quot;, # The alias name.
296 },
297 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
298 &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.
299 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
300 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
301 },
302 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
303 },
304 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
305 },
306 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
307 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
308 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
309 &quot;name&quot;: &quot;A String&quot;, # The alias name.
310 },
311 &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.
312 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
313 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
314 },
315 &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).
316 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
317 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
318 },
319 &quot;labels&quot;: { # Labels with user defined metadata.
320 &quot;a_key&quot;: &quot;A String&quot;,
321 },
322 },
323 ],
324 &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.
325 &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)).
326 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
327 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
328 },
329 &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.
330 &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.
331 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
332 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
333 &quot;name&quot;: &quot;A String&quot;, # The alias name.
334 },
335 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
336 &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.
337 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
338 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
339 },
340 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
341 },
342 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
343 },
344 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
345 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
346 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
347 &quot;name&quot;: &quot;A String&quot;, # The alias name.
348 },
349 &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.
350 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
351 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
352 },
353 &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).
354 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
355 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
356 },
357 &quot;labels&quot;: { # Labels with user defined metadata.
358 &quot;a_key&quot;: &quot;A String&quot;,
359 },
360 },
361 &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.
362 &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.
363 &quot;fileHash&quot;: [ # Collection of file hashes.
364 { # Container message for hash values.
365 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
366 &quot;value&quot;: &quot;A String&quot;, # The hash value.
367 },
368 ],
369 },
370 },
371 &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.
372 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
373 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
374 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
375 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
376 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
377 },
378 &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.
379 &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)).
380 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
381 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
382 },
383 },
384 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
385 &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 -0800386 },
387 &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.
388 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700389 &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.
390 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
391 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
392 { # Details about files that caused a compliance check to fail.
393 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
394 &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.
395 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
396 },
397 ],
398 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800399 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800400 &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 -0800401 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
402 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
403 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
404 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800405 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
406 &quot;A String&quot;,
407 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800408 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800409 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800410 },
411 &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.
412 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
413 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
414 &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 -0800415 &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 -0800416 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
417 &quot;A String&quot;,
418 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800419 &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 -0800420 },
421 &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.
422 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800423 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800424 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800425 },
426 ],
427 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800428 &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 -0800429 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800430 &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.
431 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
432 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
433 {
434 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
435 },
436 ],
437 &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.
438 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800439 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800440 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
441 &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.
442 &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.
443 &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.
444 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
445 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
446 {
447 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
448 },
449 ],
450 &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.
451 },
452 &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.
453 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
454 },
455 &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}`.
456 &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`.
457 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
458 },
459 },
460 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700461 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
462 &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.
463 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
464 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
465 &quot;signatures&quot;: [ # The signatures over the payload
466 { # A DSSE signature
467 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
468 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
469 },
470 ],
471 },
472 &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;.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800473 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
474 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
475 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700476 &quot;builderConfig&quot;: { # required
477 &quot;id&quot;: &quot;A String&quot;,
478 },
479 &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.
480 &quot;A String&quot;,
481 ],
482 &quot;metadata&quot;: { # Other properties of the build.
483 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
484 &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.
485 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
486 &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.
487 &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.
488 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
489 &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;.
490 },
491 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
492 },
493 &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
494 &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 -0700495 {
496 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
497 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700498 ],
499 &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.
500 &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 -0700501 &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.
502 {
503 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
504 },
505 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700506 &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.
507 },
508 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800509 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
510 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
511 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
512 },
513 &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.
514 { # Material is a material used in the generation of the provenance
515 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
516 &quot;a_key&quot;: &quot;A String&quot;,
517 },
518 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
519 },
520 ],
521 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
522 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
523 &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.
524 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
525 &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.
526 &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.
527 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
528 &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;.
529 },
530 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
531 },
532 &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).
533 &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. Depending on the recipe Type, the structure may be different.
534 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
535 },
536 &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.
537 &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.
538 &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. Depending on the recipe Type, the structure may be different.
539 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
540 },
541 &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.
542 },
543 },
544 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
545 { # Subject refers to the subject of the intoto statement
546 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700547 &quot;a_key&quot;: &quot;A String&quot;,
548 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800549 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700550 },
551 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700552 },
553 },
554 &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
555 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
556 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
557 &quot;signatures&quot;: [ # The signatures over the payload
558 { # A DSSE signature
559 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
560 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
561 },
562 ],
563 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800564 &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.
565 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
566 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
567 &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.
568 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
569 &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.
570 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800571 &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 -0800572 &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.
573 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
574 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
575 },
576 },
577 ],
578 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
579 },
580 &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.
581 &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;
582 &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.
583 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
584 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
585 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
586 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
587 &quot;value&quot;: &quot;A String&quot;, # The hash value.
588 },
589 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
590 &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.
591 },
592 &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 -0700593 &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.
594 &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
595 &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
596 &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
597 &quot;A String&quot;,
598 ],
599 &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
600 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
601 &quot;A String&quot;,
602 ],
603 &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
604 &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
605 &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
606 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
607 },
608 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
609 &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
610 &quot;A String&quot;,
611 ],
612 &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
613 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
614 &quot;A String&quot;,
615 ],
616 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
617 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
618 &quot;A String&quot;,
619 ],
620 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700621 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
622 &quot;comments&quot;: &quot;A String&quot;, # Comments
623 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
624 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700625 &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
626 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700627 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700628 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
629 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700630 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -0700631 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700632 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
633 &quot;comments&quot;: &quot;A String&quot;, # Comments
634 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
635 },
636 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700637 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700638 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
639 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
640 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -0700641 },
642 &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.
643 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
644 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
645 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700646 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -0700647 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800648 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
649 &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.
650 &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.
651 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
652 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
653 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
654 &quot;A String&quot;,
655 ],
656 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
657 },
658 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
659 &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.
660 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800661 &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 -0800662 &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.
663 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
664 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
665 },
666 },
667 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
668 &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 -0700669 &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 -0800670 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
671 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
672 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
673 &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.
674 &quot;package&quot;: &quot;A String&quot;, # The package being described.
675 &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.
676 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800677 &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 -0800678 &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.
679 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
680 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
681 },
682 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700683 &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 -0800684 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
685 &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.
686 &quot;package&quot;: &quot;A String&quot;, # The package being described.
687 &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.
688 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800689 &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 -0800690 &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.
691 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
692 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
693 },
694 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700695 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800696 &quot;severityName&quot;: &quot;A String&quot;,
697 },
698 ],
699 &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 -0700700 &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 -0800701 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700702}
703
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700704 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 -0700705 x__xgafv: string, V1 error format.
706 Allowed values
707 1 - v1 error format
708 2 - v2 error format
709
710Returns:
711 An object of the form:
712
713 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800714 &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.
715 &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.
716 &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).
717 &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`.
718 &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.
719 },
720 },
721 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot466c9a92021-11-22 23:24:31 -0800722 &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700723 &quot;builderConfig&quot;: { # required
724 &quot;id&quot;: &quot;A String&quot;,
725 },
726 &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.
727 &quot;A String&quot;,
728 ],
729 &quot;metadata&quot;: { # Other properties of the build.
730 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
731 &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.
732 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
733 &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.
734 &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.
735 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
736 &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;.
737 },
738 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
739 },
740 &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
741 &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 -0700742 {
743 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
744 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700745 ],
746 &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.
747 &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 -0700748 &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.
749 {
750 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
751 },
752 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700753 &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.
754 },
755 },
yoshi-code-bot466c9a92021-11-22 23:24:31 -0800756 &quot;intotoStatement&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;. # In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence&#x27;s envelope.
757 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
758 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
759 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
760 &quot;builderConfig&quot;: { # required
761 &quot;id&quot;: &quot;A String&quot;,
762 },
763 &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.
764 &quot;A String&quot;,
765 ],
766 &quot;metadata&quot;: { # Other properties of the build.
767 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
768 &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.
769 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
770 &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.
771 &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.
772 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
773 &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;.
774 },
775 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
776 },
777 &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
778 &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.
779 {
780 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
781 },
782 ],
783 &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.
784 &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.
785 &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.
786 {
787 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
788 },
789 ],
790 &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.
791 },
792 },
793 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
794 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
795 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
796 },
797 &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.
798 { # Material is a material used in the generation of the provenance
799 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
800 &quot;a_key&quot;: &quot;A String&quot;,
801 },
802 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
803 },
804 ],
805 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
806 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
807 &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.
808 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
809 &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.
810 &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.
811 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
812 &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;.
813 },
814 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
815 },
816 &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).
817 &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. Depending on the recipe Type, the structure may be different.
818 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
819 },
820 &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.
821 &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.
822 &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. Depending on the recipe Type, the structure may be different.
823 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
824 },
825 &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.
826 },
827 },
828 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
829 { # Subject refers to the subject of the intoto statement
830 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
831 &quot;a_key&quot;: &quot;A String&quot;,
832 },
833 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
834 },
835 ],
836 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800837 &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
838 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
839 &quot;a_key&quot;: &quot;A String&quot;,
840 },
841 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
842 &quot;builtArtifacts&quot;: [ # Output of the build.
843 { # Artifact describes a build product.
844 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
845 &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
846 &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.
847 &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.
848 &quot;A String&quot;,
849 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800850 },
851 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800852 &quot;commands&quot;: [ # Commands requested by the build.
853 { # Command describes a step performed as part of the build pipeline.
854 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
855 &quot;A String&quot;,
856 ],
857 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
858 &quot;env&quot;: [ # Environment variables set before running this Command.
859 &quot;A String&quot;,
860 ],
861 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
862 &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`.
863 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
864 &quot;A String&quot;,
865 ],
866 },
867 ],
868 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
869 &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.
870 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
871 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
872 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
873 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
874 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
875 &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.
876 { # 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 -0800877 &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 -0800878 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
879 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
880 &quot;name&quot;: &quot;A String&quot;, # The alias name.
881 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800882 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800883 &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.
884 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
885 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
886 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800887 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800888 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800889 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800890 },
891 &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 -0800892 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
893 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
894 &quot;name&quot;: &quot;A String&quot;, # The alias name.
895 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800896 &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 -0800897 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
898 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
899 },
900 &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).
901 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
902 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800903 },
904 &quot;labels&quot;: { # Labels with user defined metadata.
905 &quot;a_key&quot;: &quot;A String&quot;,
906 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800907 },
908 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800909 &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.
910 &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)).
911 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
912 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800913 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800914 &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.
915 &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.
916 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
917 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
918 &quot;name&quot;: &quot;A String&quot;, # The alias name.
919 },
920 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
921 &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.
922 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
923 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
924 },
925 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
926 },
927 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
928 },
929 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
930 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
931 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
932 &quot;name&quot;: &quot;A String&quot;, # The alias name.
933 },
934 &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.
935 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
936 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
937 },
938 &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).
939 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
940 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
941 },
942 &quot;labels&quot;: { # Labels with user defined metadata.
943 &quot;a_key&quot;: &quot;A String&quot;,
944 },
945 },
946 &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.
947 &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.
948 &quot;fileHash&quot;: [ # Collection of file hashes.
949 { # Container message for hash values.
950 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
951 &quot;value&quot;: &quot;A String&quot;, # The hash value.
952 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800953 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800954 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800955 },
956 &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.
957 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
958 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
959 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
960 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
961 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
962 },
963 &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.
964 &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)).
965 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
966 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
967 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800968 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800969 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
970 &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 -0800971 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800972 &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.
973 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700974 &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.
975 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
976 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
977 { # Details about files that caused a compliance check to fail.
978 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
979 &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.
980 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
981 },
982 ],
983 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800984 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
985 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
986 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
987 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
988 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
989 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
990 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
991 &quot;A String&quot;,
992 ],
993 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
994 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
995 },
996 &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.
997 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
998 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
999 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1000 &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.
1001 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001002 &quot;A String&quot;,
1003 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001004 &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 -08001005 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001006 &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.
1007 { # Layer holds metadata specific to a layer of a Docker image.
1008 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1009 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001010 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001011 ],
1012 },
1013 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1014 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1015 &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.
1016 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1017 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1018 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001019 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1020 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001021 ],
1022 &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.
1023 },
1024 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1025 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1026 &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.
1027 &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.
1028 &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 -08001029 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1030 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1031 {
1032 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1033 },
1034 ],
1035 &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.
1036 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001037 &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.
1038 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1039 },
1040 &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}`.
1041 &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`.
1042 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1043 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001044 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001045 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001046 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
1047 &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.
1048 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1049 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1050 &quot;signatures&quot;: [ # The signatures over the payload
1051 { # A DSSE signature
1052 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1053 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1054 },
1055 ],
1056 },
1057 &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;.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001058 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1059 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
1060 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001061 &quot;builderConfig&quot;: { # required
1062 &quot;id&quot;: &quot;A String&quot;,
1063 },
1064 &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.
1065 &quot;A String&quot;,
1066 ],
1067 &quot;metadata&quot;: { # Other properties of the build.
1068 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1069 &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.
1070 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1071 &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.
1072 &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.
1073 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1074 &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;.
1075 },
1076 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1077 },
1078 &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
1079 &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 -07001080 {
1081 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1082 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001083 ],
1084 &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.
1085 &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 -07001086 &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.
1087 {
1088 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1089 },
1090 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001091 &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.
1092 },
1093 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001094 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
1095 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
1096 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
1097 },
1098 &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.
1099 { # Material is a material used in the generation of the provenance
1100 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
1101 &quot;a_key&quot;: &quot;A String&quot;,
1102 },
1103 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
1104 },
1105 ],
1106 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
1107 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1108 &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.
1109 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1110 &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.
1111 &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.
1112 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1113 &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;.
1114 },
1115 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1116 },
1117 &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).
1118 &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. Depending on the recipe Type, the structure may be different.
1119 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1120 },
1121 &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.
1122 &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.
1123 &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. Depending on the recipe Type, the structure may be different.
1124 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1125 },
1126 &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.
1127 },
1128 },
1129 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
1130 { # Subject refers to the subject of the intoto statement
1131 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001132 &quot;a_key&quot;: &quot;A String&quot;,
1133 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001134 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001135 },
1136 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001137 },
1138 },
1139 &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
1140 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1141 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1142 &quot;signatures&quot;: [ # The signatures over the payload
1143 { # A DSSE signature
1144 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1145 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1146 },
1147 ],
1148 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001149 &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.
1150 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1151 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1152 &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.
1153 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1154 &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.
1155 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001156 &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 -08001157 &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.
1158 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1159 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1160 },
1161 },
1162 ],
1163 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1164 },
1165 &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.
1166 &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;
1167 &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.
1168 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1169 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1170 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1171 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1172 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1173 },
1174 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1175 &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.
1176 },
1177 &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 -07001178 &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.
1179 &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
1180 &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
1181 &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
1182 &quot;A String&quot;,
1183 ],
1184 &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
1185 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1186 &quot;A String&quot;,
1187 ],
1188 &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
1189 &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
1190 &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
1191 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1192 },
1193 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1194 &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
1195 &quot;A String&quot;,
1196 ],
1197 &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
1198 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1199 &quot;A String&quot;,
1200 ],
1201 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1202 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1203 &quot;A String&quot;,
1204 ],
1205 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001206 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
1207 &quot;comments&quot;: &quot;A String&quot;, # Comments
1208 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1209 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001210 &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
1211 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001212 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001213 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1214 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001215 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07001216 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001217 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
1218 &quot;comments&quot;: &quot;A String&quot;, # Comments
1219 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1220 },
1221 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001222 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001223 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
1224 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
1225 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07001226 },
1227 &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.
1228 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1229 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1230 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001231 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001232 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001233 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1234 &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.
1235 &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.
1236 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1237 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1238 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1239 &quot;A String&quot;,
1240 ],
1241 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1242 },
1243 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1244 &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.
1245 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001246 &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 -08001247 &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.
1248 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1249 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1250 },
1251 },
1252 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1253 &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 -07001254 &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 -08001255 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1256 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1257 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1258 &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.
1259 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1260 &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.
1261 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001262 &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 -08001263 &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.
1264 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1265 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1266 },
1267 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001268 &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 -08001269 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1270 &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.
1271 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1272 &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.
1273 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001274 &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 -08001275 &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.
1276 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1277 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1278 },
1279 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001280 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001281 &quot;severityName&quot;: &quot;A String&quot;,
1282 },
1283 ],
1284 &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 -07001285 &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 -08001286 },
1287}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001288</div>
1289
1290<div class="method">
1291 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001292 <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 -07001293
1294Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001295 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 -07001296 x__xgafv: string, V1 error format.
1297 Allowed values
1298 1 - v1 error format
1299 2 - v2 error format
1300
1301Returns:
1302 An object of the form:
1303
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001304 { # 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 -08001305}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001306</div>
1307
1308<div class="method">
1309 <code class="details" id="get">get(name, x__xgafv=None)</code>
1310 <pre>Returns the requested `Occurrence`.
1311
1312Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001313 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 -07001314 x__xgafv: string, V1 error format.
1315 Allowed values
1316 1 - v1 error format
1317 2 - v2 error format
1318
1319Returns:
1320 An object of the form:
1321
1322 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001323 &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.
1324 &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.
1325 &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).
1326 &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`.
1327 &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.
1328 },
1329 },
1330 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot466c9a92021-11-22 23:24:31 -08001331 &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001332 &quot;builderConfig&quot;: { # required
1333 &quot;id&quot;: &quot;A String&quot;,
1334 },
1335 &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.
1336 &quot;A String&quot;,
1337 ],
1338 &quot;metadata&quot;: { # Other properties of the build.
1339 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1340 &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.
1341 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1342 &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.
1343 &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.
1344 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1345 &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;.
1346 },
1347 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1348 },
1349 &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
1350 &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 -07001351 {
1352 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1353 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001354 ],
1355 &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.
1356 &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 -07001357 &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.
1358 {
1359 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1360 },
1361 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001362 &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.
1363 },
1364 },
yoshi-code-bot466c9a92021-11-22 23:24:31 -08001365 &quot;intotoStatement&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;. # In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence&#x27;s envelope.
1366 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1367 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
1368 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
1369 &quot;builderConfig&quot;: { # required
1370 &quot;id&quot;: &quot;A String&quot;,
1371 },
1372 &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.
1373 &quot;A String&quot;,
1374 ],
1375 &quot;metadata&quot;: { # Other properties of the build.
1376 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1377 &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.
1378 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1379 &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.
1380 &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.
1381 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1382 &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;.
1383 },
1384 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1385 },
1386 &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
1387 &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.
1388 {
1389 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1390 },
1391 ],
1392 &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.
1393 &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.
1394 &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.
1395 {
1396 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1397 },
1398 ],
1399 &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.
1400 },
1401 },
1402 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
1403 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
1404 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
1405 },
1406 &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.
1407 { # Material is a material used in the generation of the provenance
1408 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
1409 &quot;a_key&quot;: &quot;A String&quot;,
1410 },
1411 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
1412 },
1413 ],
1414 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
1415 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1416 &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.
1417 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1418 &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.
1419 &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.
1420 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1421 &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;.
1422 },
1423 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1424 },
1425 &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).
1426 &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. Depending on the recipe Type, the structure may be different.
1427 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1428 },
1429 &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.
1430 &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.
1431 &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. Depending on the recipe Type, the structure may be different.
1432 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1433 },
1434 &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.
1435 },
1436 },
1437 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
1438 { # Subject refers to the subject of the intoto statement
1439 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
1440 &quot;a_key&quot;: &quot;A String&quot;,
1441 },
1442 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
1443 },
1444 ],
1445 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001446 &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
1447 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1448 &quot;a_key&quot;: &quot;A String&quot;,
1449 },
1450 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1451 &quot;builtArtifacts&quot;: [ # Output of the build.
1452 { # Artifact describes a build product.
1453 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1454 &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
1455 &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.
1456 &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.
1457 &quot;A String&quot;,
1458 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001459 },
1460 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001461 &quot;commands&quot;: [ # Commands requested by the build.
1462 { # Command describes a step performed as part of the build pipeline.
1463 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1464 &quot;A String&quot;,
1465 ],
1466 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1467 &quot;env&quot;: [ # Environment variables set before running this Command.
1468 &quot;A String&quot;,
1469 ],
1470 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1471 &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`.
1472 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1473 &quot;A String&quot;,
1474 ],
1475 },
1476 ],
1477 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1478 &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.
1479 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1480 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1481 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1482 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1483 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1484 &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.
1485 { # 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 -08001486 &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 -08001487 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1488 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1489 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1490 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001491 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001492 &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.
1493 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1494 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1495 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001496 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001497 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001498 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001499 },
1500 &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 -08001501 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1502 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1503 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1504 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001505 &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 -08001506 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1507 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1508 },
1509 &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).
1510 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1511 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001512 },
1513 &quot;labels&quot;: { # Labels with user defined metadata.
1514 &quot;a_key&quot;: &quot;A String&quot;,
1515 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001516 },
1517 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001518 &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.
1519 &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)).
1520 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1521 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001522 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001523 &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.
1524 &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.
1525 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1526 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1527 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1528 },
1529 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1530 &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.
1531 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1532 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1533 },
1534 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1535 },
1536 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1537 },
1538 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1539 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1540 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1541 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1542 },
1543 &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.
1544 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1545 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1546 },
1547 &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).
1548 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1549 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1550 },
1551 &quot;labels&quot;: { # Labels with user defined metadata.
1552 &quot;a_key&quot;: &quot;A String&quot;,
1553 },
1554 },
1555 &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.
1556 &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.
1557 &quot;fileHash&quot;: [ # Collection of file hashes.
1558 { # Container message for hash values.
1559 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1560 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1561 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001562 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001563 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001564 },
1565 &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.
1566 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1567 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1568 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1569 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1570 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1571 },
1572 &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.
1573 &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)).
1574 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1575 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1576 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001577 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001578 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1579 &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 -08001580 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001581 &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.
1582 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001583 &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.
1584 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1585 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1586 { # Details about files that caused a compliance check to fail.
1587 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1588 &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.
1589 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1590 },
1591 ],
1592 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001593 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1594 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1595 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1596 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1597 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1598 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1599 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1600 &quot;A String&quot;,
1601 ],
1602 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1603 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1604 },
1605 &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.
1606 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1607 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1608 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1609 &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.
1610 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001611 &quot;A String&quot;,
1612 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001613 &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 -08001614 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001615 &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.
1616 { # Layer holds metadata specific to a layer of a Docker image.
1617 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1618 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001619 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001620 ],
1621 },
1622 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1623 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1624 &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.
1625 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1626 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1627 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001628 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1629 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001630 ],
1631 &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.
1632 },
1633 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1634 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1635 &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.
1636 &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.
1637 &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 -08001638 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1639 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1640 {
1641 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1642 },
1643 ],
1644 &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.
1645 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001646 &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.
1647 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1648 },
1649 &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}`.
1650 &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`.
1651 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1652 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001653 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001654 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001655 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
1656 &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.
1657 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1658 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1659 &quot;signatures&quot;: [ # The signatures over the payload
1660 { # A DSSE signature
1661 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1662 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1663 },
1664 ],
1665 },
1666 &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;.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001667 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1668 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
1669 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001670 &quot;builderConfig&quot;: { # required
1671 &quot;id&quot;: &quot;A String&quot;,
1672 },
1673 &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.
1674 &quot;A String&quot;,
1675 ],
1676 &quot;metadata&quot;: { # Other properties of the build.
1677 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1678 &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.
1679 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1680 &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.
1681 &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.
1682 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1683 &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;.
1684 },
1685 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1686 },
1687 &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
1688 &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 -07001689 {
1690 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1691 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001692 ],
1693 &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.
1694 &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 -07001695 &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.
1696 {
1697 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1698 },
1699 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001700 &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.
1701 },
1702 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001703 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
1704 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
1705 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
1706 },
1707 &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.
1708 { # Material is a material used in the generation of the provenance
1709 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
1710 &quot;a_key&quot;: &quot;A String&quot;,
1711 },
1712 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
1713 },
1714 ],
1715 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
1716 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1717 &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.
1718 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1719 &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.
1720 &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.
1721 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1722 &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;.
1723 },
1724 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1725 },
1726 &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).
1727 &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. Depending on the recipe Type, the structure may be different.
1728 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1729 },
1730 &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.
1731 &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.
1732 &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. Depending on the recipe Type, the structure may be different.
1733 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1734 },
1735 &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.
1736 },
1737 },
1738 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
1739 { # Subject refers to the subject of the intoto statement
1740 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001741 &quot;a_key&quot;: &quot;A String&quot;,
1742 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001743 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001744 },
1745 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001746 },
1747 },
1748 &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
1749 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1750 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1751 &quot;signatures&quot;: [ # The signatures over the payload
1752 { # A DSSE signature
1753 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1754 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1755 },
1756 ],
1757 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001758 &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.
1759 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1760 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1761 &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.
1762 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1763 &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.
1764 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001765 &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 -08001766 &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.
1767 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1768 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1769 },
1770 },
1771 ],
1772 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1773 },
1774 &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.
1775 &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;
1776 &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.
1777 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1778 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1779 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1780 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1781 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1782 },
1783 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1784 &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.
1785 },
1786 &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 -07001787 &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.
1788 &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
1789 &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
1790 &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
1791 &quot;A String&quot;,
1792 ],
1793 &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
1794 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1795 &quot;A String&quot;,
1796 ],
1797 &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
1798 &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
1799 &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
1800 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1801 },
1802 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1803 &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
1804 &quot;A String&quot;,
1805 ],
1806 &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
1807 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1808 &quot;A String&quot;,
1809 ],
1810 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1811 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1812 &quot;A String&quot;,
1813 ],
1814 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001815 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
1816 &quot;comments&quot;: &quot;A String&quot;, # Comments
1817 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1818 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001819 &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
1820 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001821 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001822 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1823 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001824 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07001825 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001826 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
1827 &quot;comments&quot;: &quot;A String&quot;, # Comments
1828 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1829 },
1830 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001831 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001832 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
1833 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
1834 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07001835 },
1836 &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.
1837 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1838 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1839 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001840 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001841 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001842 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1843 &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.
1844 &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.
1845 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1846 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1847 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1848 &quot;A String&quot;,
1849 ],
1850 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1851 },
1852 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1853 &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.
1854 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001855 &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 -08001856 &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.
1857 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1858 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1859 },
1860 },
1861 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1862 &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 -07001863 &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 -08001864 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1865 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1866 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1867 &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.
1868 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1869 &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.
1870 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001871 &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 -08001872 &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.
1873 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1874 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1875 },
1876 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001877 &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 -08001878 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1879 &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.
1880 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1881 &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.
1882 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001883 &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 -08001884 &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.
1885 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1886 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1887 },
1888 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001889 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001890 &quot;severityName&quot;: &quot;A String&quot;,
1891 },
1892 ],
1893 &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 -07001894 &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 -08001895 },
1896}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001897</div>
1898
1899<div class="method">
1900 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001901 <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 -07001902
1903Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001904 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 -07001905 body: object, The request body.
1906 The object takes the form of:
1907
1908{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001909 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001910 &quot;requestedPolicyVersion&quot;: 42, # Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001911 },
1912}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001913
1914 x__xgafv: string, V1 error format.
1915 Allowed values
1916 1 - v1 error format
1917 2 - v2 error format
1918
1919Returns:
1920 An object of the form:
1921
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001922 { # 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`, or principals, to a single `role`. Principals 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/).
1923 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1924 { # Associates `members`, or principals, with a `role`.
1925 &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 principals 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001926 &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.
1927 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1928 &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.
1929 &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 -07001930 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001931 &quot;members&quot;: [ # Specifies the principals 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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001932 &quot;A String&quot;,
1933 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001934 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001935 },
1936 ],
1937 &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.
1938 &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).
1939}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001940</div>
1941
1942<div class="method">
1943 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1944 <pre>Gets the `Note` attached to the given `Occurrence`.
1945
1946Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001947 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 -07001948 x__xgafv: string, V1 error format.
1949 Allowed values
1950 1 - v1 error format
1951 2 - v2 error format
1952
1953Returns:
1954 An object of the form:
1955
1956 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001957 &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.
1958 &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.
1959 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1960 },
1961 },
1962 &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.
1963 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1964 &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.
1965 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1966 &quot;A String&quot;,
1967 ],
1968 &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.
1969 },
1970 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
1971 },
1972 &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.
1973 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1974 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1975 &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).
1976 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1977 &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`
1978 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1979 },
1980 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001981 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
1982 &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.
1983 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
1984 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
1985 },
1986 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
1987 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
1988 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
1989 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
1990 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
1991 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
1992 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
1993 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
1994 &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.
1995 },
1996 ],
1997 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001998 &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.
1999 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2000 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
2001 &quot;A String&quot;,
2002 ],
2003 },
2004 &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.
2005 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
2006 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002007 &quot;dsseAttestation&quot;: { # A note describing an attestation # A note describing a dsse attestation note.
2008 &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.
2009 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;cloudbuild-prod&quot;.
2010 },
2011 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002012 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
2013 &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.
2014 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
2015 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
2016 &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.
2017 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
2018 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
2019 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
2020 &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.
2021 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2022 &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 -08002023 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002024 &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 -08002025 &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 -08002026 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002027 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2028 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002029 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
2030 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002031 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002032 ],
2033 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
2034 },
2035 &quot;relatedUrl&quot;: [ # URLs associated with this note
2036 { # Metadata for any related URL information
2037 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
2038 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
2039 },
2040 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07002041 &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.
2042 &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;)
2043 &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
2044 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002045 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002046 &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.
2047 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
2048 &quot;A String&quot;,
2049 ],
2050 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
2051 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
2052 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002053 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002054 &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
2055 &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
2056 &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
2057 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
2058 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
2059 &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
2060 &quot;externalRefs&quot;: [ # ExternalRef
2061 { # 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
2062 &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
2063 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
2064 &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
2065 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
2066 },
2067 ],
2068 &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
2069 &quot;A String&quot;,
2070 ],
2071 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002072 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
2073 &quot;comments&quot;: &quot;A String&quot;, # Comments
2074 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2075 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07002076 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002077 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002078 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
2079 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
2080 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
2081 &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
2082 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
2083 },
2084 &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.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002085 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07002086 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002087 &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.
2088 &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.
2089 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
2090 { # 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.
2091 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2092 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2093 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002094 &quot;A String&quot;,
2095 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002096 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002097 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002098 ],
2099 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2100 &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.
2101 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002102 &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 -08002103 &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.
2104 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2105 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2106 },
2107 },
2108 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
2109 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
2110 &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.
2111 { # 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
2112 &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.
2113 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2114 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
2115 &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.
2116 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2117 &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.
2118 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002119 &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 -08002120 &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.
2121 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2122 &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 -08002123 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002124 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002125 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
2126 &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.
2127 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002128 &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 -08002129 &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.
2130 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2131 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2132 },
2133 &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.
2134 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002135 &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 -08002136 &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.
2137 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2138 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2139 },
2140 &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.
2141 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2142 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002143 &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 -07002144 &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 -08002145 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002146 ],
2147 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
2148 },
2149}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002150</div>
2151
2152<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002153 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002154 <pre>Gets a summary of the number and severity of occurrences.
2155
2156Args:
2157 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07002158 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002159 x__xgafv: string, V1 error format.
2160 Allowed values
2161 1 - v1 error format
2162 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002163
2164Returns:
2165 An object of the form:
2166
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002167 { # 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 -08002168 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
2169 { # The number of occurrences created for a specific severity.
2170 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
2171 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
2172 },
2173 ],
2174}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002175</div>
2176
2177<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002178 <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 -07002179 <pre>Lists active `Occurrences` for a given project matching the filters.
2180
2181Args:
2182 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002183 filter: string, The filter expression.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002184 kind: string, The kind of occurrences to filter on.
2185 Allowed values
2186 KIND_UNSPECIFIED - Unknown
2187 PACKAGE_VULNERABILITY - The note and occurrence represent a package vulnerability.
2188 BUILD_DETAILS - The note and occurrence assert build provenance.
2189 IMAGE_BASIS - This represents an image basis relationship.
2190 PACKAGE_MANAGER - This represents a package installed via a package manager.
2191 DEPLOYABLE - The note and occurrence track deployment events.
2192 DISCOVERY - The note and occurrence track the initial discovery status of a resource.
2193 ATTESTATION_AUTHORITY - This represents a logical &quot;role&quot; that can attest to artifacts.
2194 UPGRADE - This represents an available software upgrade.
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002195 COMPLIANCE - This represents a compliance check that can be applied to a resource.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002196 SBOM - This represents a software bill of materials.
2197 SPDX_PACKAGE - This represents an SPDX Package.
2198 SPDX_FILE - This represents an SPDX File.
2199 SPDX_RELATIONSHIP - This represents an SPDX Relationship.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002200 DSSE_ATTESTATION - This represents a DSSE attestation Note
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002201 name: string, The name field contains the project Id. For example: &quot;projects/{project_id} @Deprecated
2202 pageSize: integer, Number of occurrences to return in the list.
2203 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002204 x__xgafv: string, V1 error format.
2205 Allowed values
2206 1 - v1 error format
2207 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002208
2209Returns:
2210 An object of the form:
2211
2212 { # Response including listed active occurrences.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002213 &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.
2214 &quot;occurrences&quot;: [ # The occurrences requested.
2215 { # `Occurrence` includes information about analysis occurrences for an image.
2216 &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.
2217 &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.
2218 &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).
2219 &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`.
2220 &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.
2221 },
2222 },
2223 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot466c9a92021-11-22 23:24:31 -08002224 &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002225 &quot;builderConfig&quot;: { # required
2226 &quot;id&quot;: &quot;A String&quot;,
2227 },
2228 &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.
2229 &quot;A String&quot;,
2230 ],
2231 &quot;metadata&quot;: { # Other properties of the build.
2232 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2233 &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.
2234 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2235 &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.
2236 &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.
2237 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2238 &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;.
2239 },
2240 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2241 },
2242 &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
2243 &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 -07002244 {
2245 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2246 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002247 ],
2248 &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.
2249 &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 -07002250 &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.
2251 {
2252 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2253 },
2254 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002255 &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.
2256 },
2257 },
yoshi-code-bot466c9a92021-11-22 23:24:31 -08002258 &quot;intotoStatement&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;. # In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence&#x27;s envelope.
2259 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2260 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
2261 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
2262 &quot;builderConfig&quot;: { # required
2263 &quot;id&quot;: &quot;A String&quot;,
2264 },
2265 &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.
2266 &quot;A String&quot;,
2267 ],
2268 &quot;metadata&quot;: { # Other properties of the build.
2269 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2270 &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.
2271 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2272 &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.
2273 &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.
2274 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2275 &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;.
2276 },
2277 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2278 },
2279 &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
2280 &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.
2281 {
2282 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2283 },
2284 ],
2285 &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.
2286 &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.
2287 &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.
2288 {
2289 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2290 },
2291 ],
2292 &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.
2293 },
2294 },
2295 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
2296 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
2297 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
2298 },
2299 &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.
2300 { # Material is a material used in the generation of the provenance
2301 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
2302 &quot;a_key&quot;: &quot;A String&quot;,
2303 },
2304 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
2305 },
2306 ],
2307 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
2308 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2309 &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.
2310 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2311 &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.
2312 &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.
2313 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2314 &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;.
2315 },
2316 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2317 },
2318 &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).
2319 &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. Depending on the recipe Type, the structure may be different.
2320 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2321 },
2322 &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.
2323 &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.
2324 &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. Depending on the recipe Type, the structure may be different.
2325 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2326 },
2327 &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.
2328 },
2329 },
2330 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
2331 { # Subject refers to the subject of the intoto statement
2332 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
2333 &quot;a_key&quot;: &quot;A String&quot;,
2334 },
2335 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
2336 },
2337 ],
2338 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002339 &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
2340 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2341 &quot;a_key&quot;: &quot;A String&quot;,
2342 },
2343 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2344 &quot;builtArtifacts&quot;: [ # Output of the build.
2345 { # Artifact describes a build product.
2346 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2347 &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
2348 &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.
2349 &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.
2350 &quot;A String&quot;,
2351 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002352 },
2353 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002354 &quot;commands&quot;: [ # Commands requested by the build.
2355 { # Command describes a step performed as part of the build pipeline.
2356 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2357 &quot;A String&quot;,
2358 ],
2359 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
2360 &quot;env&quot;: [ # Environment variables set before running this Command.
2361 &quot;A String&quot;,
2362 ],
2363 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2364 &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`.
2365 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2366 &quot;A String&quot;,
2367 ],
2368 },
2369 ],
2370 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2371 &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.
2372 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2373 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2374 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2375 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2376 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2377 &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.
2378 { # 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 -08002379 &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 -08002380 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2381 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2382 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2383 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002384 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002385 &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.
2386 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2387 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2388 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002389 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002390 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002391 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002392 },
2393 &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 -08002394 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2395 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2396 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2397 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002398 &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 -08002399 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2400 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2401 },
2402 &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).
2403 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2404 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002405 },
2406 &quot;labels&quot;: { # Labels with user defined metadata.
2407 &quot;a_key&quot;: &quot;A String&quot;,
2408 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002409 },
2410 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002411 &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.
2412 &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)).
2413 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2414 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002415 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002416 &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.
2417 &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.
2418 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2419 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2420 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2421 },
2422 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2423 &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.
2424 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2425 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2426 },
2427 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2428 },
2429 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2430 },
2431 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2432 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2433 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2434 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2435 },
2436 &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.
2437 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2438 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2439 },
2440 &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).
2441 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2442 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2443 },
2444 &quot;labels&quot;: { # Labels with user defined metadata.
2445 &quot;a_key&quot;: &quot;A String&quot;,
2446 },
2447 },
2448 &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.
2449 &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.
2450 &quot;fileHash&quot;: [ # Collection of file hashes.
2451 { # Container message for hash values.
2452 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2453 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2454 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002455 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002456 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002457 },
2458 &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.
2459 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2460 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2461 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2462 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2463 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2464 },
2465 &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.
2466 &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)).
2467 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2468 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2469 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002470 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002471 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2472 &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 -08002473 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002474 &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.
2475 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002476 &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.
2477 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2478 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2479 { # Details about files that caused a compliance check to fail.
2480 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2481 &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.
2482 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2483 },
2484 ],
2485 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002486 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
2487 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2488 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2489 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2490 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2491 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2492 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2493 &quot;A String&quot;,
2494 ],
2495 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2496 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2497 },
2498 &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.
2499 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2500 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2501 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2502 &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.
2503 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002504 &quot;A String&quot;,
2505 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002506 &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 -08002507 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002508 &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.
2509 { # Layer holds metadata specific to a layer of a Docker image.
2510 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2511 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002512 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002513 ],
2514 },
2515 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2516 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2517 &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.
2518 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2519 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2520 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002521 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2522 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002523 ],
2524 &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.
2525 },
2526 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2527 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2528 &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.
2529 &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.
2530 &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 -08002531 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2532 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2533 {
2534 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2535 },
2536 ],
2537 &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.
2538 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002539 &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.
2540 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2541 },
2542 &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}`.
2543 &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`.
2544 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2545 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002546 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002547 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002548 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2549 &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.
2550 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2551 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2552 &quot;signatures&quot;: [ # The signatures over the payload
2553 { # A DSSE signature
2554 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2555 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2556 },
2557 ],
2558 },
2559 &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;.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002560 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2561 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
2562 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002563 &quot;builderConfig&quot;: { # required
2564 &quot;id&quot;: &quot;A String&quot;,
2565 },
2566 &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.
2567 &quot;A String&quot;,
2568 ],
2569 &quot;metadata&quot;: { # Other properties of the build.
2570 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2571 &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.
2572 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2573 &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.
2574 &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.
2575 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2576 &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;.
2577 },
2578 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2579 },
2580 &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
2581 &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 -07002582 {
2583 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2584 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002585 ],
2586 &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.
2587 &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 -07002588 &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.
2589 {
2590 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2591 },
2592 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002593 &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.
2594 },
2595 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002596 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
2597 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
2598 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
2599 },
2600 &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.
2601 { # Material is a material used in the generation of the provenance
2602 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
2603 &quot;a_key&quot;: &quot;A String&quot;,
2604 },
2605 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
2606 },
2607 ],
2608 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
2609 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2610 &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.
2611 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2612 &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.
2613 &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.
2614 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2615 &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;.
2616 },
2617 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2618 },
2619 &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).
2620 &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. Depending on the recipe Type, the structure may be different.
2621 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2622 },
2623 &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.
2624 &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.
2625 &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. Depending on the recipe Type, the structure may be different.
2626 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2627 },
2628 &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.
2629 },
2630 },
2631 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
2632 { # Subject refers to the subject of the intoto statement
2633 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002634 &quot;a_key&quot;: &quot;A String&quot;,
2635 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002636 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002637 },
2638 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002639 },
2640 },
2641 &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
2642 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2643 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2644 &quot;signatures&quot;: [ # The signatures over the payload
2645 { # A DSSE signature
2646 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2647 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2648 },
2649 ],
2650 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002651 &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.
2652 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2653 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2654 &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.
2655 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2656 &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.
2657 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002658 &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 -08002659 &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.
2660 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2661 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2662 },
2663 },
2664 ],
2665 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2666 },
2667 &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.
2668 &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;
2669 &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.
2670 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2671 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2672 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2673 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2674 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2675 },
2676 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2677 &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.
2678 },
2679 &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 -07002680 &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.
2681 &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
2682 &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
2683 &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
2684 &quot;A String&quot;,
2685 ],
2686 &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
2687 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2688 &quot;A String&quot;,
2689 ],
2690 &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
2691 &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
2692 &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
2693 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2694 },
2695 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2696 &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
2697 &quot;A String&quot;,
2698 ],
2699 &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
2700 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2701 &quot;A String&quot;,
2702 ],
2703 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2704 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2705 &quot;A String&quot;,
2706 ],
2707 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002708 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
2709 &quot;comments&quot;: &quot;A String&quot;, # Comments
2710 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2711 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07002712 &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
2713 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002714 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002715 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2716 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002717 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07002718 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002719 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
2720 &quot;comments&quot;: &quot;A String&quot;, # Comments
2721 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2722 },
2723 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002724 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002725 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
2726 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
2727 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07002728 },
2729 &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.
2730 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2731 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2732 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002733 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07002734 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002735 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2736 &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.
2737 &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.
2738 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2739 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2740 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2741 &quot;A String&quot;,
2742 ],
2743 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2744 },
2745 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2746 &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.
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 },
2754 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2755 &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 -07002756 &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 -08002757 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2758 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2759 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2760 &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.
2761 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2762 &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.
2763 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002764 &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 -08002765 &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.
2766 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2767 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2768 },
2769 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002770 &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 -08002771 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2772 &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.
2773 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2774 &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.
2775 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002776 &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 -08002777 &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.
2778 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2779 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2780 },
2781 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002782 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002783 &quot;severityName&quot;: &quot;A String&quot;,
2784 },
2785 ],
2786 &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 -07002787 &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 -08002788 },
2789 },
2790 ],
2791}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002792</div>
2793
2794<div class="method">
2795 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2796 <pre>Retrieves the next page of results.
2797
2798Args:
2799 previous_request: The request for the previous page. (required)
2800 previous_response: The response from the request for the previous page. (required)
2801
2802Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002803 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002804 page. Returns None if there are no more items in the collection.
2805 </pre>
2806</div>
2807
2808<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002809 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002810 <pre>Updates an existing occurrence.
2811
2812Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002813 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 -07002814 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002815 The object takes the form of:
2816
2817{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002818 &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.
2819 &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.
2820 &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).
2821 &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`.
2822 &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.
2823 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002824 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002825 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot466c9a92021-11-22 23:24:31 -08002826 &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002827 &quot;builderConfig&quot;: { # required
2828 &quot;id&quot;: &quot;A String&quot;,
2829 },
2830 &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.
2831 &quot;A String&quot;,
2832 ],
2833 &quot;metadata&quot;: { # Other properties of the build.
2834 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2835 &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.
2836 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2837 &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.
2838 &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.
2839 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2840 &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;.
2841 },
2842 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2843 },
2844 &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
2845 &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 -07002846 {
2847 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2848 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002849 ],
2850 &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.
2851 &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 -07002852 &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.
2853 {
2854 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2855 },
2856 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002857 &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.
2858 },
2859 },
yoshi-code-bot466c9a92021-11-22 23:24:31 -08002860 &quot;intotoStatement&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;. # In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence&#x27;s envelope.
2861 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2862 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
2863 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
2864 &quot;builderConfig&quot;: { # required
2865 &quot;id&quot;: &quot;A String&quot;,
2866 },
2867 &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.
2868 &quot;A String&quot;,
2869 ],
2870 &quot;metadata&quot;: { # Other properties of the build.
2871 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2872 &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.
2873 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2874 &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.
2875 &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.
2876 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2877 &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;.
2878 },
2879 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2880 },
2881 &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
2882 &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.
2883 {
2884 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2885 },
2886 ],
2887 &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.
2888 &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.
2889 &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.
2890 {
2891 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2892 },
2893 ],
2894 &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.
2895 },
2896 },
2897 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
2898 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
2899 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
2900 },
2901 &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.
2902 { # Material is a material used in the generation of the provenance
2903 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
2904 &quot;a_key&quot;: &quot;A String&quot;,
2905 },
2906 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
2907 },
2908 ],
2909 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
2910 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2911 &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.
2912 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2913 &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.
2914 &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.
2915 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2916 &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;.
2917 },
2918 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2919 },
2920 &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).
2921 &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. Depending on the recipe Type, the structure may be different.
2922 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2923 },
2924 &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.
2925 &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.
2926 &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. Depending on the recipe Type, the structure may be different.
2927 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2928 },
2929 &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.
2930 },
2931 },
2932 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
2933 { # Subject refers to the subject of the intoto statement
2934 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
2935 &quot;a_key&quot;: &quot;A String&quot;,
2936 },
2937 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
2938 },
2939 ],
2940 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002941 &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 -08002942 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2943 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002944 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002945 &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 -08002946 &quot;builtArtifacts&quot;: [ # Output of the build.
2947 { # Artifact describes a build product.
2948 &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 -08002949 &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 -08002950 &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 -08002951 &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.
2952 &quot;A String&quot;,
2953 ],
2954 },
2955 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002956 &quot;commands&quot;: [ # Commands requested by the build.
2957 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002958 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2959 &quot;A String&quot;,
2960 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002961 &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 -08002962 &quot;env&quot;: [ # Environment variables set before running this Command.
2963 &quot;A String&quot;,
2964 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002965 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2966 &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`.
2967 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2968 &quot;A String&quot;,
2969 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002970 },
2971 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002972 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002973 &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.
2974 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2975 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2976 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2977 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2978 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2979 &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.
2980 { # 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.
2981 &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.
2982 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2983 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2984 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2985 },
2986 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2987 &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.
2988 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2989 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2990 },
2991 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2992 },
2993 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2994 },
2995 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2996 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2997 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2998 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2999 },
3000 &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.
3001 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3002 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3003 },
3004 &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).
3005 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
3006 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3007 },
3008 &quot;labels&quot;: { # Labels with user defined metadata.
3009 &quot;a_key&quot;: &quot;A String&quot;,
3010 },
3011 },
3012 ],
3013 &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.
3014 &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)).
3015 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
3016 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
3017 },
3018 &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.
3019 &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.
3020 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3021 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3022 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3023 },
3024 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3025 &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.
3026 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3027 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3028 },
3029 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3030 },
3031 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3032 },
3033 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3034 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3035 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3036 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3037 },
3038 &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.
3039 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3040 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3041 },
3042 &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).
3043 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
3044 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3045 },
3046 &quot;labels&quot;: { # Labels with user defined metadata.
3047 &quot;a_key&quot;: &quot;A String&quot;,
3048 },
3049 },
3050 &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.
3051 &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.
3052 &quot;fileHash&quot;: [ # Collection of file hashes.
3053 { # Container message for hash values.
3054 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3055 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3056 },
3057 ],
3058 },
3059 },
3060 &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.
3061 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
3062 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3063 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
3064 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
3065 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
3066 },
3067 &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.
3068 &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)).
3069 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
3070 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
3071 },
3072 },
3073 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
3074 &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 -08003075 },
3076 &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.
3077 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07003078 &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.
3079 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
3080 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
3081 { # Details about files that caused a compliance check to fail.
3082 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
3083 &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.
3084 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
3085 },
3086 ],
3087 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003088 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003089 &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 -08003090 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3091 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3092 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
3093 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003094 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
3095 &quot;A String&quot;,
3096 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003097 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003098 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003099 },
3100 &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.
3101 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
3102 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
3103 &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 -08003104 &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 -08003105 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
3106 &quot;A String&quot;,
3107 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003108 &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 -08003109 },
3110 &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.
3111 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003112 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003113 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003114 },
3115 ],
3116 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003117 &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 -08003118 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003119 &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.
3120 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3121 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3122 {
3123 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3124 },
3125 ],
3126 &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.
3127 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003128 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003129 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3130 &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.
3131 &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.
3132 &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.
3133 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3134 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3135 {
3136 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3137 },
3138 ],
3139 &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.
3140 },
3141 &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.
3142 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3143 },
3144 &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}`.
3145 &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`.
3146 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3147 },
3148 },
3149 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003150 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
3151 &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.
3152 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3153 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3154 &quot;signatures&quot;: [ # The signatures over the payload
3155 { # A DSSE signature
3156 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3157 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3158 },
3159 ],
3160 },
3161 &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;.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003162 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3163 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
3164 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003165 &quot;builderConfig&quot;: { # required
3166 &quot;id&quot;: &quot;A String&quot;,
3167 },
3168 &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.
3169 &quot;A String&quot;,
3170 ],
3171 &quot;metadata&quot;: { # Other properties of the build.
3172 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3173 &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.
3174 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3175 &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.
3176 &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.
3177 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3178 &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;.
3179 },
3180 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3181 },
3182 &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
3183 &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 -07003184 {
3185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3186 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003187 ],
3188 &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.
3189 &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 -07003190 &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.
3191 {
3192 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3193 },
3194 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003195 &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.
3196 },
3197 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003198 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
3199 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
3200 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
3201 },
3202 &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.
3203 { # Material is a material used in the generation of the provenance
3204 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
3205 &quot;a_key&quot;: &quot;A String&quot;,
3206 },
3207 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
3208 },
3209 ],
3210 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
3211 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3212 &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.
3213 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3214 &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.
3215 &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.
3216 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3217 &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;.
3218 },
3219 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3220 },
3221 &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).
3222 &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. Depending on the recipe Type, the structure may be different.
3223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3224 },
3225 &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.
3226 &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.
3227 &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. Depending on the recipe Type, the structure may be different.
3228 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3229 },
3230 &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.
3231 },
3232 },
3233 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
3234 { # Subject refers to the subject of the intoto statement
3235 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003236 &quot;a_key&quot;: &quot;A String&quot;,
3237 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003238 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003239 },
3240 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003241 },
3242 },
3243 &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
3244 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3245 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3246 &quot;signatures&quot;: [ # The signatures over the payload
3247 { # A DSSE signature
3248 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3249 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3250 },
3251 ],
3252 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003253 &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.
3254 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
3255 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
3256 &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.
3257 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3258 &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.
3259 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003260 &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 -08003261 &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.
3262 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3263 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3264 },
3265 },
3266 ],
3267 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3268 },
3269 &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.
3270 &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;
3271 &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.
3272 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3273 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
3274 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
3275 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3276 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3277 },
3278 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
3279 &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.
3280 },
3281 &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 -07003282 &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.
3283 &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
3284 &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
3285 &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
3286 &quot;A String&quot;,
3287 ],
3288 &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
3289 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
3290 &quot;A String&quot;,
3291 ],
3292 &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
3293 &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
3294 &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
3295 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
3296 },
3297 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
3298 &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
3299 &quot;A String&quot;,
3300 ],
3301 &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
3302 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
3303 &quot;A String&quot;,
3304 ],
3305 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
3306 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
3307 &quot;A String&quot;,
3308 ],
3309 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003310 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
3311 &quot;comments&quot;: &quot;A String&quot;, # Comments
3312 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3313 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07003314 &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
3315 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003316 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07003317 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3318 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003319 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07003320 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003321 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
3322 &quot;comments&quot;: &quot;A String&quot;, # Comments
3323 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3324 },
3325 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07003326 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003327 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
3328 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
3329 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07003330 },
3331 &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.
3332 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3333 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3334 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003335 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07003336 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003337 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3338 &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.
3339 &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.
3340 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
3341 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
3342 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3343 &quot;A String&quot;,
3344 ],
3345 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3346 },
3347 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3348 &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.
3349 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003350 &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 -08003351 &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.
3352 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3353 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3354 },
3355 },
3356 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
3357 &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 -07003358 &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 -08003359 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
3360 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3361 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
3362 &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.
3363 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3364 &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.
3365 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003366 &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 -08003367 &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.
3368 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3369 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3370 },
3371 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003372 &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 -08003373 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
3374 &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.
3375 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3376 &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.
3377 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003378 &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 -08003379 &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.
3380 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3381 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3382 },
3383 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003384 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003385 &quot;severityName&quot;: &quot;A String&quot;,
3386 },
3387 ],
3388 &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 -07003389 &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 -08003390 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003391}
3392
3393 updateMask: string, The fields to update.
3394 x__xgafv: string, V1 error format.
3395 Allowed values
3396 1 - v1 error format
3397 2 - v2 error format
3398
3399Returns:
3400 An object of the form:
3401
3402 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003403 &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.
3404 &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.
3405 &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).
3406 &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`.
3407 &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.
3408 },
3409 },
3410 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot466c9a92021-11-22 23:24:31 -08003411 &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003412 &quot;builderConfig&quot;: { # required
3413 &quot;id&quot;: &quot;A String&quot;,
3414 },
3415 &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.
3416 &quot;A String&quot;,
3417 ],
3418 &quot;metadata&quot;: { # Other properties of the build.
3419 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3420 &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.
3421 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3422 &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.
3423 &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.
3424 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3425 &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;.
3426 },
3427 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3428 },
3429 &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
3430 &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 -07003431 {
3432 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3433 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003434 ],
3435 &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.
3436 &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 -07003437 &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.
3438 {
3439 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3440 },
3441 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003442 &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.
3443 },
3444 },
yoshi-code-bot466c9a92021-11-22 23:24:31 -08003445 &quot;intotoStatement&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;. # In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence&#x27;s envelope.
3446 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3447 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
3448 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
3449 &quot;builderConfig&quot;: { # required
3450 &quot;id&quot;: &quot;A String&quot;,
3451 },
3452 &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.
3453 &quot;A String&quot;,
3454 ],
3455 &quot;metadata&quot;: { # Other properties of the build.
3456 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3457 &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.
3458 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3459 &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.
3460 &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.
3461 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3462 &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;.
3463 },
3464 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3465 },
3466 &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
3467 &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.
3468 {
3469 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3470 },
3471 ],
3472 &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.
3473 &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.
3474 &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.
3475 {
3476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3477 },
3478 ],
3479 &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.
3480 },
3481 },
3482 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
3483 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
3484 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
3485 },
3486 &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.
3487 { # Material is a material used in the generation of the provenance
3488 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
3489 &quot;a_key&quot;: &quot;A String&quot;,
3490 },
3491 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
3492 },
3493 ],
3494 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
3495 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3496 &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.
3497 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3498 &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.
3499 &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.
3500 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3501 &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;.
3502 },
3503 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3504 },
3505 &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).
3506 &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. Depending on the recipe Type, the structure may be different.
3507 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3508 },
3509 &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.
3510 &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.
3511 &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. Depending on the recipe Type, the structure may be different.
3512 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3513 },
3514 &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.
3515 },
3516 },
3517 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
3518 { # Subject refers to the subject of the intoto statement
3519 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
3520 &quot;a_key&quot;: &quot;A String&quot;,
3521 },
3522 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
3523 },
3524 ],
3525 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003526 &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
3527 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
3528 &quot;a_key&quot;: &quot;A String&quot;,
3529 },
3530 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
3531 &quot;builtArtifacts&quot;: [ # Output of the build.
3532 { # Artifact describes a build product.
3533 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
3534 &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
3535 &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.
3536 &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.
3537 &quot;A String&quot;,
3538 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003539 },
3540 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003541 &quot;commands&quot;: [ # Commands requested by the build.
3542 { # Command describes a step performed as part of the build pipeline.
3543 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
3544 &quot;A String&quot;,
3545 ],
3546 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
3547 &quot;env&quot;: [ # Environment variables set before running this Command.
3548 &quot;A String&quot;,
3549 ],
3550 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
3551 &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`.
3552 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
3553 &quot;A String&quot;,
3554 ],
3555 },
3556 ],
3557 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
3558 &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.
3559 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
3560 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
3561 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
3562 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
3563 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
3564 &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.
3565 { # 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 -08003566 &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 -08003567 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3568 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3569 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3570 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003571 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003572 &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.
3573 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3574 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3575 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003576 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003577 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003578 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003579 },
3580 &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 -08003581 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3582 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3583 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3584 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003585 &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 -08003586 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3587 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3588 },
3589 &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).
3590 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
3591 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003592 },
3593 &quot;labels&quot;: { # Labels with user defined metadata.
3594 &quot;a_key&quot;: &quot;A String&quot;,
3595 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003596 },
3597 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003598 &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.
3599 &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)).
3600 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
3601 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003602 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003603 &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.
3604 &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.
3605 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3606 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3607 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3608 },
3609 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3610 &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.
3611 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3612 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3613 },
3614 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3615 },
3616 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3617 },
3618 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3619 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3620 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3621 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3622 },
3623 &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.
3624 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3625 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3626 },
3627 &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).
3628 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
3629 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3630 },
3631 &quot;labels&quot;: { # Labels with user defined metadata.
3632 &quot;a_key&quot;: &quot;A String&quot;,
3633 },
3634 },
3635 &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.
3636 &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.
3637 &quot;fileHash&quot;: [ # Collection of file hashes.
3638 { # Container message for hash values.
3639 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3640 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3641 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003642 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003643 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003644 },
3645 &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.
3646 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
3647 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3648 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
3649 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
3650 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
3651 },
3652 &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.
3653 &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)).
3654 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
3655 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
3656 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003657 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003658 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
3659 &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 -08003660 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003661 &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.
3662 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07003663 &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.
3664 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
3665 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
3666 { # Details about files that caused a compliance check to fail.
3667 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
3668 &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.
3669 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
3670 },
3671 ],
3672 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003673 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
3674 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
3675 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3676 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3677 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
3678 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
3679 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
3680 &quot;A String&quot;,
3681 ],
3682 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3683 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3684 },
3685 &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.
3686 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
3687 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
3688 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
3689 &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.
3690 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003691 &quot;A String&quot;,
3692 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003693 &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 -08003694 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003695 &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.
3696 { # Layer holds metadata specific to a layer of a Docker image.
3697 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3698 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003699 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003700 ],
3701 },
3702 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
3703 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3704 &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.
3705 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3706 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3707 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003708 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3709 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003710 ],
3711 &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.
3712 },
3713 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3714 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3715 &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.
3716 &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.
3717 &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 -08003718 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3719 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3720 {
3721 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3722 },
3723 ],
3724 &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.
3725 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003726 &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.
3727 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3728 },
3729 &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}`.
3730 &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`.
3731 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3732 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003733 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003734 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003735 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
3736 &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.
3737 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3738 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3739 &quot;signatures&quot;: [ # The signatures over the payload
3740 { # A DSSE signature
3741 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3742 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3743 },
3744 ],
3745 },
3746 &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;.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003747 &quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3748 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
3749 &quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003750 &quot;builderConfig&quot;: { # required
3751 &quot;id&quot;: &quot;A String&quot;,
3752 },
3753 &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.
3754 &quot;A String&quot;,
3755 ],
3756 &quot;metadata&quot;: { # Other properties of the build.
3757 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3758 &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.
3759 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3760 &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.
3761 &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.
3762 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3763 &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;.
3764 },
3765 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3766 },
3767 &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
3768 &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 -07003769 {
3770 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3771 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003772 ],
3773 &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.
3774 &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 -07003775 &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.
3776 {
3777 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3778 },
3779 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003780 &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.
3781 },
3782 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003783 &quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
3784 &quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
3785 &quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
3786 },
3787 &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.
3788 { # Material is a material used in the generation of the provenance
3789 &quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
3790 &quot;a_key&quot;: &quot;A String&quot;,
3791 },
3792 &quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
3793 },
3794 ],
3795 &quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
3796 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3797 &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.
3798 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3799 &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.
3800 &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.
3801 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3802 &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;.
3803 },
3804 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3805 },
3806 &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).
3807 &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. Depending on the recipe Type, the structure may be different.
3808 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3809 },
3810 &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.
3811 &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.
3812 &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. Depending on the recipe Type, the structure may be different.
3813 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3814 },
3815 &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.
3816 },
3817 },
3818 &quot;subject&quot;: [ # subject is the subjects of the intoto statement
3819 { # Subject refers to the subject of the intoto statement
3820 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003821 &quot;a_key&quot;: &quot;A String&quot;,
3822 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003823 &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003824 },
3825 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003826 },
3827 },
3828 &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
3829 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3830 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3831 &quot;signatures&quot;: [ # The signatures over the payload
3832 { # A DSSE signature
3833 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3834 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3835 },
3836 ],
3837 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003838 &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.
3839 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
3840 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
3841 &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.
3842 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3843 &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.
3844 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003845 &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 -08003846 &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.
3847 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3848 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3849 },
3850 },
3851 ],
3852 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3853 },
3854 &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.
3855 &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;
3856 &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.
3857 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3858 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
3859 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
3860 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3861 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3862 },
3863 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
3864 &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.
3865 },
3866 &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 -07003867 &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.
3868 &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
3869 &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
3870 &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
3871 &quot;A String&quot;,
3872 ],
3873 &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
3874 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
3875 &quot;A String&quot;,
3876 ],
3877 &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
3878 &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
3879 &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
3880 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
3881 },
3882 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
3883 &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
3884 &quot;A String&quot;,
3885 ],
3886 &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
3887 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
3888 &quot;A String&quot;,
3889 ],
3890 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
3891 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
3892 &quot;A String&quot;,
3893 ],
3894 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003895 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
3896 &quot;comments&quot;: &quot;A String&quot;, # Comments
3897 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3898 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07003899 &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
3900 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003901 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07003902 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3903 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003904 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07003905 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003906 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
3907 &quot;comments&quot;: &quot;A String&quot;, # Comments
3908 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3909 },
3910 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07003911 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003912 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
3913 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
3914 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07003915 },
3916 &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.
3917 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3918 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3919 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003920 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07003921 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003922 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3923 &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.
3924 &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.
3925 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
3926 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
3927 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3928 &quot;A String&quot;,
3929 ],
3930 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3931 },
3932 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3933 &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.
3934 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003935 &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 -08003936 &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.
3937 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3938 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3939 },
3940 },
3941 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
3942 &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 -07003943 &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 -08003944 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
3945 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3946 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
3947 &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.
3948 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3949 &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.
3950 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003951 &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 -08003952 &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.
3953 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3954 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3955 },
3956 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003957 &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 -08003958 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
3959 &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.
3960 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3961 &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.
3962 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003963 &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 -08003964 &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.
3965 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3966 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3967 },
3968 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003969 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003970 &quot;severityName&quot;: &quot;A String&quot;,
3971 },
3972 ],
3973 &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 -07003974 &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 -08003975 },
3976}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003977</div>
3978
3979<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003980 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003981 <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 -07003982
3983Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003984 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 -07003985 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003986 The object takes the form of:
3987
3988{ # Request message for `SetIamPolicy` method.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003989 &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`, or principals, to a single `role`. Principals 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.
3990 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
3991 { # Associates `members`, or principals, with a `role`.
3992 &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 principals 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003993 &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.
3994 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3995 &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.
3996 &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 -07003997 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003998 &quot;members&quot;: [ # Specifies the principals 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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003999 &quot;A String&quot;,
4000 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07004001 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004002 },
4003 ],
4004 &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.
4005 &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).
4006 },
4007}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004008
4009 x__xgafv: string, V1 error format.
4010 Allowed values
4011 1 - v1 error format
4012 2 - v2 error format
4013
4014Returns:
4015 An object of the form:
4016
yoshi-code-bot12d387c2021-10-26 00:24:32 -07004017 { # 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`, or principals, to a single `role`. Principals 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/).
4018 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
4019 { # Associates `members`, or principals, with a `role`.
4020 &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 principals 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004021 &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.
4022 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
4023 &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.
4024 &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 -07004025 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07004026 &quot;members&quot;: [ # Specifies the principals 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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004027 &quot;A String&quot;,
4028 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07004029 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004030 },
4031 ],
4032 &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.
4033 &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).
4034}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004035</div>
4036
4037<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004038 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004039 <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 -07004040
4041Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004042 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 -07004043 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004044 The object takes the form of:
4045
4046{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004047 &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).
4048 &quot;A String&quot;,
4049 ],
4050}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004051
4052 x__xgafv: string, V1 error format.
4053 Allowed values
4054 1 - v1 error format
4055 2 - v2 error format
4056
4057Returns:
4058 An object of the form:
4059
4060 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004061 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
4062 &quot;A String&quot;,
4063 ],
4064}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004065</div>
4066
4067</body></html>