1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="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">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#create">create(parent, body=None, name=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.</p>
83<p class="toc_element">
84  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.</p>
86<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>
91<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>
92<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">
96  <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
98<p class="toc_element">
99  <code><a href="#list">list(parent, filter=None, kind=None, name=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
100<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">
105  <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Updates an existing occurrence.</p>
107<p class="toc_element">
108  <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
109<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>
110<p class="toc_element">
111  <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
112<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>
113<h3>Method Details</h3>
114<div class="method">
115    <code class="details" id="close">close()</code>
116  <pre>Close httplib2 connections.</pre>
117</div>
118
119<div class="method">
120    <code class="details" id="create">create(parent, body=None, name=None, x__xgafv=None)</code>
121  <pre>Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.
122
123Args:
124  parent: string, This field contains the project Id for example: &quot;projects/{project_id}&quot; (required)
125  body: object, The request body.
126    The object takes the form of:
127
128{ # `Occurrence` includes information about analysis occurrences for an image.
129  &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 [email protected] 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    },
135  },
136  &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
137    &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
138      &quot;builderConfig&quot;: { # required
139        &quot;id&quot;: &quot;A String&quot;,
140      },
141      &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
142        &quot;A String&quot;,
143      ],
144      &quot;metadata&quot;: { # Other properties of the build.
145        &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
146        &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
147        &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
148        &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
149          &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
150          &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
151          &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
152        },
153        &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
154      },
155      &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
156        &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
157          {
158            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159          },
160        ],
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.
163        &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        ],
168        &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    },
171    &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    },
252    &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
253      &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;,
255      },
256      &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
257      &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.
260          &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
261          &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.
262          &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      ],
267      &quot;commands&quot;: [ # Commands requested by the build.
268        { # Command describes a step performed as part of the build pipeline.
269          &quot;args&quot;: [ # Command-line arguments used when executing this Command.
270            &quot;A String&quot;,
271          ],
272          &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
273          &quot;env&quot;: [ # Environment variables set before running this Command.
274            &quot;A String&quot;,
275          ],
276          &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          ],
281        },
282      ],
283      &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
284      &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.
386    },
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  },
389  &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  },
399  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
400  &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
401    &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.
405    &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    ],
408    &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
409    &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
410  },
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.
415      &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.
416      &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
417        &quot;A String&quot;,
418      ],
419      &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.
420    },
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.
423        &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
424        &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
425      },
426    ],
427  },
428  &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
429    &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
430    &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    },
439    &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
440    &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  },
461  &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;.
473      &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
476        &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.
495            {
496              &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
497            },
498          ],
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.
501          &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          ],
506          &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      },
509      &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
547            &quot;a_key&quot;: &quot;A String&quot;,
548          },
549          &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
550        },
551      ],
552    },
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  },
564  &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.
571          &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
572          &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.
593  &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
621    &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    },
625    &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  },
627  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
628    &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
630    &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
631    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
632    &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.
637    &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
638    &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
641  },
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
646    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
647  },
648  &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.
661      &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
662      &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.
669    &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.
670    &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.
677            &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
678            &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        },
683        &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.
684        &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.
689            &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
690            &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        },
695        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
696        &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.
700    &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.
701  },
702}
703
704  name: string, The name of the project. Should be of the form &quot;projects/{project_id}&quot;. @Deprecated
705  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.
714  &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 [email protected] 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.
722    &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
723      &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.
742          {
743            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
744          },
745        ],
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.
748        &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        ],
753        &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    },
756    &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    },
837    &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          ],
850        },
851      ],
852      &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.
877            &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.
878              &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              },
882              &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
883                &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                },
887                &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
888              },
889              &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
890            },
891            &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
892              &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              },
896              &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.
897              &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.
903            },
904            &quot;labels&quot;: { # Labels with user defined metadata.
905              &quot;a_key&quot;: &quot;A String&quot;,
906            },
907          },
908        ],
909        &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.
913        },
914        &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              },
953            ],
954          },
955        },
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        },
968      },
969      &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.
971    },
972    &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  },
974  &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  },
984  &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.
1002        &quot;A String&quot;,
1003      ],
1004      &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.
1005    },
1006    &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.
1010      },
1011    ],
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        {
1019          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1020        },
1021      ],
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.
1029        &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      },
1037      &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      },
1044    },
1045  },
1046  &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;.
1058      &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
1061        &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.
1080            {
1081              &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1082            },
1083          ],
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.
1086          &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          ],
1091          &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      },
1094      &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
1132            &quot;a_key&quot;: &quot;A String&quot;,
1133          },
1134          &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
1135        },
1136      ],
1137    },
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  },
1149  &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.
1156          &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
1157          &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.
1178  &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
1206    &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    },
1210    &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  },
1212  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1213    &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
1215    &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
1216    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1217    &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.
1222    &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
1223    &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
1226  },
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
1231    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
1232  },
1233  &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.
1246      &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
1247      &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.
1254    &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.
1255    &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.
1262            &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
1263            &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        },
1268        &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.
1269        &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.
1274            &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
1275            &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        },
1280        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
1281        &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.
1285    &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.
1286  },
1287}</pre>
1288</div>
1289
1290<div class="method">
1291    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1292  <pre>Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.
1293
1294Args:
1295  name: string, The name of the occurrence in the form of &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
1296  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
1304    { # 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 `{}`.
1305}</pre>
1306</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:
1313  name: string, The name of the occurrence of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
1314  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.
1323  &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 [email protected] 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.
1331    &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
1332      &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.
1351          {
1352            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1353          },
1354        ],
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.
1357        &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        ],
1362        &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    },
1365    &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    },
1446    &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          ],
1459        },
1460      ],
1461      &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.
1486            &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.
1487              &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              },
1491              &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1492                &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                },
1496                &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1497              },
1498              &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1499            },
1500            &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1501              &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              },
1505              &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.
1506              &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.
1512            },
1513            &quot;labels&quot;: { # Labels with user defined metadata.
1514              &quot;a_key&quot;: &quot;A String&quot;,
1515            },
1516          },
1517        ],
1518        &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.
1522        },
1523        &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              },
1562            ],
1563          },
1564        },
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        },
1577      },
1578      &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.
1580    },
1581    &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  },
1583  &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  },
1593  &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.
1611        &quot;A String&quot;,
1612      ],
1613      &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.
1614    },
1615    &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.
1619      },
1620    ],
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        {
1628          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1629        },
1630      ],
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.
1638        &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      },
1646      &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      },
1653    },
1654  },
1655  &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;.
1667      &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
1670        &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.
1689            {
1690              &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1691            },
1692          ],
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.
1695          &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          ],
1700          &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      },
1703      &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
1741            &quot;a_key&quot;: &quot;A String&quot;,
1742          },
1743          &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
1744        },
1745      ],
1746    },
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  },
1758  &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.
1765          &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
1766          &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.
1787  &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
1815    &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    },
1819    &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  },
1821  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1822    &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
1824    &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
1825    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1826    &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.
1831    &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
1832    &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
1835  },
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
1840    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
1841  },
1842  &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.
1855      &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
1856      &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.
1863    &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.
1864    &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.
1871            &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
1872            &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        },
1877        &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.
1878        &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.
1883            &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
1884            &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        },
1889        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
1890        &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.
1894    &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.
1895  },
1896}</pre>
1897</div>
1898
1899<div class="method">
1900    <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
1901  <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
1902
1903Args:
1904  resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
1905  body: object, The request body.
1906    The object takes the form of:
1907
1908{ # Request message for `GetIamPolicy` method.
1909  &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1910    &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).
1911  },
1912}
1913
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
1922    { # 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:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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:[email protected]`, 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).
1926        &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.
1930      },
1931      &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, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?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`.
1932        &quot;A String&quot;,
1933      ],
1934      &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`.
1935    },
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>
1940</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:
1947  name: string, The name of the occurrence in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
1948  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`.
1957  &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  },
1981  &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  },
1998  &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  },
2007  &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  },
2012  &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.
2023          &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2024          &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
2025          &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.
2026          &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2027          &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2028        },
2029        &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.
2031      },
2032    ],
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  ],
2041  &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  },
2045  &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
2046  &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  },
2053  &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.
2054    &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
2072    &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    },
2076    &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
2077    &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
2078    &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.
2085    &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2086  },
2087  &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.
2094          &quot;A String&quot;,
2095        ],
2096        &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2097      },
2098    ],
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.
2102      &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
2103      &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.
2119            &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
2120            &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.
2123          },
2124        },
2125        &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.
2128          &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
2129          &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.
2135          &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
2136          &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.
2143        &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
2144        &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
2145      },
2146    ],
2147    &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
2148  },
2149}</pre>
2150</div>
2151
2152<div class="method">
2153    <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
2154  <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)
2158  filter: string, The filter expression.
2159  x__xgafv: string, V1 error format.
2160    Allowed values
2161      1 - v1 error format
2162      2 - v2 error format
2163
2164Returns:
2165  An object of the form:
2166
2167    { # 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.
2168  &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>
2175</div>
2176
2177<div class="method">
2178    <code class="details" id="list">list(parent, filter=None, kind=None, name=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
2179  <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)
2183  filter: string, The filter expression.
2184  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.
2195      COMPLIANCE - This represents a compliance check that can be applied to a resource.
2196      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.
2200      DSSE_ATTESTATION - This represents a DSSE attestation Note
2201  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.
2204  x__xgafv: string, V1 error format.
2205    Allowed values
2206      1 - v1 error format
2207      2 - v2 error format
2208
2209Returns:
2210  An object of the form:
2211
2212    { # Response including listed active occurrences.
2213  &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 [email protected] 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.
2224        &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
2225          &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.
2244              {
2245                &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2246              },
2247            ],
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.
2250            &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            ],
2255            &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        },
2258        &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        },
2339        &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              ],
2352            },
2353          ],
2354          &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.
2379                &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.
2380                  &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                  },
2384                  &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2385                    &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                    },
2389                    &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2390                  },
2391                  &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2392                },
2393                &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2394                  &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                  },
2398                  &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.
2399                  &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.
2405                },
2406                &quot;labels&quot;: { # Labels with user defined metadata.
2407                  &quot;a_key&quot;: &quot;A String&quot;,
2408                },
2409              },
2410            ],
2411            &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.
2415            },
2416            &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                  },
2455                ],
2456              },
2457            },
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            },
2470          },
2471          &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.
2473        },
2474        &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      },
2476      &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      },
2486      &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.
2504            &quot;A String&quot;,
2505          ],
2506          &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.
2507        },
2508        &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.
2512          },
2513        ],
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            {
2521              &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2522            },
2523          ],
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.
2531            &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          },
2539          &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          },
2546        },
2547      },
2548      &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;.
2560          &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
2563            &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.
2582                {
2583                  &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2584                },
2585              ],
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.
2588              &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              ],
2593              &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          },
2596          &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
2634                &quot;a_key&quot;: &quot;A String&quot;,
2635              },
2636              &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
2637            },
2638          ],
2639        },
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      },
2651      &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.
2658              &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
2659              &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.
2680      &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
2708        &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        },
2712        &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      },
2714      &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2715        &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
2717        &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
2718        &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2719        &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.
2724        &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
2725        &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
2728      },
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
2733        &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
2734      },
2735      &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.
2748          &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
2749          &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.
2756        &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.
2757        &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.
2764                &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
2765                &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            },
2770            &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.
2771            &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.
2776                &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
2777                &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            },
2782            &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
2783            &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.
2787        &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.
2788      },
2789    },
2790  ],
2791}</pre>
2792</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:
2803  A request object that you can call &#x27;execute()&#x27; on to request the next
2804  page. Returns None if there are no more items in the collection.
2805    </pre>
2806</div>
2807
2808<div class="method">
2809    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
2810  <pre>Updates an existing occurrence.
2811
2812Args:
2813  name: string, The name of the occurrence. Should be of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;. (required)
2814  body: object, The request body.
2815    The object takes the form of:
2816
2817{ # `Occurrence` includes information about analysis occurrences for an image.
2818  &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 [email protected] 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    },
2824  },
2825  &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
2826    &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
2827      &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.
2846          {
2847            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2848          },
2849        ],
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.
2852        &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        ],
2857        &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    },
2860    &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    },
2941    &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
2942      &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;,
2944      },
2945      &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2946      &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.
2949          &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
2950          &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.
2951          &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      ],
2956      &quot;commands&quot;: [ # Commands requested by the build.
2957        { # Command describes a step performed as part of the build pipeline.
2958          &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2959            &quot;A String&quot;,
2960          ],
2961          &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
2962          &quot;env&quot;: [ # Environment variables set before running this Command.
2963            &quot;A String&quot;,
2964          ],
2965          &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          ],
2970        },
2971      ],
2972      &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2973      &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.
3075    },
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  },
3078  &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  },
3088  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
3089  &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
3090    &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.
3094    &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    ],
3097    &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3098    &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3099  },
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.
3104      &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.
3105      &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
3106        &quot;A String&quot;,
3107      ],
3108      &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.
3109    },
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.
3112        &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3113        &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
3114      },
3115    ],
3116  },
3117  &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
3118    &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3119    &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    },
3128    &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3129    &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  },
3150  &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;.
3162      &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
3165        &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.
3184            {
3185              &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3186            },
3187          ],
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.
3190          &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          ],
3195          &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      },
3198      &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
3236            &quot;a_key&quot;: &quot;A String&quot;,
3237          },
3238          &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
3239        },
3240      ],
3241    },
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  },
3253  &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.
3260          &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
3261          &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.
3282  &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
3310    &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    },
3314    &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  },
3316  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
3317    &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
3319    &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
3320    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3321    &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.
3326    &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
3327    &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
3330  },
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
3335    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
3336  },
3337  &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.
3350      &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
3351      &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.
3358    &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.
3359    &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.
3366            &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
3367            &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        },
3372        &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.
3373        &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.
3378            &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
3379            &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        },
3384        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
3385        &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.
3389    &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.
3390  },
3391}
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.
3403  &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 [email protected] 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.
3411    &quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
3412      &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.
3431          {
3432            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3433          },
3434        ],
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.
3437        &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        ],
3442        &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    },
3445    &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    },
3526    &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          ],
3539        },
3540      ],
3541      &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.
3566            &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.
3567              &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              },
3571              &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3572                &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                },
3576                &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3577              },
3578              &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3579            },
3580            &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3581              &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              },
3585              &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.
3586              &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.
3592            },
3593            &quot;labels&quot;: { # Labels with user defined metadata.
3594              &quot;a_key&quot;: &quot;A String&quot;,
3595            },
3596          },
3597        ],
3598        &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.
3602        },
3603        &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              },
3642            ],
3643          },
3644        },
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        },
3657      },
3658      &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.
3660    },
3661    &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  },
3663  &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  },
3673  &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.
3691        &quot;A String&quot;,
3692      ],
3693      &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.
3694    },
3695    &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.
3699      },
3700    ],
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        {
3708          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3709        },
3710      ],
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.
3718        &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      },
3726      &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      },
3733    },
3734  },
3735  &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;.
3747      &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
3750        &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.
3769            {
3770              &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3771            },
3772          ],
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.
3775          &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          ],
3780          &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      },
3783      &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
3821            &quot;a_key&quot;: &quot;A String&quot;,
3822          },
3823          &quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
3824        },
3825      ],
3826    },
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  },
3838  &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.
3845          &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
3846          &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.
3867  &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
3895    &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    },
3899    &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  },
3901  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
3902    &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
3904    &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
3905    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3906    &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.
3911    &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
3912    &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
3915  },
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
3920    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
3921  },
3922  &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.
3935      &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
3936      &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.
3943    &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.
3944    &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.
3951            &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
3952            &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        },
3957        &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.
3958        &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.
3963            &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
3964            &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        },
3969        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
3970        &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.
3974    &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.
3975  },
3976}</pre>
3977</div>
3978
3979<div class="method">
3980    <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
3981  <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
3982
3983Args:
3984  resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
3985  body: object, The request body.
3986    The object takes the form of:
3987
3988{ # Request message for `SetIamPolicy` method.
3989  &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:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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:[email protected]`, 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).
3993          &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.
3997        },
3998        &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, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?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`.
3999          &quot;A String&quot;,
4000        ],
4001        &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`.
4002      },
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}
4008
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
4017    { # 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:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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:[email protected]`, 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).
4021        &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.
4025      },
4026      &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, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?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`.
4027        &quot;A String&quot;,
4028      ],
4029      &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`.
4030    },
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>
4035</div>
4036
4037<div class="method">
4038    <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
4039  <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`
4040
4041Args:
4042  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)
4043  body: object, The request body.
4044    The object takes the form of:
4045
4046{ # Request message for `TestIamPermissions` method.
4047  &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}
4051
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.
4061  &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
4062    &quot;A String&quot;,
4063  ],
4064}</pre>
4065</div>
4066
4067</body></html>